In my ejb-jar.xml I change this:

<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 
2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd";>

to this:

<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">

When I deploy I get a viloation error saying that

<res-auth>CONTAINER</res-auth> needs to be either 'Container' or 'Application'. 
 It seems it did not like CONTAINER being in all caps.


org.jboss.xb.binding.JBossXBException: Failed to parse source: 
cvc-enumeration-valid: Value 'CONTAINER' is not facet-valid with respect to 
enumeration '[Application, Container]'. It must be a value from the enumeration.

So, I change this to 'Container' and it deploys successfully.  

The next error I get makes no sense it says:


org.jboss.xb.binding.JBossXBException: Failed to parse source: The content of 
element type "resource-ref" must match "(res-ref-name,resource-name)". @ 
*unknown*[11,25]

I believe this is referring to the jboss.xml file.  I'm using a jndi-name 
instead of a resource-name which is legal.

         <resource-ref>
            <res-ref-name>jdbc/DS</res-ref-name>
            <jndi-name>java:/DS</jndi-name>
         </resource-ref>

Any ideas?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952837#3952837

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952837

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
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to