Without knowing how your web.xml file was defined, it seems to me a context 
root problem.  Sun has its own way to define the path of a context root in its 
sun-web.xml file, unlike tomcat which uses the application name as the default 
root path.  If you use Sun's Studio to package and deploy your web app, by 
default it may create a default context root as / instead of /yourappname as in 
tomcat.

The simplest way to solve this problem is to package your tomcat application 
yourself (if you haven't got a deployable war file) instead of using Sun's IDE, 
and deploy the war file to the autodeploy directory of your Sun One app server. 
 By default, the autodeploy directory should be under 
$YOURSUNAPPSERVER/domains/domain1.  You don't have to restart the SunOne server 
to do the deployment.

ND

-----Original Message-----
From: Francesca Jovanovic [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 11, 2006 5:29 AM
To: tomcat-user@jakarta.apache.org
Subject: Problem with servlets from upgrade
Importance: High

I have a new computer and I have installed the latest version of Tomcat 5 and 
reinstalled the Sun One Studio 4 which I still had a setup file. The example 
servlets and jsp's work fine but my servlets - that worked fine on my old pc 
with tomcat 4 - now don't work, the jsps are working fine but not the servlets. 
I get this error:


HTTP Status 404 - /servlet/PostStudentID

  _____  


type Status report

message /servlet/PostStudentID

description The requested resource (/servlet/PostStudentID) is not available.

  _____  


Apache Tomcat/5.5.12


I have searched endlessly to try and see what's going wrong and tried all your 
pointers but cannot resolve it. Can you please help? Is Tomcat 5.5.12 
compatible with Sun one studio 4?

 

 

Francesca Jovanović
Learning Technologist
Learning Partnerships Development Unit (LPDU) 
Faculty of Health
University of Central England
311 Ravensbury House, Westbourne Road
Edgbaston, Birmingham, B15 3TN
Telephone: 0121 331 7181
Fax: 0121 331 6009

 


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

Reply via email to