Hi,
I'm using Tomcat 3.2, Apache 1.3 on Linux
and i followed your directions.
Here is what i put in my server.xml

 <Context path=""
          docBase="/home/sdfong/public_html/rubyfong/gamezone/"
          crossContext="false"
          debug="0"
          reloadable="true" >
 </Context>

but got these errors as follows:

1. In Netscape browser

Not Found(404)

Original request: /~sdfong/rubyfong/gamezone/testex.jsp

Not found request: /~sdfong/rubyfong/gamezone/testex.jsp


2. In the Terminal at the command prompt

2001-03-23 04:25:00 - Ctx(  ): 404 R(  + /~sdfong/rubyfong/gamezone/testex.jsp + null) 
JSP file not found


3. In jasper.log in $TOMCAT_HOME/logs/

2001-03-23 04:23:53 - Scratch dir for the JSP engine is: 
/usr/java/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples
2001-03-23 04:23:53 - IMPORTANT: Do not modify the generated servlets
2001-03-23 04:25:00 - JspEngine --> /~sdfong/rubyfong/gamezone/testex.jsp
2001-03-23 04:25:00 -        ServletPath: /~sdfong/rubyfong/gamezone/testex.jsp
2001-03-23 04:25:00 -           PathInfo: null
2001-03-23 04:25:00 -           RealPath: 
/home/sdfong/public_html/rubyfong/gamezone/~sdfong/rubyfong/gamezone/testex.jsp
2001-03-23 04:25:00 -         RequestURI: /~sdfong/rubyfong/gamezone/testex.jsp
2001-03-23 04:25:00 -        QueryString: null
2001-03-23 04:25:00 -     Request Params:
2001-03-23 04:25:00 - Classpath according to the init parameter is:


Do you know what I did wrong and how to fix it?

Thanks in advance for your help,
Luoi



On Wed, 21 Mar 2001, Arif Tayebali wrote:

> I apologize for making the directions high-leve.
>  
> Good catch!
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 21, 2001 1:41 PM
> To: [EMAIL PROTECTED]
> Subject: RE: IF UR ON APACHE + WINNT + TOMCAT...LISTEN UP!
> 
> 
> 
> You missed a critical step.  You need to add "index.jsp" as an allowable
> default page to the DirectoryIndex entry in httpd.conf.
> 
> -----Original Message----- 
> From: Arif Tayebali [ mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> ] 
> Sent: Wednesday, March 21, 2001 2:27 PM 
> To: '[EMAIL PROTECTED]' 
> Subject: IF UR ON APACHE + WINNT + TOMCAT...LISTEN UP! 
> Importance: High 
> 
> 
> Hey all u jsp types..whats up? 
> 
> If u were woundering how sites use jsp files as their index page like this: 
> 
>         www.urtheman.com (takes u to index.jsp) 
> 
> listen up. 
> 
> 
> 1. make sure u turn off tomcat and apache 
>         1a. create index.jsp like so: 
>         <html> 
>       <body> 
>       <% 
>         out.println("Let me know"); 
>       %> 
>       </body> 
>      </html> 
>         
> 2. make sure u add contect like this: 
>         
>          <Context path="" 
>                  docBase="<location to ur jsp, html, css files on the same 
> network drive as Tomcat and Apache>" 
>                  crossContext="false" 
>                  debug="0" 
>                  reloadable="true" > 
>         </Context> 
> 
> 3. make sure u configure Apache to point to that location as well 
> 4. config mod_jk.conf-auto so that Tomcat and Apache can communicate swiftly
> 
> 
> 5. Start Tomcat 
> 6. Start Apache 
> 7. U can know punch in www.whatever.com (and itll take u to a index.jsp 
> file) 
> 
> Lemme know if u r stuck! 
> 
> software used: 
> 
> WinNT4, Apache1.3 + Tomcat3.2 (as services), mod_jk (using ajpv1.3) 
> 
> happy programming 
> 
> 

-- 
D. Shun-Luoi Fong
821 Melrose Avenue
Iowa City, IA 52246
email: [EMAIL PROTECTED]

-----------------------
Colossions 2:8 See to it that no one takes you captive through philosophy
or empty deception, according to the traditions of men, according to the
elementary principles of the world, rather than according to Christ.
-----------------------



Reply via email to