| Author |
deployment problem
|
saikrishna cinux
Ranch Hand
Joined: Apr 16, 2005
Posts: 689
|
|
I have two servers for database application server(Oracle 9i) and webservers(tomcat) individually. I am able to run the webapplication from the server but if deploy the same application in my system i am not able to run it.. what should be the problem should i need to change the configuration file of webserver thanx in advance cinux
|
A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
SCJP 1.4
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
Which is your system? What errors are you getting?
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
saikrishna cinux
Ranch Hand
Joined: Apr 16, 2005
Posts: 689
|
|
my system is localhost . i am able to run a jsp file but if i submit the information and send my data to the servlet then it give error saying that the servlet cannot be found at particular location hope u can understand my problem ... please help me... cinux
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
|
What are you putting in the action attribute of your form?
|
 |
saikrishna cinux
Ranch Hand
Joined: Apr 16, 2005
Posts: 689
|
|
exactly like this document.mainForm.action=/VisuTestingServices/servlet/com.vlms.vts.grandtest.gre.blueprint.GreIndQnBnkBluePrintServlet
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
I assume that the one that is not working is Tomcat. From the look of your form action, you are relying on the InvokerServlet. See: http://faq.javaranch.com/view?InvokerServlet Note: If you're only using Tomcat to create an inexpensive development environment on your desktop and your production server supports this 'invoker like' behavior (and your not in a position to change how things get deployed on the production server), it may actually make sense for you to uncomment the invoker in Tomcat. You'll find the entry in tomcat/conf/web.xml.
|
 |
Amarender Reddy
Ranch Hand
Joined: May 12, 2005
Posts: 54
|
|
hi, please post the error(console log),so that it would be more easy to trouble-shoot your problem.
|
 |
saikrishna cinux
Ranch Hand
Joined: Apr 16, 2005
Posts: 689
|
|
Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error -------------------------------------------------------------------------------- type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception java.lang.NullPointerException at org.apache.jsp.GreBluePrint$jsp._jspService(GreBluePrint$jsp.java:134) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106) at java.lang.Thread.run(Thread.java:536) --------------------------------------------------------------------------------
|
 |
saikrishna cinux
Ranch Hand
Joined: Apr 16, 2005
Posts: 689
|
|
Originally posted by Ben Souther: I assume that the one that is not working is Tomcat. From the look of your form action, you are relying on the InvokerServlet. See: http://faq.javaranch.com/view?InvokerServlet Note: If you're only using Tomcat to create an inexpensive development environment on your desktop and your production server supports this 'invoker like' behavior (and your not in a position to change how things get deployed on the production server), it may actually make sense for you to uncomment the invoker in Tomcat. You'll find the entry in tomcat/conf/web.xml.
yes the application was deployed in tomcat 4.0 in the server system. but in my loaclhost sytem i have tomcat5.0 I think this might be the problem. what actual changes need to be done in my config/web.xml file thanking u for ur reply cinux
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
The problem I was thinking of wouldn't have caused a nullPointerException. It would have given you a 404 "file not found" error right in your browser's window. Look at the generated source to see if you can nail down what's causing the nullPointerException. java.lang.NullPointerException at org.apache.jsp.GreBluePrint$jsp._jspService(GreBluePrint$jsp.java:134) You may also be having issues if you are relying on the InvokerServlet but I would look to see what's causing that other error first. Try this: stopp tomcat, clear all of your logs, start tomcat, and try to hit the page in question. Then look at the logs. If you don't see that NullPointerException, then you know the two problems are not related.
|
 |
saikrishna cinux
Ranch Hand
Joined: Apr 16, 2005
Posts: 689
|
|
sir, i have checked the web.xml file and uncommented the invoker servlet but no use of it. please provide me another solution thanx in advance cinux
|
 |
saikrishna cinux
Ranch Hand
Joined: Apr 16, 2005
Posts: 689
|
|
I am not getting any nullPointerException I have checked in log files,which u have told me to do It's very urgent please help me... cinux
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
Did you also un-comment the mapping for the invoker servlet? Again, it is almost never a good idea to un-comment the invoker servlet. Was my earlier guess correct? Is your production environment really set up to invoke servlets with the class name? If so, is there any chance of changing that?
|
 |
saikrishna cinux
Ranch Hand
Joined: Apr 16, 2005
Posts: 689
|
|
ya i have un commented the invoker servlet but no advantage of it :roll: Atlast i have deployed it in tomcat4.0 nad it's working now I am very happy now but i want to run the same aapplication in tomcat 5.0. I want to know the reason why it is not running in that version? is there any way to run the application otehr than uncommenting the invoker servlet hoping for the best suggestion from u cinux
|
 |
 |
|
|
subject: deployment problem
|
|
|