ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Apache/2.2.2 (Fedora) Server at 192.168.2.91 Port 80
Commenting the line out of my servlet stops the error, but I'd like to get it working. I've tried adding a main(String[] args) function to the ProduceVerifyImage class that calls the getVerifyURI function and it works as expected but the servlet throws up that 503 error when I include a call to it in my servlet code.
OK, so I found out that the JAVA_HOME in my tomcat5.conf points to some lame version of java. Editing it to point to the Sun version yields the following...
Code:
Starting tomcat5: /usr/bin/rebuild-jar-repository: error: Could not find jdbc-stdext Java extension for this JVM
/usr/bin/rebuild-jar-repository: error: Could not find jndi Java extension for this JVM
/usr/bin/rebuild-jar-repository: error: Some detected jars were not found for this jvm
/usr/bin/rebuild-jar-repository: error: Could not find jaas Java extension for this JVM
/usr/bin/rebuild-jar-repository: error: Some detected jars were not found for this jvm
find: warning: you have specified the -mindepth option after a non-option argument -type, but options are not positional (-mindepth affects tests specified before it as well as those specified after it). Please specify options before other arguments.
find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it). Please specify options before other arguments.
Using CATALINA_BASE: /usr/share/tomcat5
Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:
[ OK ]
Which basically translates as jndi.jar and jaas.jar not being in my $JAVA_HOME/jre/lib folder (the sun version).
I'm using RHEL5.2 and I installed java 1.6.0u13 This error cropped up, but the only jndi.jar and jaas.jar I se are the ones that ship with the awful gcj-java-1.4.2 packages. Where do the current, modern, Sun JARs come from?
To be honest, I can't remember. Sorry I haven't been much help. Try this, though...
Extract the folders from the sun jar files and copy them or symbolic link them into the tomcat5/common/classes, tomcat5/server/classes and tomcat5/shared/classes folders. I'm not sure which one they're meant to be in, but it'll be one of them and I'm pretty sure this should fix your problem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.