tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Case <>
Subject Re: automatic deployment without server.xml - bad request
Date Thu, 02 Dec 2010 14:29:31 GMT
> From: "Caldarale, Charles R" <>
> When you say "standalone context.xml", are  you referring to a <Context> 
>element located in the webapp's  META-INF/context.xml directory?

Yes, that one.

> Make sure you don't have a  conf/Catalina/[host]/[appName].xml file, since that 
>will override anything  inside the webapp.

It usually gets created automatically, right? I remove it by hand each time 
before I plan some changes/redeploy.

> Please post the entire (not just a fragment)  server.xml you're using with the 

>"standalone" context.xml, along with the  <Context> element.  Remove all 
>comments and obfuscate proprietary  information first.

Here it goes:

<?xml version="1.0" encoding="UTF-8"?>
<Server port="8005" shutdown="SHUTDOWN">
    <Listener SSLEngine="on"
        className="org.apache.catalina.core.AprLifecycleListener" />
    <Listener className="org.apache.catalina.core.JasperListener" />
className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
    <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
    <Service name="Catalina">
        <Connector URIEncoding="UTF-8" connectionTimeout="20000"
            port="8080" protocol="HTTP/1.1" redirectPort="8443" />
        <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
        <Engine defaultHost="localhost" name="Catalina">
            <Host appBase="wtpwebapps" autoDeploy="true"
                name="localhost" unpackWARs="true" xmlNamespaceAware="false"
                <Valve className="org.apache.catalina.valves.AccessLogValve"
                    directory="logs" pattern="common" prefix="access_log."
                    resolveHosts="false" suffix=".txt" />

Thank you,


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message