2012/8/24 Josh Gooding <josh.good...@gmail.com>: > > <Server port="8005" shutdown="SHUTDOWN" debug="0"> >
All those debug="" attributes... - Tomcat 5.5 does not support them. See "Configuration Reference" chapters of documentation, where these attributes are not mentioned. (Well, nothing fatal - they will be just silently ignored). > <GlobalNamingResources> > <Environment name="simpleValue" type="java.lang.Integer" > value="30"/> Sample value? > </GlobalNamingResources> > > <Service name="Catalina"> > > <Connector port="8009" > enableLookups="false" redirectPort="8443" debug="0" > protocol="AJP/1.3" /> > > <Connector port="8080" maxHttpHeaderSize="8192" > maxThreads="150" minSpareThreads="25" > maxSpareThreads="75" > enableLookups="false" redirectPort="8443" > acceptCount="100" > connectionTimeout="20000" > disableUploadTimeout="true" /> Do you need both connectors? > > <Engine name="Catalina" defaultHost="server.com" debug="0"> > > <Host name="server.com" debug="0" appBase="webapps" > deployOnStartup="true" unpackWARs="true" > autoDeploy="true" > xmlValidation="false" > xmlNamespaceAware="false" /> > </Engine> > </Service> > </Server> > > It's pretty simple and elegant. Not hard to follow. So in my project, > I've created a META-INF/context.xml file with the following declaration: > > <Context> > > <Realm className="org.apache.catalina.realm.JDBCRealm" It'd be better to use DataSourceRealm instead of JDBCRealm. >... > </Context> > > again, not hard to follow. this project is packaged up in the WebEMR.war > and resides under the $CATALINA_HOME/webapps/billing-1.0.4 directory > According to your configuration (the "appBase" attribute of <Host>), every subdirectory and every war file in the $CATALINA_HOME/webapps/ is a web application. So "billing-1.0.4" is a web application and WebEMR.war is just a static resource in it, that you can download via http://localhost:8080/billing-1.0.4/WebEMR.war If you want the application to be exposed as http://localhost:8080/1.0.4/, rename the war to the same name as the path you are looking for (1.0.4) and place it directly into webapps directory. That would be $CATALINA_HOME/webapps/1.0.4.war Tomcat will autodeploy it (which involves unpacking it into $CATALINA_HOME/webapps/1.0.4). Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org