Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/398.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 为什么proxy.cgi不执行?_Java_Jsp_Gis_Openlayers - Fatal编程技术网

Java 为什么proxy.cgi不执行?

Java 为什么proxy.cgi不执行?,java,jsp,gis,openlayers,Java,Jsp,Gis,Openlayers,当我输入url..http:localhost:9999/my-app/cgi-bin/proxy.cgi时,我得到的脚本是proxy.cgi,而不是openlayers.org。 我在9999端口使用Glassfish 3.0.1,在8080端口使用Geoserver 2.1.1。 我正在Windows 7中执行我的项目。这是因为您的Glassfish应用程序服务器未配置为运行CGI。请查看此资源: 我希望这会有帮助 顺便说一句,你提到的URL http:localhost:9999/my-a

当我输入url..http:localhost:9999/my-app/cgi-bin/proxy.cgi时,我得到的脚本是proxy.cgi,而不是openlayers.org。 我在9999端口使用Glassfish 3.0.1,在8080端口使用Geoserver 2.1.1。
我正在Windows 7中执行我的项目。

这是因为您的Glassfish应用程序服务器未配置为运行CGI。请查看此资源:

我希望这会有帮助


顺便说一句,你提到的URL http:localhost:9999/my-app/cgi-bin/proxy.cgi似乎错了:“http:”后面的两个斜杠不见了。答案应该是:

Thanx。我也这样做了,但没有成功。我已经在Web inf下创建了cgi文件夹,并将proxy.cgi放在它下面。我看到了这个但仍然是空白的页面。Live HttpHeader显示thisGET/TravelPlanner-00/cgi bin/proxy.cgi HTTP/1.1主机:localhost:9999用户代理:Mozilla/5.0 Windows NT 6.1;WOW64;rv:6.0.2 Gecko/20100101 Firefox/6.0.2 Accept:text/html、application/xhtml+xml、application/xml;q=0.9,/;q=0.8接受语言:en-us,en;q=0.5接受编码:gzip,deflate接受字符集:ISO-8859-1,utf-8;q=0.7,*;q=0.7连接:keep-alive Cookie:JSSessionID=61f3f041565ef7f10df44bfb04d3;JSESSIONID=608c2c61c7ff937b40b4108a3ed1;treeForm:tree hi=treeForm:tree:configuration:httpServiceHTTP/1.1 200 OK X-Powered-By:Servlet/3.0服务器:GlassFish服务器开源版3.0.1内容长度:0日期:2011年11月2日星期三21:36:15 GMT