I deployed a seam2's application in JBoss AS 7.1.0.Final. Exception "llegalArgumentException: Null path " occured.
java.lang.IllegalArgumentException: Null path
at org.jboss.vfs.VFS.getChild(VFS.java:187) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.vfs.VFS.getChild(VFS.java:173) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.vfs.VFS.getChild(VFS.java:154) [jboss-vfs-3.1.0.Final.jar:3.1.0.Final]
at org.jboss.seam.integration.jbossas.vfs.VFSScanner.getRoot(VFSScanner.java:36) [jboss-seam-int.jar:6.0.0.GA]
at org.jboss.seam.integration.jbossas.vfs.VFSScanner.scanResources(VFSScanner.java:114) [jboss-seam-int.jar:6.0.0.GA
I made a module my.service. The module have a resource my_services.jar. In my_services.jar's root path, there is a seam.properties file.
So seam search seam.properties, my_services.jar is found. But, url is like:
jar:file:/D:/opt/jboss-as-7.1.0.Final/modules/my/service/main/my_services.jar!/seam.properties
In VFS.getChild method, url.toURI().getPath() is null. "llegalArgumentException: Null path " occured. Why getPath() method's return null?
In JarFileResourceLoader#getJarURI method , file's URI is created by "new URI("jar", b.toString(), null)".
The value of b.toString() is liking "file:/D:/opt/jboss-as-7.1.0.Final/modules/my/service/main/my_services.jar!/seam.properties".
But the getPath() of URI that is created is null. So VFS.getChild method, url.toURI().getPath() is null. "Null path" exception occured.
Is this a bug? Is there any approach to avoid the error?
What version of seam?
did you try with AS7.1.1 as it has few fixes addressing this.