tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BAO RuiXian <ruixian....@pp.inet.fi>
Subject Re: jsp deployment
Date Fri, 13 Feb 2004 21:39:41 GMT


Jerry Ford wrote:

> Sorry, that's a cut-and-paste error that does not appear in the real 
> server.xml.  Only one </context> end tag; the root context is closed 
> before the EBook context begins:  <context...  />

The configuration seems okay then. BTW, can you run 
http://localhost:8080/manager/list to see what apps you have installed? 
If you can not find 'EBook', then you need to install it by running 
http://localhost:8080/manager/install?war=EBook

Best

Bao

>
> Jerry
>
> Thomas Tang wrote:
>
>> Bill is correct.
>>
>> This portions seems "off".  Try separating them.
>> I dont think you should be seeing </Context> followed by and another 
>> </Context>.
>>
>>                <!-- ROOT context -->
>>                <Context path=""
>>                         docBase="ROOT"
>>                         debug="0"/>
>>
>>                <!-- EBook context -->
>>                <Context path="/EBook"
>>                         docBase="EBook"
>>                         debug="0"
>>                         reloadable="true"
>>                         crossContext="true">
>>
>>                   <!-- EBook logger (localhost_EBook_log.txt) -->
>>                   <Logger 
>> className="org.apache.catalina.logger.FileLogger"
>>                        prefix="localhost_EBook_log."
>>                        suffix=".txt"
>>                        timestamp="true" />
>>
>>                </Context>
>>                </Context>
>>
>>
>>
>>
>> "Bill Haake" <haake@logicalimages.com> 02/13/2004 12:03 PM
>> Please respond to
>> "Tomcat Users List" <tomcat-user@jakarta.apache.org>
>>
>>
>> To
>> "Tomcat Users List" <tomcat-user@jakarta.apache.org>
>> cc
>>
>> Subject
>> RE: jsp deployment
>>
>>
>>
>>
>>
>>
>> You have the EBook context nested inside the default (ROOT).
>>
>> -----Original Message-----
>> From: Jerry Ford [mailto:jford@katzenjammer.us]
>> Sent: Friday, February 13, 2004 11:50 AM
>> To: Tomcat Users List
>> Subject: Re: jsp deployment
>>
>>
>> from server.xml (minus realm, user database resource and a couple of
>> extraneous contexts):
>>
>> <Server port="8005" shutdown="SHUTDOWN" debug="0">
>>
>>    <!-- Service -->
>>    <Service name="Tomcat-Standalone">
>>
>>        <!-- Port 8080 Connector -->
>>        <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
>>               port="8080"
>>               minProcessors="5"
>>               maxProcessors="75"
>>               enableLookups="true"
>>               redirectPort="8443"
>>               acceptCount="100"
>>               debug="0"
>>               connectionTimeout="20000"
>>               useURIValidationHack="false"
>>               disableUploadTimeout="true" />
>>
>>        <!-- Apache Connector (mod_jk) -->
>>        <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
>>               port="8009"
>>               minProcessors="5"
>>               maxProcessors="75"
>>               enableLookups="true"
>>               redirectPort="8443"
>>               acceptCount="10"
>>               debug="0"
>>               connectionTimeout="0"
>>               useURIValidationHack="false"
>>
>> protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
>>
>>        <!-- Engine -->
>>        <Engine name="Standalone"
>>                defaultHost="localhost"
>>                debug="0">
>>
>>            <!-- Engine logger (catalina_log.txt) -->
>>            <Logger className="org.apache.catalina.logger.FileLogger"
>>                    prefix="catalina_log." suffix=".txt"
>>                    timestamp="true"/>
>>
>>            <!-- Host (localhost) -->
>>            <Host name="localhost"
>>                  debug="0"
>>                  appBase="webapps"
>>                  unpackWARs="true"
>>                  autoDeploy="true">
>>
>>                <!-- Host logger (localhost_log.txt) -->
>>                <Logger className="org.apache.catalina.logger.FileLogger"
>>                        directory="logs" prefix="localhost_log."
>>                        suffix=".txt"
>>                        timestamp="true"/>
>>
>>                <!-- ROOT context -->
>>                <Context path=""
>>                         docBase="ROOT"
>>                         debug="0"/>
>>
>>                <!-- EBook context -->
>>                <Context path="/EBook"
>>                         docBase="EBook"
>>                         debug="0"
>>                         reloadable="true"
>>                         crossContext="true">
>>
>>                   <!-- EBook logger (localhost_EBook_log.txt) -->
>>                   <Logger 
>> className="org.apache.catalina.logger.FileLogger"
>>                        prefix="localhost_EBook_log."
>>                        suffix=".txt"
>>                        timestamp="true" />
>>
>>                </Context>
>>                </Context>
>>
>>                <!-- examples context -->
>>                <Context path="/examples"
>>                         docBase="examples"
>>                         debug="0"
>>                         reloadable="true"
>>                         crossContext="true">
>>
>>                    <!-- examples logger (localhost_examples_log.txt) -->
>>                    <Logger
>> className="org.apache.catalina.logger.FileLogger"
>>                            prefix="localhost_examples_log."
>>                            suffix=".txt"
>>                            timestamp="true"/>
>>
>>                </Context>
>>            </Host>
>>        </Engine>
>>    </Service>
>> </Server>
>>
>>
>> Webapp's web.xml (complete):
>>
>> <?xml version="1.0" encoding="ISO-8859-1"?>
>>
>> <!DOCTYPE web-app
>>   PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>>   "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
>>
>> <!-- Java version of ebook generating utility. -->
>> <web-app>
>>
>>   <display-name>Cat's Eye EBook Builder</display-name>
>>   <description>
>>      EBook generator web application
>>   </description>
>>
>>   <servlet>
>>      <servlet-name>
>>         book_builder
>>      </servlet-name>
>>      <servlet-class>
>>         catseye.ebook.book_builder
>>      </servlet-class>
>>   </servlet>
>>
>>   <servlet>
>>      <servlet-name>
>>         set_config
>>      </servlet-name>
>>      <servlet-class>
>>         catseye.ebook.set_config
>>      </servlet-class>
>>   </servlet>
>>
>>   <servlet>
>>      <servlet-name>
>>         get_config
>>      </servlet-name>
>>      <servlet-class>
>>         catseye.ebook.get_config
>>      </servlet-class>
>>   </servlet>
>>
>>   <servlet-mapping>
>>      <servlet-name>invoker</servlet-name>
>>      <url-pattern>/*</url-pattern>
>>   </servlet-mapping>
>>
>>
>> </web-app>
>>
>>
>>
>>
>


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


Mime
View raw message