[jboss-dev-forums] [JBoss AS7 Development] - Re: SAR cannot specify multiple module dependecies
Matt Drees
do-not-reply at jboss.com
Tue May 24 13:42:14 EDT 2011
Matt Drees [http://community.jboss.org/people/matt.drees] created the discussion
"Re: SAR cannot specify multiple module dependecies"
To view the discussion, visit: http://community.jboss.org/message/606787#606787
--------------------------------------------------------------
Ok, so, after posting that, I dug further and found JarModuleLoader.java, which looks like it's expecting a comma-delimited list of dependencies, not a space-deliminted list. I don't know if this code is actually what pulls out dependency info from SAR deployments (in retrospect, it probably doesn't), but it made me try adding a comma. This got me a little further except that ModuleDependencyProcessor can't handle spaces after commas. So my manifest entry needs to look exactly like this:
Dependencies: org.jboss.common-core,org.apache.log4j
And this doesn't give me an CNFEs. Mission accomplished (for now).
So, can I fix Stuart's syntax on https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7 https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7 ?
Also, can ModuleDependencyProcessor.deploy() be changed to split the dependency entry on "\\s*,\\s" instead of ","? This would make for a nicer manifest entry, IMO.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/606787#606787]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110524/a24acf12/attachment.html
More information about the jboss-dev-forums
mailing list