Hello,

> ok....
> well, 1st of all, for ejb3 to work it is enough if you package them as jar
> files

But I'd like to have an EAR with a JAR for ejb3 and a WAR for the presentation
layer.

still, nothing prevents you from having an ear with jars and wars. my ear app is ejb3 based,  and i still have wars and jars.
package your webapp as war and your ejb as jar......


 

> 2nd, make sure your jboss server has ejb3 configuration... because if you
> don't have jboss AS ejb3 enabled, it might be that jboss is looking for
> ejb-jar.xml.

Is it to say that when JBoss is ejb3 enabled, it doesn't use ejb-jar.xml ?

well, it does not look for it..... provided that you have deployed your ejbs as 'ejb3', so you'd need a persistence.xml in your META-INF directory of your ejb jar file


 hth
 marco

My JBoss is ejb3 enabled.

> I think, rather than xdoclet problem, this is more a jboss problem. If you
> dont have 'configured' your jboss server to enable ejb3 deployment, jboss
> will look for ejb-jar.xml

Yes indeed. I think I'm going to post to the JBoss forum. Thanks for your
answer.


>
> hth
>  marco
>
>
>
>
>
> Perhaps I'm wrong, but this seems to be due to an inapropriate XML schema.
> > The ejb-jar.xml generated by XDoclet is :
> > <?xml version="1.0" encoding="UTF-8"?>
> > <ejb-jar
> >    id="ejb-jar_ID"
> >    version=" 2.1"
> >    xmlns="http://java.sun.com/xml/ns/javaee"
> >    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
> >    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> > http://java.sun.com/xml/ns/javaee/ejb-jar_2_1.xsd ">
> >    <display-name>JBossSeamProjectEJB</display-name>
> >    <assembly-descriptor>
> >       <interceptor-binding>
> >          <ejb-name>*</ejb-name>
> >
> > <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
> >       </interceptor-binding>
> >    </assembly-descriptor>
> > </ejb-jar>
> >
> > If I build and deploy the project usint the ant script given by JBoss, the
> > application works fine.
> > I looked at the ejb-jar.xml. It's content is :
> > <ejb-jar>
> >    <assembly-descriptor>
> >       <interceptor-binding>
> >          <ejb-name>*</ejb-name>
> >
> > <interceptor-class>org.jboss.seam.ejb.SeamInterceptor </interceptor-class>
> >       </interceptor-binding>
> >    </assembly-descriptor>
> > </ejb-jar>
> > => the same without the XML file header referencing EJB 2.1.
> > I thought that referencing EJB 3.0 would solve my problem.
> > So do you have an idea on what I can do to avoid the error message.
> >
> > Regards
> > A. ROY
> >
> > -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > xdoclet-user mailing list
> > xdoclet-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> >
>



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to