[JBoss AOP] - Re: NoClassDefFoundError
by cpmcda01
There is also a stacktrace in the log:
| Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/Element
| at java.lang.ClassLoader.defineClass2(Native Method)
| at java.lang.ClassLoader.defineClass(ClassLoader.java:719)
| at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:160)
| at java.net.URLClassLoader.defineClass(URLClassLoader.java:254)
| at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
| at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
| at java.security.AccessController.doPrivileged(Native Method)
| at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
| at org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:672)
| at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:652)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
| at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:190)
| at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131)
| at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399)
| at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:517)
| at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
| at java.lang.Class.getDeclaredConstructors0(Native Method)
| at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
| at java.lang.Class.getConstructor0(Class.java:2640)
| at java.lang.Class.newInstance0(Class.java:321)
| at java.lang.Class.newInstance(Class.java:303)
| at org.jboss.aop.advice.GenericAspectFactory.createPerVM(GenericAspectFactory.java:152)
| at org.jboss.aop.AspectManager.getPerVMAspect(AspectManager.java:1788)
| at org.jboss.aop.AspectManager.getPerVMAspect(AspectManager.java:1777)
| at org.jboss.aop.advice.ScopedInterceptorFactory.create(ScopedInterceptorFactory.java:66)
| at org.jboss.aop.Advisor.createInterceptorChain(Advisor.java:646)
| at org.jboss.aop.Advisor.pointcutResolved(Advisor.java:916)
| at org.jboss.aop.Advisor.resolveMethodPointcut(Advisor.java:678)
| at org.jboss.aop.ClassAdvisor.createInterceptorChains(ClassAdvisor.java:604)
| at org.jboss.aop.ClassAdvisor.access$300(ClassAdvisor.java:82)
| at org.jboss.aop.ClassAdvisor$1.run(ClassAdvisor.java:299)
| at java.security.AccessController.doPrivileged(Native Method)
| at org.jboss.aop.ClassAdvisor.attachClass(ClassAdvisor.java:271)
| at org.jboss.aop.AspectManager.initialiseClassAdvisor(AspectManager.java:587)
| at org.jboss.aop.AspectManager.getAdvisor(AspectManager.java:575)
| at org.hibernate.persister.entity.SingleTableEntityPersister.<clinit>(SingleTableEntityPersister.java)
| at java.lang.Class.forName0(Native Method)
| at java.lang.Class.forName(Class.java:164)
| at org.hibernate.persister.PersisterFactory.class$(PersisterFactory.java:38)
| at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:54)
| at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:223)
| at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1213)
| at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:631)
| at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:760)
| at org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(Ejb3Configuration.java:350)
| at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:119)
| at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:99)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967581#3967581
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967581
19 years, 8 months
[JBoss AOP] - NoClassDefFoundError
by cpmcda01
First of all, I want to point out that THIS WAS WORKING, and then I re-deployed my EJB app jar file and after many restarts, it can not find a dependency on JAXB. I have written an Interceptor that uses JAXB to marshal data out to an XML file. I am binding this interceptor to a class deployed in an EJB jar file. So I have the following in deploy;
CoreAOP.jar - contains my interceptor (dependency on JAXB).
EJB-demo.jar - contains my EJB application (essentially an ear file).
logging-aop.xml - AOP config binding the interceptor to class in the EJB jar.
On my first attempt, it couldn't find the JAXB API, so I copied those jars to the deploy directory and it started working. However, after re-deploying my EJB jar, it will no longer deploy because it can't find the JAXB stuff (I should also mention here that I am using load-time weaving) when the interceptor is first executed. Restarting JBoss doesn't help either.
Here is the deployment error:
| 2006-08-25 17:21:30,956 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:
|
| --- MBeans waiting for other MBeans ---
| ObjectName: persistence.units:jar=EJB3_Persistence_Demo-EJBModule.jar,unitName=em
| State: FAILED
| Reason: java.lang.RuntimeException: java.lang.NoClassDefFoundError: javax/xml/bind/Element
| I Depend On:
| jboss.jca:service=ManagedConnectionFactory,name=jrice-test-schema
| Depends On Me:
| jboss.j2ee:jar=EJB3_Persistence_Demo-EJBModule.jar,name=TestBean,service=EJB3
|
| ObjectName: jboss.j2ee:jar=EJB3_Persistence_Demo-EJBModule.jar,name=TestBean,service=EJB3
| State: NOTYETINSTALLED
| I Depend On:
| persistence.units:jar=EJB3_Persistence_Demo-EJBModule.jar,unitName=em
|
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: persistence.units:jar=EJB3_Persistence_Demo-EJBModule.jar,unitName=em
| State: FAILED
| Reason: java.lang.RuntimeException: java.lang.NoClassDefFoundError: javax/xml/bind/Element
| I Depend On:
| jboss.jca:service=ManagedConnectionFactory,name=jrice-test-schema
| Depends On Me:
| jboss.j2ee:jar=EJB3_Persistence_Demo-EJBModule.jar,name=TestBean,service=EJB3
|
Any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967580#3967580
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967580
19 years, 8 months
[EJB/JBoss] - Re: JBOSS is crashing..
by rknechtel
I am having a similar issue with JBoss running out of memory. I do repeated deployments/re-deployments of an two ear files (in developent) and after about 6 -10 times I get this error:
2006-08-18 15:14:31,730 ERROR [org.jboss.deployment.MainDeployer] Could not create deployment: file:/opt/jbossall/jboss-4.0.4.GA/server/app01/tmp/deploy/tmp59584our.ear-contents/our-ejb.jar
java.lang.OutOfMemoryError: PermGen space
2006-08-18 15:14:35,202 ERROR [STDERR] Exception in thread "ScannerThread"
2006-08-18 15:14:35,203 ERROR [STDERR] java.lang.OutOfMemoryError: PermGen space
And JBoss gets really hung and I have to do a kill -9 on it. I'm running JBoss 4.04GA with the latest EJB3.0 and Seam jars and I'm running under SuSE 10.
I have added the following JVM args to teh default ones:
JAVA_OPTS="$JAVA_OPTS -XX:NewSize=128m -XX:MaxNewSize=384m -Xmx512m -Xms512m -XX:+DisableExplicitGC"
Any help would be apprieciated.
Thanks,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967575#3967575
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967575
19 years, 8 months
[Messaging, JMS & JBossMQ] - Trying to Create QueueConnectionFactory
by rajeshkumarsahu
Hi,
I am new to JBOSS, I can use Service provider QueueConnectionFactory but I am not able to use a newly defined server provider. Any help is appreciated.
My Web.xml
---------------------------------
<resource-ref>
Default QueueFactory
<res-ref-name>jms/myQueueFactory</res-ref-name>
<res-type>javax.jms.QueueConnectionFactory</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<resource-ref>
<res-ref-name>jms/RHQueue</res-ref-name>
<res-type>javax.jms.Queue</res-type>
<res-auth>Container</res-auth>
</resource-ref>
-----------------------------------
my jboss-web.xml
===================
<jboss-web>
<resource-ref>
<res-ref-name>jms/myQueueFactory</res-ref-name>
<jndi-name>QueueConnectionFactory</jndi-name>
</resource-ref>
<resource-ref>
<res-ref-name>jms/RHQueue</res-ref-name>
<jndi-name>RHQueue</jndi-name>
</resource-ref>
</jboss-web>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967570#3967570
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967570
19 years, 8 months