-
1. Re: HELP!! Servlet WAR can't read factories
jingo Sep 12, 2002 4:00 AM (in response to jparks)Check whether the factory classes are duplicated in the war and the jar file in which you have deployed your factories.
This duplication of classes could be the problem.
Thx
jingo -
2. Re: HELP!! Servlet WAR can't read factories
jparks Sep 12, 2002 12:10 PM (in response to jparks)The are not deployed in both packages - here is a psuedo snippet of what I am doing :
again - Servlet is deployed as a WAR
Startup MBEan:
FactoryA is packaged in stuff_classes.jar and dropped in ../default/lib
1. create and call FactoryA's configurator FactoryAConfigurator.
2. FactoryAConfigurator does a FactoryA.makeInstance().setArguments();
3. FactoryA spits out a bunch of "I am alive messages"
4. When I make a call to the servlet, it in turn makes a call to FactoryA.makeInstance().configLocation() which should return the location ("/opt/config/") but instead returns null. This value is correct in the factory (other factories use this factory - and the all succeed)
I currently have no classpath's set - instead relying on ../default/deply and ../default/lib