Hi!
 
Presently, I am using Jakarta-Tomcat vers. 3.2 with port:8188 (see
server.xml downwords).
My application (MyApp) is stored under {TOMCAT-HOME}/webapps /MyApp, and I
did store my Jsp-files here  (i.e. under {TOMCAT-HOME}/webapps/
MyApp/myJsp.jsp ).
 
This is the configuration of my web.xml:
 
<web-app>
     <servlet>
        <servlet-name>SomeName</servlet-name>
        <servlet-class>MyPackage.Control</servlet-class>
    </servlet>
     <servlet-mapping>
        <servlet-name>SomeName</servlet-name>
        <url-pattern>/Something</url-pattern>
     </servlet-mapping>
</web-app>
 
and under server.xml, I do have this configuration:

   (...)
      <Connector className="org.apache.tomcat.service.PoolTcpConnector">
         <Parameter name="handler"
value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
         <Parameter name="port" value="8188"/>
     </Connector>
    (...)  
   <Context path="/MyApp" docBase="webapps/MyApp" debug="0"
reloadable="true"/>
   (...)
 
Then I did start tomcat (with startup.sh), but when I try the following in
my servlet (MyPackage.Control):
 
   public void doGet (HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {
      (...)
      getServletContext ().getRequestDispatcher ("/myJsp.jsp").forward (req,
res);
      (...)
   }
 
with (http://myHost:8188/MyApp/Something? 

and run (start)  it, then I get the following error messages in tomcat.log:
 
  " 2002-11-13 06:04:01 - ContextManager: Adding context Ctx( /MyApp )
   2002-11-13 06:04:01 - PoolTcpConnector: Starting HttpConnectionHandler on
8188
   2002-11-13 06:04:01 - PoolTcpConnector: Starting Ajp12ConnectionHandler
on 8189
   2002-11-13 06:05:09 - Ctx( /MyApp ): 404 R( /MyApp +  /myJsp.jsp + null)
JSP file not found"
 
My servlet MyPackage.Control delivers as virtual-path: /MyApp/Something
and as my real path: {Tomca-Home}/webapps/MyApp/MyApp/Something
 
why can't it find the Jsp-file? 
what I am doing wrong? 
why does it deliver this two times .../MyApp/MyApp/...?
how should the URL be written? http://...? so that it could find my
myJsp.jsp ?

I am also using apache1.3.14 , does the error message has anything to do
with it?

Every help will be appreciated.
Thanks in anticipation!
Mbe
################################################################### End

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr f�r 1 ct/ Min. surfen!


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to