You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by CThorburn <ct...@gmail.com> on 2012/10/06 13:27:57 UTC

Classloading

Servlet A {
 @EJB private MyBean bean;
}

results in NoClassDefFoundError until I unpack WEB-INF/lib/(ejb).jar into
WEB-INF/classes.

Now, references from MyBean to classes in jars in WEB-INF/lib fail
ClassNotFound. this seems to be a  bit at odds wth the claim on
http://tomee.apache.org/deploying-in-tomee.html

"EJBs and Servlets can share all third-party libraries (like Spring!) - no
EAR required. -Can put the web.xml and ejb-jar.xml in the same archive (the
WAR file). -EJBs can see Servlet classes and vice versa."

If I remove these nuisance references to other classes from my hello world
implementation (newbie!) then my Local SLSB injects correctly and works
fine.

Any ideas folks?

(TOMEE 1.0.0 final under JDK 7)





--
View this message in context: http://openejb.979440.n4.nabble.com/Classloading-tp4657811.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: Classloading

Posted by Romain Manni-Bucau <rm...@gmail.com>.
this one is more related to your app or environment since it is not in
tomee i think

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*




2012/10/6 CThorburn <ct...@gmail.com>

> Romain, hi.
>
> Stupid error, I didn't realise that tomee was trying to run the web app
> from
> .metadata/.../wtpwebapps.
>
> Having got round this in the lastfive minutes I now can't get rid of this:
>
> /SEVERE: Error configuring application listener of class
> com.sun.faces.config.ConfigureListener
> java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
> /
>
> Which is doubly annoying since I donlt intent to use JSF. Do I need some
> kind of default 'null' JSF config?
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Classloading-tp4657811p4657813.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Re: Classloading

Posted by CThorburn <ct...@gmail.com>.
Romain, hi.

Stupid error, I didn't realise that tomee was trying to run the web app from
.metadata/.../wtpwebapps.

Having got round this in the lastfive minutes I now can't get rid of this:

/SEVERE: Error configuring application listener of class
com.sun.faces.config.ConfigureListener
java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
/

Which is doubly annoying since I donlt intent to use JSF. Do I need some
kind of default 'null' JSF config?



--
View this message in context: http://openejb.979440.n4.nabble.com/Classloading-tp4657811p4657813.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: Classloading

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi,

what the name of ejb jar?

*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*




2012/10/6 CThorburn <ct...@gmail.com>

> Servlet A {
>  @EJB private MyBean bean;
> }
>
> results in NoClassDefFoundError until I unpack WEB-INF/lib/(ejb).jar into
> WEB-INF/classes.
>
> Now, references from MyBean to classes in jars in WEB-INF/lib fail
> ClassNotFound. this seems to be a  bit at odds wth the claim on
> http://tomee.apache.org/deploying-in-tomee.html
>
> "EJBs and Servlets can share all third-party libraries (like Spring!) - no
> EAR required. -Can put the web.xml and ejb-jar.xml in the same archive (the
> WAR file). -EJBs can see Servlet classes and vice versa."
>
> If I remove these nuisance references to other classes from my hello world
> implementation (newbie!) then my Local SLSB injects correctly and works
> fine.
>
> Any ideas folks?
>
> (TOMEE 1.0.0 final under JDK 7)
>
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Classloading-tp4657811.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>