I have a web application that I developed and tested successfully in JDeveloper. It is going to eventually be put on a Tomcat server in production. I am trying to test it on Tomcat running on my machine. I took the .war created in JDeveloper and put it in the Tomcat webapps directory, started Tomcat, and got the app's initial html form displayed in a browser. But when I tried to submit the form info to a servlet, I got this exception:
Line 223 in the servlet seems like a totally random place to get this exception. I am mostly clueless about Tomcat. Is this some sort of configuration issue with Tomcat, the servlet, both, neither? Please help. Thanks.
"Miruts Yifter", please check your private messages for an important administrative matter. Thank you.
Joined: Feb 27, 2008
I didn't include the code because I don't think the code is the problem...this thing works running within JDeveloper. But here is a snippet:
Line 223 is phone = at.get().toString(); I have an older version of the app that does not have the above code, and works fine in Oracle App Server environment. Put that in Tomcat on my machine, and ran it. Got the nullpointerexception on this line of code:
if (area.equals("CU-P")) production = 1;
I think I need to change something, maybe the web.xml, to make it run correctly in Tomcat. Any ideas are appreciated. Thanks.
[BPSouther: Added code tags] [ February 28, 2008: Message edited by: Ben Souther ]