1 Reply Latest reply on Apr 15, 2010 12:55 PM by Nikos Paraskevopoulos

    ejb-xml.jar errors running 2.2 booking example in websphere 7

    Kevin Lillybridge Newbie

      Hello All,


      Possibly someone has seen this issue before. I've been writing a seam appiclication at work for sometime now and because of the powers I am forced to run the application on websphere not jboss. I have been attempting to convert the seam 2.2 booking example to run on websphere using this doc http://docs.jboss.org/seam/snapshot/en-US/html/websphere.html.


      When I get to deploying the application to websphere it crashes on me with the below error...



      Creating the project. 
      
      org.eclipse.emf.common.util.WrappedException: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'enterprise-beans'. One of '{"http://java.sun.com/xml/ns/javaee":ejb-client-jar}' is expected. 
      
      at org.eclipse.wst.common.internal.emf.resource.EMF2DOMRenderer.loadDocument(EMF2DOMRenderer.java:81) 
      
      at org.eclipse.wst.common.internal.emf.resource.EMF2DOMRenderer.doLoad(EMF2DOMRenderer.java:62) 
      ...





      Ive been searching and reading for a bit now and making little progress. Per the error I can't really determine what the issue is other than something with my enterprise-beans portion of the ejb-jar.xml. This is what my ejb-jar.xml file looks like.




      <?xml version="1.0" encoding="UTF-8"?>
      <ejb-jar 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_3_0.xsd"
               version="3.0">
               
         <interceptors>
           <interceptor>
             <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
           </interceptor>
         </interceptors>
         
         <assembly-descriptor>
            <interceptor-binding>
               <ejb-name>*</ejb-name>
               <interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
            </interceptor-binding>
         </assembly-descriptor>
         
         <enterprise-beans>
          <session>
            <ejb-name>RegisterAction</ejb-name>
            <ejb-local-ref>
              <ejb-ref-name>jboss-seam-booking/AuthenticatorAction</ejb-ref-name>
              <ejb-ref-type>Session</ejb-ref-type>
              <local>org.jboss.seam.example.booking.Authenticator</local>
            </ejb-local-ref>
          </session>
         </enterprise-beans>
         
      </ejb-jar>





      If anyone has any information regarding this error that would be very helpful.


      Thanks in advance.