wood burning stoves 2.0*
The moose likes BEA/Weblogic and the fly likes Configuring CGI (Perl) Scripts in Weblogic 9.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Configuring CGI (Perl) Scripts in Weblogic 9.2" Watch "Configuring CGI (Perl) Scripts in Weblogic 9.2" New topic
Author

Configuring CGI (Perl) Scripts in Weblogic 9.2

Venkat Motorola
Greenhorn

Joined: Nov 24, 2013
Posts: 1
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

Joined: Nov 16, 2009
Posts: 155

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>


http://devwebcl.blogspot.com/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Configuring CGI (Perl) Scripts in Weblogic 9.2
 
Similar Threads
how to set domain namin on jboss as 4.0.5
Weblogic deployment problem
Invalid content taglib
Application context in spring
problem in deploying a web application war