Re: JSP init param

2001-03-12 Thread Paolo Barolat-Romana

Hi, I wrote this message a week ago, but never received any response.  I am still
trying to figure this out.  Currently, I have changed the source in tomcat so that it
always uses a particular compiler, but obviously this is not the optimal solution.

Paolo


> I am trying to add the jspCompilerPlugin initialization parameter to my jsp
> container.  I adding this in conf/web.xml, but this did nothing.  After reading
> the e-mail entitled Re:web.xml, which states that the conf/web.xml file is no
> longer read in the 3.2.1, I proceeded to add the jsp servlet and its corresponding
> mappings to my applicaitons web.xml.  Now, when I try to hit a jsp, I get a 404
> file not found.  Before making this change I could at least activate the jsp's.
>
> In the start up log, I'm getting the following message:
>
> 001-03-09 01:16:23 - Ctx( /MyApp ): Removing duplicate *.jsp ->
> jsp(org.apache.jasper.servlet.JspServlet/null)
>
> This message leads me to believe that Tomcat is reading the conf/web.xml and it's
> clashing with the my applications set up.
>
> Any suggestions?
>
> Thanks,
>
> Paolo
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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




Re: Parser.jar now in classpath, so what is causing this error

2001-03-12 Thread Paolo Barolat-Romana

Here is the definition of the java.lang.NoClassDefFoundError class:

Thrown if the Java Virtual Machine or a classloader tries to load in the definition of 
a class (as part of a normal
method call or as part of creating a new instance using the new expression) and no 
definition of the class could be
found.

The searched-for class definition existed when the currently executing class was 
compiled, but the definition can no
longer be found.

I am not an expert on classloaders and it seems that Tomcat does not use the default 
class loader.  However, I would
recommend that you move the Parser.jar file to the front of the classpath, as it is 
possible that another jar file
contains a different version of the class.

I have seen information about the class loader on this mailing list.  You might want 
to look into it.

Paolo


Kemp Randy-W18971 wrote:

> My Parser.jar in now in classpath, so what is causing this error?
>   See log and classpath settings
>
> Error: 500
> Location: /examples/jsp/dates/date.jsp
> Internal Servlet Error:
> javax.servlet.ServletException: org/xml/sax/EntityResolver
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at 
>org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at 
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
> at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> at java.lang.Thread.run(Thread.java:484)
> Root cause is; java.lang.NoClassDefFoundError: org/xml/sax/EntityResolver
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:178)
> at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
> at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
> at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
> at 
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152)
> at 
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at 
>org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at 
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
> at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> at java.lang.Thread.run(Thread.java:484)
> Root cause:
> java.lang.NoClassDefFoundError: org/xml/sax/EntityResolver
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> at

Re: Tomcat context problem

2001-03-09 Thread Paolo Barolat-Romana

Nico-

Just as a side note, the servlet name does not have to be the fully
qualified class name.  The servlet name is used internally by tomcat and
can be whatever you like.  Note that the servlet name in the servlet tag
and the servlet name in the servlet mapping tag are what connect the two
tags.

You are missing one element in you web.xml file 


Whatever



Whatever
/myservlet


"H.F.N. den Boer" wrote:

> Hi,
>
> I'm trying to get a webapp running on a Win2000 machine running IIS. We
> have troubles with the context.
>
> In the webapps dir I've put a imsapps.war.
> It is unpacked by Tomcat and has web.xml under it and subdirs /lib and
> /classes.
>
> In case of examples, typing url www.localhost/examples displays a
> direcory listing.
> Typing url www.localhost/imsapps not.
> The servlet is not recognised by typing www.localhost/imsapps/gsServer
>
> In web.xml (in dir /imsapps) I mapped the servlet;
>
>  
>  
>Application produced for ...
>  
>
>
>
>  
>  /gsServer
>
>
> In server.xml (in TOMCAT_HOME/conf) I mapped the context;
> docBase="c:/jakarta-tomcat/webapps/imsapps"
> crossContext="true"
> debug="9"
> reloadable="true"
> trusted="true" >
>
>
> Does anyone have an idea what's wrong here ?
>
> Kind regards,
> Nico den Boer
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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




Re: What is causing this error?

2001-03-09 Thread Paolo Barolat-Romana

It seems that the class org.xml.sax.EntityResolver is not in your classpath.  Make 
sure that all of the appropriate jar files are in your classpath.  These
jar files are located in %TOMCAT_DIR%/lib.  EntityResolver is stored in Parser.jar.

Paolo

Kemp Randy-W18971 wrote:

> Can anyone tell me what is causing this error under Tomcat 3.2.1, when I go to the 
>example site at http://localhost:8080/examples/jsp/num/numguess.jsp?
> Error: 500
> Location: /examples/jsp/num/numguess.jsp
> Internal Servlet Error:
> javax.servlet.ServletException: org/xml/sax/EntityResolver
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at 
>org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at 
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
> at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> at java.lang.Thread.run(Thread.java:484)
> Root cause is; java.lang.NoClassDefFoundError: org/xml/sax/EntityResolver
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:178)
> at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
> at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
> at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
> at 
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152)
> at 
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at 
>org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at 
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
> at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> at java.lang.Thread.run(Thread.java:484)
> Root cause:
> java.lang.NoClassDefFoundError: org/xml/sax/EntityResolver
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
> at java.lang.ClassLoader.loadClassInternal(ClassL

Re: can anyone help

2001-03-09 Thread Paolo Barolat-Romana

Jeremy-

That is a very broad request.  This e-mail list is geared toward helping people
with specific problems.  I think that you should try executing servlets on your
own and when you run into a problem, post it here.

Paolo

[EMAIL PROTECTED] wrote:

> I am knew at this and can anyone tell me how to execute servlets on Tomcat.
> Please anyoneSOS
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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




JSP init param

2001-03-09 Thread Paolo Barolat-Romana


I am trying to add the jspCompilerPlugin initialization parameter to my jsp
container.  I adding this in conf/web.xml, but this did nothing.  After reading
the e-mail entitled Re:web.xml, which states that the conf/web.xml file is no
longer read in the 3.2.1, I proceeded to add the jsp servlet and its corresponding
mappings to my applicaitons web.xml.  Now, when I try to hit a jsp, I get a 404
file not found.  Before making this change I could at least activate the jsp's.

In the start up log, I'm getting the following message:

001-03-09 01:16:23 - Ctx( /MyApp ): Removing duplicate *.jsp ->
jsp(org.apache.jasper.servlet.JspServlet/null)

This message leads me to believe that Tomcat is reading the conf/web.xml and it's
clashing with the my applications set up.

Any suggestions?

Thanks,

Paolo




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




Re: context.getInitParameter()

2001-03-09 Thread Paolo Barolat-Romana

Milt-

Thanks for pointing that out.  When you look at something a zillion times, the
obvious seems to be so difficult to see!  It's always helpful to have another
pair of eyes.

Thanks again,

Paolo

Milt Epstein wrote:

> On Fri, 9 Mar 2001, Paolo Barolat-Romana wrote:
>
> >
> > I must be doing something wrong here.  In my code, I have the following
> > line:
> >
> >  ServletContext servletContext = getServletConfig().getServletContext();
> >
> >  String fileName = (String) servletContext.getAttribute("filename");
> >
> > Now, this should return a string which I've setup in web.xml.  Here is
> > the relevant part of web.xml:
> >
> > 
> >  
> >   filename
> >   c:\temp\file.txt
> >  
> > .
> >
> > But instead, this code is returning null.  Has this method not been
> > implemented?
>
> init parameters and attributes are different things.  Things set up as
> context-param's in web.xml are available via the ServletContext
> getInitParameter() (and getInitParameterNames()) method --
> getAttribute() is for attributes.
>
> The odd thing is that in the subject line of your note you mention
> getInitParameter() (even though you indicate above that you're using
> getAttribute()).
>
> Milt Epstein
> Research Programmer
> Software/Systems Development Group
> Computing and Communications Services Office (CCSO)
> University of Illinois at Urbana-Champaign (UIUC)
> [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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




context.getInitParameter()

2001-03-09 Thread Paolo Barolat-Romana


I must be doing something wrong here.  In my code, I have the following
line:

 ServletContext servletContext = getServletConfig().getServletContext();

 String fileName = (String) servletContext.getAttribute("filename");

Now, this should return a string which I've setup in web.xml.  Here is
the relevant part of web.xml:


 
  filename
  c:\temp\file.txt
 
.

But instead, this code is returning null.  Has this method not been
implemented?

Thanks,

Paolo


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




request.sendRedirect()

2001-03-08 Thread Paolo Barolat-Romana


I am trying to understand the behavior of sendRedirect().  The Servlet
Spec states:

The sendRedirect method will set the appropriate headers and content
body to direct the
client to a different URL. It is legal to call this method with a
relative URL path, however the
underlying container must translate the relative path to a fully
qualified URL for transmission back
to the client. If a partial URL is given and, for whatever reason,
cannot be converted into a valid
URL, then this method must throw an IllegalArgumentException.

What I find somewhat ambiguous is the line "the underlying container
must translate the relative path to a fully qualified URL".  Does this
the container should insert the context path in the URL?  That is,
suppose I have an application whose root is /Test.  In my code, I do the
following:

response.sendRedirect("/ReallyATest");

Should the address sent to the client be:

A) http://myserver/ReallyATest
B) http://myserver/Test/ReallyATest

It seems that Apache follows A.  It does not insert the context path.
However, I am also using IBM WebSphere 3.5 and it does B!  So, which is
the right one?

For now, I will use the following work around for portability:

response.sendRedirect(request.getRemoteHost() + request.getContextPath()
+ "ReallyATest");

Thanks,

Paolo


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




server.xml

2001-02-08 Thread Paolo Barolat-Romana

This is the top of the web.xml file in the conf directory:


http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

As far as I know, the xml parser will look for the dtd and verify that the
xml file conforms to the description in the dtd.

Why doesn't the server.xml has such a declaration at the top?  Would that
make an xml parser fail?

Thanks,

Paolo



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




No root directory

2001-02-08 Thread Paolo Barolat-Romana

When I hit a servlet in my webapp, I get the following message from tomcat:

No root directory specified in XML file, using "".

The directory specified by  is incorrect.  In server.xml, I have the
following:



Shouldn't this declaration take care of the root directory?

Thanks,

Paolo




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




Re: Parse Error in the tag library

2001-02-06 Thread Paolo Barolat-Romana

If I move my taglib from $app_home$/jsp/taglib.tld to $app_home$/taglib.tld
and change the taglib tag in my jsp from <%@ taglib uri="/jsp/taglib.tld"
prefix="hello"%> to <%@ taglib uri="/taglib.tld" prefix="hello"%>,
then it works.  This definitely has to be a config problem.  Does anyone
know what I need to change?

Paolo

- Original Message -
From: "Paolo Barolat-Romana" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 06, 2001 8:08 PM
Subject: Parse Error in the tag library


> I get the following error when I try to access a jsp that has tags in
> it.  My tag library resides in $app_home$/jsp/taglib.tld.  I know
> that the jsp and tags work properly because I have used them on
> WebSphere (which also uses the Jasper parser).  Could someone explain
> this?
> I think it has to do with a configuration setting.
>
> Thanks,
> Paolo
>
> org.apache.jasper.JasperException: Unable to open taglibrary
> /jsp/taglib.tld : Parse Error in the tag library descriptor: Element
> "web-app" does not allow "servlet" here.
>  java.lang.Throwable(java.lang.String)
>  java.lang.Exception(java.lang.String)
>  javax.servlet.ServletException(java.lang.String)
>  org.apache.jasper.JasperException(java.lang.String)
>  void
>
org.apache.jasper.compiler.JspParseEventListener.handleDirective(java.lang.S
tring,
> org.apache.jasper.compiler.Mark, org.apache.jasper.compiler.Mark,
> java.util.Hashtable)
>  void
>
org.apache.jasper.compiler.DelegatingListener.handleDirective(java.lang.Stri
ng,
> org.apache.jasper.compiler.Mark, org.apache.jasper.compiler.Mark,
> java.util.Hashtable)
>  boolean
>
org.apache.jasper.compiler.Parser$Directive.accept(org.apache.jasper.compile
r.ParseEventListener,
> org.apache.jasper.compiler.JspReader, org.apache.jasper.compiler.Parser)
>
>  void org.apache.jasper.compiler.Parser.parse(java.lang.String,
> java.lang.Class [])
>  void org.apache.jasper.compiler.Parser.parse(java.lang.String)
>  void org.apache.jasper.compiler.Parser.parse()
>  boolean org.apache.jasper.compiler.Compiler.compile()
>  boolean org.apache.jasper.runtime.JspServlet.loadJSP(java.lang.String,
> java.lang.String, boolean, javax.servlet.http.HttpServletRequest,
> javax.servlet.http.HttpServletResponse)
>  void
>
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(javax
.servlet.http.HttpServletRequest,
> javax.servlet.http.HttpServletResponse)
>  void
>
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(javax.servlet
.http.HttpServletRequest,
> javax.servlet.http.HttpServletResponse, boolean)
>  void
>
org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.http.HttpS
ervletRequest,
> javax.servlet.http.HttpServletResponse, java.lang.String,
> java.lang.Throwable, boolean)
>  void
>
org.apache.jasper.runtime.JspServlet.service(javax.servlet.http.HttpServletR
equest,
> javax.servlet.http.HttpServletResponse)
>  void
> javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
> javax.servlet.ServletResponse)
>  void
>
org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.R
equest,
> org.apache.tomcat.core.Response)
>  void
>
org.apache.tomcat.core.RequestDispatcherImpl.forward(javax.servlet.ServletRe
quest,
> javax.servlet.ServletResponse)
>  void
>
us.pa.state.web.FormServlet.doValidSessionLogic(javax.servlet.http.HttpServl
etRequest,
> javax.servlet.http.HttpServletResponse)
>  void
>
us.pa.state.web.SessionTimeVerificationServlet.doAppUpLogic(javax.servlet.ht
tp.HttpServletRequest,
> javax.servlet.http.HttpServletResponse)
>  void
>
us.pa.state.web.ShutDownVerificationServlet.service(javax.servlet.http.HttpS
ervletRequest,
> javax.servlet.http.HttpServletResponse)
>  void
> javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
> javax.servlet.ServletResponse)
>  void
>
org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.R
equest,
> org.apache.tomcat.core.Response)
>  void
>
org.apache.tomcat.core.ContextManager.service(org.apache.tomcat.core.Request
,
> org.apache.tomcat.core.Response)
>  void
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(org.a
pache.tomcat.service.TcpConnection,
> java.lang.Object [])
>  void org.apache.tomcat.service.TcpConnectionThread.run()
>  void java.lang.Thread.run()
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


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




Parse Error in the tag library

2001-02-06 Thread Paolo Barolat-Romana

I get the following error when I try to access a jsp that has tags in
it.  My tag library resides in $app_home$/jsp/taglib.tld.  I know
that the jsp and tags work properly because I have used them on
WebSphere (which also uses the Jasper parser).  Could someone explain
this?
I think it has to do with a configuration setting.

Thanks,
Paolo

org.apache.jasper.JasperException: Unable to open taglibrary
/jsp/taglib.tld : Parse Error in the tag library descriptor: Element
"web-app" does not allow "servlet" here.
 java.lang.Throwable(java.lang.String)
 java.lang.Exception(java.lang.String)
 javax.servlet.ServletException(java.lang.String)
 org.apache.jasper.JasperException(java.lang.String)
 void
org.apache.jasper.compiler.JspParseEventListener.handleDirective(java.lang.String,
org.apache.jasper.compiler.Mark, org.apache.jasper.compiler.Mark,
java.util.Hashtable)
 void
org.apache.jasper.compiler.DelegatingListener.handleDirective(java.lang.String,
org.apache.jasper.compiler.Mark, org.apache.jasper.compiler.Mark,
java.util.Hashtable)
 boolean
org.apache.jasper.compiler.Parser$Directive.accept(org.apache.jasper.compiler.ParseEventListener,
org.apache.jasper.compiler.JspReader, org.apache.jasper.compiler.Parser)

 void org.apache.jasper.compiler.Parser.parse(java.lang.String,
java.lang.Class [])
 void org.apache.jasper.compiler.Parser.parse(java.lang.String)
 void org.apache.jasper.compiler.Parser.parse()
 boolean org.apache.jasper.compiler.Compiler.compile()
 boolean org.apache.jasper.runtime.JspServlet.loadJSP(java.lang.String,
java.lang.String, boolean, javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
 void
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
 void
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, boolean)
 void
org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse, java.lang.String,
java.lang.Throwable, boolean)
 void
org.apache.jasper.runtime.JspServlet.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
 void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
 void
org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.Request,
org.apache.tomcat.core.Response)
 void
org.apache.tomcat.core.RequestDispatcherImpl.forward(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
 void
us.pa.state.web.FormServlet.doValidSessionLogic(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
 void
us.pa.state.web.SessionTimeVerificationServlet.doAppUpLogic(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
 void
us.pa.state.web.ShutDownVerificationServlet.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
 void
javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
 void
org.apache.tomcat.core.ServletWrapper.handleRequest(org.apache.tomcat.core.Request,
org.apache.tomcat.core.Response)
 void
org.apache.tomcat.core.ContextManager.service(org.apache.tomcat.core.Request,
org.apache.tomcat.core.Response)
 void
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(org.apache.tomcat.service.TcpConnection,
java.lang.Object [])
 void org.apache.tomcat.service.TcpConnectionThread.run()
 void java.lang.Thread.run()





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