facebook

NoClassDefFoundError for ObjectName when running validation

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #230023 Reply

    watchmaker
    Member

    Hi,

    Validation doesn’t seem to be working for me. I’m getting the following error in the log file:

    !ENTRY com.ibm.etools.validation 4 0 May 20, 2005 12:55:17.457
    !MESSAGE
    *** ERROR ***: Fri May 20 12:55:17 BST 2005 java.lang.NoClassDefFoundError: javax/management/ObjectName

    In answer to the standard questions:

    What operating system and version are you running?
    Windows XP professional

    What Eclipse version and build id are you using? (Help > About Eclipse Platform)
    Version: 3.0.2
    Build id: 200503110845

    – 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?
    Yes – checkstyle

    – How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*
    7

    What MyEclipse version are you using? (Help > About Eclipse Platform > Features)
    3.8.4

    What JDK version are you using to run Eclipse? (java -version)
    1.4.2

    What JDK version are you using to launch your application server?
    1.4.2

    What steps did you take that resulted in the issue?
    See above – trying to run validator.

    What application server are you using?
    JBoss 3.0.7 with Jetty

    Are there any exceptions in the Eclipse log file? (<workspace>/.metadata/.log)
    !ENTRY com.ibm.etools.validation 4 0 May 20, 2005 12:55:17.457
    !MESSAGE
    *** ERROR ***: Fri May 20 12:55:17 BST 2005 java.lang.NoClassDefFoundError: javax/management/ObjectName

    Thanks for any replies!

    #230048

    Riyad Kalla
    Member

    What are you trying to validate exactly? What kind of file?

    #230063

    watchmaker
    Member

    The error message is occurring when I rebuild a project.

    The full text of the error in the problems view for the project is:

    Severity Description Resource In Folder Location Creation Time
    1 Run-time exception java.lang.NoClassDefFoundError occurred during validation. The validator being run was JSP Validator and the message thrown was javax/management/ObjectName. … May 23, 2005 2:57:58 PM

    So I would assume it’s a JSP file that it’s failing on.

    However, when I attempt to validate a single JSP file I get the following message:

    “Validation failed – the maximum number of errors has been exceeded”

    I should also note that performance is very slow – something I’m trying to sort out but not sure if it’s related to this error.

    Thanks

    #230064

    Riyad Kalla
    Member

    I should also note that performance is very slow – something I’m trying to sort out but not sure if it’s related to this error.

    Have you given MyEclipse sufficient memory? We suggest starting Eclipse using the command line arguments like so:

    
    eclipse.exe -vmargs -Xms128m -Xmx256m
    

    Severity Description Resource In Folder Location Creation Time
    1 Run-time exception java.lang.NoClassDefFoundError occurred during validation. The validator being run was JSP Validator and the message thrown was javax/management/ObjectName. SlaManager2.0 May 23, 2005 2:57:58 PM

    Hmm, check your log file for exceptions related to this: <workspace dir>\.metadata\.log

    Also, where does ObjectName come from, which JAR? Is it in your Build Path?

    #230066

    watchmaker
    Member

    Command line arguments:

    “C:\Program Files\eclipse\eclipse.exe” -refresh -vmargs -Xms128M -Xmx512M

    So I should have plenty of memory – however it seems to be the processor running at 100% for a few minutes when I do a build.

    As reported in first post, I’m getting the following error in the log file:

    !ENTRY com.ibm.etools.validation 4 0 May 23, 2005 14:57:57.962
    !MESSAGE
    *** ERROR ***: Mon May 23 14:57:57 BST 2005 java.lang.NoClassDefFoundError: javax/management/ObjectName

    I’m also getting a number of other errors in the log file in this form:

    !ENTRY org.eclipse.team.core 4 0 May 23, 2005 15:16:38.246
    !MESSAGE Marker id: 856044 not found.
    !STACK 1
    org.eclipse.core.internal.resources.ResourceException: Marker id: 856044 not found.
    at org.eclipse.core.internal.resources.Marker.checkInfo(Marker.java:57)
    at org.eclipse.core.internal.resources.Marker.getAttribute(Marker.java:98)
    at org.eclipse.team.internal.ui.synchronize.SynchronizeModelProvider.calculateProblemMarker(SynchronizeModelProvider.java:458)
    at org.eclipse.team.internal.ui.synchronize.SynchronizeModelProvider.propagateProblemMarkers(SynchronizeModelProvider.java:675)
    at org.eclipse.team.internal.ui.synchronize.SynchronizeModelProvider.access$3(SynchronizeModelProvider.java:672)
    at org.eclipse.team.internal.ui.synchronize.SynchronizeModelProvider$8.run(SynchronizeModelProvider.java:795)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)
    !SUBENTRY 1 org.eclipse.core.resources 4 376 May 23, 2005 15:16:39.277
    !MESSAGE Marker id: 856044 not found.

    With different marker IDs.

    The ObjectName class seems to be in java 1.5 but I am using 1.4 for everything – do I need to use 1.5 for some of the validation to work?

    Thanks for your help.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: NoClassDefFoundError for ObjectName when running validation

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