0 Replies Latest reply on Jun 1, 2006 1:13 PM by Shekar

    org.jboss.metadata.MetaData.getUniqueChild(MetaData.java:98

    Shekar Newbie

      <?xml version="1.0"?>
      <ejb-jar version="3.0" xmlns="http://java.sun.com/xml/ns/j2ee">

      If we add the above statement, then we get following error. Please advise which version of jboss server works with the seam examples.

      ------------------------------
      13:03:33,675 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.0.3/server/default/tmp/deploy/tmp54037jboss-seam-booking.ear-contents/jboss-seam-booking.jar
      org.jboss.deployment.DeploymentException: expected one enterprise-beans tag
      at org.jboss.metadata.MetaData.getUniqueChild(MetaData.java:98)
      at org.jboss.metadata.ApplicationMetaData.importEjbJarXml(ApplicationMetaData.java:332)
      at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:151)
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:506)
      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.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy28.create(Unknown Source)