You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Chuck Amadi <ch...@breconbeacons.org> on 2002/04/05 13:41:32 UTC

Re: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error-Can you possible -HELP-ME-PLEASE

Hi Korakaki Stella

Plz could you work out wats with this .

Note that a few days's ago my Planning Database Project was working fine 
until now.

Regards Chuck Amadi

*type* Exception report

*message*_Internal Server Error_

*description*_The server encountered an internal error (Internal Server 
Error) that prevented it from fulfilling this request._

*exception*

javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
	at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
	at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
	at java.lang.Thread.run(Thread.java:484)

*root cause*

java.lang.NoSuchMethodError
	at org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.java:202)
	at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139)
	at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:345)
	at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)
	at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
	at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
	at java.lang.Thread.run(Thread.java:484)





--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Redirecting to a home page after form-based authentication

Posted by Timothy Fisher <tr...@yahoo.com>.
Where are you suggesting that code go?

You don't want to forward from the login page, because
the form on that page is submitted to j_securitycheck.

Tim

--- seapwc@halcyon.com wrote:
> How about this?
> 
> String s = "/home.html";
> RequestDispatcher disp =
>
getServletContext().getRequestDispatcher(someaddress);
> dispatcher.forward(request,response)
> 
> 
> At 10:44 AM 4/5/02, you wrote:
> >  I want him to be redirected to
> >home.html.
> 
> 
> --
> To unsubscribe:  
> <ma...@jakarta.apache.org>
> For additional commands:
> <ma...@jakarta.apache.org>
> Troubles with the list:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Redirecting to a home page after form-based authentication

Posted by se...@halcyon.com.
How about this?

String s = "/home.html";
RequestDispatcher disp = getServletContext().getRequestDispatcher(someaddress);
dispatcher.forward(request,response)


At 10:44 AM 4/5/02, you wrote:
>  I want him to be redirected to
>home.html.


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Redirecting to a home page after form-based authentication

Posted by Jason Owens <sh...@portablehole.net>.
As far as I know - you cannot do this while using the default 
container-based form authentication. Tomcat's form authenticator stores 
the original request, and then redirects to it once the user is 
authenticated. In other words, you'd have to override tomcat's default 
behavior. (This is the same kind of problem I've been having...)

If you need to do that, you might have to subclass FormAuthenticator. 
However, I'm not sure how to tell Tomcat to use your class... Maybe 
someone else knows?

-Jason


On Friday, April 5, 2002, at 10:44  AM, Timothy Fisher wrote:

> Can someone tell me how to accomplish the following:
>
> I am using form-based authentication.
>
> Lets assume the following files exist:
>  - login.html
>  - home.html
>  - page1.html
>
> Both home.html and page1.html are protected so the
> user is redirected to the login page if trying to
> access those.
>
> Now after a successful form-based login, I want the
> user to ALWAYS be routed to the home.html page, not
> necessarily the page he was implicitly trying to
> access.
>
> For example if he trys to access page1.html, he will
> be redirected to login.html.  Upon successful
> authentication, I want him to be redirected to
> home.html.
>
> I know this can be done.  Just dont remember how.
>
>
> Sincerely,
> Timothy Fisher
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


RE: Redirecting to a home page after form-based authentication

Posted by Timothy Fisher <tr...@yahoo.com>.
Good point, but I was hoping to find a solution that
would be compatible across a variety of app servers. 
Most commercial app servers do not yet support
filters, as they are part of the 2.3 servlet spec.

Tim

--- Alvin Wang <xw...@qtechservices.com> wrote:
> Timothy, can you use a filter to do this? In your
> homepage, you set a tag in
> session. If the filter finds this tag, that means
> the homepage has been
> visited, otherwise the user will be redirected to
> the homepage
> 
> Alvin
> 
> -----Original Message-----
> From: Timothy Fisher [mailto:trfishermi@yahoo.com]
> Sent: Friday, April 05, 2002 1:45 PM
> To: Tomcat Users List
> Subject: Redirecting to a home page after form-based
> authentication
> 
> 
> Can someone tell me how to accomplish the following:
> 
> I am using form-based authentication.
> 
> Lets assume the following files exist:
>  - login.html
>  - home.html
>  - page1.html
> 
> Both home.html and page1.html are protected so the
> user is redirected to the login page if trying to
> access those.
> 
> Now after a successful form-based login, I want the
> user to ALWAYS be routed to the home.html page, not
> necessarily the page he was implicitly trying to
> access.
> 
> For example if he trys to access page1.html, he will
> be redirected to login.html.  Upon successful
> authentication, I want him to be redirected to
> home.html.
> 
> I know this can be done.  Just dont remember how.
> 
> 
> Sincerely,
> Timothy Fisher
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
> 
> --
> To unsubscribe:  
> <ma...@jakarta.apache.org>
> For additional commands:
> <ma...@jakarta.apache.org>
> Troubles with the list:
> <ma...@jakarta.apache.org>
> 
> 
> --
> To unsubscribe:  
> <ma...@jakarta.apache.org>
> For additional commands:
> <ma...@jakarta.apache.org>
> Troubles with the list:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


RE: Redirecting to a home page after form-based authentication

Posted by Alvin Wang <xw...@qtechservices.com>.
Timothy, can you use a filter to do this? In your homepage, you set a tag in
session. If the filter finds this tag, that means the homepage has been
visited, otherwise the user will be redirected to the homepage

Alvin

-----Original Message-----
From: Timothy Fisher [mailto:trfishermi@yahoo.com]
Sent: Friday, April 05, 2002 1:45 PM
To: Tomcat Users List
Subject: Redirecting to a home page after form-based authentication


Can someone tell me how to accomplish the following:

I am using form-based authentication.

Lets assume the following files exist:
 - login.html
 - home.html
 - page1.html

Both home.html and page1.html are protected so the
user is redirected to the login page if trying to
access those.

Now after a successful form-based login, I want the
user to ALWAYS be routed to the home.html page, not
necessarily the page he was implicitly trying to
access.

For example if he trys to access page1.html, he will
be redirected to login.html.  Upon successful
authentication, I want him to be redirected to
home.html.

I know this can be done.  Just dont remember how.


Sincerely,
Timothy Fisher


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Redirecting to a home page after form-based authentication

Posted by Timothy Fisher <tr...@yahoo.com>.
Can someone tell me how to accomplish the following:

I am using form-based authentication.

Lets assume the following files exist:
 - login.html
 - home.html
 - page1.html

Both home.html and page1.html are protected so the
user is redirected to the login page if trying to
access those.

Now after a successful form-based login, I want the
user to ALWAYS be routed to the home.html page, not
necessarily the page he was implicitly trying to
access.

For example if he trys to access page1.html, he will
be redirected to login.html.  Upon successful
authentication, I want him to be redirected to
home.html.

I know this can be done.  Just dont remember how.


Sincerely,
Timothy Fisher


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>