Ezeilo Uchenna

Greenhorn
+ Follow
since Jan 10, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ezeilo Uchenna

Hi all,
I am having a problem with my Tomcat 4.0.4. When I access my index.jsp page which looks like this..
<%@ page import = "java.util.*" %>
.....
<%
GregorianCalendar currentDate = new GregorianCalendar();
currentDate.setTime(new java.util.Date());
System.out.println(currentDate);

long curt = currentDate.getTimeInMillis();
long fourtheendays = curt + 24*60*60*1000*14;
longtwentyonedays = curt + 24*60*60*1000*21;

GregorianCalendar departureDate = new GregorianCalendar();
departureDate.setTimeInMillis(fourtheendays);
System.out.println(departureDate);

GregorianCalendar arrivalDate = new GregorianCalendar();
arrivalDate.setTimeInMillis(twentyonedays);
System.out.println(arrivalDate);


%>
....

... I get this erroe message served from tomcat
(the generated file in work directory compiles fine with GregorianCalendar's getTimeInMillis and setTimeInMillis.
Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error
--------------------------------------------------------------------------------
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
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred between lines: 62 and 81 in the jsp file: /index.jsp
Generated servlet error:
E:\Apache-Tomcat-4.0\work\Standalone\localhost\BritishAirways\index$jsp.java:64: No method matching getTimeInMillis() found in class java.util.GregorianCalendar.
long curt = currentDate.getTimeInMillis();
^

An error occurred between lines: 62 and 81 in the jsp file: /index.jsp
Generated servlet error:
E:\Apache-Tomcat-4.0\work\Standalone\localhost\BritishAirways\index$jsp.java:69: No method matching setTimeInMillis(long) found in class java.util.GregorianCalendar.
departureDate.setTimeInMillis(fourtheendays);
^

An error occurred between lines: 62 and 81 in the jsp file: /index.jsp
Generated servlet error:
E:\Apache-Tomcat-4.0\work\Standalone\localhost\BritishAirways\index$jsp.java:73: No method matching setTimeInMillis(long) found in class java.util.GregorianCalendar.
arrivalDate.setTimeInMillis(twentyonedays);
^
3 errors
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
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:2347)
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:1027)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:479)
Please help!
21 years ago
Hi,
Please can anybody help me out. I have a problem with security in my application. I have a secured page which is also running on ssl. I configured form-login declarative security for the secured page.
My problem is with IE and URL rewriting. IE cannot open the form-login-page, when it finally breaks I get the "The page cannot be displayed" error message with address pointing to https://uche:8080/BA/login.jsp. I expect a url of
https://uche:88443/BritishAirways/login.jsp.
Using Netscape everything works normal and the login.jsp page is displayed running on https protocol, but it seems tomcat is using url-rewriting to maintain session because the address bar reads. https://uche:8443/BA/login.jsp;jsessionid=19C4EABCDE223612E674F9B08B2D638D. When I enter a correct login information I get a blank page.
21 years ago
Yes I want to make the URL more intelligent but it is supposed to send the user to the protected PayAccount (the next page the user expects) when they have logged in before. If the user has logged in
No, when a user refreshes the PayAccount page after a successful login he/she gets a blank page with the URL of PayAccount still showing in the browser's address bar.
Uche
[ November 22, 2002: Message edited by: Ezeilo Uchenna ]
21 years ago
Hi All,
I am using form login authentication method to protect a page ,PayAccount. The problem is that when a user successfully logs in and is able to access the PayAccount page if he/she presses the browser back button the form-login-page is presented again to the user and on submitting correct login information the following Tomcat error message is displayed
Apache Tomcat/4.0.4 - HTTP Status 404 - /j_security_check
type Status report
message /j_security_check
description The requested resource (/j_security_check) is not available.
Another error occurs when a user refreshes the PayAccount page. It shows a blank page. Clicking on the browser back button gives the same error as the first error.
I want to know is this the expected behaviour for a protected page when you configure form based authentication using your servlet container like Tomcat or am I making a mistake somewhere.
Please help.
21 years ago
98%.And I had Threads as the major threat.
For io I had onlyconstructors to worry about.
I think Sun is fair with the exam.What the objectives say is what you get in the exam.
22 years ago