You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Edgar Dollin <Ed...@BLUE-MOOSE.NET> on 2003/02/12 03:34:36 UTC

tomcat shared jars

This a question of interest only.  It seems like it should work but doesn't.
 
If you jar up some code and put it in the tomcat/shared/lib it seems to have
an impact on where the system looks for message resource property files and
throws the following error:
 
2003-02-11 21:16:31 StandardContext[]: Servlet  threw load() exception
javax.servlet.UnavailableException: Parsing error processing resource path 
 at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
52)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
 at actions.TableLoad.init(TableLoad.java:45)
 at javax.servlet.GenericServlet.init(GenericServlet.java:256)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
4)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3420)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
 at
org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
 at java.lang.reflect.Method.invoke(Native Method)
 at
org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245
)
 at
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
 
If you put the jar into the WEB-INF/lib directory the container finds the
message files.  
 
TableLoad is a a class which extends ActionServlet to startup log4j.
TableLoad is not in a jar, but some of the action and form classes are, each
with their own local property files - in the jar.  
 
Any help would be appreciated.
 
Thanks
 
Edgar