Hi, I'm trying to test EJB 3.0 with openEJB but an error occurred...
[severity=ERROR,message=unexpected element (uri:"http://www.bea.com/ns/weblogic/90", local:"business-interface-jndi-name-map"). Expected elements are <{http://www.bea.com/ns/weblogic/90}pool>,<{http://www.bea.com/ns/weblogic/90}stateless-clustering>,<{http://www.bea.com/ns/weblogic/90}timer-descriptor>,locator=[node=null,object=null,url=null,line=7,col=47,offset=-1]] javax.xml.bind.UnmarshalException: unexpected element (uri:"http://www.bea.com/ns/weblogic/90", local:"business-interface-jndi-name-map"). Expected elements are <{http://www.bea.com/ns/weblogic/90}pool>,<{http://www.bea.com/ns/weblogic/90}stateless-clustering>,<{http://www.bea.com/ns/weblogic/90}timer-descriptor> at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:616) at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:244) ERROR - FATAL ERROR: Unknown error in Assembler. Please send the following stack trace and this message to users@openejb.apache.org : java.lang.ClassCastException: java.net.URL cannot be cast to org.apache.openejb.jee.wls.WeblogicEjbJar at org.apache.openejb.config.WlsConversion.convertModule(WlsConversion.java:125) --------> weblogic-ejb-jar.xml <?xml version="1.0" encoding="UTF-8"?> <weblogic-ejb-jar xmlns="http://xmlns.oracle.com/weblogic/weblogic-ejb-jar" 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 http://xmlns.oracle.com/weblogic/weblogic-ejb-jar http://xmlns.oracle.com/weblogic/weblogic-ejb-jar/1.0/weblogic-ejb-jar.xsd"> <weblogic-enterprise-bean> <ejb-name>NewSessionBean</ejb-name> <stateless-session-descriptor> <business-interface-jndi-name-map> <business-remote>com.sample.NewSessionBeanInterfaceRemote</business-remote> <jndi-name>NewSessionBean</jndi-name> </business-interface-jndi-name-map> </stateless-session-descriptor> </weblogic-enterprise-bean> </weblogic-ejb-jar> --------> ejb-jar.xml <?xml version="1.0" encoding="UTF-8"?> <ejb-jar xmlns = "http://java.sun.com/xml/ns/javaee" version = "3.0" 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"> </ejb-jar> --------> pom.xml <dependency> <groupId>org.apache.openejb</groupId> <artifactId>openejb-core</artifactId> <version>3.1.4</version> </dependency> Can anybody help me? -- View this message in context: http://openejb.979440.n4.nabble.com/Error-with-ejb3-openEJB-Weblogic-tp4657675.html Sent from the OpenEJB User mailing list archive at Nabble.com.