[jboss-user] [JBoss Seam] - IllegalArgumentException in EmbeddedEJB3

KnisterPeter do-not-reply at jboss.com
Tue Jun 12 12:22:00 EDT 2007


Hi,

while setting up a seam app inside tomcat with EmbeddedEJB3 I'll get the following exception and I cannot figure out why. Anyone has an idea what I am doing wrong?

java.lang.RuntimeException: java.lang.IllegalArgumentException: Null name
  |         at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.boot(EJB3StandaloneBootstrap.java:391)
  |         at org.jboss.seam.core.Ejb.startup(Ejb.java:42)
  |         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:597)
  |         at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
  |         at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
  |         at org.jboss.seam.Component.callComponentMethod(Component.java:1834)
  |         at org.jboss.seam.Component.callCreateMethod(Component.java:1757)
  |         at org.jboss.seam.Component.newInstance(Component.java:1746)
  |         at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:175)
  |         at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:145)
  |         at org.jboss.seam.init.Initialization.init(Initialization.java:504)
  |         at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
  |         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
  |         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
  |         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
  |         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
  |         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
  |         at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
  |         at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
  |         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
  |         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
  |         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
  |         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
  |         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
  |         at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
  |         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
  |         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
  |         at org.apache.catalina.core.StandardService.start(StandardService.java:448)
  |         at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
  |         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
  |         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:597)
  |         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
  |         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
  | Caused by: java.lang.IllegalArgumentException: Null name
  |         at org.jboss.dependency.plugins.AbstractController.getContext(AbstractController.java:101)
  |         at org.jboss.kernel.plugins.dependency.AbstractKernelController.getContext(AbstractKernelController.java:94)
  |         at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:229)
  |         at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:161)
  |         at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.boot(EJB3StandaloneBootstrap.java:381)
  |         ... 38 common frames omitted
  | 

I have the following files unter /WEB-INF/classes:
* The content of the mc-conf.jar
* jboss-beans.xml
* jndi.properties

In the /WEB-INF folder are:
* components.xml
* faces-config.xml

In my application jar file I have in the root folder:
* components.properties
* seam.properties

And at least in the META-INF folder of my application jar file:
* ejb-jar.xml
* faces-config.xml (extra definitions)
* persistence.xml

Any idea would be helpful...

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

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



More information about the jboss-user mailing list