Hi all,

After some tests on TC4.1.31,
deployment with context.xml and war unpacked,
my unpacked tree is incomplete : static files, JSPs files and properties files 
(including web.xml) are missing :-(
(but the Context is working fine)

Is it the normal behaviour or I miss something ?
This is the same with TC5.5 ?

Some details :

My testServlets.war is composed with :
myStaticPages (html, images, css, ...)
myJSPs
META-INF/my_internal_resources.properties
WEB-INF/classes/my_classes
WEB-INF/lib/my_libs
WEB-INF/web.xml

I put $CATALINA_HOME/conf/Standalone/localhost/testServlets.xml
with 
<Context path="/testServlets"
         docBase="testServlets"
         debug="1"
         reloadable="true" >
...
<Resource name="jdbc/testServletsDB" auth="Container" 
type="javax.sql.DataSource"/>
  <ResourceParams name="jdbc/testServletsDB">
...
  </ResourceParams>
<Parameter name="PROJECT_NAME" value="testServlets" override="false"/>
</Context>

In server.xml,
Engine = Standalone
Host = localhost , appBase="webapps" unpackWARs="true" autoDeploy="false" 
deployOnStartup="false" deployXML="true"

I deploy with Tomcat Manager :
/manager/html/install?installPath=/testServlets&installConfig=file:///usr/local/tomcat/conf/Standalone/localhost/testServlets.xml&installWar=file:///tmp/testServlets.war

When I test my servlet, ALMOST ALL IS FINE :
getServletContext().getInitParameter("PROJECT_NAME") = testServlets
((DataSource)ctx.lookup("java:/comp/env/jdbc/testServletsDB")).getConnection() 
works
getServletContext().getResource("/META-INF/my_internal_resources.properties") 
is valid

BUT
- getServletContext().getRealPath("/") = null
- the war is unpacked in $CATALINA_HOME/work/Standalone/localhost/testsServlet/ 
(not in Context_docBase or Host_appBase)
  and is INCOMPLETE !!! (only WEB-INF directory but not my static files)

So, If I want Apache to serve this static files,... how to ?

In advance, thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to