It would seem as if you don't have a 

<web-app>

</web-app>

wrapping all the entries in you web.xml.  If so it should be  trivial to put
it in

Best Wishes
John Burgess
[EMAIL PROTECTED]
Tel: 01865 718666 
Fax: 01865 718600


-----Original Message-----
From: Scott Dudley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 5:00 PM
To: Tomcat Users List
Subject: Re: new tomcat user: migrating app from resin




Shapira, Yoav wrote:

>Howdy,
>Some more information would be nice ;)
>
>1) Did you verify that tomcat installed correctly, e.g. by running the
>examples?
>
yes.

>
>2) Are there any errors in the tomcat logs relevant to parsing /
>deploying / starting your web-app?
>
yes.

2002-06-04 16:20:52 ContextConfig[/accountaccess-4-3] Parse error in 
application web.xml
org.xml.sax.SAXParseException: Element type "web-app" must be declared.
    at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java)
    at 
org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLError(X
MLValidator.java)
    at 
org.apache.xerces.validators.common.XMLValidator.validateElementAndAttribute
s(XMLValidator.java)
    at 
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
or.java)
    at 
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java)
    at 
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java)
    at org.apache.xerces.framework.XMLParser.parse(XMLParser.java)
    at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java)
    at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:275)
    at 
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja
va:256)
    at 
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:824)
    at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
224)
    at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
    at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3345)
    at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
    at org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
    at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
    at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
    at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
    at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
    at 
org.apache.catalina.core.StandardService.start(StandardService.java:388)
    at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
    at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
    at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

2002-06-04 16:20:52 ContextConfig[/accountaccess-4-3]: Occurred at line 
7 column 10
2002-06-04 16:20:52 ContextConfig[/accountaccess-4-3]: Marking this 
application unavailable due to previous error(s)
2002-06-04 16:20:52 StandardContext[/accountaccess-4-3]: Error 
initializing naming context for context /accountaccess-4-3
2002-06-04 16:20:52 StandardContext[/accountaccess-4-3]: Context startup 
failed due to previous errors

>
>3) What do you mean when you say you couldn't create a context in
>server.xml?
>
not that i couldn't create a context but that it had no affect. 
 ignorant as i am :-)  , i think the parse error above indicates the 
problem and that it will not be trivial to get out app running under 
tomcat which is unfortunate.  i really wanted to test tomcat and to 
compare performance of the two servers.

>
>
>Yoav Shapira
>Millennium ChemInformatics
>
>
>>-----Original Message-----
>>From: Scott Dudley [mailto:[EMAIL PROTECTED]]
>>Sent: Wednesday, June 05, 2002 11:23 AM
>>To: [EMAIL PROTECTED]
>>Subject: new tomcat user: migrating app from resin
>>
>>
>>i've installed tomcat 4.0.3-1 from rpm and am attempting to migrate an
>>app that's currently running under resin.  i copied the app tree to
>>$CATALINA_HOME/webapps and restarted tomcat but when i attempt to
>>
>access
>
>>the app, i get a 404.  i also tried to create a context in
>>$CATALINA_HOME/conf/server.xml to no avail.
>>
>>$ ls -l $CATALINA_HOME/webapps/accountaccess-4-3/WEB-INF/web.xml
>>lrwxrwxrwx    1 tomcat4  tomcat4        58 Jun  4 17:18
>>/var/tomcat4/webapps/accountaccess-4-3/WEB-INF/web.xml ->
>>/home/scott/pws/telmast-app/accountaccess-4-3/conf/web.xml
>>
>>what am i missing folks?
>>
>>--
>>
>>Regards,
>>
>>Scott Dudley
>>
>>
>>
>>--
>>To unsubscribe, e-mail:   <mailto:tomcat-user-
>>[EMAIL PROTECTED]>
>>For additional commands, e-mail: <mailto:tomcat-user-
>>[EMAIL PROTECTED]>
>>
>
>
>--
>To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>

-- 

Regards,

Scott Dudley




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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02
 

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

Reply via email to