axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pae Choi" <>
Subject Re: Tomcat stuff ...
Date Mon, 25 Nov 2002 00:24:00 GMT
Those two places will do even though they have specific purpose. In
addition to that option, you could create an addition directory, e.g.,

webapps/<webapp context>/conf

where, 'conf' can be replaced whatever you name it.

So you can easily access there by the following code:

ServletContext sctx = getServletContext();
String wsContextPath = sctx.getRealPath(;


> I have had success doing similar things, I place the files in either
> tomcat/common/classes or tomcat/webapps/axis/WEB-INF/classes, depending
> on whether more than one service needs access to them.
> Derek.
> Alex Dovlecel wrote:
> >Sorry for asking this question to this place... it might be out of
> >topic...
> >
> >I have a SOAP service. I have packed it in a jar file and placed in the
> >tomcat/webapps/axis/WEB-INF/lib directory. The service should access the
> >myservconfig.xml file. Where should I place this file and how to access
> >
> >I have tried to put it in the jar archive (root level) and access it with
> >Thread.getCurrentThread().getClassLoader().getREsourceAsStream(
> >). But this returns null. Resource not found!!!
> >
> >I have also tried to deploy the app not as a jar but by copying the files
> >classes directory. And the myfile.xml in classes dir. The same result.
> >Resource is not found!!!
> >
> >So where is tomcat looking for the resource? It should check at least the
> >jar. But it does not!!! (it seems).
> >
> >Please give me some ideas or tell me how should I do that... And, if
> >possible, as quick as you can...
> >
> >Tx alot
> >dovle
> >
> >
> >

View raw message