3 Replies Latest reply on Oct 23, 2012 7:32 AM by Stan Silvert

    JBoss AS 7.x with Spring 3.1 and Richfaces 4.2.1 showing ZipException error

    Mashrur Syed Newbie

      Hi,

      I am using JBoss 7.2 alpha [a download from nightly build]. My app is using spring 3.1, spring security, and for JSF 2 components it is using Richfaces [4.2.1 final]. At first I was trying with JBoss 7.1 which is available from community site. And it was giving me a pain [please check https://community.jboss.org/message/764217#764217 , if you are intereseted why I chose to try with the nightly build].

      Anyway, now I am stack with a different problem. I am not sure whether the problem is with spring security or richfaces. I am stack with this for a long time, any light or alternative suggestions will be highly appreciated.

       

      08:34:17,925 INFO  [org.jboss.modules] (main) JBoss Modules version 1.1.3.GA

      08:34:21,020 INFO  [org.jboss.msc] (main) JBoss MSC version 1.0.2.GA

      08:34:21,529 INFO  [org.jboss.as] (MSC service thread 1-6) JBAS015899: JBoss AS 7.2.0.Alpha1-SNAPSHOT "Steropes" starting

      08:34:30,711 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found com.misl.treasury.ui.war in deployment directory. To trigger deployment create a file called com.misl.treasury.ui.war.dodeploy

      08:34:30,939 INFO  [org.xnio] (MSC service thread 1-6) XNIO Version 3.0.7.GA

      08:34:30,987 INFO  [org.xnio.nio] (MSC service thread 1-6) XNIO NIO Implementation Version 3.0.7.GA

      08:34:31,028 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)

      08:34:31,038 INFO  [org.jboss.remoting] (MSC service thread 1-6) JBoss Remoting version 3.2.11.GA

      08:34:31,443 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 46) JBAS013171: Activating Security Subsystem

      08:34:31,443 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 27) JBAS016200: Activating ConfigAdmin Subsystem

      08:34:31,485 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 32) JBAS010280: Activating Infinispan subsystem.

      08:34:31,521 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 50) JBAS015537: Activating WebServices Extension

      08:34:31,538 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 40) JBAS011800: Activating Naming Subsystem

      08:34:32,071 INFO  [org.jboss.as.security] (MSC service thread 1-6) JBAS013170: Current PicketBox version=4.0.13.Final

      08:34:32,081 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 41) JBAS011906: Activating OSGi Subsystem

      08:34:33,120 INFO  [org.jboss.as.connector.logging] (MSC service thread 1-5) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.12.Final)

      08:34:34,641 INFO  [org.jboss.as.naming] (MSC service thread 1-7) JBAS011802: Starting Naming Service

      08:34:34,647 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-7) JBAS015400: Bound mail session [java:jboss/mail/Default]

      08:34:35,935 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 28) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

      08:34:36,460 INFO  [org.apache.catalina.connector] (MSC service thread 1-8) JBWEB001141: NIO 2 is not available, the java.io connector will be used insteaf

      08:34:37,084 INFO  [org.jboss.ws.common.management] (MSC service thread 1-2) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.1.0.CR1

      08:34:37,281 INFO  [org.apache.coyote.http11] (MSC service thread 1-8) JBWEB003001: Coyote HTTP/1.1 initializing on : http-localhost/127.0.0.1:8080

      08:34:37,351 INFO  [org.apache.coyote.http11] (MSC service thread 1-8) JBWEB003000: Coyote HTTP/1.1 starting on: http-localhost/127.0.0.1:8080

      08:34:38,943 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

      08:34:39,479 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-1) JBAS015012: Started FileSystemDeploymentService for directory D:\jboss-as-7.x\jboss-as-7.2.0.Alpha1-SNAPSHOT\standalone\deployments

      08:34:39,541 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "com.misl.treasury.ui.war"

      08:34:39,578 INFO  [org.jboss.as.remoting] (MSC service thread 1-7) JBAS017100: Listening on 127.0.0.1:9999

      08:34:39,579 INFO  [org.jboss.as.remoting] (MSC service thread 1-5) JBAS017100: Listening on 127.0.0.1:4447

      08:34:51,561 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Tomcat6InjectionProvider:org.apache.catalina.util.DefaultAnnotationProcessor' for service type 'com.sun.faces.spi.injectionprovider'

      08:34:51,561 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Jetty6InjectionProvider:org.mortbay.jetty.plus.annotation.InjectionCollection' for service type 'com.sun.faces.spi.injectionprovider'

      08:34:53,964 WARN  [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016012: Deployment deployment "com.misl.treasury.ui.war" contains CDI annotations but beans.xml was not found.

      08:34:54,375 INFO  [org.jboss.web] (MSC service thread 1-5) JBAS018210: Register web context: /com.misl.treasury.ui

      08:34:54,408 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/com.misl.treasury.ui]] (MSC service thread 1-5) No Spring WebApplicationInitializer types detected on classpath

      08:34:54,527 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/com.misl.treasury.ui]] (MSC service thread 1-5) Initializing Spring root WebApplicationContext

      08:34:54,529 INFO  [org.springframework.web.context.ContextLoader] (MSC service thread 1-5) Root WebApplicationContext: initialization started

      08:34:54,621 INFO  [org.springframework.web.context.support.XmlWebApplicationContext] (MSC service thread 1-5) Refreshing Root WebApplicationContext: startup date [Mon Oct 22 08:34:54 ALMT 2012]; root of context hierarchy

      08:34:54,741 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-5) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1b41650: defining beans []; root of factory hierarchy

      08:34:54,745 INFO  [org.springframework.web.context.ContextLoader] (MSC service thread 1-5) Root WebApplicationContext: initialization completed in 216 ms

      08:34:54,818 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-5) Initializing Mojarra 2.0.9 (SNAPSHOT 20120202) for context '/com.misl.treasury.ui'

      08:35:00,120 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-5) Unable to process annotations for url, vfs:/D:/jboss-as-7.x/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/com.misl.treasury.ui.war/WEB-INF/lib/richfaces-core-impl-4.2.1.Final.jar/META-INF/faces-config.xml.  Reason: java.util.zip.ZipException: error in opening zip file

      08:35:00,120 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-5) : java.util.zip.ZipException: error in opening zip file

                at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.6.0_23]

                at java.util.zip.ZipFile.<init>(ZipFile.java:127) [rt.jar:1.6.0_23]

                at java.util.jar.JarFile.<init>(JarFile.java:135) [rt.jar:1.6.0_23]

                at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:67) [rt.jar:1.6.0_23]

                at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:214) [rt.jar:1.6.0_23]

                at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_23]

                at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:198) [rt.jar:1.6.0_23]

                at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:50) [rt.jar:1.6.0_23]

                at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:80) [rt.jar:1.6.0_23]

                at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104) [rt.jar:1.6.0_23]

                at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:71) [rt.jar:1.6.0_23]

                at com.sun.faces.config.AnnotationScanner.processClasspath(AnnotationScanner.java:302) [jsf-impl-2.0.9.jar:2.0.9-SNAPSHOT]

                at com.sun.faces.config.AnnotationScanner.getAnnotatedClasses(AnnotationScanner.java:221) [jsf-impl-2.0.9.jar:2.0.9-SNAPSHOT]

                at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:768) [jsf-impl-2.0.9.jar:2.0.9-SNAPSHOT]

                at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:739) [jsf-impl-2.0.9.jar:2.0.9-SNAPSHOT]

                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_23]

                at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_23]

                at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:332) [jsf-impl-2.0.9.jar:2.0.9-SNAPSHOT]

                at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:226) [jsf-impl-2.0.9.jar:2.0.9-SNAPSHOT]

                at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3331) [jbossweb-7.2.0.Alpha2.jar:7.2.0.Alpha2]

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3769) [jbossweb-7.2.0.Alpha2.jar:7.2.0.Alpha2]

                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:102) [jboss-as-web-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_23]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_23]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_23]

       

       

      08:35:00,126 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-5) Unable to process annotations for url, vfs:/D:/jboss-as-7.x/jboss-as-7.2.0.Alpha1-SNAPSHOT/standalone/deployments/com.misl.treasury.ui.war/WEB-INF/lib/richfaces-components-ui-4.2.1.Final.jar/META-INF/faces-config.xml.  Reason: java.util.zip.ZipException: error in opening zip file

      08:35:00,126 SEVERE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-5) : java.util.zip.ZipException: error in opening zip file

                at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.6.0_23]

                at java.util.zip.ZipFile.<init>(ZipFile.java:127) [rt.jar:1.6.0_23]

                at java.util.jar.JarFile.<init>(JarFile.java:135) [rt.jar:1.6.0_23]

                at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:67) [rt.jar:1.6.0_23]

                at sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:214) [rt.jar:1.6.0_23]

                at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.6.0_23]

                at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:198) [rt.jar:1.6.0_23]

                at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:50) [rt.jar:1.6.0_23]

                at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:80) [rt.jar:1.6.0_23]

                at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104) [rt.jar:1.6.0_23]

                at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:71) [rt.jar:1.6.0_23]

                at com.sun.faces.config.AnnotationScanner.processClasspath(AnnotationScanner.java:302) [jsf-impl-2.0.9.jar:2.0.9-SNAPSHOT]

                at com.sun.faces.config.AnnotationScanner.getAnnotatedClasses(AnnotationScanner.java:221) [jsf-impl-2.0.9.jar:2.0.9-SNAPSHOT]

                at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:768) [jsf-impl-2.0.9.jar:2.0.9-SNAPSHOT]

                at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:739) [jsf-impl-2.0.9.jar:2.0.9-SNAPSHOT]

                at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_23]

                at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_23]

                at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:332) [jsf-impl-2.0.9.jar:2.0.9-SNAPSHOT]

                at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:226) [jsf-impl-2.0.9.jar:2.0.9-SNAPSHOT]

                at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3331) [jbossweb-7.2.0.Alpha2.jar:7.2.0.Alpha2]

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3769) [jbossweb-7.2.0.Alpha2.jar:7.2.0.Alpha2]

                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:102) [jboss-as-web-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_23]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_23]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_23]

       

       

      08:35:00,323 INFO  [javax.enterprise.resource.webcontainer.jsf.application] (MSC service thread 1-5) JSF1048: PostConstruct/PreDestroy annotations present.  ManagedBeans methods marked with these annotations will have said annotations processed.

      08:35:00,575 INFO  [org.hibernate.validator.util.Version] (MSC service thread 1-5) Hibernate Validator 4.1.0.Final

      08:35:00,587 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] (MSC service thread 1-5) Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.

      08:35:02,794 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] (MSC service thread 1-5) Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.

      08:35:03,591 INFO  [org.richfaces.log.Cache] (MSC service thread 1-5) Selected fallback cache factory

      08:35:03,595 INFO  [org.richfaces.log.Cache] (MSC service thread 1-5) Creating LRUMap cache instance using parameters: {connectionString=jdbc:oracle:thin:treasury/treasury@192.168.1.63:1521:XE, org.richfaces.skin=emeraldTown, javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE=true, com.sun.faces.enableMissingResourceLibraryDetection=true, javax.servlet.jsp.jstl.fmt.localizationContext=resources.application, org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL=true, contextConfigLocation=classpath:**/applicationContext.xml

                           classpath:**/securityContext.xml, javax.faces.STATE_SAVING_METHOD=server, javax.faces.DEFAULT_SUFFIX=*.xhtml}

      08:35:03,635 INFO  [org.richfaces.log.Cache] (MSC service thread 1-5) Creating LRUMap cache instance of 512 items capacity

      08:35:03,653 INFO  [org.richfaces.log.Application] (MSC service thread 1-5) RichFaces Core Implementation by JBoss by Red Hat, version v.4.2.1.Final

      08:35:04,229 WARNING [org.richfaces.log.Application] (MSC service thread 1-5) JMS API was found on the classpath; if you want to enable RichFaces Push JMS integration, set context-param 'org.richfaces.push.jms.enabled' in web.xml

      08:35:04,384 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/com.misl.treasury.ui]] (MSC service thread 1-5) JBWEB000284: Exception starting filter springSecurityFilterChain: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilterChain' is defined

                at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:529) [spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1095) [spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:277) [spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) [spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1097) [spring-context-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                at org.springframework.web.filter.DelegatingFilterProxy.initDelegate(DelegatingFilterProxy.java:326) [spring-web-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                at org.springframework.web.filter.DelegatingFilterProxy.initFilterBean(DelegatingFilterProxy.java:236) [spring-web-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                at org.springframework.web.filter.GenericFilterBean.init(GenericFilterBean.java:194) [spring-web-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:416) [jbossweb-7.2.0.Alpha2.jar:7.2.0.Alpha2]

                at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3224) [jbossweb-7.2.0.Alpha2.jar:7.2.0.Alpha2]

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3783) [jbossweb-7.2.0.Alpha2.jar:7.2.0.Alpha2]

                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:102) [jboss-as-web-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_23]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_23]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_23]

       

       

      08:35:04,390 ERROR [org.apache.catalina.core] (MSC service thread 1-5) JBWEB001103: Error detected during context /com.misl.treasury.ui start, will stop it

      08:35:04,394 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/com.misl.treasury.ui]] (MSC service thread 1-5) Closing Spring root WebApplicationContext

      08:35:04,394 INFO  [org.springframework.web.context.support.XmlWebApplicationContext] (MSC service thread 1-5) Closing Root WebApplicationContext: startup date [Mon Oct 22 08:34:54 ALMT 2012]; root of context hierarchy

      08:35:04,395 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-5) Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1b41650: defining beans []; root of factory hierarchy

      08:35:04,407 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.web.deployment.default-host."/com.misl.treasury.ui": org.jboss.msc.service.StartException in service jboss.web.deployment.default-host."/com.misl.treasury.ui": JBAS018040: Failed to start context

                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:107)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_23]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_23]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_23]

       

       

      08:35:04,647 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 29) JBAS018559: Deployed "com.misl.treasury.ui.war"

      08:35:04,654 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report

      JBAS014777:   Services which failed to start:      service jboss.web.deployment.default-host."/com.misl.treasury.ui": org.jboss.msc.service.StartException in service jboss.web.deployment.default-host."/com.misl.treasury.ui": JBAS018040: Failed to start context

       

       

      08:35:04,885 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management

      08:35:04,886 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990

      08:35:04,886 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss AS 7.2.0.Alpha1-SNAPSHOT "Steropes" started (with errors) in 50462ms - Started 556 of 642 services (2 services failed or missing dependencies, 83 services are passive or on-demand)

       

        • 1. Re: JBoss AS 7.x with Spring 3.1 and Richfaces 4.2.1 showing ZipException error
          Stan Silvert Master

          I see you are using Mojarra 2.0.9.  I assume you are bundling JSF with your war?  Right now you can't bundle Mojarra with your war, even if you use WAR_BUNDLES_JSF_IMPL.  WAR_BUNDLES_JSF_IMPL only works with MyFaces.

           

          However, all of this will be fixed soon.  Very soon I'll be introducing the multi-JSF feature that lets you use virtually any JSF impl or version.

          Design of AS7 multi-JSF feature

           

          Stan

          • 2. Re: JBoss AS 7.x with Spring 3.1 and Richfaces 4.2.1 showing ZipException error
            Mashrur Syed Newbie

            Thanks Stan. Your solution did remove the zip exception error [changed from mojarra to myfaces implementation]. But, I still have spring security error.

             

            Exception starting filter springSecurityFilterChain: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilterChain' is defined

             

            Any suggestion on this?

             

            Full stack trace >

             

             

            14:29:17,433 INFO  [org.jboss.modules] (main) JBoss Modules version 1.1.3.GA

            14:29:17,745 INFO  [org.jboss.msc] (main) JBoss MSC version 1.0.2.GA

            14:29:17,869 INFO  [org.jboss.as] (MSC service thread 1-7) JBAS015899: JBoss AS 7.2.0.Alpha1-SNAPSHOT "Steropes" starting

            14:29:26,151 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found com.misl.treasury.ui.war in deployment directory. To trigger deployment create a file called com.misl.treasury.ui.war.dodeploy

            14:29:26,364 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)

            14:29:26,390 INFO  [org.xnio] (MSC service thread 1-1) XNIO Version 3.0.7.GA

            14:29:26,530 INFO  [org.xnio.nio] (MSC service thread 1-1) XNIO NIO Implementation Version 3.0.7.GA

            14:29:26,643 INFO  [org.jboss.remoting] (MSC service thread 1-1) JBoss Remoting version 3.2.11.GA

            14:29:26,756 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 46) JBAS013171: Activating Security Subsystem

            14:29:26,783 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 27) JBAS016200: Activating ConfigAdmin Subsystem

            14:29:26,794 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 40) JBAS011800: Activating Naming Subsystem

            14:29:27,013 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 50) JBAS015537: Activating WebServices Extension

            14:29:27,028 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 41) JBAS011906: Activating OSGi Subsystem

            14:29:27,189 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 32) JBAS010280: Activating Infinispan subsystem.

            14:29:28,035 INFO  [org.jboss.as.security] (MSC service thread 1-8) JBAS013170: Current PicketBox version=4.0.13.Final

            14:29:28,224 INFO  [org.jboss.as.connector.logging] (MSC service thread 1-4) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.12.Final)

            14:29:28,670 INFO  [org.jboss.as.naming] (MSC service thread 1-4) JBAS011802: Starting Naming Service

            14:29:28,946 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-4) JBAS015400: Bound mail session [java:jboss/mail/Default]

            14:29:31,096 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 28) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

            14:29:33,062 INFO  [org.apache.catalina.connector] (MSC service thread 1-2) JBWEB001141: NIO 2 is not available, the java.io connector will be used insteaf

            14:29:33,690 INFO  [org.apache.coyote.http11] (MSC service thread 1-2) JBWEB003001: Coyote HTTP/1.1 initializing on : http-localhost/127.0.0.1:8080

            14:29:33,722 INFO  [org.apache.coyote.http11] (MSC service thread 1-2) JBWEB003000: Coyote HTTP/1.1 starting on: http-localhost/127.0.0.1:8080

            14:29:34,088 INFO  [org.jboss.ws.common.management] (MSC service thread 1-6) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.1.0.CR1

            14:29:41,044 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-6) JBAS015012: Started FileSystemDeploymentService for directory D:\jboss-as-7.x\jboss-as-7.2.0.Alpha1-SNAPSHOT\standalone\deployments

            14:29:41,098 INFO  [org.jboss.as.remoting] (MSC service thread 1-8) JBAS017100: Listening on 127.0.0.1:4447

            14:29:41,100 INFO  [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on 127.0.0.1:9999

            14:29:41,108 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "com.misl.treasury.ui.war"

            14:29:42,160 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

            14:29:53,758 WARN  [org.jboss.weld.deployer] (MSC service thread 1-4) JBAS016012: Deployment deployment "com.misl.treasury.ui.war" contains CDI annotations but beans.xml was not found.

            14:29:54,044 INFO  [org.jboss.web] (MSC service thread 1-3) JBAS018210: Register web context: /com.misl.treasury.ui

            14:29:54,090 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/com.misl.treasury.ui]] (MSC service thread 1-3) No Spring WebApplicationInitializer types detected on classpath

            14:29:54,189 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/com.misl.treasury.ui]] (MSC service thread 1-3) Initializing Spring root WebApplicationContext

            14:29:54,193 INFO  [org.springframework.web.context.ContextLoader] (MSC service thread 1-3) Root WebApplicationContext: initialization started

            14:29:54,318 INFO  [org.springframework.web.context.support.XmlWebApplicationContext] (MSC service thread 1-3) Refreshing Root WebApplicationContext: startup date [Tue Oct 23 14:29:54 ALMT 2012]; root of context hierarchy

            14:29:54,542 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-3) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@bb6b37: defining beans []; root of factory hierarchy

            14:29:54,545 INFO  [org.springframework.web.context.ContextLoader] (MSC service thread 1-3) Root WebApplicationContext: initialization completed in 352 ms

            14:29:54,631 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/com.misl.treasury.ui]] (MSC service thread 1-3) JBWEB000284: Exception starting filter springSecurityFilterChain: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilterChain' is defined

                      at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:529) [spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                      at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1095) [spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:277) [spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) [spring-beans-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                      at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1097) [spring-context-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                      at org.springframework.web.filter.DelegatingFilterProxy.initDelegate(DelegatingFilterProxy.java:326) [spring-web-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                      at org.springframework.web.filter.DelegatingFilterProxy.initFilterBean(DelegatingFilterProxy.java:236) [spring-web-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                      at org.springframework.web.filter.GenericFilterBean.init(GenericFilterBean.java:194) [spring-web-3.1.0.RELEASE.jar:3.1.0.RELEASE]

                      at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:416) [jbossweb-7.2.0.Alpha2.jar:7.2.0.Alpha2]

                      at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3224) [jbossweb-7.2.0.Alpha2.jar:7.2.0.Alpha2]

                      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3783) [jbossweb-7.2.0.Alpha2.jar:7.2.0.Alpha2]

                      at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:102) [jboss-as-web-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

                      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_23]

                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_23]

                      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_23]

             

             

            14:29:54,657 ERROR [org.apache.catalina.core] (MSC service thread 1-3) JBWEB001103: Error detected during context /com.misl.treasury.ui start, will stop it

            14:29:54,662 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/com.misl.treasury.ui]] (MSC service thread 1-3) Closing Spring root WebApplicationContext

            14:29:54,663 INFO  [org.springframework.web.context.support.XmlWebApplicationContext] (MSC service thread 1-3) Closing Root WebApplicationContext: startup date [Tue Oct 23 14:29:54 ALMT 2012]; root of context hierarchy

            14:29:54,665 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-3) Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@bb6b37: defining beans []; root of factory hierarchy

            14:29:54,699 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.web.deployment.default-host."/com.misl.treasury.ui": org.jboss.msc.service.StartException in service jboss.web.deployment.default-host."/com.misl.treasury.ui": JBAS018040: Failed to start context

                      at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:107)

                      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_23]

                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_23]

                      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_23]

             

             

            14:29:54,926 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 29) JBAS018559: Deployed "com.misl.treasury.ui.war"

            14:29:54,934 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report

            JBAS014777:   Services which failed to start:      service jboss.web.deployment.default-host."/com.misl.treasury.ui": org.jboss.msc.service.StartException in service jboss.web.deployment.default-host."/com.misl.treasury.ui": JBAS018040: Failed to start context

             

             

            14:29:55,228 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management

            14:29:55,229 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990

            14:29:55,229 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss AS 7.2.0.Alpha1-SNAPSHOT "Steropes" started (with errors) in 38731ms - Started 454 of 540 services (2 services failed or missing dependencies, 83 services are passive or on-demand)

             

            • 3. Re: JBoss AS 7.x with Spring 3.1 and Richfaces 4.2.1 showing ZipException error
              Stan Silvert Master

              Mashrur Syed wrote:

               

              Thanks Stan. Your solution did remove the zip exception error [changed from mojarra to myfaces implementation]. But, I still have spring security error.

               

               

               

              Exception starting filter springSecurityFilterChain: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilterChain' is defined

               

              Any suggestion on this?

               

              Sorry.  Spring is not my thing.