For Programmers: Free Programming Magazines  


Home > Archive > Java Beans > October 2004 > The wierdest thing









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author The wierdest thing
SMMT

2004-10-19, 3:57 pm

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(DictionaryEditonService
Bean.java:187)
at
com.ethica.efw.server.servicebeans.DictionaryEditonServiceBean. findAllEntitiesMetaData(DictionaryEditon
ServiceBean.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$ContainerInter
ceptor.invoke(StatelessSessionContainer.java:683)
at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor. invoke(StatelessSessionInstanceIntercept
or.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

2004-10-19, 8:56 pm

Hello,

I found the problem. The class has implementing a interface outisde the jar file.
Thank you.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com