[jboss-user] [EJB 3.0] - Re: EJB 2.1 and EJB 3 in same jar

Marcin.Cinik do-not-reply at jboss.com
Thu Sep 20 10:02:15 EDT 2007


Descriptor file: (it contains declarations for EJB2.1 session beans only - EJB3 beans use annotations for the whole appserver staff).

  | <?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/j2ee/ejb-jar_3_0.xsd" version="3.0">
  | 
  |    <description><![CDATA[No Description.]]></description>
  |    <display-name>Generated by XDoclet</display-name>
  | 
  |    <enterprise-beans>
  | 
  |       <!-- Session Beans -->
  |       <session >
  | [...]
  | 
  | 

Here is what JBoss 4.2GA says:

  | 2007-09-20 15:30:50,257 WARN  [ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=xxx.jar
  | org.jboss.xb.binding.JBossXBException: Failed to parse source: NYI
  |   at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:178)
  |   at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:169)
  |   at org.jboss.ejb3.metamodel.EjbJarDDObjectFactory.parse(EjbJarDDObjectFactory.java:82)
  |   at org.jboss.ejb3.Ejb3HandlerFactory$DDFactory.<init>(Ejb3HandlerFactory.java:44)
  |   at org.jboss.ejb3.Ejb3HandlerFactory.getInstance(Ejb3HandlerFactory.java:83)
  |   at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:365)
  |   at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:321)
  |   at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:77)
  |   at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
  | 
  | [...]
  | Caused by: java.lang.RuntimeException: NYI
  |   at org.jboss.ejb3.metamodel.EjbJarDDObjectFactory.setValue(EjbJarDDObjectFactory.java:1306)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |   at java.lang.reflect.Method.invoke(Method.java:585)
  |   at org.jboss.xb.binding.ObjectModelBuilder.invokeFactory(ObjectModelBuilder.java:417)
  |   at org.jboss.xb.binding.DelegatingObjectModelFactory.setValue(DelegatingObjectModelFactory.java:154)
  |   at org.jboss.xb.binding.ObjectModelBuilder.endElement(ObjectModelBuilder.java:358)
  |   at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.endElement(SaxJBossXBParser.java:295)
  |   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
  | 
  | 
  | 

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

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



More information about the jboss-user mailing list