1 Reply Latest reply on Nov 24, 2008 5:38 PM by Jay Balunas

    jboss seam dvdstore can't run on tomcat with embedded jboss ejb3 container

    Xu Yuming Newbie

      Hi all,


      I just deploy the seam example of jboss seam dvdstore on tomcat 6 and embedded jboss.


      When startup tomcat I get the following error:


      SEVERE: Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
      org.jboss.seam.InstantiationException: Could not instantiate Seam component: indexer
             at org.jboss.seam.Component.newInstance(Component.java:2066)
             at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
             at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
             at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:112)
             at org.jboss.seam.init.Initialization.init(Initialization.java:727)
             at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
             at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
             at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
             at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
             at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
             at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
             at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:830)
             at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:719)
             at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
             at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1217)
             at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
             at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
             at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
             at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
             at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
             at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
             at java.lang.Thread.run(Thread.java:613)
      Caused by: javax.naming.NameNotFoundException: Name jboss-seam-dvd is not bound in this Context
             at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
             at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
             at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
             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.embedded.jndi.BridgeContext.invoke(BridgeContext.java:77)
             at $Proxy121.lookup(Unknown Source)
             at javax.naming.InitialContext.lookup(InitialContext.java:351)
             at org.jboss.seam.Component.instantiateSessionBean(Component.java:1327)
             at org.jboss.seam.Component.instantiate(Component.java:1291)
             at org.jboss.seam.Component.newInstance(Component.java:2044)
             ... 21 more
      Nov 21, 2008 10:32:31 PM org.apache.catalina.core.StandardContext listenerStart


      anyone can help me?


      Thanks,
      Michael