For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 5 replies, 3 voices, and was last updated 20 years ago by
jlavallet.
-
AuthorPosts
-
jlavalletMemberI have a problem deploying my web application using the tomcat 5 connector. everything worked well before my recent upgrade to myeclipse 4.0m2 and eclipse 3.1. Now when I click the start menu item under The tomcat 5 menu I get the following error dialog message :
Java virtual machine launcher
Could not find The main class. Program will exit.shortly thereafter I get another pop up dialog with the following message:
Error starting Tomcat
A configuration error occured during startup. Please verify the preference field with the prompt: Cannot connect to VM.other times this message states:
Error starting Tomcat
A configuration error occured during startup.Please verify the preference field with the prompt: java.lang.NoClassDefFoundError: and
Exception in thread “main”Now based on my best guess I’d say that the java command line is getting mangled somehow resulting in the main tomcat class not being specified correctly. I have seen a couple of other posts that refer to behavior such as this. one has to do with jboss. The solutions suggested all have to do with properly specifying a JDK and not having spaces in the paths.
I have double and triple checked both my JDK path and my Tomcat path.I’m really in need of some ideas because I cannot debug currently .
Thanks in advance.
What operating system and version are you running?
XP SP2What Eclipse version and build id are you using? (Help > About Eclipse Platform)
Version: 3.1.0
Build id: I20050627-1435– Was Eclipse freshly installed for MyEclipse?
Yes– If not, was it upgraded to its current version using the update manager?
n/a– Are any other external plugins installed?
No I don’t think so– How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*
org.eclipse.pde.build_3.1.0
org.eclipse.pde.core_3.1.0.jar
org.eclipse.pde.doc.user_3.1.0
org.eclipse.pde.junit.runtime_3.1.0
org.eclipse.pde.runtime_3.1.0.jar
org.eclipse.pde.source_3.1.0
org.eclipse.pde.ui_3.1.0.jar
org.eclipse.pde_3.1.0.jarWhat MyEclipse version are you using? (Help > About Eclipse Platform > Features)
4.0 Milestone 2 20050627What JDK version are you using to run Eclipse? (java -version)
C:\Dev\eclipse-3.0.1\eclipse\plugins>java -version
java version “1.5.0_03”
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)What JDK version are you using to launch your application server?
java version “1.5.0_03”What steps did you take that resulted in the issue?
See aboveWhat application server are you using?
Tomcat 5.5.9Are there any exceptions in the Eclipse log file? (<workspace>/.metadata/.log)
!ENTRY com.genuitec.eclipse.easie.tomcat5 1 0 2005-08-01 15:35:06.339
!MESSAGE Error starting Tomcat: java.lang.NoClassDefFoundError: and
Exception in thread “main”!ENTRY com.genuitec.eclipse.easie.tomcat5 1 0 2005-08-01 15:38:11.255
!MESSAGE Error starting Tomcat: Cannot connect to VM!ENTRY com.genuitec.eclipse.easie.tomcat5 1 0 2005-08-01 15:40:16.796
!MESSAGE Error starting Tomcat: java.lang.NoClassDefFoundError: and
Exception in thread “main”August 1, 2005 at 9:14 pm #234051
Scott AndersonParticipantFirst, restart eclipse with the -clean option (ie. eclipse.exe -clean).
That will rebuild the plugin cache and likely clear up any install problems.If that doesn’t remedy the situation, I know you checked your JDK path, but this is definately a JDK issue. Remember that the JDK must be a full JDK, not a JRE, and Eclipse must be pointing to the install root of the JDK, not the ‘jre’ subdirectory.
One other thing to try if that doesn’t work: Open a new workspace with File > Switch Workspace… and just pick another location with an empty directory. Configure the Tomcat plugin in the new workspace and start it, without deploying anything. Did the startup work?
August 2, 2005 at 3:24 pm #234110
jlavalletMemberScott,
I have tried each of these suggestions in order with no luck. I am most asuredly pointing to my JDK 1.5.0_03 root and not to a JRE. Switching workspaces had no effect and neither does creating another web project and attempting to deploy that.
Is there a way to see the javaw command line produced by MyEclipse when the application server start menu item is pressed?
Thanks,
JackAugust 2, 2005 at 3:43 pm #234112
jlavalletMemberOk Scott and all,
I’ve figured it out and I think you have a bug. If you add a folder path under Preferences > MyEclipse > Application Servers > Tomcat 5 > Paths > Append to library path, clicking the start menu item results in the behavior I’ve described. Remove the entry and it works.
This leads me to believe that the MyEclipse generation of the command line has a bug of some kind (unmatched quotes, etc.).
Hope this helps and that there is a solution soon.
Jack
August 2, 2005 at 6:19 pm #234119
Riyad KallaMemberJack there were issues in all the connectors that was corrected and will be in Milestone 3, please let us know after it is released (in about a week) if you are still seeing the problems.
August 3, 2005 at 7:56 am #234136
jlavalletMemberthanks I will.
-
AuthorPosts