File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Tomcat Plugin Startup Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Plugin Startup Error" Watch "Tomcat Plugin Startup Error" New topic

Tomcat Plugin Startup Error

bryan nelson
Ranch Hand

Joined: Jun 16, 2003
Posts: 95
Hello everyone,

Although I've seen quite a few errors posted concerning Tomcat Startup errors...I haven't found this one.

First of all, Tomcat starts up fine when I don't use the Sysdeo Plugin with Eclipse. When I do use it, I get an error on startup. The odd thing is that it doesn't even give me a stack trace in the console and doesn't write ANYTHING to the logs. I do receive this stack trace in the debug window of Eclipse, however:

org.apache.catalina.startup.Bootstrap at localhost:2679
Thread [main] (Suspended (exception FileNotFoundException))
URLClassPath$JarLoader.getJarFile(URL) line: not available
URLClassPath$JarLoader.<init>(URL, URLStreamHandler, HashMap) line: not available
URLClassPath$ line: not available
AccessController.doPrivileged(PrivilegedExceptionAction<T> line: not available [native method]
URLClassPath.getLoader(URL) line: not available
URLClassPath.getLoader(int) line: not available
URLClassPath.getResource(String, boolean) line: not available
URLClassLoader$ line: not available
AccessController.doPrivileged(PrivilegedExceptionAction<T>, AccessControlContext) line: not available [native method]
Launcher$AppClassLoader(URLClassLoader).findClass(String) line: not available
Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: not available
Launcher$AppClassLoader.loadClass(String, boolean) line: not available
Launcher$AppClassLoader(ClassLoader).loadClass(String) line: not available
Launcher$AppClassLoader(ClassLoader).loadClassInternal(String) line: not available
Bootstrap.<clinit>() line: 53

At which point the thread is suspended and I have to manually kill it in Eclipse to stop it. The eclipse debugger also typically brings up the file and the line associated with the error in the stacktrace, or tells you if you do not have that particular sourcecode loaded for that piece of code. The latter appears in this case with the following info:

Source not found
The jar file rt.jar has no source attachment.

Now the even ODDER thing is that I had the plugin working just fine for about 30 minutes before the business above started to transpire. All I was doing when it happened was editing a context file for a particular application. However, in the meantime, I've completely taken that context file out (and all other ones) and it still hasn't done anything, so I think maybe that was a coincidence.

Here's some system information:
Oracle 10g Drivers
Windows XP Pro
JDK 1.5.0_04
Eclipse 3.1 (Stable Version)

path=C:\oracle\product\10.1.0\db_1\bin;C:\oracle\product\10.1.0\db_1\jre\1.4.2\bin\client;C:\oracle\product\10.1.0\db_1\jre\1.4.2\bin;C:\FileNET\IDM;C:\Program Files\FileNET\Shared;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Common Files\Adaptec Shared\System;C:\Program Files\SourceOffSite Collab Client

I do find it odd that my 1.5 isn't already in my path variable, but 1.4.2 from Oracle's install is. Would that have anything to do with it? I've had the Oracle 9i drivers hose things up in the past, but not like this.

Any ideas?

Thank you everyone!

"...and the Truth will set you free."
bryan nelson
Ranch Hand

Joined: Jun 16, 2003
Posts: 95
More info...

I discovered that if I check the box in Eclipse under Tomcat >> JVM Settings that says "Don't run Tomcat in Debug Mode" it will run fine. Hmmm. Unfortunately, using the debug mode in Eclipse is one of the main reasons I use the plugin!

Any ideas?

bryan nelson
Ranch Hand

Joined: Jun 16, 2003
Posts: 95
Oddly enough, I ended up resolving this error by simply switching workspaces in Eclipse. This is really only a workaround, as I still don't know what caused the problem except that it looks like it was workspace specific. If anyone has any ideas as to what the cause of this was exactly I'd truly appreciate it.

Hopefully this workaround will at least help someone else in the future!

subject: Tomcat Plugin Startup Error
It's not a secret anymore!