tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Case <send_lotsa_spam_h...@yahoo.com>
Subject Re: automatic deployment without server.xml - bad request
Date Thu, 02 Dec 2010 14:29:31 GMT
> From: "Caldarale, Charles R" <Chuck.Caldarale@unisys.com>
> 
> 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" />
    <Listener 
className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
    <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
    <Listener 
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"
                xmlValidation="false">
                <Valve className="org.apache.catalina.valves.AccessLogValve"
                    directory="logs" pattern="common" prefix="access_log."
                    resolveHosts="false" suffix=".txt" />
            </Host>
        </Engine>
    </Service>
</Server>

Thank you,
JC



      

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message