Hi, I?m get crazy with this stuff:

Sometimes I start JBoss (jems 4.0.4 GA ? Seam 1.1 and MyFaces 1.1.4) and get a 
java.lang.NoClassDefFoundError (as shown follow) when run my application.
So, I shutdown JBoss and start it again and suddenly all works fine.
I don?t think that?s a classpath issue.

Anyone have any idea what?s happens?

Thanks in advance.
P.S. Sorry for my English. :-)


My components.xml:

<components>
  | 
  |     <component name="org.jboss.seam.core.init">
  |             <property name="jndiPattern">elo/#{ejbName}/local</property>
  |     </component>
  | 
  |     <component class="org.jboss.seam.core.Jbpm">
  |             <property name="pageflowDefinitions">
  |                     pageflow.jpdl.xml
  |             </property>
  |     </component>
  | 
  |     <component
  |             class="org.jboss.seam.selectitems.SelectItemsPersistenceConfig">
  |             <property name="persistenceUnitJndiName">
  |                     java:/selectItemsEntityManagerFactory
  |             </property>
  |     </component>
  | 
  |     <component class="org.jboss.seam.core.Ejb" installed="false" />
  | 
  | </components>

Stack trace:


Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam 
component: eleitorFacade
        at org.jboss.seam.Component.newInstance(Component.java:1578)
        at org.jboss.seam.Component.getInstance(Component.java:1492)
        at org.jboss.seam.Component.getInstance(Component.java:1466)
        at org.jboss.seam.Component.getInstanceToInject(Component.java:1693)
        at org.jboss.seam.Component.injectFields(Component.java:1219)
        at org.jboss.seam.Component.inject(Component.java:989)
        at 
org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:48)
        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.seam.util.Reflections.invoke(Reflections.java:17)
        at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
        at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
        at 
org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:77)
        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.seam.util.Reflections.invoke(Reflections.java:17)
        at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
        at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
        at 
org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
        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.seam.util.Reflections.invoke(Reflections.java:17)
        at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
        at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
        at 
org.jboss.seam.interceptors.RollbackInterceptor.rollbackIfNecessary(RollbackInterceptor.java:32)
        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.seam.util.Reflections.invoke(Reflections.java:17)
        at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
        at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
        at 
org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:60)
        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.seam.util.Reflections.invoke(Reflections.java:17)
        at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
        at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
        at 
org.jboss.seam.interceptors.BusinessProcessInterceptor.manageBusinessProcessContext(BusinessProcessInterceptor.java:50)
        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.seam.util.Reflections.invoke(Reflections.java:17)
        at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
        at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
        at 
org.jboss.seam.interceptors.ConversationalInterceptor.checkConversationForConversationalBean(ConversationalInterceptor.java:81)
        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.seam.util.Reflections.invoke(Reflections.java:17)
        at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
        at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
        at 
org.jboss.seam.interceptors.EventInterceptor.aroundInvoke(EventInterceptor.java:51)
        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.seam.util.Reflections.invoke(Reflections.java:17)
        at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
        at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
        at 
org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:40)
        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.seam.util.Reflections.invoke(Reflections.java:17)
        at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:172)
        at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:66)
        at 
org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:168)
        at 
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:141)
        at 
org.jboss.seam.intercept.RootInterceptor.aroundInvoke(RootInterceptor.java:128)
        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.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
        at 
org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
        at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
        at 
org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
        at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
        at 
org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
        at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
        at 
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
        at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
        at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
        ... 108 more
Caused by: net.sf.cglib.core.CodeGenerationException: 
java.lang.reflect.InvocationTargetException-->null
        at 
net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:237)
        at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)
        at net.sf.cglib.proxy.Enhancer.createClass(Enhancer.java:317)
        at org.jboss.seam.Component.createProxyFactory(Component.java:1787)
        at org.jboss.seam.Component.getFactory(Component.java:953)
        at org.jboss.seam.Component.wrap(Component.java:944)
        at org.jboss.seam.Component.instantiateSessionBean(Component.java:912)
        at org.jboss.seam.Component.instantiate(Component.java:898)
        at org.jboss.seam.Component.newInstance(Component.java:1574)
        ... 202 more
Caused by: java.lang.reflect.InvocationTargetException
        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 net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:384)
        at 
net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:219)
        ... 210 more
Caused by: java.lang.NoClassDefFoundError: 
br/gov/tse/secad/service/EleitorFacade
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        ... 216 more



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3982029#3982029

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3982029
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to