I have exactly the same issue with AS 7.1.1 final. Did you find a solution?
I have a file here: EAR/WAR/WEB_INF/classes/myfile.xml
And reference it llike this:
JBOSS then says it cannot find a file here:
There is no bin/content directory.
Thanks for reading.
What types of modules are the boEBjar.jar and pcmjar.jar? If it contains EJB implementation classes, then move it (or them) from the APP-INF/lib to APP-INF/.
You have a different problem, I would suggest that you start a new thread to discuss it. BTW what is an xml file doing in a classes folder?
Hello ebross (when will I be famous ;-) I am sure you get that all the time, only joking )
Sorry I disagree same problem. Cannot load a resource from the class path when file is stored in a standard location in an EAR.
Reason for XML in classes folder is packaged resources that will change at any deployment so need to be refreshed. Also need to have no configuration to load.
Basically need a file on the classpath that is just delivered. On WAS for instance if I put the file there it will be available with getClass().getClassLoader().getResource("/myfile.xml") which I understand is a standard way to load a resource from the class path, correct?