JBoss Community

Re: Running Seam 2 archives on Jboss 7

created by Matt Drees in JBoss AS7 Development - View the full discussion

Hi Ales,

 

Sorry, it doesn't seem to work.  This is what I get when deploying my app to your AS7 version  (after working around another unrelated problem):

 

 

15:21:15,168 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/ccp]] (MSC service thread 1-4) Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener: java.lang.IllegalArgumentException: Null path
    at org.jboss.vfs.VFS.getChild(VFS.java:207) [jboss-vfs-3.0.0.GA.jar:3.0.0.GA]
    at org.jboss.vfs.VFS.getChild(VFS.java:193) [jboss-vfs-3.0.0.GA.jar:3.0.0.GA]
    at org.jboss.vfs.VFS.getChild(VFS.java:174) [jboss-vfs-3.0.0.GA.jar:3.0.0.GA]
    at org.jboss.seam.integration.jbossas.vfs.VFSScanner.getRoot(VFSScanner.java:64) [jboss-seam-int.jar:6.0.0.GA]
    at org.jboss.seam.integration.jbossas.vfs.VFSScanner.scanResources(VFSScanner.java:151) [jboss-seam-int.jar:6.0.0.GA]
    at org.jboss.seam.deployment.StandardDeploymentStrategy.scan(StandardDeploymentStrategy.java:119) [jboss-seam-2.2.2.Final.seam2jsf2-no-timer-service-dispatcher.jar:6.0.0.GA]
    at org.jboss.seam.init.Initialization.create(Initialization.java:130) [jboss-seam-2.2.2.Final.seam2jsf2-no-timer-service-dispatcher.jar:6.0.0.GA]
    at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36) [jboss-seam-2.2.2.Final.seam2jsf2-no-timer-service-dispatcher.jar:6.0.0.GA]
    at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3368) [jbossweb-7.0.0.CR2.jar:7.0.0.Beta4-SNAPSHOT]
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:3817) [jbossweb-7.0.0.CR2.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]

 

 

The URL that VFS is choking on is

 

jar:file:/Users/mattdrees/Scratch/as7-seam-fix/modules/org/jboss/integration/ext-content/main/bundled/jboss-seam-int.jar!/seam.properties

 

This java.net.URL, when converted to a java.net.URI, returns null for getPath().

 

This seems strange, because the URL object's 'path' field is clearly non-null (as I can see in the debugger).  However the URI returned by URL.toURI() has a null 'path' field.

 

So I can't tell if this is a VFS bug or a jboss-seam-int-jbossas bug.  If it's not a VFS bug, at the very least I think the error message could be nicer.

 

 

Also, it may be helpful to know that the jboss-seam-int jar is the only "jar:file:" url; the other urls returned by the classloader in scanResources() are "vfs:" urls.

Reply to this message by going to Community

Start a new discussion in JBoss AS7 Development at Community