I literally copied the ROOT subdir out of the Tomcat install.  Changed nothing.  So
it contains index.html, jakarta-banner.gif, WEB-INF/web.xml, etc.  Path is
D:\Oxyg\Tomcat\Tomcat_4-0-3\webapps\ROOT which is what the trace says:
> Creating context '' with docBase 'D:/Oxyg/Tomcat/Tomcat_4-0-3/webapps/ROOT'

I'm really stumped!
Thanks,
Chris

"Craig R. McClanahan" wrote:

> Does the webapp you're trying to run work in a standard (non-embedded)
> Tomcat environment?  In particular, you *do* have a welcome file defined,
> don't you?
>
> Craig
>
> On Thu, 29 Aug 2002, Chris Weaver wrote:
>
> > Date: Thu, 29 Aug 2002 10:15:37 -0500
> > From: Chris Weaver <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: Tomcat Embedded into application - stuck
> >
> > I'm am trying to embed Tomcat into a java app and, although it runs and
> > starts up Tomcat something is certainly amiss.  I've pretty much copied
> > code right out of James Goodwill's article "Embedding Tomcat Into Java
> > Applications" at OnJava.
> >
> > Can someone spot any errors in the following trace that might help me
> > move forward?  I am stumped.
> >
> > For the trace you can see I start my java app, wait until Tomcat was
> > finished init'ing and then request http://localhost:8080/ in a browser.
> > I got
> > the familiar Apache Tomcat/4.0.3 - HTTP Status 404 - / The requested
> > resource (/) is not available.  After it failed I CTRL-C'd to stop the
> > server.
> >
> > Again, I'm stumped.  Thanks for any direction to head.
> > Chris
> >
> > P.S.  This dir structure does exist:
> > D:/Oxyg/Tomcat/Tomcat_4-0-3/webapps/ROOT and all of Tomcat's JAR files
> > are in Tomcat_4-0-3.  ROOT was created by copying ROOT from the Tomcat
> > install webapps/ROOT subdir.  Nothing different.
> >
> >
> > D:\Oxyg\Tomcat>java EmbeddedTomcat
> > Creating engine
> > Creating host 'localhost' with appBase
> > 'D:/Oxyg/Tomcat/Tomcat_4-0-3/webapps'
> > Creating context '' with docBase
> > 'D:/Oxyg/Tomcat/Tomcat_4-0-3/webapps/ROOT'
> > Adding engine (org.apache.catalina.core.StandardEngine/1.0)
> > Creating connector for address='ALL' port='8080' secure='false'
> > Adding connector for address 'ALL' port='8080'
> > Starting embedded server
> > Apache Tomcat/4.0.3
> > StandardContext[]: Starting
> > StandardContext[]: Processing start(), current available=false
> > StandardContext[]: Configuring default Resources
> > StandardContext[]: Configuring non-privileged default Loader
> > StandardContext[]: Configuring default Manager
> > StandardContext[]: Processing standard container startup
> > WebappLoader[]: Deploying class repositories to work directory
> > D:\Oxyg\Tomcat\Tomcat_4-0-3\work\localhost\_
> > StandardManager[]: Seeding random number generator class
> > java.security.SecureRandom
> > StandardManager[]: Seeding of random number generator has been completed
> >
> > ContextConfig[]: ContextConfig: Processing START
> > XmlMapper: Debug level: 3
> > XmlMapper: Validating = true
> > ContextConfig[]: Missing default web.xml, using application web.xml only
> >
> > XmlMapper: Set locator :
> > org.apache.crimson.parser.Parser2$DocLocator@382368
> > Resolve: -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
> > http://java.sun.com/dtd/web-app_2_3.dtd
> >   Using alternate DTD /javax/servlet/resources/web-app_2_3.dtd
> > StandardContext[]: Setting deployment descriptor public ID to '-//Sun
> > Microsystems, Inc.//DTD Web Application 2.3//EN'
> > XmlMapper: org.apache.catalina.core.StandardContext.setPublicId(-//Sun
> > Microsystems, Inc.//DTD Web Application 2.3//EN)
> > XmlMapper: Debug level: 3
> > XmlMapper: Validating = true
> > ContextConfig[]: Scanning web.xml tag libraries
> > ContextConfig[]: Scanning library JAR files
> > ContextConfig[]: Pipline Configuration:
> > ContextConfig[]:   org.apache.catalina.core.StandardContextValve/1.0
> > ContextConfig[]: ======================
> > StandardContext[]: Configuring application event listeners
> > StandardContext[]: Sending application start events
> > StandardContext[]: Starting filters
> > StandardContext[]: Posting standard context attributes
> > StandardContext[]: Starting completed
> > HttpConnector Opening server socket on all host IP addresses
> > HttpConnector[8080] Starting background thread
> > HttpProcessor[8080][0] Starting background thread
> > HttpProcessor[8080][0]  Background thread has been started
> > HttpProcessor[8080][1] Starting background thread
> > HttpProcessor[8080][1]  Background thread has been started
> > HttpProcessor[8080][2] Starting background thread
> > HttpProcessor[8080][2]  Background thread has been started
> > HttpProcessor[8080][3] Starting background thread
> > HttpProcessor[8080][3]  Background thread has been started
> > HttpProcessor[8080][4] Starting background thread
> > HttpProcessor[8080][4]  Background thread has been started
> > HttpProcessor[8080][4]  An incoming request is being assigned
> > HttpProcessor[8080][4]   The incoming request has been awaited
> > HttpProcessor[8080][4]   parseConnection: address=127.0.0.1/127.0.0.1,
> > port=8080
> > HttpProcessor[8080][4] Normalized: '/' to '/'
> > HttpProcessor[8080][4]  Request is 'GET' for '/' with protocol
> > 'HTTP/1.0'
> > HttpProcessor[8080][4]  Header connection = Keep-Alive
> > HttpProcessor[8080][4]  Header user-agent = Mozilla/4.79 [en] (WindowsNT
> > 5.0; U)
> > HttpProcessor[8080][4]  Header host = localhost:8080
> > HttpProcessor[8080][4]  Header accept = image/gif, image/x-xbitmap,
> > image/jpeg, image/pjpeg, image/png, */*
> > HttpProcessor[8080][4]  Header accept-encoding = gzip
> > HttpProcessor[8080][4]  Header accept-language = en,pdf
> > HttpProcessor[8080][4]  Adding locale 'en'
> > HttpProcessor[8080][4]  Adding locale 'pdf'
> > HttpProcessor[8080][4]  Header accept-charset = iso-8859-1,*,utf-8
> > StandardEngine[null]: Mapping server name 'localhost'
> > StandardEngine[null]:  Trying a direct match
> > StandardHost[localhost]: Mapping request URI '/'
> > StandardHost[localhost]:   Trying the longest context path prefix
> > StandardHost[localhost]:  Mapped to context ''
> > StandardContext[]: Mapping contextPath='' with requestURI='/' and
> > relativeURI='/'
> > StandardContext[]: Decoded relativeURI='/'
> > StandardContext[]:   Trying exact match
> > StandardContext[]:   Trying prefix match
> > StandardContext[]:   Trying extension match
> > StandardContext[]:   Trying default match
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> >
> >
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to