2 Replies Latest reply on Mar 14, 2011 12:11 AM by Dan Allen

    Seam 3 CR1 on Tomcat

    Martin Kouba Master

      I'm trying to deploy Weld (1.1.0; weld-servlet) plus Seam 3 (3.0.0.CR1; only Solder and Servlet modules) plus JSF 2 application on Tomcat (JBoss Web 2.1.9; Servlet 2.5). I get following exception during org.jboss.seam.servlet.event.ServletEventBridgeListener init:


      SEVERE: Error configuring application listener of class org.jboss.seam.servlet.event.ServletEventBridgeListener
      java.lang.NoSuchMethodError: org.jboss.logging.Logger.getMessageLogger(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
           at org.jboss.seam.servlet.event.AbstractServletEventBridge.<init>(AbstractServletEventBridge.java:36)
           at org.jboss.seam.servlet.event.ServletEventBridgeListener.<init>(ServletEventBridgeListener.java:55)
           at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
           at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
           at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
           at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
           at java.lang.Class.newInstance0(Class.java:355)
           at java.lang.Class.newInstance(Class.java:308)
           at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:118)
           at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3859)
           at org.apache.catalina.core.StandardContext.start(StandardContext.java:4389)
           at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1056)
           at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
           at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1056)
           at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
           at org.apache.catalina.core.StandardService.start(StandardService.java:523)
           at org.apache.catalina.core.StandardServer.start(StandardServer.java:736)
           at org.apache.catalina.startup.Catalina.start(Catalina.java:575)
           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:288)
           at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)



      My issue is somehow related to Seam 3 logging. I read several posts that seem to deal with similiar problem - e.g. http://http://seamframework.org/Community/DeploymentExceptionWELD001408UnsatisfiedDependenciesForTypeServletLog. However no suggested solution works. My application starts successfully without Seam 3 modules.


      Is it possible to deploy Seam 3 on Tomcat/Jetty? As Seam 3 documentation says: Java EE 6-compliant application server (or a servlet container supported by the Weld servlet extension), it should be...