11 Replies Latest reply on Aug 19, 2009 12:35 PM by peterj

    GlassfishConfigureListener NoSuchMethodError

    jadin

      I tried to installed a WAR onto my jboss server 4.2.3, but it will not deploy the app. During the install, I get the following stack trace:

      2009-08-18 10:19:08,439 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/gateway]] Exception sending context initialized event to listener instance of class com.sun.faces.config.GlassFishConfigureListener
      java.lang.NoSuchMethodError: com.sun.faces.config.GlassFishConfigureListener.scanWebXml(Z)V
      at com.sun.faces.config.GlassFishConfigureListener.contextInitialized(GlassFishConfigureListener.java:48)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
      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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)
      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.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)
      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
      at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
      at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
      at org.jboss.web.WebModule.startModule(WebModule.java:83)
      at org.jboss.web.WebModule.startService(WebModule.java:61)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy44.start(Unknown Source)
      at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
      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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
      at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
      at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
      at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
      at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy45.start(Unknown Source)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
      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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy9.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:417)
      at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
      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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:304)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
      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:155)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
      at org.jboss.Main.boot(Main.java:200)
      at org.jboss.Main$1.run(Main.java:508)
      at java.lang.Thread.run(Thread.java:595)

      I have deleted the tldCache.ser files, I have played around with swapping the jsf 1.1 and 1.2 jars (the app uses 1.2), and I worked with jboss-service.xml file. I set Java2ClassLoadingCompliance to false and UseJBossWebLoader to true. I'm still not quite sure why this is not working. Any help would be very much appreciated. Let me know if any app files are needed to help find a solution.

      Thanks,
      Jadin

        • 1. Re: GlassfishConfigureListener NoSuchMethodError
          peterj

          Looks like your app is referencing some JSF classes/configs/??? that are specific to Glassfish. You could provide the missing Glassfish JAR, but that might not work - it could cause other problems. The other possibility is to fix your app to remove those references.

          • 2. Re: GlassfishConfigureListener NoSuchMethodError
            jadin

            I pulled out the jar files from my maven build on the war app, and it still runs with the same error using the jboss jsf jars. I wonder if it is pulling the jboss jsf files first despite what I have set in the jboss-service.xml file.

            • 3. Re: GlassfishConfigureListener NoSuchMethodError
              peterj

              Looking at the exception again, it appears to be a missing method error, not a missing class. Are you sure you are getting the exact same error message, because if you are one of the Glassfish JAR files is still in your WAR.

              And check your JSF config files and the web.xml file, and any other config files you have

              • 4. Re: GlassfishConfigureListener NoSuchMethodError
                jadin

                ok, here are the relevant files. I do not see any reference to Glassfish here.

                faces-config.xml

                <faces-config>
                
                 <application>
                 <message-bundle>LocalizationResources</message-bundle>
                 <locale-config>
                 <default-locale>en</default-locale>
                 <supported-locale>en</supported-locale>
                 <supported-locale>fr</supported-locale>
                 </locale-config>
                 </application>
                
                 <navigation-rule>
                 <from-view-id>/login.jsp</from-view-id>
                 <navigation-case>
                 <from-outcome>success</from-outcome>
                 <to-view-id>/portal/index.jsp</to-view-id>
                 </navigation-case>
                 <navigation-case>
                 <from-outcome>failure</from-outcome>
                 <to-view-id>/login.jsp</to-view-id>
                 </navigation-case>
                 </navigation-rule>
                
                 <navigation-rule>
                 <from-view-id>/portal/webClientSend.jsp</from-view-id>
                 <navigation-case>
                 <from-outcome>success</from-outcome>
                 <to-view-id>/portal/webClientSendResult.jsp</to-view-id>
                 </navigation-case>
                 <navigation-case>
                 <from-outcome>failure</from-outcome>
                 <to-view-id>/portal/webClientFailure.jsp</to-view-id>
                 </navigation-case>
                 </navigation-rule>
                
                 <managed-bean>
                 <description>Used managing the current Locale.</description>
                 <managed-bean-name>localeBean</managed-bean-name>
                 <managed-bean-class>net.sourceforge.gateway.sstp.faces.beans.LocaleBean</managed-bean-class>
                 <managed-bean-scope>session</managed-bean-scope>
                 </managed-bean>
                
                 <managed-bean>
                 <description>Authenticates Users</description>
                 <managed-bean-name>loginBean</managed-bean-name>
                 <managed-bean-class>net.sourceforge.gateway.sstp.faces.beans.LoginBean</managed-bean-class>
                 <managed-bean-scope>session</managed-bean-scope>
                 <managed-property>
                 <property-name>user</property-name>
                 <value>#{sessionScope.user}</value>
                 </managed-property>
                 </managed-bean>
                
                 <managed-bean>
                 <description>Gateway Client</description>
                 <managed-bean-name>gatewayClientBean</managed-bean-name>
                 <managed-bean-class>net.sourceforge.gateway.sstp.faces.beans.GatewayClientBean</managed-bean-class>
                 <managed-bean-scope>request</managed-bean-scope>
                 </managed-bean>
                
                </faces-config>
                


                web.xml
                <web-app>
                 <display-name>Gateway Boss Edition</display-name>
                
                 <context-param>
                 <param-name>contextConfigLocation</param-name>
                 <param-value>
                 classpath:net/sourceforge/gateway/sstp/webservices/services.xml
                 </param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>org.apache.myfaces.ERROR_HANDLING</param-name>
                 <param-value>false</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>facelets.DEVELOPMENT</param-name>
                 <param-value>false</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
                 <param-value>true</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
                 <param-value>false</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE</param-name>
                 <param-value>false</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
                 <param-value>true</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name>
                 <param-value>true</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS</param-name>
                 <param-value>true</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>org.apache.myfaces.RESOURCE_VIRTUAL_PATH</param-name>
                 <param-value>/faces/myFacesExtensionResource</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>org.apache.myfaces.STRICT_XHTML_LINKS</param-name>
                 <param-value>true</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
                 <param-value>false</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
                 <param-value>server</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
                 <param-value>org.apache.myfaces.renderkit.html.util.DefaultAddResource</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>org.apache.myfaces.VIEWSTATE_JAVASCRIPT</param-name>
                 <param-value>false</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>org.apache.myfaces.CONFIG_REFRESH_PERIOD</param-name>
                 <param-value>2</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>org.apache.myfaces.RENDER_VIEWSTATE_ID</param-name>
                 <param-value>true</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON</param-name>
                 <param-value>false</param-value>
                 </context-param>
                
                 <filter>
                 <filter-name>jsp-to-faces-filter</filter-name>
                 <filter-class>net.sourceforge.gateway.sstp.faces.filters.DotJspToDotFacesFilter</filter-class>
                 </filter>
                
                 <filter>
                 <filter-name>authorization-filter</filter-name>
                 <filter-class>net.sourceforge.gateway.sstp.faces.filters.AuthorizationFilter</filter-class>
                 </filter>
                
                 <filter>
                 <filter-name>ExtensionsFilter</filter-name>
                 <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
                 <init-param>
                 <param-name>uploadMaxFileSize</param-name>
                 <param-value>5m</param-value>
                 </init-param>
                 <init-param>
                 <param-name>uploadThresholdSize</param-name>
                 <param-value>100k</param-value>
                 </init-param>
                 </filter>
                
                 <filter-mapping>
                 <filter-name>jsp-to-faces-filter</filter-name>
                 <url-pattern>*.jsp</url-pattern>
                 </filter-mapping>
                
                 <filter-mapping>
                 <filter-name>authorization-filter</filter-name>
                 <url-pattern>/portal/*</url-pattern>
                 </filter-mapping>
                
                
                 <filter-mapping>
                 <filter-name>ExtensionsFilter</filter-name>
                 <servlet-name>FacesServlet</servlet-name>
                 </filter-mapping>
                
                 <filter-mapping>
                 <filter-name>ExtensionsFilter</filter-name>
                 <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
                 </filter-mapping>
                
                 <listener>
                 <listener-class>
                 org.springframework.web.context.ContextLoaderListener
                 </listener-class>
                 </listener>
                 <servlet>
                 <servlet-name>CXFServlet</servlet-name>
                 <display-name>CXF Servlet</display-name>
                 <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
                 </servlet>
                
                 <servlet>
                 <servlet-name>FacesServlet</servlet-name>
                 <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                 <load-on-startup>3</load-on-startup>
                 </servlet>
                
                 <servlet>
                 <servlet-name>ProcessorServlet</servlet-name>
                 <servlet-class>net.sourceforge.gateway.sstp.servlet.ProcessorServlet</servlet-class>
                 <load-on-startup>5</load-on-startup>
                 </servlet>
                
                 <servlet-mapping>
                 <servlet-name>CXFServlet</servlet-name>
                 <url-pattern>/services/*</url-pattern>
                 </servlet-mapping>
                
                 <servlet-mapping>
                 <servlet-name>FacesServlet</servlet-name>
                 <url-pattern>*.faces</url-pattern>
                 </servlet-mapping>
                
                 <welcome-file-list>
                 <welcome-file>index.jsp</welcome-file>
                 </welcome-file-list>
                
                </web-app>
                

                pom.xml
                <dependencies>
                 <dependency>
                 <groupId>junit</groupId>
                 <artifactId>junit</artifactId>
                 <version>4.6</version>
                 <scope>test</scope>
                 </dependency>
                 <dependency>
                 <groupId>org.mortbay.jetty</groupId>
                 <artifactId>jetty</artifactId>
                 <version>6.1.9</version>
                 <scope>test</scope>
                 </dependency>
                 <dependency>
                 <groupId>org.apache.cxf</groupId>
                 <artifactId>cxf-rt-frontend-jaxws</artifactId>
                 <version>2.1.3</version>
                 </dependency>
                 <dependency>
                 <groupId>org.apache.cxf</groupId>
                 <artifactId>cxf-rt-transports-http</artifactId>
                 <version>2.1.3</version>
                 </dependency>
                 <dependency>
                 <groupId>org.apache.cxf</groupId>
                 <artifactId>cxf-rt-transports-http-jetty</artifactId>
                 <version>2.1.3</version>
                 </dependency>
                 <dependency>
                 <groupId>org.apache.cxf</groupId>
                 <artifactId>cxf-rt-ws-security</artifactId>
                 <version>2.1.3</version>
                 </dependency>
                 <dependency>
                 <groupId>org.apache.xmlbeans</groupId>
                 <artifactId>xmlbeans</artifactId>
                 <version>2.3.0</version>
                 </dependency>
                 <dependency>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>xmlbeans-maven-plugin</artifactId>
                 <version>2.3.0</version>
                 </dependency>
                 <dependency>
                 <groupId>org.slf4j</groupId>
                 <artifactId>slf4j-jdk14</artifactId>
                 <version>1.5.2</version>
                 </dependency>
                 <dependency>
                 <groupId>org.hibernate</groupId>
                 <artifactId>hibernate-core</artifactId>
                 <version>3.3.1.GA</version>
                 </dependency>
                 <dependency>
                 <groupId>org.hibernate</groupId>
                 <artifactId>hibernate-c3p0</artifactId>
                 <version>3.3.1.GA</version>
                 </dependency>
                 <dependency>
                 <groupId>javassist</groupId>
                 <artifactId>javassist</artifactId>
                 <version>3.8.0.GA</version>
                 </dependency>
                 <dependency>
                 <groupId>hsqldb</groupId>
                 <artifactId>hsqldb</artifactId>
                 <version>1.8.0.7</version>
                 </dependency>
                 <dependency>
                 <groupId>org.apache.myfaces.tomahawk</groupId>
                 <artifactId>tomahawk</artifactId>
                 <version>1.1.8</version>
                 </dependency>
                 <dependency>
                 <groupId>javax.faces</groupId>
                 <artifactId>jsf-api</artifactId>
                 <version>1.2_02</version>
                 </dependency>
                 <dependency>
                 <groupId>javax.faces</groupId>
                 <artifactId>jsf-impl</artifactId>
                 <version>1.2-b19</version>
                 </dependency>
                 <dependency>
                 <groupId>net.sf.locale4j</groupId>
                 <artifactId>locale4j</artifactId>
                 <version>1.1.3</version>
                 </dependency>
                 <dependency>
                 <groupId>javax.mail</groupId>
                 <artifactId>mail</artifactId>
                 <version>1.4.1</version>
                 </dependency>
                 <dependency>
                 <groupId>javax.activation</groupId>
                 <artifactId>activation</artifactId>
                 <version>1.1</version>
                 </dependency>
                 <dependency>
                 <groupId>org.mortbay.jetty</groupId>
                 <artifactId>jsp-api-2.1</artifactId>
                 <version>6.1.9</version>
                 <scope>test</scope>
                 </dependency>
                 <dependency>
                 <groupId>com.sun.el</groupId>
                 <artifactId>el-ri</artifactId>
                 <version>1.0</version>
                 </dependency>
                 <dependency>
                 <groupId>mysql</groupId>
                 <artifactId>mysql-connector-java</artifactId>
                 <version>5.1.6</version>
                 </dependency>
                 <dependency>
                 <groupId>org.hibernate</groupId>
                 <artifactId>hibernate-ehcache</artifactId>
                 <version>3.3.1.GA</version>
                 </dependency>
                 <dependency>
                 <groupId>commons-fileupload</groupId>
                 <artifactId>commons-fileupload</artifactId>
                 <version>1.0</version>
                 </dependency>
                 </dependencies>
                 <build>
                 <finalName>gateway</finalName>
                 <plugins>
                 <plugin>
                 <groupId>org.apache.cxf</groupId>
                 <artifactId>cxf-codegen-plugin</artifactId>
                 <version>2.1.3</version>
                 <executions>
                 <execution>
                 <id>generate-sources-sstp</id>
                 <phase>generate-sources</phase>
                 <configuration>
                 <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot>
                 <wsdlOptions>
                 <wsdlOption>
                 <wsdl>${basedir}/src/main/wsdl/EFileServiceSoap.wsdl</wsdl>
                 </wsdlOption>
                 </wsdlOptions>
                 </configuration>
                 <goals>
                 <goal>wsdl2java</goal>
                 </goals>
                 </execution>
                 <execution>
                 <id>generate-sources-sql</id>
                 <phase>generate-sources</phase>
                 <configuration>
                 <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot>
                 <wsdlOptions>
                 <wsdlOption>
                 <wsdl>${basedir}/src/main/wsdl/SQLServiceSoap.wsdl</wsdl>
                 </wsdlOption>
                 </wsdlOptions>
                 </configuration>
                 <goals>
                 <goal>wsdl2java</goal>
                 </goals>
                 </execution>
                 <execution>
                 <id>generate-sources-send-trans</id>
                 <phase>generate-sources</phase>
                 <configuration>
                 <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot>
                 <wsdlOptions>
                 <wsdlOption>
                 <wsdl>${basedir}/src/main/wsdl/SendTransmitters.wsdl</wsdl>
                 </wsdlOption>
                 </wsdlOptions>
                 </configuration>
                 <goals>
                 <goal>wsdl2java</goal>
                 </goals>
                 </execution>
                 <execution>
                 <id>generate-sources-status</id>
                 <phase>generate-sources</phase>
                 <configuration>
                 <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot>
                 <wsdlOptions>
                 <wsdlOption>
                 <wsdl>${basedir}/src/main/wsdl/GatewayStatus.wsdl</wsdl>
                 </wsdlOption>
                 </wsdlOptions>
                 </configuration>
                 <goals>
                 <goal>wsdl2java</goal>
                 </goals>
                 </execution>
                 </executions>
                 </plugin>
                 <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>xmlbeans-maven-plugin</artifactId>
                 <executions>
                 <execution>
                 <goals>
                 <goal>xmlbeans</goal>
                 </goals>
                 </execution>
                 </executions>
                 <inherited>true</inherited>
                 <configuration>
                 <schemaDirectory>${basedir}/src/main/xsd</schemaDirectory>
                 </configuration>
                 </plugin>
                 <plugin>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <configuration>
                 <source>1.5</source>
                 <target>1.5</target>
                 </configuration>
                 </plugin>
                 <plugin>
                 <artifactId>maven-surefire-plugin</artifactId>
                 <configuration>
                 <skipExec>true</skipExec>
                 </configuration>
                 <executions>
                 <execution>
                 <phase>integration-test</phase>
                 <goals>
                 <goal>test</goal>
                 </goals>
                 <configuration>
                <!--
                 <skipExec>${maven.test.skip.exec}</skipExec>
                -->
                 <skipExec>true</skipExec>
                 <argLine>-Xms96m -Xmx384m</argLine>
                 </configuration>
                 </execution>
                 </executions>
                 </plugin>
                 </plugins>
                


                • 5. Re: GlassfishConfigureListener NoSuchMethodError
                  peterj

                  Thanks for including the pom.xml - I copied your dependencies to one of my poms, ran mvn, and then scanned the downloaded JARs for glassfish classes. I did find some - in the spring-context-*.jar files. But neither one was the GlassFishConfigureListener.

                  But none of those dependencies obtained JAR files that contained the net.sourceforge.gateway.sstp package. And I also see this in the web.xml:

                  <context-param>
                   <param-name>contextConfigLocation</param-name>
                   <param-value>
                   classpath:net/sourceforge/gateway/sstp/webservices/services.xml
                   </param-value>
                   </context-param>


                  So where is the JAR file that contains this package, and what is in the services.xml file?


                  • 6. Re: GlassfishConfigureListener NoSuchMethodError
                    jadin

                    GlassFishConfigureListener is in jsf-impl-1.2-b19.jar...

                    services.xml

                    <beans xmlns="http://www.springframework.org/schema/beans"
                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                     xmlns:jaxws="http://cxf.apache.org/jaxws"
                     xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
                    
                     <import resource="classpath:META-INF/cxf/cxf.xml"/>
                     <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
                     <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
                    
                     <jaxws:endpoint id="EFileServiceSoap" implementor="net.sourceforge.gateway.sstp.webservices.EFileServiceSoap" address="/EFileServiceSoap">
                     <jaxws:inInterceptors>
                     <bean class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor"/>
                     <bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
                     <constructor-arg>
                     <map>
                     <entry key="action" value="UsernameToken"/>
                     <entry key="passwordType" value="PasswordText"/>
                     <entry key="passwordCallbackRef">
                     <bean class="net.sourceforge.gateway.sstp.authentication.EFileCallbackHandler"/>
                     </entry>
                     </map>
                     </constructor-arg>
                     </bean>
                     </jaxws:inInterceptors>
                     </jaxws:endpoint>
                    
                     <jaxws:endpoint id="SendTransmitters" implementor="net.sourceforge.gateway.sstp.webservices.SendTransmitters" address="/SendTransmitters">
                     <jaxws:inInterceptors>
                     <bean class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor"/>
                     <bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
                     <constructor-arg>
                     <map>
                     <entry key="action" value="UsernameToken"/>
                     <entry key="passwordType" value="PasswordText"/>
                     <entry key="passwordCallbackRef">
                     <bean class="net.sourceforge.gateway.sstp.authentication.SendTransmittersCallbackHandler"/>
                     </entry>
                     </map>
                     </constructor-arg>
                     </bean>
                     </jaxws:inInterceptors>
                     </jaxws:endpoint>
                    
                     <jaxws:endpoint id="GatewayStatus" implementor="net.sourceforge.gateway.sstp.webservices.GatewayStatus" address="/StatusRequest">
                     <jaxws:inInterceptors>
                     <bean class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor"/>
                     <bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
                     <constructor-arg>
                     <map>
                     <entry key="action" value="UsernameToken"/>
                     <entry key="passwordType" value="PasswordText"/>
                     <entry key="passwordCallbackRef">
                     <bean class="net.sourceforge.gateway.sstp.authentication.GatewayStatusCallbackHandler"/>
                     </entry>
                     </map>
                     </constructor-arg>
                     </bean>
                     </jaxws:inInterceptors>
                     </jaxws:endpoint>
                    
                     <jaxws:endpoint id="SQLServiceSoap" implementor="net.sourceforge.gateway.sstp.webservices.SQLServiceSoap" address="/SQLServiceSoap">
                     <jaxws:inInterceptors>
                     <bean class="org.apache.cxf.binding.soap.saaj.SAAJInInterceptor"/>
                     <bean class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
                     <constructor-arg>
                     <map>
                     <entry key="action" value="UsernameToken"/>
                     <entry key="passwordType" value="PasswordText"/>
                     <entry key="passwordCallbackRef">
                     <bean class="net.sourceforge.gateway.sstp.authentication.SQLServiceCallbackHandler"/>
                     </entry>
                     </map>
                     </constructor-arg>
                     </bean>
                     </jaxws:inInterceptors>
                     </jaxws:endpoint>
                    </beans>
                    


                    • 7. Re: GlassfishConfigureListener NoSuchMethodError
                      peterj

                      I guess it would help if I used the proper search string when looking for classes.

                      The missing method, scanWebXml, is actually in the base class ConfigureListener in the package in the same JAR file. And the server/xxx/deploy/jboss-web.deployer/jsf-libs/jsf-impl.jar file contains the ConfigureListener class, and guess what method it is missing? Anyway, make sure that you do not include the jsf-impl-xxx.jar, or jsf-api-xxx.jar in your web app. (And alternative might be to replace those files in the jsf-libs directory with yours...)

                      • 8. Re: GlassfishConfigureListener NoSuchMethodError
                        jadin

                        Yeah removing the jars from the webapp gives the same error (odd I know) when I start the jboss server. Maybe I will try to replace the default jars in jboss with the ones the web app uses.

                        • 9. Re: GlassfishConfigureListener NoSuchMethodError
                          jadin

                          ok swapping jars makes it very angry, lots of classnotfound errors.

                          • 10. Re: GlassfishConfigureListener NoSuchMethodError
                            jadin

                            Ok I found the solution to this. Thank you for your help. I took all references out of my web app to jsf-impl-xxx.jar and jsf-api-xxx.jar. I then just downloaded the jar files off the web and placed them into the \server\default\deploy\jboss-web.deployer\jsf-libs directory alongside the jsf-api.jar and jsf-impl.jar. It works fine now.

                            • 11. Re: GlassfishConfigureListener NoSuchMethodError
                              peterj

                              I'll assume you restored the jsf-lib files. So try this. Add "-verbose:class" to the JAVA_OPTS in the run.bat file (I assume you are using windows based on the '\' you used in the path). You will need to redirect stdout/stderr to a file. This option causes the JVM to print out each class laoded and the JAR it came from. Search the output for both the GlassFishConfigureListener and the ConfigureListener. The ConfigureListener class should come from the jsf-libs directory. The JAR the GlassFishConfigureListener came from is the JAR you want to get rid of.