Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help! migration from tomcat to apache

Status
Not open for further replies.

DCCoolBreeze

Programmer
Jul 25, 2001
208
US
I have encountered a problem moving my code from tomcat to a server with apache.

I am using the HttpSession class methods' getattribute and setattribute to pass data from the servlet to the jsps.

This works on my machine because I am using the servlet.jar provided by tomcat in my classpath when I compile my programs.

However, This doesn't work on the new server box because the methods cannot be found. I was able to get around this problem by copying the servlet.jar from tomcat on to the new server and adding it to my classpath. This allowed me to compile the servlets.

The jsps however can't find the getattribute method so the jsps fail.

SO

should something else be installed on the npics server like javax.servlet.http or are these methods hidden somewhere in apache and we need to change the path or classpath variables?
 
ok that's a tough one. Try the TT Apache and Tomcat forums and also the Apache.tomcat mailing list(s)

Good luck
-pete
 
In case you haven't got an answer to this yet....

I found this API page:

which seems to indicate that your apache implementation is running an older version of the Servlet API. The deprecated methods putValue() and setValue() were replaced by get/setAttributes().

Hope this gives you a direction to go in.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top