This is not the right way to do it. JBoss has a very elaborate classloading system (see http://www.jboss.org/wiki/Wiki.jsp?page=JBossClassLoadingUseCases, you can't just modify the global JVM classpath!
If your resource is inside your service archive (e.g. at the root of it "myresource.xml") then simply asks the classloader who loaded your MBean class in the first place, e.g.: | InputStream resource = | new InputStreamReader(this.getClass().getResourceAsStream("myresource.xml")); | And BTW, if this is a service archive, it should be named .sar not .jar View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3863358#3863358 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3863358 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user