Hi,
I'm doing this J2EE aplication using JBoss AS , JBoss IDE and Eclipse. In the aplication jar a have
a Stateless Bean that uses an instance of a value object class named EntityField. Well, I already
run the aplication before with no problem, but today I added a Message Driven Bean named SimpleBean.
I redeployed it with no error , but when I try to run the client it throws an exception saying the
EntityField class was not found.
This is wierd has I've not altered the class and both the class and the statless bean are in the
same jar (and so if the bean is found also should the class). I have already redepoyed several times
, renamed the class , added the classified name of the class ... I've looked into the jar and the
class is there with the correct name and package. Have found no solution.
What do you think ?
The exception stacktrace is:
Caused by: java.lang.NoClassDefFoundError: com/ethica/efw/common/entities/EntityField
at
com.ethica.efw.server.servicebeans.DictionaryEditonServiceBean.readEntityFields(DictionaryEditonServiceBean.java:187)
at
com.ethica.efw.server.servicebeans.DictionaryEditonServiceBean.findAllEntitiesMetaData(DictionaryEditonServiceBean.java:145)
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:324)
at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:267)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
... 21 more
SMMT - 19 Oct 2004 21:36 GMT
Hello,
I found the problem. The class has implementing a interface outisde the jar file.
Thank you.