• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Configuring CGI (Perl) Scripts in Weblogic 9.2

 
Venkat Motorola
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am new to weblogic server(9.2). Trying to configure cgi scripts in weblogic, getting the resource not find error
"Error 404--Not Found

From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:

10.4.5 404 Not Found

The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.

If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address."


My current web.xml looks like:
=====================

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Fast_Web</display-name>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>

<servlet>
<servlet-name>CGIServlet</servlet-name>
<servlet-class>weblogic.servlet.CGIServlet</servlet-class>
<init-param>
<param-name>cgiDir</param-name>
<param-value>
/bea/user_projects/domains/nsra_domain/cgi-bin
</param-value>
</init-param>

<init-param>
<param-name>*.cgi</param-name>
<param-value>/bin/perl.exe</param-value>
</init-param>

</servlet>

<servlet-mapping>
<servlet-name>CGIServlet</servlet-name>
<url-pattern>/cgi-bin/*</url-pattern>
</servlet-mapping>

</web-app>


Please kindly provide your assistance to resolve the issue.



 
German Gonzalez-Morris
Ranch Hand
Posts: 260
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if WLS is on Windows OS, then try using absolute path for the directory which contains the perl script
(and backslash)

i.e.:

<init-param>
<param-name>cgiDir</param-name>
<param-value>c:\tmp\cgi</param-value>
</init-param>

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic