Re: HELP on server.xml PLEASE
Okay. try to change the following from: docBase=webapps/ourforge to: docBase=ourforge Here is an example I have: Context path=/search docBase=quest/portalsearch crossContext=false debug=0 reloadable=true /Context Note: the quest folder resides under the webapps folder such as webapps\quest - Rich - Original Message - From: Micael Padraig Og mac Grene [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, February 02, 2002 1:52 AM Subject: Re: HELP on server.xml PLEASE Thanks, Rick. I guess I was not clear. What I need is a way to set the context for different urls rather than aliases for a single url. Micael At 05:58 PM 2/1/02 -0500, you wrote: Michael, There should be a folder under the tomcat installation director called webapps. Under that folder you should create a new folder for your jsp pages. Lets call your new folder home for argument sake. Under the home folder you should have created a folder called WEB-INF. Under WEB-INF you should have created two additional folders called classes and lib. So, your directory structure should look like this: Tomcat -home --WEB-INF ---classes ---lib Place your jsp files under the home directory, the custom classes under the WEB-INF\classes directory and your custom JAR files under the WEB-INF\lib directory. Now to access your files go to: http://server:port/home/something.jsp or html. Hope this helps! - Original Message - From: Micael Padraig Og mac Grene [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 01, 2002 4:13 PM Subject: HELP on server.xml PLEASE My forte is Java and at the XML configuration of Tomcat I suck. Could someone please help me with this? It would be greatly appreciated. If I add the following to servlet.xml, then I get the startup.sh to create the proper directories under TOMCAT_HOME/work/. But, then I cannot reach my site with the urls. If I don't add these, then I can reach the site, but without the create of the appropriate subfolders. What is up? Context path=/ourforge docBase=webapps/ourforge debug=0 reloadable=true /Context Context path=/micael docBase=webapps/micael debug=0 reloadable=true /Context Context path=/db docBase=webapps/db debug=0 reloadable=true /Context Context path=/ctr docBase=webapps/ctr debug=0 reloadable=true /Context !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- A Connector represents an endpoint by which requests are received and responses are returned. Each Connector passes requests on to the associated Container (normally an Engine) for processing. By default, a non-SSL HTTP/1.1 Connector is established on port 8080. You can also enable an SSL HTTP/1.1 Connector on port 8443 by following the instructions below and uncommenting the second Connector entry. SSL support requires the following steps (see the SSL Config HOWTO in the Tomcat 4.0 documentation bundle for more detailed instructions): * Download and install JSSE 1.0.2 or later, and put the JAR files into $JAVA_HOME/jre/lib/ext. * Execute: %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows) $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix) with a password value of changeit for both the certificate and the keystore itself. By default, DNS lookups are enabled when a web application calls request.getRemoteHost(). This can have an
Windows 2000 Service Startup Question
I startup tomcat through the Windows 2000 startup services. I need to startup tomcat with the following parm: -DVERITY_K2_HOSTPORT=xx.xx.xx.xx Can set this through the server.xml file? I've added it to the catalina.bat, however it seems this file is only called when I start tomcat through the startup.bat command. Thanks!
Re: HELP on server.xml PLEASE
Michael, There should be a folder under the tomcat installation director called webapps. Under that folder you should create a new folder for your jsp pages. Lets call your new folder home for argument sake. Under the home folder you should have created a folder called WEB-INF. Under WEB-INF you should have created two additional folders called classes and lib. So, your directory structure should look like this: Tomcat -home --WEB-INF ---classes ---lib Place your jsp files under the home directory, the custom classes under the WEB-INF\classes directory and your custom JAR files under the WEB-INF\lib directory. Now to access your files go to: http://server:port/home/something.jsp or html. Hope this helps! - Original Message - From: Micael Padraig Og mac Grene [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 01, 2002 4:13 PM Subject: HELP on server.xml PLEASE My forte is Java and at the XML configuration of Tomcat I suck. Could someone please help me with this? It would be greatly appreciated. If I add the following to servlet.xml, then I get the startup.sh to create the proper directories under TOMCAT_HOME/work/. But, then I cannot reach my site with the urls. If I don't add these, then I can reach the site, but without the create of the appropriate subfolders. What is up? Context path=/ourforge docBase=webapps/ourforge debug=0 reloadable=true /Context Context path=/micael docBase=webapps/micael debug=0 reloadable=true /Context Context path=/db docBase=webapps/db debug=0 reloadable=true /Context Context path=/ctr docBase=webapps/ctr debug=0 reloadable=true /Context !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- A Connector represents an endpoint by which requests are received and responses are returned. Each Connector passes requests on to the associated Container (normally an Engine) for processing. By default, a non-SSL HTTP/1.1 Connector is established on port 8080. You can also enable an SSL HTTP/1.1 Connector on port 8443 by following the instructions below and uncommenting the second Connector entry. SSL support requires the following steps (see the SSL Config HOWTO in the Tomcat 4.0 documentation bundle for more detailed instructions): * Download and install JSSE 1.0.2 or later, and put the JAR files into $JAVA_HOME/jre/lib/ext. * Execute: %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows) $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix) with a password value of changeit for both the certificate and the keystore itself. By default, DNS lookups are enabled when a web application calls request.getRemoteHost(). This can have an adverse impact on performance, so you can disable it by setting the enableLookups attribute to false. When DNS lookups are disabled, request.getRemoteHost() will return the String version of the IP address of the remote client. -- !-- Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6/ !-- Note : To disable connection timeouts, set connectionTimeout value to -1 -- !-- Define an SSL HTTP/1.1 Connector on port 8443 -- !-- Connector className=org.apache.catalina.connector.http.HttpConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 scheme=https secure=true Factory className=org.apache.catalina.net.SSLServerSocketFactory