Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem when configuring WebLogic 6.0 for CGI - URGENT

3 views
Skip to first unread message

Kavitha

unread,
Feb 20, 2002, 9:40:57 AM2/20/02
to

Hello,
Can U please write back for the below described problem.

We are using WebLogic Server 6.0 and we have configured the WLS for CGI support,so
that Oracle Report Server 6.0 cud be used to generate reports.Following is the
series of steps that have been followed for the configuration and generating
a report:
1.The Rwcgi60.exe has been copied from D:\orant\bin ( assumed that D is the drive
wherein Oracle Report Server6.0 has been installed) to the directory C:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp_myserver\cgi-bin
( assumed that C is the drive wherein Weblogic Server6.0 has been installed)
2.The web.xml in the following directory C:\bea\wlserver6.0\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF,
has the following details
<?xml version="1.0" ?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 1.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<servlet>
<servlet-name>CGIServlet</servlet-name>
<servlet-class>weblogic.servlet.CGIServlet</servlet-class>

<init-param>
<param-name>cgiDir</param-name>
<param-value>/bea/wlserver6.0/config/mydomain/applications/DefaultWebApp_myserver/cgi-bin</param-value>
</init-param>
</servlet>

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

3.Environment Variables Settings as mentioned below have been set in the registry,
REPORTS60_SHARED_CACHE = NO
REPORTS60_VIRTUAL_MAP = /CACHE
REPORTS60_PHYSICAL_MAP = D:\orant\REPORT60\SERVER\CACHE
REPORTS60_PATh = D:\orant\REPORT60\ADMIN\TEMPLATE\US;D:\orant\REPORT60;c:\web_reports\reports
REPORTS_CGIMAP = D:\orant\REPORT60\SERVER\cgicmd.dat

4.Started the startWebLogic.cmd, in the directory C:\bea\wlserver6.0\config\mydomain
5.On giving the following URL in the IE5.5, http://bet-pc0080:7001/cgi-bin/rwcgi60.exe?report=Rept4-PriceStructuresCreated.rdf+server=REP60_BET-PC0080+userid=dstnew/dstnew@dstnew+desformat=html+destype=cache+Retailer_id=001010010200103

It shows up the following error in the startWebLogic.cmd and the IE icon on the
browser keeps rotating.
java.lang.ClassCastException: weblogic.utils.Executable$Drainer
at weblogic.servlet.internal.ResponseHeaders.setDateHeader(ResponseHeaders.java:273)
at weblogic.servlet.internal.ServletResponseImpl.setDateHeader(ServletResponseImpl.java:467)
at weblogic.servlet.internal.ServletResponseImpl.writeHeaders(ServletResponseImpl.java:672)
at weblogic.servlet.internal.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java:130)
at weblogic.servlet.internal.ServletOutputStreamImpl.flushWithCheck(ServletOutputStreamImpl.java:412)
at weblogic.servlet.internal.ServletOutputStreamImpl.checkForFlush(ServletOutputStreamImpl.java:548)
at weblogic.servlet.internal.ServletOutputStreamImpl.write(ServletOutputStreamImpl.java:210)
at weblogic.servlet.internal.WLOutputStreamWriter.flushBuffer(WLOutputStreamWriter.java:139)
at weblogic.servlet.internal.WLOutputStreamWriter.write(WLOutputStreamWriter.java:104)
at weblogic.servlet.internal.WLOutputStreamWriter.write(WLOutputStreamWriter.java:67)
at java.io.PrintWriter.write(PrintWriter.java:173)
at weblogic.servlet.CGIServlet$CGICharArrayWriter.write(CGIServlet.java:292)
at weblogic.utils.Executable$Drainer.run(Executable.java:266)

Please send in a solution at the earliest.

Thanks,
Kavitha

Velvet Stepanek

unread,
Feb 20, 2002, 4:42:17 PM2/20/02
to Kavitha
Kavitha,

Is your CGI program returning more than 12K of data? If so, this may be a known problem. There is a fix for this in rolling patch 2 for SP2 for WLS 6.0. The CR is 46879. Although the the CR does not discuss this exact problem the fix
that resulted from that CR does fix this problem.

Hope this helps.
Regards,
Velvet
Developer Relations Engineer
BEA Systems

0 new messages