-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

All,

I generally don't do a lot of work with JSP, so I apologize if I'm
asking kind of a stupid question, but here goes.

Sun Java 1.5, TC 4.1.31

I recently authored a JSP that accepts an encrypted token encoded in the
URL from another server to allow a sort-of "automatic login" to another
application. This has worked well from the very beginning and has
already gone into production.

Recently, I have been making sweeping changes to the deployment
mechanism (used to just point TC to the install directory as the
webapp's directory and just let it go; not we're using ant to actually
build a WAR and expand that WAR into TC's webapps directory).

My JSP has started failing in odd ways. The weird thing is that it
appears that this is the only JSP to be failing: the rest of the
application (several hundred pages) is doing just fine.

After the server is started, an odd chain of events is observable:

1. Accessing the page gives you a "503 - Cannot configure" error
   with no stack trace in the page, and no stack trace in any of
   catalina.out, catalina_[date].log, or localhost_[date].log.

2. After the first access, I get a "500 error" with the following
   stack trace (not that /my/ JSP does not appear anywhere in this
   stack trace).

java.lang.IllegalStateException
        at
org.apache.coyote.tomcat4.CoyoteResponseFacade.sendError(CoyoteResponseFacade.java:262)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:180)
        at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:445)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
        at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
        at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
        at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
        at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
        at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        at java.lang.Thread.run(Thread.java:595)

3. Modifying the JSP to simplify it (trying to find out what might be
   causing the error results in a "503 - JSP has been marked
   unavailable" with no stack trace.

A few things to note:

* I have debug="99" in every conceivable element in my server.xml file.
* No errors or stack traces are visible anywhere other than the one
  shown above.
* Since the stack trace contains only TC code, I'm not sure where to
  begin.

Any ideas? I'd prefer to get some advise before I start modifying TC
classes to get mode debugging output.

Thanks,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFr9+09CaO5/Lv0PARAhvSAKC10H1WC1XdL8djF5HggFNEWWssnACeOEYE
/q3+KL6tQrZ/mfKHNBihNWI=
=ntve
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to