7 Replies Latest reply on Apr 4, 2008 4:56 AM by jbalunas.jbalunas.jboss.org

    WebSphere 6.1 JPA example exception (Seam Filter could not be initialized)

    ericcho

      I've followed the instructions on:
      http://www.seamframework.org/Documentation/RunningSeamExamplesWithIBMWebsphere


      I've deployed the JPA WAR and get the following exception:


      Stack Dump = javax.servlet.ServletException: Filter [Seam Filter]: could not be initialized
           at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.init(FilterInstanceWrapper.java:156)
           at com.ibm.ws.webcontainer.filter.WebAppFilterManager._loadFilter(WebAppFilterManager.java:468)
           at com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(WebAppFilterManager.java:382)
           at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterInstanceWrapper(WebAppFilterManager.java:241)
           at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain(WebAppFilterManager.java:299)
           at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:728)
           at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:676)
           at com.ibm.ws.webcontainer.servlet.FileServletWrapper.handleRequest(FileServletWrapper.java:346)
           at com.ibm.ws.wswebcontainer.servlet.StaticFileServletWrapper.handleRequest(StaticFileServletWrapper.java:93)



      Note this is on WAS 6.1.0.13 with EJB3 Feature pack.


      Has anyone else encountered this?


      Any help is appreciated

        • 1. Re: WebSphere 6.1 JPA example exception (Seam Filter could not be initialized)
          jbalunas.jbalunas.jboss.org

          When do you see this exception?
          Was there any other exceptions with this? 


          Websphere sometimes creates a more detailed log file in a pretty obscure place - but the primary log will show a path to it.


          I suspect there is an error previous to this one. 


          -Jay

          • 2. Re: WebSphere 6.1 JPA example exception (Seam Filter could not be initialized)
            ericcho

            This exception occurs when I attempt to hit to initial page:
            http://localhost:9082/jboss-seam-jpa/index.html


            The exception is actually from the detailed logfile... but here is more


            
            ------Start of DE processing------ = [4/2/08 15:52:04:990 MDT] , key = javax.servlet.ServletException com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter 380
            
            Exception = javax.servlet.ServletException
            
            Source = com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter
            
            probeid = 380
            
            Stack Dump = javax.servlet.ServletException: Filter [Seam Filter]: could not be initialized
            
                 at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.init(FilterInstanceWrapper.java:156)
            
                 at com.ibm.ws.webcontainer.filter.WebAppFilterManager._loadFilter(WebAppFilterManager.java:468)
            
                 at com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter(WebAppFilterManager.java:382)
            
                 at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterInstanceWrapper(WebAppFilterManager.java:241)
            
                 at com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterChain(WebAppFilterManager.java:299)
            
                 at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:728)
            
                 at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:676)
            
                 at com.ibm.ws.webcontainer.servlet.FileServletWrapper.handleRequest(FileServletWrapper.java:346)
            
                 at com.ibm.ws.wswebcontainer.servlet.StaticFileServletWrapper.handleRequest(StaticFileServletWrapper.java:93)
            
                 at com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:702)
            
                 at com.ibm.ws.wswebcontainer.extension.DefaultExtensionProcessor.handleRequest(DefaultExtensionProcessor.java:113)
            
                 at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3276)
            
                 at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
            
                 at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
            
                 at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
            
                 at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:113)
            
                 at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
            
                 at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
            
                 at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:263)
            
                 at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
            
                 at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
            
                 at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
            
                 at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
            
                 at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
            
                 at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
            
                 at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
            
                 at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
            
                 at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
            
                 at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
            
            Dump of callerThis = 
            
            Object type = com.ibm.ws.wswebcontainer.filter.WebAppFilterManager
            
            com.ibm.ws.wswebcontainer.filter.WebAppFilterManager@3e2c3e2c
            
            
            Exception = javax.servlet.ServletException
            
            Source = com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter
            
            probeid = 380
            
            Dump of callerThis = 
            
            Object type = com.ibm.ws.wswebcontainer.filter.WebAppFilterManager
            
              securityCollaborator = 
            
                securityCollaborator = 
            
                  tc = com.ibm.ejs.ras.TraceComponent@734e734e
            
                  webCache = com.ibm.ws.security.web.WebAppCache@23362336
            
                  contextManager = com.ibm.ws.security.auth.ContextManagerImpl@49764976
            
                  delegationPolicy = com.ibm.ws.security.delegation.MethodDelegation@239e239e
            
                  threadIdManager = null
            
                  class$com$ibm$ws$security$web$EJSWebCollaborator = java.lang.Class@79c079c
            
                lock = java.lang.Object@22d822d8
            
                tc = 
            
                  defaultMessageFile = com.ibm.ejs.resources.seriousMessages
            
                  EXTENSION_NAME_DPID = DiagnosticProvider
            
                  ivDumpEnabled = false
            
                  ivResourceBundleName = com.ibm.ws.webcontainer.resources.Messages
            
                  ivLogger = null
            
                  ivDiagnosticProviderID = null
            
                  anyTracingEnabled = false
            
                  ivLevel = 10
            
                  ivName = com.ibm.ws.webcontainer.webapp.WebAppSecurityCollaborator
            
                  ivDebugEnabled = false
            
                  ivEventEnabled = false
            
                  ivEntryEnabled = false
            
                  ivDetailEnabled = false
            
                  ivConfigEnabled = false
            
                  ivInfoEnabled = true
            
                  ivServiceEnabled = true
            
                  ivWarningEnabled = true
            
                  ivErrorEnabled = true
            
                  ivFatalEnabled = true
            
                _webContextRoot = jboss-seam-jpa
            
                _vHostName = default_host
            
                class$com$ibm$ws$webcontainer$webapp$WebAppSecurityCollaborator = 
            
                  serialVersionUID = 3206093459760846163
            
                  AllPermissionsPD = this.class$com$ibm$ws$webcontainer$filter$WebAppFilterManager.AllPermissionsPD
            
                  SYNTHETIC = 4096
            
                  ANNOTATION = 8192
            
                  ENUM = 16384
            
                  j9Version = 336134705
            
                  j9Config = 8314596479310233600
            
                  EmptyParameters = this.class$com$ibm$ws$webcontainer$filter$WebAppFilterManager.EmptyParameters
            
                  copyMethod = this.class$com$ibm$ws$webcontainer$filter$WebAppFilterManager.copyMethod
            
                  copyField = this.class$com$ibm$ws$webcontainer$filter$WebAppFilterManager.copyField
            
                  copyConstructor = this.class$com$ibm$ws$webcontainer$filter$WebAppFilterManager.copyConstructor
            
                  methodParameterTypesField = this.class$com$ibm$ws$webcontainer$filter$WebAppFilterManager.methodParameterTypesField
            
                  constructorParameterTypesField = this.class$com$ibm$ws$webcontainer$filter$WebAppFilterManager.constructorParameterTypesField
            
                  NoArgs = this.class$com$ibm$ws$webcontainer$filter$WebAppFilterManager.NoArgs
            
                  PublicKey = this.class$com$ibm$ws$webcontainer$filter$WebAppFilterManager.PublicKey
            
                  DeclaredKey = this.class$com$ibm$ws$webcontainer$filter$WebAppFilterManager.DeclaredKey
            
                class$com$ibm$wsspi$webcontainer$servlet$IServletContext = 
            
                  serialVersionUID = 3206093459760846163
            
                  AllPermissionsPD = this.class$com$ibm$ws$webcontainer$filter$WebAppFilterManager.AllPermissionsPD
            
                  SYNTHETIC = 4096
            
                  ANNOTATION = 8192
            
                  ENUM = 16384
            
                  j9Version = 336134705
            
                  j9Config = 8314596479310233600
            
                  EmptyParameters = this.class$com$ibm$ws$webcontainer$filter$WebAppFilterManager.EmptyParameters
            
                  copyMethod = this.class$com$ibm$ws$webcontainer$filter$WebAppFilterManager.copyMethod
            
                  copyField = this.class$com$ibm$ws$webcontainer$filter$WebAppFilterManager.copyField
            
                  copyConstructor = this.class$com$ibm$ws$webcontainer$filter$WebAppFilterManager.copyConstructor
            
                  methodParameterTypesField = this.class$com$ibm$ws$webcontainer$filter$WebAppFilterManager.methodParameterTypesField
            
                  constructorParameterTypesField = this.class$com$ibm$ws$webcontainer$filter$WebAppFilterManager.constructorParameterTypesField
            
                  NoArgs = this.class$com$ibm$ws$webcontainer$filter$WebAppFilterManager.NoArgs
            
                  PublicKey = this.class$com$ibm$ws$webcontainer$filter$WebAppFilterManager.PublicKey
            
                  DeclaredKey = this.class$com$ibm$ws$webcontainer$filter$WebAppFilterManager.DeclaredKey
            
            



            Can you make sense of it?


            Thanks in advance.

            • 3. Re: WebSphere 6.1 JPA example exception (Seam Filter could not be initialized)
              ericcho

              Just to add, I've followed the steps to configure the booking example for WAS.  After a 'successful' deployment of the EAR, I get the same exception when attempting to hit the initial page.


              Thanks,
              Eric

              • 4. Re: WebSphere 6.1 JPA example exception (Seam Filter could not be initialized)
                ericcho

                Got the JPA example working.  


                I imported it into RAD and on startup I noticed a few exceptions that I missed.  They were mainly class not found exceptions.


                So I replaced the commons-collections.jar with the latest (v3.2) and replaced the hibernate-validator.jar with the latest from the hibernate site.



                Now I'm just working thru the booking example....
                I'm getting a series of exceptions:


                
                [4/3/08 10:49:12:481 MDT] 00000018 WebApp        E   Error occured while populating the namespace 
                
                com.ibm.wsspi.injectionengine.InjectionConfigurationException: Failed to process xml from Deployment Descriptor
                
                     at com.ibm.ws.injectionengine.InjectionEngineImpl.processXML(InjectionEngineImpl.java:371)
                
                     at com.ibm.ws.injectionengine.InjectionEngineImpl.processInjectionMetaData(InjectionEngineImpl.java:259)
                
                     at com.ibm.ws.util.ComponentNameSpaceHelper.populateJavaNameSpace(ComponentNameSpaceHelper.java:919)
                
                     at com.ibm.ws.util.ComponentNameSpaceHelper.populateJavaNameSpace(ComponentNameSpaceHelper.java:816)
                
                     at com.ibm.ws.wswebcontainer.webapp.WebApp.populateJavaNameSpace(WebApp.java:644)
                
                     at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:286)
                
                     at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:90)
                
                



                AND


                
                com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! class loading constraint violated (class: org/ajax4jsf/resource/ResourceBuilderImpl method: getUri(Lorg/ajax4jsf/resource/InternetResource;Ljavax/faces/context/FacesContext;Ljava/lang/Object;)Ljava/lang/String;) at pc: 0
                
                     at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:212)
                
                     at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:174)
                
                     at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:909)
                
                     at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:311)
                
                     at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:335)
                
                     at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:90)
                
                



                I'll continue working through them, but if someone can give me a couple hints.... I'd appreciate it.


                Thanks,
                Eric

                • 5. Re: WebSphere 6.1 JPA example exception (Seam Filter could not be initialized)
                  jbalunas.jbalunas.jboss.org

                  I am surprised that you had to add any jars above and beyond what the reference guide uses.  What version of Seam are you using?




                  Error occured while populating the namespace
                  com.ibm.wsspi.injectionengine.InjectionConfigurationException: Failed to process xml from Deployment Descriptor
                       at com.ibm.ws.injectionengine.InjectionEngineImpl.processXML(InjectionEngineImpl.java:371)


                  Can you tell what descriptor it is failing on?


                  Thanks,
                  Jay

                  • 6. Re: WebSphere 6.1 JPA example exception (Seam Filter could not be initialized)
                    ericcho

                    Thanks for your help Jay...
                    I'm using jboss-seam-2.1.0.A1.


                    I've made it a hair further:
                    In the Chapter 28 doc I blindly copy/pasted this into the web.xml


                    
                    
                    <ejb-local-ref>       
                    
                        <ejb-ref-name>jboss-seam-jee5/HotelSearchingAction</ejb-ref-name>       
                    
                        <ejb-ref-type>Session</ejb-ref-type>      
                    
                         <local-home></local-home> 
                    
                        <local>org.jboss.seam.example.booking.HotelSAll of the examples and informaearching</local> 
                    
                      </ejb-local-ref>  
                    
                    
                    



                    I got rid of the extra junk in the <local> node (DUH!!)  and now I get the following exception:


                    
                    com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! class loading constraint violated (class: org/ajax4jsf/resource/ResourceBuilderImpl method: getUri(Lorg/ajax4jsf/resource/InternetResource;Ljavax/faces/context/FacesContext;Ljava/lang/Object;)Ljava/lang/String;) at pc: 0
                    
                         at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:212)
                    
                         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:174)
                    
                         at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:909)
                    
                         at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:311)
                    
                         at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:335)
                    
                         at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:90)
                    
                         at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
                    
                         at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:665)
                    
                         at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:618)
                    
                    



                    inching.......


                    Thanks again...

                    • 7. Re: WebSphere 6.1 JPA example exception (Seam Filter could not be initialized)
                      jbalunas.jbalunas.jboss.org

                      Yup - that cut and paste error was one of the fixes in trunk - it did not make 2.1.0.A1 so you would have to look in subversion until the next release of 2.1.X.


                      For the classloading issue - use websphere's classloader viewer and see if you have multiple richfaces jars. 


                      I have not seen that error, but it seems like this and the error you posted in another thread are classloader issues.  Also try a search of the error message and see what constraint was violated.


                      -Jay