Hello,

Here is the complete story :

I'm new to J2EE developement. I'd like to develop an example starting from a
JBoss Seam example I found on the JBoss site.
I installed Eclipse 3.2 with WST and JST. WST and JST seems to use XDoclet to
generate J2EE artifacts (ejbdoclet and webdoclet).
I created a new J2EE project with 1 project for the J2EE application, 1 project
for the EJB module and 1 project for the Web module.
I copied the source files in the EJB and Web projects.
I updated build pathes for the classes to compile.
Then I built and deployed the application on JBoss AS 4.0.
I get the error message :
  status: Deployment FAILED reason: ejb-jar.xml must either obey the right xml
schema or define a valid DOCTYPE!
  state: FAILED

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

Reply via email to