-
1. Re: META-INF/seam.properties searching problem
sunls Mar 19, 2012 4:40 AM (in response to sunls)About this problem , I debuged it. The code that in org.jboss.modules.Module.java is executed.
log.trace("Attempting to find all resources %s in %s", canonPath, this);
final String path = pathOf(canonPath);
final Map<String, List<LocalLoader>> paths = getPathsUnchecked(exportsOnly);
final List<LocalLoader> loaders = paths.get(path);
META-INF/seam.properties is searched, "path" variable's value is "META-INF".
There are only application's module class loaders in "loaders" list, liking:
local loader for ModuleClassLoader for Module "deployment.XXXX.ear.XXXX.war:main" from Service Module Loader
local loader for ModuleClassLoader for Module "deployment.XXXX.ear:main" from Service Module Loader
local loader for ModuleClassLoader for Module "deployment.XXXX.ear.YYYY.jar:main" from Service Module Loader
local loader for ModuleClassLoader for Module "deployment.XXXX.ear.jboss-seam.jar:main" from Service Module Loader
Other module class loader are not exist.So, must jar files that include META-INF/seam.properties be place in inside of application?
-
2. Re: META-INF/seam.properties searching problem
sunls Apr 9, 2012 6:08 AM (in response to sunls)In jboss-deployment-structure.xml file, add "META-INF"'s setting, this problem is resolved.
META-INF/seam.properties can be searched, but the flowwing error occured.Liking https://community.jboss.org/thread/196955
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]
-
3. Re: META-INF/seam.properties searching problem
claque Aug 1, 2012 4:06 AM (in response to sunls)Hello s ls,
I'm having a similar problem.
What do you mean by this:
s ls wrote:
In jboss-deployment-structure.xml file, add "META-INF"'s setting, this problem is resolved.
How did you add the META-INF in the jboss deployment structure? Did you define the module inside and did an include of this folder?
Thanks