Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
jsp deployment

jsp deployment

2004-02-13       - By Jerry Ford

 Back
Reply:     <<     21     22     23     24     25     26     27     28     29     30     >>  

No, root context is defined in a single, self-closing tag:  <context...  />

It's unchanged from Tomcat's default server.xml.

But...on second look, there is an extra closing tag after Ebook's
context in this cut-and-paste (I cut and paste in multiple steps;
couldn't get the whole thing in one vi window):

</context>
</context>

But the active server.xml does not have two of  them, only one.

Jerry

Bill Haake wrote:

>You have the EBook context nested inside the default (ROOT).
>
>-- --Original Message-- --
>From: Jerry Ford [mailto:jford@(protected)]
>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 Source code of 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 Source code of 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 Source code of 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 (See http://ISO-8859.ora-code.com)-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>
>
>
>
>Thomas Tang wrote:
>
>  
>
>>Cut and paste your context settings.
>>
>>Thomas
>>
>>
>>
>>Jerry Ford <jford@(protected)>
>>02/13/2004 11:33 AM
>>Please respond to
>>"Tomcat Users List" <tomcat-user@(protected)>
>>
>>
>>To
>>Tomcat Users List <tomcat-user@(protected)>
>>cc
>>
>>Subject
>>Re: jsp deployment
>>
>>
>>
>>
>>
>>
>>Hmmm...when I go to http://localhost/mywebapp, it works fine.
>>
>>When I bypass Apache and go to http://localhost:8080, I get Tomcat's
>>home page, and http://localhost:8080/examples/jsp, I get the Tomcat
>>examples.
>>
>>But when I go to http://localhost:8080/mywebapp, I get 404, resource not
>>available.
>>
>>Jerry
>>
>>BAO RuiXian wrote:
>>
>>
>>
>>    
>>
>>>Jerry Ford wrote:
>>>
>>>
>>>
>>>      
>>>
>>>>Good suggestions, but, no, didn't work.
>>>>There are no config issues preventing Tomcat from serving files from
>>>>my webapp---html and servlets all work.  And I know Tomcat is serving
>>>>jsp files correctly; Tomcat's default examples work.
>>>>
>>>>
>>>>        
>>>>
>>>Have you tried run your jsp file directly from Tomcat instead of via
>>>Apache? How about you copy one of the jsp files from the example jsp
>>>files to this directory to see it still works? I think your problem is
>>>just very trivial, somewhere wrong.
>>>
>>>Best
>>>
>>>Bao
>>>
>>>
>>>
>>>      
>>>
>>>>Tomcat simply will not serve my .jsp file regardless of filetype
>>>>(tried it as .txt).  Permissions and file ownership are identical to
>>>>the permissions of the Tomcat example .jsp files, which do work.
>>>>I restart Tomcat everytime I make a change.
>>>>Still get the 404 when I call the jsp, even though the html files in
>>>>the same directory work fine, as do the servlets in the same webapp
>>>>space.
>>>>
>>>>Jerry
>>>>
>>>>Parsons Technical Services wrote:
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>>>Jerry,
>>>>>
>>>>>Just for a test, change the file name to end with .txt and see if
>>>>>the page
>>>>>is displayed.
>>>>>
>>>>>If it still fails. I would double check the permissions/ownership on
>>>>>that
>>>>>file.
>>>>>
>>>>>If it works, then try a restart. After a restart if it still fails,
>>>>>check
>>>>>your configs
>>>>>for an entry that might be blocking or redirecting the request.
>>>>>
>>>>>Just a novice throwing out ideas.
>>>>>
>>>>>Doug Parsons
>>>>>www.parsonstechnical.com
>>>>>
>>>>>
>>>>>-- -- Original Message -- -- From: "Jerry Ford"
>>>>>
>>>>>
>>>>>          
>>>>>
>><jford@(protected)>
>>
>>
>>    
>>
>>>>>To: "Tomcat Users List" <tomcat-user@(protected)>
>>>>>Sent: Thursday, February 12, 2004 2:33 PM
>>>>>Subject: Re: jsp deployment
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>Permissions on the .jsp file are identical to permissions on all of
>>>>>>the
>>>>>>html, javascript, and servlet class files in the webapp, all of which
>>>>>>work:  -rw--r--r--  owner/group is jford:user (which is the uid under
>>>>>>which tomcat was started).
>>>>>>
>>>>>>And I know it will serve .jsp's, the Tomcat example .jsp's all work.
>>>>>>
>>>>>>Jerry
>>>>>>
>>>>>>QM wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>: Tomcat chokes when the jsp is requested.  I get a 404
>>>>>>>: error, "the requested resoruce is not available."
>>>>>>>:
>>>>>>>: What do I need to configure to get Tomcat to serve the jsp?
>>>>>>>
>>>>>>>
>>>>>>>Chances are it's a permissions issue on the file.  (Unless you've
>>>>>>>tweaked Tomcat's config, it should already be able to serve JSPs.)
>>>>>>>
>>>>>>>-QM
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>>>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>>>For additional commands, e-mail: tomcat-user-help@(protected)
>>>
>>>
>>>      
>>>
>>
>>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>>For additional commands, e-mail: tomcat-user-help@(protected)
>>
>>
>>
>>
>>
>>    
>>
>
>
>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>For additional commands, e-mail: tomcat-user-help@(protected)
>
>
>
>
>
>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>For additional commands, e-mail: tomcat-user-help@(protected)
>  
>


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




©2008 junlu.com - Jax Systems, LLC, U.S.A.