It worked when i removed the jsp servlet definition from my web-app web.xml

 but when i tried commenting  jsp servlet definition in
$CATALINA_HOME/conf/web.xml and
kept that in my web.xml only. It gave me errors as

"  2003-09-08 19:06:30 ContextConfig[/remind/cafe] Parse error in default
web.xml
 java.lang.IllegalArgumentException: Servlet mapping specifies an unknown
servlet name jsp  "

 because somehow it doesnt load jsp servlet from any other web app's web.xml
definition and there were other web-apps too which didnt have their own
web.xml.
 So i didnt touch the tomcat's web.xml and removed the specification from my
web.xml

Yoav , Thanks a lot.

Regards,
Shailesh


-----Original Message-----
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, September 08, 2003 6:48 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Parse error in application web.xml (addChild: Child name
'jsp' is not unique)



Howdy,
Did you comment out the jsp servlet definition in
$CATALINA_HOME/conf/web.xml?  You can only have one servlet with that
name "jsp".  The above is the global web.xml which is read in addition
to your application's web.xml.  Most people simply leave the JSP servlet
definition in the global web.xml and don't add it to their own webapp's
web.xml.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Shailesh Modi [mailto:[EMAIL PROTECTED]
>Sent: Monday, September 08, 2003 5:42 AM
>To: [EMAIL PROTECTED] Apache. Org (E-mail)
>Subject: Parse error in application web.xml (addChild: Child name 'jsp'
is
>not unique)
>
>Hi,
>   Has somebody got this error ?
>I am getting this while starting my tomcat 4.1.27 to deploy my web-app
and
>when it reads my web-app's web.xml .
>
>Error :
>
>2003-09-08 15:00:54 ContextConfig[/remind/cafe] Parse error in
application
>web.xml
>java.lang.IllegalArgumentException: addChild:  Child name 'jsp' is not
>unique
> at
>org.apache.commons.digester.Digester.createSAXException(Digester.java:2
540)
> at
>org.apache.commons.digester.Digester.createSAXException(Digester.java:2
566)
> at org.apache.commons.digester.Digester.endElement(Digester.java:1061)
> at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
> at
org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown
>Source)
> at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
>Source)
> at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
Source)
> at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Un
know
>n
>Source)
>at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>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 java.lang.reflect.Method.invoke(Method.java:324)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
>
>2003-09-08 15:00:54 ContextConfig[/remind/cafe]: Occurred at line 60
column
>13
>2003-09-08 15:00:54 ContextConfig[/remind/cafe]: Marking this
application
>unavailable due to previous error(s)
>
>
>I looked in my web.xml at line 60, where i have specified 'jsp' servlet
>definition.
>
><servlet>
>    <servlet-name>jsp</servlet-name>
>    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
>  </servlet>
>
>Am i doing something wrong in migrating from tomcat 3 to 4.1.27 . ?
>
>
>Thanks a lot
>
>Shailesh Modi




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.



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

Reply via email to