NoClassDefFoundError when class is in JBoss AS7 WAR WEB-INF/classes folder
by qt4x11
I'm using JBoss AS7. I get a ClassNotFoundException when attempting to
deploy my app - looks like it's not finding JMSException
09:54:53,166 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7)
MSC00001: Failed to start service
jboss.deployment.unit."myapp-maventest.war".INSTALL:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."myapp-maventest.war".INSTALL: Failed to process phase
INSTALL of deployment "myapp-maventest.war"
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
at
org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_26]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_26]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_26]
Caused by: java.lang.RuntimeException: Error getting reflective
information for class com.mycompany.myapp.common.jms.servlets.StationLogout
at
org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70)
at
org.jboss.as.ee.component.EEModuleClassDescription$DefaultConfigurator.configure(EEModuleClassDescription.java:144)
at
org.jboss.as.ee.component.EEClassConfigurationProcessor.deploy(EEClassConfigurationProcessor.java:100)
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
... 5 more
Caused by: java.lang.NoClassDefFoundError: JMSException
at java.lang.Class.getDeclaredMethods0(Native Method) [:1.6.0_26]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
[:1.6.0_26]
at java.lang.Class.getDeclaredMethods(Class.java:1791) [:1.6.0_26]
at
org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:65)
at
org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66)
... 8 more
Caused by: java.lang.ClassNotFoundException: JMSException from [Module
"deployment.myapp-maventest.war:main" from Service Module Loader]
at
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
at org.jboss.modules.Conc
JMSException.class is not in /jboss home/modules/javax/jms . I have this
class in a jar file - javaee-api-6.0.jar . I copied this jar file to /my
app/src/main/webapp/WEB-INF/lib , but I'm still receiving this
ClassNotFoundException.
I need help debugging. One thing I tried - I thought maybe the /jboss
home/modules/javax module JBoss was loading was conflicting with my
javaee-api-6.0.jar file - so I tried to exclude it with a
src/main/webapp/WEB-INF/jboss-deployment-structure.xml file
<jboss-deployment-structure>
<deployment>
<exclusions>
<module name="javax.jms" />
</exclusions>
</deployment>
</jboss-deployment-structure>
but I still get the same NoClassDefFoundError. Any advice on how to fix?
12 years, 10 months
[JBoss Microcontainer] - WEB/INF/lib not scanned for jars
by Alan Nisbet
Alan Nisbet [http://community.jboss.org/people/nizzy] created the discussion
"WEB/INF/lib not scanned for jars"
To view the discussion, visit: http://community.jboss.org/message/621297#621297
--------------------------------------------------------------
Hi All,
Bear with me here, I'm not sure how best to even describe my problem as I suspect its to do with our setup rather than a JBoss problem, just hoping someone can point me in the right direction or suggest how best to debug the issue.
Deployed a WAR file to JBoss 5.1.0
Using JAAS for loging/logout
During log-in we use a custom logging system to record the log-in from our LogingModule (extends org.jboss.security.auth.spi.AbstractServerLoginModule). These logging jars are present in the WEB-INF/lib directory of our WAR file. This works fine.
I updated our logout procedure to call session.invalidate() to clear the Authentication Cache. However when the logout method is executed, called from the same LogingModule class, I get a ClassNotFoundException, when I examine the stacktrace the WEB-INF/lib directory is not being scanned for the relevant jars.
Only server/node/lib, common/lib are scanned.
See attached file for stacktrace.
Regards Alan.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/621297#621297]
Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 10 months
[jBPM] - JBPM 5.1.0.FINAL and variable access
by Ken Barnes
Ken Barnes [http://community.jboss.org/people/kenbarnesjr] created the discussion
"JBPM 5.1.0.FINAL and variable access"
To view the discussion, visit: http://community.jboss.org/message/621065#621065
--------------------------------------------------------------
We have an application in which after we have started the process with some variables, we start and claim a task and access the process instance variables and place them back on the call to complete and this works well. But what we need is to gain access to the variables of the process before a task has been started and claimed. When attempting to get process variables when a task has not been started and claimed it appears that the knowledge runtime does not have access to the process instance throwing a null pointer exception on the ProcessInsanceImpl class on the setProcessId function. All we are attempting to do is view the process instance variable without starting or claiming a task using the HumanTask API. Any Ideas why we are unable to view the variables?
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/621065#621065]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
12 years, 10 months