Thanks Julien for all your help. I got it to work by setting the visibility to module and placing oxf.jar in each of the modules. Previously, we had placed common jar files in application scope so that they could be referenced by each of the web modules without having to duplicate them in each of the web modules.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Julien Mercay Sent: Monday, October 20, 2003 1:25 PM To: OXF Users Subject: Re: running two webapps using oxf Ajay, WebSphere class-loaders policy can be configured in the WebSphere console. To be able to deploy two OXF web module in the same Enterprise Application, the Web App Class-Loader policy must be set to "Module" (the default). In that mode, WebSphere declares three class-loaders for your application: the application class-loader, and two web app class-loaders, children of the application class-loader. You also need to make sure oxf.jar is present in each web app, and not in the application directory. The OXF resource manager will therefore be initialized in the web app private class-loader. The EAR file must be structured like this: META-INF/ application.xml oxf1.war/ WEB-INF/ web.xml lib/oxf.jar [...] oxf2.war/ WEB-INF/ web.xml lib/oxf.jar [...] [Other jar files] Regards, Julien Erik Bruchez wrote: > Hi Ajay, > > By "two webapps", you mean that you have two WARs and two web.xml, > right? This should work. Can you send me by private email your two > web.xml files? > > I am asking the first question because since OXF 2.1 you can also have > several instances of the OXF servlet within a same Web app. They must > all share the same resource manager though. > > -Erik > > Ajay K. Mallik wrote: > >> Hi, >> >> I have an Application consisting of two webapps each with their own >> resources directory. When I start the application, I see the following >> trace: >> >> >> [10/15/03 11:01:44:134 EDT] 6637d858 WebGroup I SRVE0180I: >> [MHubCore] [/MHubCore] [Servlet.LOG]: oxf: init >> Initializing Resource Manager with: >> {oxf.resources.webapp.rootdir=/WEB-INF/resources, >> oxf.resources.priority.2=org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory, >> >> oxf.resources.priority.1=org.orbeon.oxf.resources.WebAppResourceManagerFactory, >> oxf.resources.factory=org.orbeon.oxf.resources.PriorityResourceManagerFactory, >> [EMAIL PROTECTED] >> >> 7000 [Thread-1] INFO org.orbeon.oxf.servlet.ProcessorService - This >> copy of OXF is licensed to: Ninish Ukkan / Adaptive Intelligence, Inc. >> >> >> [10/15/03 11:01:54:088 EDT] 6637d858 WebGroup I SRVE0180I: >> [MHubCoreCorr] [/MHubCoreCorr] [Servlet.LOG]: oxf: init >> [10/15/03 11:01:54:104 EDT] 6637d858 ApplicationMg A WSVR0221I: >> Application started: MHubCoreEAR >> >> >> It seems that it is not initializing the resource manager for the >> second webapp. When I invoke the second webapp, it is not able to >> locate the xpl files specific to this webapp. >> >> Please help. Thanks in Advance. >> >> Ajay K Mallik > > > > _______________________________________________ > oxf-users mailing list > [EMAIL PROTECTED] > http://mail.orbeon.com/mailman/listinfo/oxf-users _______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users _______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users
