Eelco den Heijer

Ranch Hand
+ Follow
since Jan 17, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Eelco den Heijer

Do you have hot deployment enabled in the Tomcat 4.1 instance? (my guess is that you haven't). You can also deploy the war explicitly using the Tomcat manager (usually found on http://localhost:8080/manager/html); I'm not 100% if the Tomcat manager is always installed in 4.1, so if it isn't, you have to download & install it.

Hope this helps.
16 years ago
Hi all,

I'm busy with a project that has very specific SSL/security needs;
The project needs client-side authentication with special certificates; the certificates do NOT have the client domain name or IP address in the Common Name field, but have a unique code. This way, the clients are not tied to a host (since some clients will run in a managed web environment, where there may exist multiple clients on the same host and thus the same IP address).

Conceptually, all this is not so difficult to grasp, but it has proved pretty darn difficult to implement in Tomcat.

The default trust manager in Tomcat checks the domain name of the incoming client request with the domain name on the client certificate (this is default the CN field in the certificate). If this doesn't match, the client certificate is disregarded as irrelevant and cannot be read afterwards.

So what I have sofar: I've implemented a new Trust Manager, but sofar I have not been able to insert this into Tomcat.

So my question is: how can I override the default client authentication mechanism in Tomcat?

Any help is GREATLY appreciated (I'm getting a little crazy over here....)
[ December 10, 2007: Message edited by: Eelco den Heijer ]
16 years ago
Hi Ryan and Nathaniel,

1. From the things I read about Ajax, it looks like it's an extension to the HTTP protocol; using web pages with AJAX you can do things that you can't do with HTTP 1.1 (loading or reloading data without a page refresh). Do you think AJAX will evolve towards something like HTTP 1.2 or HTTP 2.0?

2. There are numerous initiatives to overcome browser differences within the AJAX community. Do you think these initiatives should be driven by the market/ community, or should they be driven top-down (from a standards organisation like W3C)? And what are your opinions on Xforms from W3C? Should the ideas from AJAX and XForms be merged?

Best regards,
Eelco den Heijer
Amsterdam, Netherlands
After a very, very long time, I sighed, did some work on my FBNS dev. exam, and submitted it. After 4 weeks of waiting, I got my results today: I passed! And with a pretty good score too (372/400 = 93%!)

I'm pretty surprised at the high score, since my locking strategy was pretty simple (maybe that was the idea....I dunno). I got 100% for Locking so I guess that's good

Anyways, thanks for all the help out there! Now I still have to wait for my SCEA part II/III revision....

If you're still working on your SCJD exam, good luck to you! Don't wait too long with submitting (like I did); have faith in your own work

Cheerio,
Eelco
are you copying the servlet classes to an expanded war directory?
Or are you copying the war file to an auto-deploy directory?
And which version are you using? 4 or 5?
19 years ago
what does you tomcat console window say? (error messages?)
19 years ago
you can put the log4j.properties for server level (used by the container) in $CATALINA_HOME/common/classes (or anywhere on the classpath of tomcat); this will regulate all debug messages coming from the classloader of tomcat itself.

For each web application you can put the log4j.properties in the WEB-INF/classes directory. You can explicitly instantiate properties file like you say, but it is not necessary.
19 years ago
Apache webserver = webserver
Tomcat = servlet container, but some say 'application server' since it hosts 'web applications'.
Since you can host web resources such as HTML, gif, css etc. from Tomcat as well, tomcat can be used as both, but it is primarily servlet engine (or, an application server).
19 years ago
well, I guess you have to install any 1.4 JDK you can find, point JAVA_HOME to the root of the new java directory, and start tomcat (and Bob will be your uncle)
19 years ago
if you start up tomcat in a dos box, you can actually see what goes wrong.
(in the log messages)
19 years ago
Update: since Tomcat 4.1 gave us more headaches than 5.0 we switched back to 5.0.28 (on RedHat). We deleted the deploy directory, emptied the temp and work directories and restarted. Next we deployed the web applications one by one. It's running since sunday evening again

The problems we have and had with both versions are 90% related to doing admin tasks with the admin web application. I just can't believe that Apache releases this admin webapp as being non-alpha software.... It's just so buggy...
19 years ago
I agree that it is not enough; but if you use one of these valves with a proper realm, I think it's pretty solid.
19 years ago
sorry, I forgot to paste the error 500 message:
The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request.

the context that is supposed to be missing is in both my admin page and in the server.xml.... And I get this error for all 5 webapps......
19 years ago
Hi, I'm having problems getting my lil'webapps to work on Tomcat 4.1.30.
This is what I did:
1. I created a service
2. I created a host under this service (test.objectivation.com), test.objectivation.com is an alias for 127.0.0.1 which I added to my hosts file
3. I created a HTTP connector under this service, listening to 9001

I enabled auto-deploy, set the baseDir to c:/temp/objectivation/.

Next I copied fresh war files (5) to this directory; restart Tomcat. Tomcat unpacks all 5 war files, no error messages.

Next, I go to http://test.objectivation.com:9001/guestbook/
and I get an error 500 saying

the log says the following:


the tragic thing is that all this worked without any problem in the same config on Tomcat 5 (yet TC5 gave me other headaches)

Any suggestions are more than welcome
19 years ago
you can run only one server per Tomcat, you can however run 2 services; within each service you define 1 host (you have to define 2 virtual hosts); from there you can run 2 environments on one box

Plan B: I guess you run 2 tomcats on one box too, you have to look careful in the settings of environment variables CATALINA_BASE and CATALINA_HOME of each of the installations...
19 years ago