Re: java.util.NoSuchElementException when logging in
"Keith T. Garner" <[email protected]> Wed, 1 Sep 2004 10:39:06 -0500
| Newsgroups | gmane.mail.jamm.user |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Sep 01, 2004 at 11:58:10, Daniel Andersson said: > Thank you very much for your answers, Keith! > Actually, I had no idea I was running the gcj JVM. I installed the Sun > JDK, set up the environment variables, etc. The cool part is that I've learned how far gcj has come. Its just that pesky JNDI factory. I still haven't found a good open source replacement. As I said in my other mail, it'd be great to be able to use what FC2 ships with. > So I thougth that Tomcat was using the SUN JVM and thought it was a > classpath problem, and as you pointed out I did a nasty thing - I > symlinked the java runtime to the tomcat lib directory. Sorry I forgot > to mention that. :) No prob. > However, it seems like the Tomcat rpm for Fedora > Core 2 is kind of broken. It won't let you change the JVM thru the > JAVA_HOME environment variable. I'm not sure if it's supposed to work, > or if the packagers has made it that way for a reason. If you look at what the Tomcat RPM installs, all/most of Tomcat has been precompiled into .so files via gcj. Its mostly native, which is kinda cool. I'm not sure if that's the whole problem, as it looks like both .so and .jar versions of everything seems to be in the package. I took a quick look at /etc/rc.d/init.d/tomcat to see what it calls when it starts. It calls an executable /usr/sbin/tomcat which is a binary. So I'm not sure what happens there, but I bet it just starts tomcat with gcj, ignoring JAVA_HOME since its never really going through the java executable/startup script. > Anyway, I installed the binary dist from the jakarta project's site > and that made the trick. Now Jamm is up and running, flawlessly. Awesome. Keith -- Keith T. Garner [email protected] "Make no little plans; they have no magic to stir men's blood." - Daniel H. Burnham ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click