facebook

JBoss – can’t find main class when lauching [Closed]

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

    cbwhitebu
    Member

    I am getting an error when trying to launch JBoss 4.0 from inside Eclipse.

    MyEclipse version: 3.8.4

    I get the following dialog that contains the following message:

    “A configuration error occured during startup. Please verify the preference field with the prompt: java.lang.NoClassDefFoundError and
    Exception in thread “main””.

    The same message appears in the Eclipse error log:

    Info Mar 08, 2005 15:02:12.214 Error starting JBoss: java.lang.NoClassDefFoundError: andException in thread “main”

    JBoss starts fine from the command line.

    Any ideas how to diagnose this problem?

    #226358 Reply

    Riyad Kalla
    Member

    Please paste the entire log of startup messages here. Also let us know EXACTLY what your fields for JBoss 4 are set to, I’m guessing that you likely are using a path that has a space in it, so MyEclipse cannot find or execute the JBoss main method.

    #226381 Reply

    cbwhitebu
    Member

    There are no other startup message other than the error log entry I sent.

    I definitely have spaces in JBoss home directory path:

    C:\Documents and Settings\Chris White\My Documents\parafora\workspaces\resonant\jboss-4.0.1

    I tried quoting the path but the validator for the preference setting won’t let me make this edit.

    #226384 Reply

    Riyad Kalla
    Member

    Just for sanity sake please try and move or copy the jboss-4.0.1 dir to c:\dev\jboss-4.0.1 then try and launch it. The “spaces in paths” issue is extremely annoying in that on some machines (mine included) it works fine when there are spaces in the paths and on others it does not work at all. Unfortunately we have been unable to tie this to a certain Windows version (2k, 2k3, XP, etc.) and/or locale, it just seems to happen for some and not others.

    #226393 Reply

    cbwhitebu
    Member

    OK – I copied JBoss to a directory without spaces and the server launches without any errors.

    Thank you for your help.

    Hopefully, you will figure out the spaces problem.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: JBoss – can’t find main class when lauching [Closed]

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