facebook

Trouble deploying on tomcat 5.5.9 after upgrade

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #234050 Reply

    jlavallet
    Member

    I 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 SP2

    What 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.jar

    What MyEclipse version are you using? (Help > About Eclipse Platform > Features)
    4.0 Milestone 2 20050627

    What 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 above

    What application server are you using?
    Tomcat 5.5.9

    Are 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”

    #234051

    Scott Anderson
    Participant

    First, 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?

    #234110

    jlavallet
    Member

    Scott,

    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,
    Jack

    #234112

    jlavallet
    Member

    Ok 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

    #234119

    Riyad Kalla
    Member

    Jack 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.

    #234136

    jlavallet
    Member

    thanks I will.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Trouble deploying on tomcat 5.5.9 after upgrade

You must be logged in to post in the forum log in