- This topic has 5 replies, 2 voices, and was last updated 20 years, 4 months ago by Scott Anderson.
-
AuthorPosts
-
TomMemberWhen starting Tomcat 5 with the WEB Development Tutorial Project deployed, the Bootstrap throws a class not found exception.
System and command and error information is below.
Process information is also below, including all additional configuration steps.
Thanks in advance for the pointers and insight!!!!
Tom
System settings:
Red Hat EL AS 3 Linux
Eclipse version and build id: 3.0.0 – 200406251208
MyEclipse version and build id: 3.7.101 – 200405301200-3.8-Beta1
Eclipse and MyEclipse are freshly installed (by a user, not root)
No added plugins except MyEclipse
No plugins in the <eclipse>/plugins directory like org.eclipse.pde…
Using JDK version 1.4.2_04
Application server specifies JDK version jdsdk1.4.2_04
Using the Tomcat 5 application server
No such file <workspace>/.metadata/.log
History:
1) Fresh install of Eclipse 3.0.0 by project owner
–Removed configuration/config.ini which contained a previous build Id that prevented Eclipse from starting
2) Started and then stopped Eclipse
3) Fresh install of MyEclipse 3.8 Beta-1 by project owner
–Specified <eclipse_install_dir>/links
–Eclipse, MyEclipse and workspace all owned by a project owner
4) Specified a fully qualified path in MyEclipse J2EE Project Template for the web root folder
–previous install / cfg forum post (JSP in Java src folder)
5) Set Tomcat 5 home to <workspace>/<project>/WebRoot/
–fixes Tomcat deploy error
6) Created temp and bin directories below Tomcat 5 home
–fixes Tomcat deploy errors
7) Ran MyEclipse WEB Development Tutorial (first tutorial listed) as project owner
— a) Created Project HelloWorld with defaults
— b) Created Java class HelloWorld with defaults in package test with a helloWorld() method
— c) Created JSP helloWorld with defaults and a JSP scriptlet to create a HelloWorld instance and call helloWorld()
— d) Deployed the HelloWorld Project to Tomcat 5
— e) Started Tomcat 5
The process suspended – command and errors are below.
Tomcat command:
/usr/java/j2sdk1.4.2_04/bin/java
-Dcatalina.home=/opt/eclipse_workspace/HelloWorld/WebRoot
-Dcatalina.base=/opt/eclipse_workspace/HelloWorld/WebRoot
-Djava.endorsed.dirs=/opt/eclipse_workspace/HelloWorld/WebRoot/common/endorsed
-Djava.io.tmpdir=/opt/eclipse_workspace/HelloWorld/WebRoot/temp
-Djava.library.path=/usr/java/j2sdk1.4.2_04/bin:/opt/eclipse_workspace/HelloWorld/WebRoot/bin
-Dsun.io.useCanonCaches=false -classpath
/opt/eclipse_workspace/HelloWorld/WebRoot/bin/bootstrap.jar:/usr/java/j2sdk1.4.2_04/lib/tools.jar
-Xdebug -Xnoagent -Xrunjdwp
transport=dt_socket,suspend=y,address=localhost:34285
org.apache.catalina.startup.Bootstrap start
Errors:
org.apache.catalina.startup.Bootstrap at localhost:34285
Thread [main] (Suspended (exception ClassNotFoundException))
URLClassLoader$1.run() line: 199
AccessController.doPrivileged(PrivilegedExceptionAction,
AccessControlContext) line: not available [native method]
Launcher$AppClassLoader(URLClassLoader).findClass(String) line: 187
Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: 289
Launcher$AppClassLoader.loadClass(String, boolean) line: 274
Launcher$AppClassLoader(ClassLoader).loadClass(String) line: 235
Launcher$AppClassLoader(ClassLoader).loadClassInternal(String) line: 302
Scott AndersonParticipantTom,
The problem is you’re not pointing the MyEclipse Tomcat Connector to the appropriate Tomcat home.
-Dcatalina.home=/opt/eclipse_workspace/HelloWorld/WebRoot
You’ve apparently got it set to point to the web root of your project. It should point to your external Tomcat 5 installation’s root directory instead.
TomMemberI hadn’t tumbled to I need to install the Tomcat 5 plugin – I should be goo to go.
Thanks!!
Scott AndersonParticipantTom,
I don’t think I was clear enough in my previous reply. Please don’t install a Tomcat 5 *plug-in* as our Tomcat 5 connector is already one of those. What you need to install is Tomcat 5, the full distribution from Apache, externally to Eclipse, as if you were going to run it from the commandline. Once that’s installed, you then point our connector to the installation so that we can run it from Eclipse. Got it?
TomMemberThanks Scott – I understand. Thanks for the excellent and complete answer!!
Scott AndersonParticipantNo problem. Please let us know if you need anything else.
-
AuthorPosts