/** Returns a short description of the servlet. */ public String getServletInfo() { return "Short description"; }
} when I execute it(http://loaclhost:8080/devel/servlet/JPServlet) using Tomcat4.1.12 the error on serverside is " Problem with SQL sent to jdbc racle:thin:your-us67pi6luv:1521:sai:null" when I wrote same code in java main program it is working fine and I am able to insert record into oracle Database.. This is my autoxec.bat set JAVA_HOME=C:\j2sdk1.4.0_03 set J2EE_HOME=C:\j2sdkee1.3.1 set CATALINA_HOME=C:\Tomcat 4.1 set ANT_HOME=C:\ant set PATH=C:\j2sdk1.4.0_03\bin;C:\j2sdkee1.3.1\bin;C:\ant\bin;C:\oracle\ora81\bin;%PATH%; set CLASSPATH=.;C:\devel;C:\Tomcat 4.1\common\lib\servlet.jar;C:\oracle\ora81\jdbc\lib\classes12.zip;C:\oracle\ora81\jdbc\lib\nls_charset12.zip;%CLASSPATH%; I can't figure out why its not working in servlet..need help.. Regards Radhika
rom chatterjee
Ranch Hand
Joined: Dec 11, 2001
Posts: 46
posted
0
Sounds like the servlet container, try putting it in a Bean and getting the servlet to use the bean