[jboss-dev-forums] [JBoss AS 7 Development] - Re: URL-Protocol Handler doesn't work
Stephen Kouretas
do-not-reply at jboss.com
Tue Apr 10 12:07:22 EDT 2012
Stephen Kouretas [https://community.jboss.org/people/skoure] created the discussion
"Re: URL-Protocol Handler doesn't work"
To view the discussion, visit: https://community.jboss.org/message/729160#729160
--------------------------------------------------------------
David,
Thanks for your quick reply.
I added the dependency in org.jboss.as.standalone module import list as you suggested, however, I am still receiving a MalformedURLException unknown protocol: smb within my application.
The good news is that I now see the .index files being created without requiring a dependency to jcifs in the .ear Manifest.
Before this change the .index files were only created if the .ear had a dependency on jcifs, and I can see that the list of modules in the ModularURLStreamHandlerFactory is final.
Hence I assumed loading the jcifs module as a dependency on the .ear was too late. I thought that defining -Djboss.protocol.handler.modules=jcifs would have resolved that, but I guess not.
I tried adding export="true" on the jcifs dependency, but still the same Exception.
I also tried to place the jcifs dependency before the org.jboss.as.server dependency to see if that would help, since it appears that is where the Main and Bootstrap classes reside, but still no luck.
Is the order of the dependencies important?
Am I missing something?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/729160#729160]
Start a new discussion in JBoss AS 7 Development at Community
[https://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/20120410/8083e6df/attachment.html
More information about the jboss-dev-forums
mailing list