tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Moore" <tmo...@blackboard.com>
Subject RE: Path index.jsp does not start with a "/"
Date Tue, 04 Feb 2003 15:40:09 GMT
What does your login page do when it's submitted?  It sounds like it's
calling ServletContext.getRequestDispatcher("index.jsp") which isn't
quite legal.

>From the Javadocs for getRequestDispatcher:

"The pathname must begin with a "/" and is interpreted as relative to
the current context root."

I guess WebSphere may not be strictly conformant.
-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


> -----Original Message-----
> From: Inocencio Richiez [mailto:irichiez@yahoo.com] 
> Sent: Tuesday, February 04, 2003 9:36 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Path index.jsp does not start with a "/"
> 
> 
> Hi can someone here please help???
>  
> I have a WAR file that was succesfully deployed in
> WebSphere Application Server. The file now needs to
> be deployed in Tomcat apache 4.0. I copied the WAR 
> file into the webapps folder. When I run the 
> application, my first page (login page) comes up
> great. But once I try to login, I get the following
> exception:
>  
> java.lang.IllegalArgumentException: Path index.jsp
> does not start with a "/" character at
> 
> org.apache.catalina.core.ApplicationContext.getRequestDispatch
>  er(ApplicationContext.java:572)
> 
>  
> Here is what I've included in the server.xml file:
> .....
> <!-- Tomcat Root Context -->
> <!--
> <Context path="" docBase="ROOT" debug="0"/>
> -->
> <Context path="/ICSMonitor" docBase="CWDashboard"
> debug="0" 
> reloadable="true" crossContext="true">
> 
> <!-- Tomcat Manager Context -->
> <Context path="/manager" docBase="manager" debug="0" 
> privileged="true"/>
> 
> <!-- Tomcat Examples Context 
> <Context path="/examples" docBase="examples" debug="0"
> 
> reloadable="true" crossContext="true">
> <Logger
> className="org.apache.catalina.logger.FileLogger" 
> prefix="localhost_examples_log." suffix=".txt" timestamp="true"/>
> <Ejb   name="ejb/EmplRecord" type="Entity" 
> home="com.wombat.empl.EmployeeRecordHome"
> remote="com.wombat.empl.EmployeeRecord"/>
> -->
>  
> .....
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now. 
http://mailplus.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message