You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tony Grant <to...@tgds.net> on 2003/06/19 16:24:36 UTC
running two services in a server
Hello,
I would like to run both "standalone" and "apache" services on my
server. For the moment I can run one _or_ the other.
After reading through the doc I have come to the conclusion that I have
a typo in my server.xml but for the life of me I can't see where I'm
going wrong.
Cheers
Tony Grant
--
www.tgds.net Library management software toolkit,
redhat linux on Sony Vaio C1XD,
Dreamweaver MX with Tomcat and PostgreSQL
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: running two services in a server
Posted by Tony Grant <to...@tgds.net>.
On Thu, 2003-06-19 at 17:00, Tim Funk wrote:
> The java web services developer pack (from sun) has multiple services if you
> need a reference server.xml (i think)
Looks a lot like mine =:-(
Cheers
Tony Grant
--
www.tgds.net Library management software toolkit,
redhat linux on Sony Vaio C1XD,
Dreamweaver MX with Tomcat and PostgreSQL
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Element "web-app" does not allow "servlet" here.
Posted by Jiann-Ming Su <js...@emory.edu>.
On Thu, 19 Jun 2003, Tim Funk wrote:
> 2 problems:
> 1) web.xml is NOT well formed with respect to the dtd
http://www.hcrc.ed.ac.uk/~richard/xml-check.cgi?url=http%3A%2F%2Fzenodotus.library.emory.edu%2F%7Ejsu2%2Fweb.xml&validate=on&namespaces=on
> 2) You declare servlets but do not map them to URLS
>
Yes, but this wasn't a problem yesterday, nor is it a problem for my
colleague today.
--
Jiann-Ming Su jsu2@emory.edu 404-712-2603
Development Team Systems Administrator
General Libraries Systems Division
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Element "web-app" does not allow "servlet" here.
Posted by Tim Funk <fu...@joedog.org>.
2 problems:
1) web.xml is NOT well formed with respect to the dtd
2) You declare servlets but do not map them to URLS
-Tim
Jiann-Ming Su wrote:
> I'm using jakarta-tomcat-4.1.24-LE-jdk14 with java version 1.4.1_02 on
> Linux. For some reason, I'm starting to get the following errors from my
> web.xml:
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Element "web-app" does not allow "servlet" here.
Posted by Jiann-Ming Su <js...@emory.edu>.
I'm using jakarta-tomcat-4.1.24-LE-jdk14 with java version 1.4.1_02 on
Linux. For some reason, I'm starting to get the following errors from my
web.xml:
SEVERE: Parse Error at line 24 column -1: Element "web-app" does not allow "servlet" here.
org.xml.sax.SAXParseException: Element "web-app" does not allow "servlet" here.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3160)
at org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(ValidatingParser.java:34
9)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1317)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at org.apache.commons.digester.Digester.parse(Digester.java:1543)
at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:282)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:400)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
The exact same web xml file was working fine for me yesterday. It's still
working fine today for my co-worker, who's running a different instance of
tomcat. We are both working out of the same repository. I've checked on
the web and newsgroups, and people seem to only say to make sure that
<servlet-mapping> come after <servlet>. I don't have any <servlet-mapping>
tags. As reference, I've included my web.xml. Thanks for any help.
--
Jiann-Ming Su jsu2@emory.edu 404-712-2603
Development Team Systems Administrator
General Libraries Systems Division
Re: running two services in a server
Posted by Tim Funk <fu...@joedog.org>.
The java web services developer pack (from sun) has multiple services if you
need a reference server.xml (i think)
-Tim
Tony Grant wrote:
> Hello,
>
> I would like to run both "standalone" and "apache" services on my
> server. For the moment I can run one _or_ the other.
>
> After reading through the doc I have come to the conclusion that I have
> a typo in my server.xml but for the life of me I can't see where I'm
> going wrong.
>
> Cheers
> Tony Grant
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org