tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veggen <the_name_i_chose_fi...@yahoo.com>
Subject Re: Bean deployment on Tomcat error
Date Fri, 09 May 2008 08:33:39 GMT

I've obviously missed a part on how collapsed-ears are made. The issue has
been resolved now, and I'm very grateful for all your patience and help.
Truly appreciated!

:)


David Blevins wrote:
> 
> On May 7, 2008, at 8:35 PM, veggen wrote:
> 
> No need to apologize, that's what where here for :)
> 
> The layout we support for combined ejbs and servlets in a war file is  
> to put your ejb classes in the WEB-INF/classes/ directory or in a jar  
> in the WEB-INF/lib/ directory.  This is likely to be the spec defined  
> way for EJB 3.1 as well.
> 
> So with your to EJB classes:
> 
>    package beans;
>    import javax.ejb.Stateless;
>    @Stateless
>    public class SimpleSessionBean implements SimpleSession {
>    ...
>    }
> 
>    package beans;
>    import javax.ejb.Remote;
>    @Remote
>    public interface SimpleSession {
>    ...
>    }
> 
> The war file layout should look something like this:
> 
>   WEB-INF/web.xml
>   WEB-INF/classes/beans/SimpleSessionBean.class
>   WEB-INF/classes/beans/SimpleSession.class
> 
> Or like this:
> 
>   WEB-INF/web.xml
>   WEB-INF/lib/myBeans.jar
> 
> where the myBeans.jar is a regular ejb-jar file.
> 
> -David
> 

-- 
View this message in context: http://www.nabble.com/Bean-deployment-on-Tomcat-error-tp17045391p17143623.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Mime
View raw message