-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ettore,
On 10/19/2011 3:38 AM, ettoregia wrote:
> SERVER.XML-------------------------------------------------- <?xml
> version='1.0' encoding='utf-8'?> <Server
> port="1${tomcat.server.port}" shutdown="SHUTDOWN">
You might want to consider using two different properties for the
shutdown and connector ports: port 1xxx might not be available all the
time, and you might want to configure it explicitly and independently
of tomcat.server.port.
> <GlobalNamingResources> <Resource name="UserDatabase"
> auth="Container" type="org.apache.catalina.UserDatabase"
> description="User database that can be updated and saved"
>
> factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
> pathname="conf/tomcat-users.xml" /> </GlobalNamingResources>
You should remove that <Resource> if you're not using it.
> <Service name="Catalina"> <Connector port="${tomcat.server.port}"
> protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443"
> />
>
> <Engine name="Catalina" defaultHost="localhost">
>
> <Realm className="org.apache.catalina.realm.JNDIRealm"
> connectionURL="ldap://pinot-nero.energiaspa.it:389"
> alternateURL="ldap://pinot-grigio.energiaspa.it:389"
> connectionName="ENERGIASPA\ldapbrowser"
> connectionPassword="drc4Fv9CGqIzWewX9nO3"
Whoops. Time to change your password.
> <Host name="localhost" appBase="webapps" unpackWARs="true"
> autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
>
> <Context path="/lambdaprobe"
> docBase="${catalina.home}/webapps/probe" privileged="true"
> antiResourceLocking="false" antiJARLocking="false">
A Host with appBase="webapps" and a <Context> with a docBase in
"webapps" will result in Lambda Probe (time to upgrade to Psi Probe!)
being deployed twice. (Unless you are using CATALINA_HOME and
CATALINA_BASE, in which case, you should be okay with this).
Okay, I don't see any reason why you couldn't have everything
contained in your webapp: either you use the <Realm> specified at the
<Engine> level and don't need to specify it in your
META-INF/context.xml or you use a different Realm and *do* need to
specify it in your META-INF/context.xml.
So... why can't you use the manager webapp to deploy your WAR?
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk6e3+oACgkQ9CaO5/Lv0PAxNwCgn6tBSZDtt8Bu04dXNOZL+2eN
pZQAn289rvJm5fkETltiDMfsfY80KmvQ
=9Mkp
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]