404 error with new webapp

This is a discussion on 404 error with new webapp within the Apache Web Server forums, part of the Web Server and Related Forums category; Apache configuration newbie here.. I've followed the instructions with setting up a JDBC with jakarta-tomcat 5. I've ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-13-2004
Larry S
 
Posts: n/a
Default 404 error with new webapp

Apache configuration newbie here..
I've followed the instructions with setting up a JDBC with
jakarta-tomcat 5.

I've created a folder under webapps called DBTest
I've added <Context path="/DBTest" docBase="DBTest" debug="5"
reloadable="true" crossContext="true">......</Context> to server.xml
I've added a web.xml as noted in the doc
Finally, i'll put in a test.jsp into /webapps/DBTest and i get a 404
page not found error!

What gives? Am i doing something wrong? could this be a permission
issue somewhere?
  #2 (permalink)  
Old 01-13-2004
Davide Bianchi
 
Posts: n/a
Default Re: 404 error with new webapp

Larry S <dime0000@yahoo.com> wrote:
> Finally, i'll put in a test.jsp into /webapps/DBTest and i get a 404
> page not found error!


Who is giving out 404? Apache or Tomcat? What's in the log files?
Davide

--
| Have faith in Darwin... By the looks of it, this guy couldn't
| reproduce himself if he had an installation wizard. --Andreas Skau
  #3 (permalink)  
Old 01-14-2004
Larry S
 
Posts: n/a
Default Re: 404 error with new webapp

Well - maybe i'm missing something. The page returned says 'Apache
Tomcat/5.0.16', i thought they were one in the same :)

anyway - the logs say:

INFO: Missing application web.xml, using defaults only
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/testerapp]
Jan 14, 2004 1:26:08 AM org.apache.commons.digester.Digester
fatalError
SEVERE: Parse Fatal Error at line 2 column 7: The processing
instruction target matching "[xX][mM][lL]" is not allowed.
org.xml.sax.SAXParseException: The processing instruction target
matching "[xX][mM][lL]" is not allowed.
at org.apache.xerces.util.ErrorHandlerWrapper.createS AXParseException(Unknown
Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalEr ror(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportErro r(Unknown
Source)
at org.apache.xerces.impl.XMLErrorReporter.reportErro r(Unknown
Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError (Unknown Source)
at org.apache.xerces.impl.XMLScanner.scanPIData(Unkno wn Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanPIData(Unknown
Source)
at org.apache.xerces.impl.XMLScanner.scanPI(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$Prol ogDispatcher.dispatch(Unknown
Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(U nknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse( Unknown Source)
at org.apache.commons.digester.Digester.parse(Digeste r.java:1548)
at org.apache.catalina.startup.ContextConfig.applicat ionConfig(ContextConfig.java:302)
at org.apache.catalina.startup.ContextConfig.start(Co ntextConfig.java:644)
at org.apache.catalina.startup.ContextConfig.lifecycl eEvent(ContextConfig.java:254)
at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4212)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1125)
at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:816)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1125)
at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:518)
at org.apache.catalina.core.StandardService.start(Sta ndardService.java:519)
at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:2343)
at org.apache.catalina.startup.Catalina.start(Catalin a.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:398)
Jan 14, 2004 1:26:08 AM org.apache.catalina.startup.ContextConfig
applicationConfig
SEVERE: Parse error in application web.xml
org.xml.sax.SAXParseException: The processing instruction target
matching "[xX][mM][lL]" is not allowed.
at org.apache.xerces.parsers.AbstractSAXParser.parse( Unknown Source)
at org.apache.commons.digester.Digester.parse(Digeste r.java:1548)
at org.apache.catalina.startup.ContextConfig.applicat ionConfig(ContextConfig.java:302)
at org.apache.catalina.startup.ContextConfig.start(Co ntextConfig.java:644)
at org.apache.catalina.startup.ContextConfig.lifecycl eEvent(ContextConfig.java:254)
at org.apache.catalina.util.LifecycleSupport.fireLife cycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4212)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1125)
at org.apache.catalina.core.StandardHost.start(Standa rdHost.java:816)
at org.apache.catalina.core.ContainerBase.start(Conta inerBase.java:1125)
at org.apache.catalina.core.StandardEngine.start(Stan dardEngine.java:518)
at org.apache.catalina.core.StandardService.start(Sta ndardService.java:519)
at org.apache.catalina.core.StandardServer.start(Stan dardServer.java:2343)
at org.apache.catalina.startup.Catalina.start(Catalin a.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootst rap.java:297)
at org.apache.catalina.startup.Bootstrap.main(Bootstr ap.java:398)
Jan 14, 2004 1:26:08 AM org.apache.catalina.startup.ContextConfig
applicationConfig

Davide Bianchi <davideyeahsure@onlyforfun.net> wrote in message news:<bu1d3k$cfbtk$2@ID-18487.news.uni-berlin.de>...
> Larry S <dime0000@yahoo.com> wrote:
> > Finally, i'll put in a test.jsp into /webapps/DBTest and i get a 404
> > page not found error!

>
> Who is giving out 404? Apache or Tomcat? What's in the log files?
> Davide

  #4 (permalink)  
Old 01-14-2004
Larry S
 
Posts: n/a
Default Re: 404 error with new webapp

Hey man - i wanted to thank you for suggesting that i look closer at
those logs.. i did a search on google, and it turns out, it was
because i had spaces and a blank link on the top of my web.xml file! i
can't believe it. is apache seriously that touchy?! i guess so. oh
well


Davide Bianchi <davideyeahsure@onlyforfun.net> wrote in message news:<bu1d3k$cfbtk$2@ID-18487.news.uni-berlin.de>...
> Larry S <dime0000@yahoo.com> wrote:
> > Finally, i'll put in a test.jsp into /webapps/DBTest and i get a 404
> > page not found error!

>
> Who is giving out 404? Apache or Tomcat? What's in the log files?
> Davide

  #5 (permalink)  
Old 01-14-2004
Davide Bianchi
 
Posts: n/a
Default Re: 404 error with new webapp

Larry S <dime0000@yahoo.com> wrote:
> Well - maybe i'm missing something. The page returned says 'Apache
> Tomcat/5.0.16', i thought they were one in the same :)


No. There is a basic differences: if tomcat says "can't find the file"
the problem is probably located in tomcat config, if Apache says
"can't find the file" the problem is that Apache doesn't know when
to call Tomcat.

> SEVERE: Parse Fatal Error at line 2 column 7: The processing


It looks like the web.xml is fsckd.

Davide

--
| Programming is like sex: one little mistake and you have to support it
| for the rest of your life...
  #6 (permalink)  
Old 01-14-2004
Davide Bianchi
 
Posts: n/a
Default Re: 404 error with new webapp

Larry S <dime0000@yahoo.com> wrote:
> because i had spaces and a blank link on the top of my web.xml file! i
> can't believe it. is apache seriously that touchy?!


XML is a very specific way to put down things. You screw with it, it
won't work.

Davide

--
| The difference between math and physics is the difference between
| masturbation and sex. They're both messy, but physics can get you in
| much more trouble. -- Paul Tomblin & Malcom Ray
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:33 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0