[jboss-user] [Microcontainer] - Re: can't read resource from the classpath??
jeff.yuchang
do-not-reply at jboss.com
Thu May 21 06:08:15 EDT 2009
"alesj" wrote : "jeff.yuchang" wrote : Also, in this test, I ran the DU::getClasspath, I showed the idm.jar, but couldn't find the idm.cfg.xml file, I was putting it in the idm.jar/META-INF/.
| |
| Only metadata files should be in META-INF.
| Configuration should be in the root.
|
| Or you need to add META-INF infront if you wanna look for that resource via CL.
My bad.. ;-(.. OK, using the DU::getClassloader can get this resource.. Thanks for your help.
Is the jar package the only way to get this kind of resource?? I mean, do we have other approaches, or can we use a custom package suffix?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4232446#4232446
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232446
More information about the jboss-user
mailing list