Is there a bug in jBoss or why is it giving this error? As anybody can see the bean is defnied with exactly the same name on both xml descriptors.
-Tapani 12:22:28,250 ERROR [XmlFileLoader] failed to load jboss.xml. There could be a syntax error. | org.jboss.deployment.DeploymentException: Error in jboss.xml for Bean MySessionBean: found in jboss.xml but not in ejb-jar.xml | at org.jboss.metadata.ApplicationMetaData.importJbossXml(ApplicationMetaData.java:915) | at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:185) | at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:506) | ... EJB-JAR.XML <?xml version="1.0" encoding="UTF-8"?> | <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd"> | <ejb-jar> | <enterprise-beans> | <session> | <ejb-name>MySessionBean</ejb-name> | <local-home>com.foo.server.MySessionLocalHome</local-home> | <local>com.foo.server.MySessionLocal</local> | <ejb-class>com.foo.server.MySessionBean</ejb-class> | <session-type>Stateless</session-type> | <transaction-type>Container</transaction-type> | <resource-ref> | <res-ref-name>jdbc/myDataSource</res-ref-name> | <res-type>javax.sql.DataSource</res-type> | <res-auth>Container</res-auth> | </resource-ref> | </session> | </enterprise-beans> | <assembly-descriptor> | <container-transaction> | <method> | <ejb-name>MySessionBean</ejb-name> | <method-intf>Local</method-intf> | <method-name>*</method-name> | </method> | <trans-attribute>NotSupported</trans-attribute> | </container-transaction> | </assembly-descriptor> | </ejb-jar> JBOSS.XML <?xml version="1.0" encoding="UTF-8"?> | <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSSCMP-JDBC 4.0//EN" | "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd"> | <jboss> | <enterprise-beans> | <session> | <ejb-name>MySessionBean</ejb-name> | <resource-ref> | <res-ref-name>jdbc/myDataSource</res-ref-name> | <jndi-name>java:/MyDB</jndi-name> | </resource-ref> | </session> | </enterprise-beans> | </jboss> View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925300#3925300 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925300 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user