tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Classloading
Date Sat, 06 Oct 2012 13:01:13 GMT
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 <cthorburn8@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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message