Matt Drees [
http://community.jboss.org/people/matt.drees] created the discussion
"Running Seam 2 archives on Jboss 7"
To view the discussion, visit:
http://community.jboss.org/message/608573#608573
--------------------------------------------------------------
Hi all,
My app is a Seam 2 war. I've found I can deploy it to AS7 successfully as an exploded
directory, but not as a war archive. When I try to deploy as an archive, I get a
stacktrace like this:
15:31:21,837 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/ccp]]
(MSC service thread 1-3) Exception sending context
initialized event to listener instance of class org.jboss.seam.servlet.SeamListener:
java.lang.RuntimeException: Error handling file
/content/ccp.war/WEB-INF/lib/jboss-seam-ui-2.2.2.Final.seam2jsf2.jar
at org.jboss.seam.deployment.URLScanner.handleArchiveByFile(URLScanner.java:134)
[jboss-seam-2.2.2.Final.seam2jsf2-no-timer-service-dispatcher.jar:]
at org.jboss.seam.deployment.URLScanner.handle(URLScanner.java:107)
[jboss-seam-2.2.2.Final.seam2jsf2-no-timer-service-dispatcher.jar:]
at org.jboss.seam.deployment.URLScanner.scanResources(URLScanner.java:90)
[jboss-seam-2.2.2.Final.seam2jsf2-no-timer-service-dispatcher.jar:]
at
org.jboss.seam.deployment.StandardDeploymentStrategy.scan(StandardDeploymentStrategy.java:119)
[jboss-seam-2.2.2.Final.seam2jsf2-no-timer-service-dispatcher.jar:]
at org.jboss.seam.init.Initialization.create(Initialization.java:130)
[jboss-seam-2.2.2.Final.seam2jsf2-no-timer-service-dispatcher.jar:]
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
[jboss-seam-2.2.2.Final.seam2jsf2-no-timer-service-dispatcher.jar:]
at
org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3368)
[jbossweb-7.0.0.CR1.jar:7.0.0.Beta4-SNAPSHOT]
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3817)
[jbossweb-7.0.0.CR1.jar:7.0.0.Beta4-SNAPSHOT]
at
org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70)
[jboss-as-web-7.0.0.Beta4-SNAPSHOT.jar:7.0.0.Beta4-SNAPSHOT]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1675)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_24]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_24]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_24]
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method) [:1.6.0_24]
at java.util.zip.ZipFile.<init>(ZipFile.java:127) [:1.6.0_24]
at java.util.zip.ZipFile.<init>(ZipFile.java:144) [:1.6.0_24]
at org.jboss.seam.deployment.URLScanner.handleArchiveByFile(URLScanner.java:123)
[jboss-seam-2.2.2.Final.seam2jsf2-no-timer-service-dispatcher.jar:]
... 12 more
The stacktrace doesn't show it, but the URLScanner is trying to handle this URL:
vfs:/content/ccp.war/WEB-INF/lib/jboss-seam-ui-2.2.2.Final.seam2jsf2.jar/META-INF/components.xml
URLScanner is trying to treat this as if it's a file url, and of course ZipFile.open()
can't find this file on the real filesystem.
I believe Jboss AS 5 and 6 had a
http://anonsvn.jboss.org/repos/jbossas/projects/jboss-seam-int/tags/6.0.0...
special Scanner implementation to enable Seam to read archive deployments.
Is a similar scanner planned for AS 7?
Thanks!
-Matt
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/608573#608573]
Start a new discussion in JBoss AS7 Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]