ofbiz-component.xml classpath values - classloader

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ofbiz-component.xml classpath values - classloader

Ritesh Trivedi
Hi,

I am trying to call Ofbiz Service from java using RequestHandler.runEvent directly from the java code. While calling simple method based service, I get file not found exception for the xml file containing the simple method. Seems like the classloader being used does not have ofbiz-component.xml specific classpaths. Any idea on which classloader to use while calling services from java and/or how to add those classpaths to the current classloader and have that classloader passed so that service executes correctly?
Reply | Threaded
Open this post in threaded view
|

Re: ofbiz-component.xml classpath values - classloader

Jacques Le Roux
Administrator
You might be interested by the way I used existing code in appserver to deal with WASCE2 and Geronimo. The idea is to use a
ofbiz.home JVM parameter

BTW, please use rather user ML for such questions :
http://docs.ofbiz.org/display/OFBADMIN/Mailing+Lists#MailingLists-DeveloperList:dev@...

Thanks

Jacques

From: "Ritesh Trivedi" <[hidden email]>

>
> Hi,
>
> I am trying to call Ofbiz Service from java using RequestHandler.runEvent
> directly from the java code. While calling simple method based service, I
> get file not found exception for the xml file containing the simple method.
> Seems like the classloader being used does not have ofbiz-component.xml
> specific classpaths. Any idea on which classloader to use while calling
> services from java and/or how to add those classpaths to the current
> classloader and have that classloader passed so that service executes
> correctly?
> --
> View this message in context: http://www.nabble.com/ofbiz-component.xml-classpath-values---classloader-tp18745225p18745225.html
> Sent from the OFBiz - Dev mailing list archive at Nabble.com.
>