Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: jsp deployment

jford

2004-02-13

Replies:

Yes, yes, and yes...JDK 1.4, $JAVA_HOME is set to /usr/java/j2sdk1.4.0,
and Tomcat is able to compile the example jsps that come in the
webserver package.

Jerry

David Ramsey wrote:

>Do you have a JDK installed? Do you have a JAVA_HOME environment
>variable set? Can Jasper find the java compiler (javac)?
>
>
>
>--- Jerry Ford <jford@(protected):
>
>
>>Logs show class-not-found exception for open.jsp.
>>
>>Which brings me back to my original question---what do I need to
>>configure to let Tomcat know about this jsp?
>>
>>It already knows where my webapp is and is able to serve my servlets
>>just fine, as well as the html files that are in the same directory
>>as
>>the jsp.
>>
>>thanks.
>>
>>Jerry
>>
>>Thomas Tang wrote:
>>
>>  
>>
>>>Hi all,
>>>
>>>Do the logs give any indication as to where Tomcat is looking for
>>>    
>>>
>>the jsp
>>  
>>
>>>files?
>>>
>>>A 404 error does not sound like a permissions problem. It sounds
>>>    
>>>
>>like a
>>  
>>
>>>context setting might be off somewhere.
>>>
>>>Thomas
>>>
>>>
>>>
>>>Jerry Ford <jford@(protected)>
>>>02/13/2004 11:03 AM
>>>Please respond to
>>>"Tomcat Users List" <tomcat-user@(protected)>
>>>
>>>
>>>To
>>>Tomcat Users List <tomcat-user@(protected)>
>>>cc
>>>
>>>Subject
>>>Re: jsp deployment
>>>
>>>
>>>
>>>
>>>
>>>
>>>Good suggestions, but, no, didn't work.
>>>
>>>There are no config issues preventing Tomcat from serving files from
>>>    
>>>
>>my
>>  
>>
>>>webapp---html and servlets all work. And I know Tomcat is serving
>>>    
>>>
>>jsp
>>  
>>
>>>files correctly; Tomcat's default examples work.
>>>
>>>Tomcat simply will not serve my .jsp file regardless of filetype
>>>    
>>>
>>(tried
>>  
>>
>>>it as .txt). Permissions and file ownership are identical to the
>>>permissions of the Tomcat example .jsp files, which do work.
>>>
>>>I restart Tomcat everytime I make a change.
>>>
>>>Still get the 404 when I call the jsp, even though the html files in
>>>    
>>>
>>the
>>  
>>
>>>same directory work fine, as do the servlets in the same webapp
>>>    
>>>
>>space.
>>  
>>
>>>Jerry
>>>
>>>Parsons Technical Services wrote:
>>>
>>>
>>>
>>>    
>>>
>>>>Jerry,
>>>>
>>>>Just for a test, change the file name to end with .txt and see if
>>>>    
>>>>
>>the
>>  
>>
>>>>  
>>>>
>>>>    
>>>>
>>>page
>>>
>>>
>>>    
>>>
>>>>is displayed.
>>>>
>>>>If it still fails. I would double check the permissions/ownership
>>>>    
>>>>
>>on that
>>  
>>
>>>>file.
>>>>
>>>>If it works, then try a restart. After a restart if it still fails,
>>>>    
>>>>
>>check
>>  
>>
>>>>your configs
>>>>for an entry that might be blocking or redirecting the request.
>>>>
>>>>Just a novice throwing out ideas.
>>>>
>>>>Doug Parsons
>>>>www.parsonstechnical.com
>>>>
>>>>
>>>>----- Original Message -----
>>>>From: "Jerry Ford" <jford@(protected)>
>>>>To: "Tomcat Users List" <tomcat-user@(protected)>
>>>>Sent: Thursday, February 12, 2004 2:33 PM
>>>>Subject: Re: jsp deployment
>>>>
>>>>
>>>>
>>>>
>>>>  
>>>>
>>>>    
>>>>
>>>>>Permissions on the .jsp file are identical to permissions on all
>>>>>      
>>>>>
>>of the
>>  
>>
>>>>>html, javascript, and servlet class files in the webapp, all of
>>>>>      
>>>>>
>>which
>>  
>>
>>>>>work: -rw--r--r-- owner/group is jford:user (which is the uid
>>>>>      
>>>>>
>>under
>>  
>>
>>>>>which tomcat was started).
>>>>>
>>>>>And I know it will serve .jsp's, the Tomcat example .jsp's all
>>>>>      
>>>>>
>>work.
>>  
>>
>>>>>Jerry
>>>>>
>>>>>QM wrote:
>>>>>
>>>>>
>>>>>
>>>>>  
>>>>>
>>>>>      
>>>>>
>>>>>>: Tomcat chokes when the jsp is requested. I get a 404
>>>>>>: error, "the requested resoruce is not available."
>>>>>>:
>>>>>>: What do I need to configure to get Tomcat to serve the jsp?
>>>>>>
>>>>>>
>>>>>>Chances are it's a permissions issue on the file. (Unless you've
>>>>>>tweaked Tomcat's config, it should already be able to serve
>>>>>>        
>>>>>>
>>JSPs.)
>>  
>>
>>>>>>-QM
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>    
>>>>>>
>>>>>>        
>>>>>>
>>>>---------------------------------------------------------------------
>>>>    
>>>>
>>>>>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>>>>>For additional commands, e-mail:
>>>>>      
>>>>>
>>tomcat-user-help@(protected)
>>  
>>
>>>>>
>>>>>
>>>>>  
>>>>>
>>>>>      
>>>>>
>>>---------------------------------------------------------------------
>>>    
>>>
>>>>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>>>>For additional commands, e-mail:
>>>>    
>>>>
>>tomcat-user-help@(protected)
>>  
>>
>>>>  
>>>>
>>>>    
>>>>
>>>    
>>>
>>---------------------------------------------------------------------
>>  
>>
>>>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>>>For additional commands, e-mail: tomcat-user-help@(protected)
>>>
>>>
>>>
>>>
>>>
>>>    
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>>For additional commands, e-mail: tomcat-user-help@(protected)
>>
>>  
>>
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Finance: Get your refund fast by filing online.
>http://taxes.yahoo.com/filing.html
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>For additional commands, e-mail: tomcat-user-help@(protected)
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.