include file not found [message #722359] |
Mon, 05 September 2011 13:49 |
Tony Thigpen Messages: 2 Registered: September 2011 |
Junior Member |
|
|
I have Eclipse running with Tomcat7 on a windows box and everything is fine. But when I try it on a linux (Suse 11.4) box, the web page can not find the cgi script.
When running the web page, the log shows the following:
INFO: SSIProcessor.process -- processing command: exec
Sep 5, 2011 9:39:27 AM org.apache.catalina.core.ApplicationContext log
INFO: SSIServletExternalResolver.getServletContextAndPath( /cgi-bin/test.cgi, true)
Sep 5, 2011 9:39:27 AM org.apache.catalina.core.ApplicationContext log
INFO: SSIServletExternalResolver.getServletContextAndPath( /cgi-bin/test.cgi, true)
Sep 5, 2011 9:39:27 AM org.apache.catalina.core.ApplicationContext log
SEVERE: #include--Couldn't include file: /cgi-bin/test.cgi
java.io.IOException: Couldn't get context for path: /cgi-bin/test.cgi
at org.apache.catalina.ssi.SSIServletExternalResolver.getServletContextAndPathFromVirtualPath(SSIServletExternalResolver.java:422)
at org.apache.catalina.ssi.SSIServletExternalResolver.getServletContextAndPath(SSIServletExternalResolver.java:465)
at org.apache.catalina.ssi.SSIServletExternalResolver.getFileText(SSIServletExternalResolver.java:522)
at org.apache.catalina.ssi.SSIMediator.getFileText(SSIMediator.java:164)
at org.apache.catalina.ssi.SSIInclude.process(SSIInclude.java:50)
at org.apache.catalina.ssi.SSIExec.process(SSIExec.java:52)
at org.apache.catalina.ssi.SSIProcessor.process(SSIProcessor.java:160)
at org.apache.catalina.ssi.SSIServlet.processSSI(SSIServlet.java:216)
at org.apache.catalina.ssi.SSIServlet.requestHandler(SSIServlet.java:182)
at org.apache.catalina.ssi.SSIServlet.doGet(SSIServlet.java:117)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:403)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:286)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:272)
at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:1686)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
Sep 5, 2011 9:39:27 AM org.apache.catalina.core.ApplicationContext log
I
I have attached my web page, my cgi, and my tomcat7 config file.
The attributes for the cgi file are:
tthigpen@Tony-HP9000:~/workspace/MyFirstProject/WebContent/WEB-INF/cgi> ll *.cgi
-rwxr-xr-x 1 tthigpen users 132 Sep 4 16:13 test.cgi
Eclipse IDE for Java and Report Developers
Version: Indigo Release
Build id: 20110615-0604
Everything was downloaded within the last few days.
I am lost.
Tony Thigpen
-
Attachment: HelloWorld.html
(Size: 0.35KB, Downloaded 290 times) -
Attachment: test.cgi
(Size: 0.13KB, Downloaded 114 times) -
Attachment: web.xml
(Size: 146.07KB, Downloaded 323 times)
|
|
|
|
Re: include file not found [message #723817 is a reply to message #723788] |
Fri, 09 September 2011 14:34 |
|
On 09-Sep-11 07:42, Tony Thigpen wrote:
> Well, nobody seems to have bothered to try to help with this. If they
> had, they would have noticed that I had uploaded the wrong .html file.
> The one I attached did not include any cgi calls at all.
> Anyway, just for the record, I did find the problem. My exec statement
> was wrong. I had:
> <!--#exec cgi="/cgi-bin/test.cgi" -->
> and it should have been:
> <!--#exec cgi="cgi-bin/test.cgi" -->
> (An extra slash at the front.)
> It took an eclipse expert about 20 minutes to figure it out. Our brain
> sees what we expect, not always what the eye sees.
> Tony
Really more of a web tools platform issue, don't you think? You might
have posted in that forum.
|
|
|
Powered by
FUDForum. Page generated in 0.03176 seconds