[jboss-user] [Beginner's Corner] - How to load a file packaged in the .esb?

Derek Croxton do-not-reply at jboss.com
Wed Oct 31 09:30:35 EDT 2012

Derek Croxton [https://community.jboss.org/people/mataratones] created the discussion

"How to load a file packaged in the .esb?"

To view the discussion, visit: https://community.jboss.org/message/773228#773228

I'm trying to load an XSLT file from the .esb package.  (This is for a custom action, ignore for the moment why I'm not doing an XsltAction.)  The base path, for some reason, is jboss-as\bin\, which is obviously not in the .esb, and when I try to use a relative path that goes up a directory ("../"), I get a MalformedURL exception.  A servlet would have a context, but my class is not a servlet, so I don't know how to get at a file inside the .esb.  I don't think this is an unusual thing to do, but obviously I have no idea how to do it, and I would appreciate any help.


Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121031/e76662c8/attachment.html 

More information about the jboss-user mailing list