You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Pradeep Gummi <pr...@villanova.edu> on 2003/09/08 16:38:08 UTC
problem modifying classpath using external classes in Tomcat
4.0
Hi All,
I am trying to use external classes used for my web app by adding a jar
of the class folder to the class path. I have realized that by doing
this, only the classes existing in the folder are being accessed and
not the classes that are in its sub folders.
Say for example,
saclasses
|
|--A.class
|--B.class
|--C.class
|--SaApi
| |
| |---D.class
| |---E.class
|--Sa
|--- F.class
By adding saclasses.jar to the classpath, I am able to include only the
classes A, B and C and not D, E,F. I later tried by adding SaApi.jar
and Sa.jar to the classpath and then the classes are being identified
by the web app. Since, I have a large number of classes and folders,
its really not practical to add all jars individually.
Any suggestions
pradeep
----- Original Message -----
From: "Shailesh Modi" <sh...@cisco.com>
Date: Monday, September 8, 2003 10:13 am
Subject: RE: Parse error in application web.xml (addChild: Child
name 'jsp' is not unique)
>
> 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
> defaultweb.xml
> java.lang.IllegalArgumentException: Servlet mapping specifies an
> unknownservlet 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:Yoav.Shapira@mpi.com]
> Sent: Monday, September 08, 2003 6:48 PM
> To: Tomcat Users List; shmodi@cisco.com
> 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
> servletdefinition 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:shmodi@cisco.com]
> >Sent: Monday, September 08, 2003 5:42 AM
> >To: Tomcat-User@Jakarta. 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,
> proprietaryand/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,
> pleaseimmediately delete this e-mail from your computer system and
> notify the
> sender. Thank you.
>
>
>
> -------------------------------------------------------------------
> --
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>