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
 
webapp works through Apache, not Tomcat directly

webapp works through Apache, not Tomcat directly

2004-01-06       - By Jerry Ford

 Back
Reply:     1     2     3     4     5     6     7     8     9  

I have a webapp deployed in Tomcat 4.1.27 which I am able to reach
through Apache 1/3/27 (via mod_jk; sorry, didn't build it myself,
obtained it as a binary and don't know version---how can I tell?) but
cannot reach it by going directly to Tomcat.

Tomcat is configured to listen directly on port 8080 and through mod_jk
on port 8009 and in fact I can reach and execute the example servlets by
going to either http://localhost:8080/examples/servlets or
http://localhost/examples servlets.

I can reach my webapp by going to http://localhost/MyApp.

But when I try to reach http://localhost:8080/MyApp, Tomcat reports
resource not available.

The only difference (that I can recall) is that the examples are in
their default location, $TOMCAT_HOME/webapps/examples, while my app has
been moved to /usr/local/webserver/webapps/MyApp.

The context to MyApp in server.xml is identical to the examples context
except for path and name:

<Context path="/MyApp" docBase="/usr/local/webserver/webapps/MyApp"
debug="0"
     reloadable="true" crossContext="true">

     <Logger className="org.apache.catalina.logger.FileLogger"
             prefix="localhost_MyApp_log." suffix=".txt"
             timestamp="true" />

</Context>

Nothing is written to the MyApp log when I try to access the app through
port 8080 (or when I successfully access it through Apache, either, for
that matter).

All are running under Linux (RedHat 9.0).

Any suggestions about what's wrong?

While this condition might otherwise be acceptable (I don't really want
to use port 8080), it appears to be interfering with the setting and
reading of cookies---I can set them on one page but cannot read them
from another, even though Mozilla's cookie manager shows them to be
(apparently correctly) configured.

Thanks.

Jerry


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
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.