[jbosstools-issues] [JBoss JIRA] (JBDS-4149) Could not use Maven - NoClassDefFoundError: org/slf4j/Logger

Nick Boldt (JIRA) issues at jboss.org
Wed Nov 2 10:41:00 EDT 2016


    [ https://issues.jboss.org/browse/JBDS-4149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13316141#comment-13316141 ] 

Nick Boldt commented on JBDS-4149:
----------------------------------

New log shows constraint violations caused by javax.servlet-api 3.1.0 and javax.servlet 3.1.0.v201410161800, then this:

{code}org.osgi.framework.BundleException: Unable to acquire the state change lock for the module: osgi.identity; type="osgi.bundle"; version:Version="1.7.1.20161026-1743"; osgi.identity="org.eclipse.m2e.jdt"; singleton:="true" [id=635] STARTED [STARTED]
{code}

So... this is no longer anything to do with slf4j or lucene. 

Lukas, please log to a separate file for each startup of Eclipse -- it will make separating your errors based on what you are doing in Eclipse easier.

Here's how I run devstudio from rpm, in a unique workspace each time and logging to a different log file each time:

{code}
rm -fr ~/.eclipse
scl enable rh-eclipse46 bash
cd /opt/rh/rh-eclipse46/root/usr/lib64/eclipse/
./eclipse -consolelog -console -debug -data /tmp/wksp-`date +%Y%m%d-%H%M`| tee /tmp/rh-eclipse46-devstudio10.2.log.`date +%Y%m%d-%H%M`.txt
{code}

> Could not use Maven - NoClassDefFoundError: org/slf4j/Logger
> ------------------------------------------------------------
>
>                 Key: JBDS-4149
>                 URL: https://issues.jboss.org/browse/JBDS-4149
>             Project: Red Hat JBoss Developer Studio (devstudio)
>          Issue Type: Bug
>          Components: maven, rpm
>    Affects Versions: 10.2.0.AM3
>         Environment: RHEL7 64bit
>            Reporter: Lukáš Valach
>            Assignee: Fred Bricon
>            Priority: Blocker
>             Fix For: 10.2.0.AM3
>
>         Attachments: ClassNotFoundEx_20161102_095940.png, eclipse.log, eclipse_10.2-0.20161101.1258.log, rh-eclipse46-devstudio-snapshots-10_2.repo, rh-eclipse46.repo
>
>
> I am not able to use embedded Maven. When I try to run Maven clean (or whatever else) I get following error message:
> {code}
> Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/Logger
> 	at java.lang.Class.getDeclaredMethods0(Native Method)
> 	at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
> 	at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
> 	at java.lang.Class.getMethod0(Class.java:3018)
> 	at java.lang.Class.getMethod(Class.java:1784)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.getEnhancedMainMethod(Launcher.java:172)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:268)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: java.lang.ClassNotFoundException: org.slf4j.Logger
> 	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
> 	at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
> 	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
> 	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
> 	... 10 more
> {code}
> Standalone maven installation works fine.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jbosstools-issues mailing list