Tim Holloway

Saloon Keeper
+ Follow
since Jun 25, 2001
Tim likes ...
Merit badge: grant badges
Biography
Long-time moderator for the Tomcat and JavaServer Faces forums. Designer and manager for the mousetech.com enterprise server farm, which runs VMs, a private cloud and a whole raft of Docker containers.
These days, doing a lot of IoT stuff with Arduinos and Raspberry Pi's.
For More
Jacksonville, Florida USA
Cows and Likes
Cows
Total received
196
In last 30 days
0
Total given
40
Likes
Total received
3178
Received in last 30 days
10
Total given
378
Given in last 30 days
2
Forums and Threads
Scavenger Hunt
Rancher Scavenger Hunt
Ranch Hand Scavenger Hunt
Greenhorn Scavenger Hunt

Recent posts by Tim Holloway

Well, if your login page pulls in a CSS URL named something like "/css/prettyPage.css" and it's not in the web ignoring requestmatchers, then you'll be sent to login in order for your login page to be able to display, which will try to pull in "/css/prettyPage.css" which will need a login, which will try to pull in "/css/prettyPage.css", ...

I believe you're using the built in login pages, so that sort of thing shouldn't happen, but user-designed login pages can easily fall into that trap.

Here my security config, although I don't know how much help it will be. The login pages are custom JavaServer Faces pages.


And to avoid the circularity problem I just mentioned, my CSS and JSF URLs are unrestricted:

5 hours ago
Most likely, you've set up a chicken-and-egg situation where you can't login until you're already logged in.

This can happen if you haven't designated your login page as "no security" AND your login page isn't pulling in any secured JavaScript, images, CSS or whatever. In other words, both the login form page and any URLs it references much be designated as not being secured.
6 hours ago
I think you might find that difficult. C and Python managed to become OOP, but only modifying the core language (C++ and Python's hacked "class" support).

You could kind of fake it by storing related data in a data structure, but that doesn't allow for member functions, so the best you could do would be to set up a standard function naming convention that includes the "object" "class" as part of the procedure name. The original C++ was a pre-processor that converted C++ to C and it did something similar, although the C++ front-end managed the actual OOP functionality.

If your primary concern for going OOP would be to aid in expandability and maintainability, though, sticking with a dead language and pretending OOP is a lot of work for a dead end. Keep the VBA as long as you can, use something that's actually OOP for new stuff.
6 hours ago
Very good. But that's a solution that's useless unless the developer is using Eclipse. The process will be different for IntelliJ, NetBeans and so forth.

On the other hand, Maven doesn't care which IDE you're using, and Eclipse can run Maven to build its projects. Or you can do Maven builds without any IDE at all.
2 days ago
The getproperties method looks in the current Thread's classpath. Thus, to load a properties file named "jdbc.properties", you simply need to have it in your application classpath, as defined via the "classpath" option on the execution command line and have it in the root of that classpath (since you didn't qualify it with a package name).

If you build an executable JAR, then it would then be in the root "directory" of that JAR. Maven would automatically copy it there if your project contained a /src/main/resources/jdbc.properties file,
2 days ago
Does VBA even work anymore? VB itself has been dead for half an æon.

VB.Net may actually have some OOP support, since it's based on the same language environment as C#.net. But I haven't programmed for Windows since, well VB days.

Welcome to the Ranch!
2 days ago
It's dagngerous to assume what the current directory or even the current logged Windows drive is in Java. Other parts of the system might alter it without warning. Always use an
absolute path.

Mike, I believe "J8" is an IBM JVM. I've worked with J9, so the main puzzlement is whether that's a really old JVM or they just numbered arbitrarily.
4 days ago
I'm not familiar with specifics here, but there are a couple of things I'd look at.

First, if you are trying to resolve a resource via JNDI from another (remote) WildFly instance, a general rule is that the default JNDI server that your webapp would see is usually only listening on the localhost connection. That is, unless you have specifically configured WildFly, you can't get at its JNDI server from outside that particular instance of WildFly.

Now if you have managed to get to what you think looks like a JNDI lookup for what I think you hope is an IMS connection object, you're probably not getting what you think. First, because class instance objects cannot simply transfer from one machine to another without having a serialization/deserialization mechanism that JNDI alone cannot provide. Secondly, because even if you did, it would probably come across damaged.

For an application in one JVM to use resources inside another JVM, you need Remote Method Invocation (RMI). RMI does not transfer function objects, it simply provides a standard interfacing system so that a client can invoke methods on a server using a skeleton/stub framework. RMI doesn't go through most Open Internet firewalls, and it can fail if client and server are running different JVM versions, as the serial data format is neither published nor standard.

Even if you did manage to transfer a serialized clone of your IMS connection, it wouldn't work. Consider JDBC Connections. They are not concrete classes, they are interfaces. The actual object implementing that Interface includes a network socket pair that allows the Connection to talk to the JDBC database server. Network sockets are OS objects, not Java objects (though Java may wrap them). OS objects are not serializable at all. You cannot even store a JDBC Connection in an HTTPSession for that reason.

So what I think you really want is some central reference such that each IMS client app can construct their own without you having to manually define them for each app instance, While JNDI could technically keep such data, as I said, JNDI isn't usually sharable. However, you may be able to do what you want by storing the construction parameters in an LDAP/Active Directory instance, a JDBC database or even a web service from a common configuration server.
4 days ago
Possibly the android.media.MediaRecorder class. Supposedly it dates back to Android 1.
5 days ago
Also, Java RMI is not commonly used anymore. You are probably better served by a Web Services server, such as a Spring Boot app.
6 days ago
Note that Hibernate "Sessions" are artefacts of legacy Hibernate. I strongly discourage legacy Hibernate, especially with Spring. Use Spring JPA with a Hibernate backend.

Again, JPA (including Hibernate JPA) does not use "sessions". They use EntityManagers.
I haven't worked much with Axis2. It's a lot different from Axis. Buth I'm fairly sure that neither framework provides any security services. I think they leave it up to the container and/or appliation logic.
1 week ago

Piet Souris wrote:I read 6 F's! But my brain is male, since I read the text twice, to eliminate any chance of error.



I scanned left-to-right, line-by line 4 times and blew it all 4 times!
1 week ago
Welcome to the Ranch, Robin!

þe problem wið þe English Language is that our attempts to achieve a properly phonetic spelling keep getting ruined by influx of words from other languages and chronological mutations. I mean, who pronounces the "u" in "colour" in the last few centuries? And just as we we figuring out how to use "i" and "j", and "u" and "v", þey stole 2 of our most important letters just because the English couldn't be arsed to create their own movable type!

But how many people actually pronounce "standarised" as "standardized", despite the way þey spell it?

Anyway, I fell for it, too. I þought I was scanning letter-by-letter, but obviously þat was a mere conceit on my part.

(þis message was brought to you by Þe Committee to Bring Back þe "Þorn").
1 week ago
OK, we're playing Forum Ping-Pong here!

I was thinking that we had an actual SOAP forum, but I can't find it in the list and anyway, as I said, OAUTH is for securing the entire webapp and not just SOAP services.

I've added this thread to "Web Services", although I think that SOAP isn't considered as a proper "web service" as it would have been back in its heyday.

Interestingly, we also seem to lack a forum for general webapp questions. Instead we have a smattering of forums relating to particular components of webapps such as JSPs, servlets, and so forth.

Note that if you use a container-managed security system then part of your job would include configuring the container itself, so if I knew whether you're working with Tomcat, Wildfly, WebLogic, or whatever, I could also link this thread there.
1 week ago


vceplus-200-125    | boson-200-125    | training-cissp    | actualtests-cissp    | techexams-cissp    | gratisexams-300-075    | pearsonitcertification-210-260    | examsboost-210-260    | examsforall-210-260    | dumps4free-210-260    | reddit-210-260    | cisexams-352-001    | itexamfox-352-001    | passguaranteed-352-001    | passeasily-352-001    | freeccnastudyguide-200-120    | gocertify-200-120    | passcerty-200-120    | certifyguide-70-980    | dumpscollection-70-980    | examcollection-70-534    | cbtnuggets-210-065    | examfiles-400-051    | passitdump-400-051    | pearsonitcertification-70-462    | anderseide-70-347    | thomas-70-533    | research-1V0-605    | topix-102-400    | certdepot-EX200    | pearsonit-640-916    | itproguru-70-533    | reddit-100-105    | channel9-70-346    | anderseide-70-346    | theiia-IIA-CIA-PART3    | certificationHP-hp0-s41    | pearsonitcertification-640-916    | anderMicrosoft-70-534    | cathMicrosoft-70-462    | examcollection-cca-500    | techexams-gcih    | mslearn-70-346    | measureup-70-486    | pass4sure-hp0-s41    | iiba-640-916    | itsecurity-sscp    | cbtnuggets-300-320    | blogged-70-486    | pass4sure-IIA-CIA-PART1    | cbtnuggets-100-101    | developerhandbook-70-486    | lpicisco-101    | mylearn-1V0-605    | tomsitpro-cism    | gnosis-101    | channel9Mic-70-534    | ipass-IIA-CIA-PART1    | forcerts-70-417    | tests-sy0-401    | ipasstheciaexam-IIA-CIA-PART3    | mostcisco-300-135    | buildazure-70-533    | cloudera-cca-500    | pdf4cert-2v0-621    | f5cisco-101    | gocertify-1z0-062    | quora-640-916    | micrcosoft-70-480    | brain2pass-70-417    | examcompass-sy0-401    | global-EX200    | iassc-ICGB    | vceplus-300-115    | quizlet-810-403    | cbtnuggets-70-697    | educationOracle-1Z0-434    | channel9-70-534    | officialcerts-400-051    | examsboost-IIA-CIA-PART1    | networktut-300-135    | teststarter-300-206    | pluralsight-70-486    | coding-70-486    | freeccna-100-101    | digitaltut-300-101    | iiba-CBAP    | virtuallymikebrown-640-916    | isaca-cism    | whizlabs-pmp    | techexams-70-980    | ciscopress-300-115    | techtarget-cism    | pearsonitcertification-300-070    | testking-2v0-621    | isacaNew-cism    | simplilearn-pmi-rmp    | simplilearn-pmp    | educationOracle-1z0-809    | education-1z0-809    | teachertube-1Z0-434    | villanovau-CBAP    | quora-300-206    | certifyguide-300-208    | cbtnuggets-100-105    | flydumps-70-417    | gratisexams-1V0-605    | ituonline-1z0-062    | techexams-cas-002    | simplilearn-70-534    | pluralsight-70-697    | theiia-IIA-CIA-PART1    | itexamtips-400-051    | pearsonitcertification-EX200    | pluralsight-70-480    | learn-hp0-s42    | giac-gpen    | mindhub-102-400    | coursesmsu-CBAP    | examsforall-2v0-621    | developerhandbook-70-487    | root-EX200    | coderanch-1z0-809    | getfreedumps-1z0-062    | comptia-cas-002    | quora-1z0-809    | boson-300-135    | killtest-2v0-621    | learncia-IIA-CIA-PART3    | computer-gcih    | universitycloudera-cca-500    | itexamrun-70-410    | certificationHPv2-hp0-s41    | certskills-100-105    | skipitnow-70-417    | gocertify-sy0-401    | prep4sure-70-417    | simplilearn-cisa    |
http://www.pmsas.pr.gov.br/wp-content/    | http://www.pmsas.pr.gov.br/wp-content/    |