Hi, Try running the CGI manually as your web server user (normally 'apache' or 'nobody'). That way you may see what's happening.
Yopu may also wnat to use the Inline DIRECTORY option and make sure that your web server user can write there. Until you can get an error message that is actually generated by Inline/Inline::Java, it's very hard to see what's going on. Cheers, Patrick LeBoutillier On Wed, 2003-12-17 at 00:19, Faizal, Abdul Razack (Cognizant) wrote: > Ken – > > When we add SHARED_JVM => 1, in our code we got the html page > but it did not bring any results from the database. > > > > The error log has the following --- > > > > [17/Dec/2003:10:31:33] info (24092): list reports: rq->var= > ntrans-base="/sites/splypwr/site/live/html/cgi-bin" > path="/sites/splypwr/site/live/html/cgi-bin/testing/raj.cgi" > > [17/Dec/2003:10:31:33] info (24092): list reports: req->headers= > accept="*/*" accept-language="en-us" accept-encoding="gzip, deflate" > user-agent="Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" > host="ctsblrsp7:8088" connection="Keep-Alive" cache-control="no-cache" > > [17/Dec/2003:10:31:33] info (24092): list reports: req->reqpb= > clf-request="GET /cgi-bin/testing/raj.cgi HTTP/1.1" method="GET" > protocol="HTTP/1.1" uri="/cgi-bin/testing/raj.cgi" > > [17/Dec/2003:10:31:33] info (24092): list reports: req->srvhdrs= > content-type="magnus-internal/cgi" > > [17/Dec/2003:10:31:33] info (24092): list reports: req->srvhdrs= > content-type="magnus-internal/cgi" > > [17/Dec/2003:10:31:33] info (24092): list reports: sn->client= > ip="10.236.161.74" > > [17/Dec/2003:10:31:33] failure (24092): ExecuteApplogicRequest > reports: IsXXXRequest failed. STOP > > > > Regards, > FAIZAL > Cognizant - Bangalore > Phone: 2273100 > Ext: 7747 VNET - 57747 > > > -----Original Message----- > From: Faizal, Abdul Razack (Cognizant) > Sent: Wednesday, December 17, 2003 10:43 AM > To: 'Williams, Ken'; [EMAIL PROTECTED] > Subject: RE: Getting Security exception when using Java in Perl > Importance: High > > > > Hi Ken – > > We added the use CGI::Carp qw(fatalsToBrowser); statement in the > first line of the code and accessed the cgi program and we got the > following error message in the browser > > > > > > > Server Error > > This server has encountered an internal error which prevents it from > fulfilling your request. The most likely cause is a misconfiguration. > Please ask the administrator to look for messages in the server's > error log. > > > > > > > And in the error log we got the following. > > > > > > > > > [17/Dec/2003:10:20:52] info (24092): list reports: rq->var= > ntrans-base="/sites/splypwr/site/live/html/cgi-bin" > path="/sites/splypwr/site/live/html/cgi-bin/testing/raj.cgi" > > [17/Dec/2003:10:20:52] info (24092): list reports: req->headers= > accept="*/*" accept-language="en-us" accept-encoding="gzip, deflate" > user-agent="Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" > host="ctsblrsp7:8088" connection="Keep-Alive" > > [17/Dec/2003:10:20:52] info (24092): list reports: req->reqpb= > clf-request="GET /cgi-bin/testing/raj.cgi HTTP/1.1" method="GET" > protocol="HTTP/1.1" uri="/cgi-bin/testing/raj.cgi" > > [17/Dec/2003:10:20:52] info (24092): list reports: req->srvhdrs= > content-type="magnus-internal/cgi" > > [17/Dec/2003:10:20:52] info (24092): list reports: req->srvhdrs= > content-type="magnus-internal/cgi" > > [17/Dec/2003:10:20:52] info (24092): list reports: sn->client= > ip="10.236.161.74" > > [17/Dec/2003:10:20:52] failure (24092): ExecuteApplogicRequest > reports: IsXXXRequest failed. STOP > > [17/Dec/2003:10:20:53] failure (24092): for host 10.236.161.74 trying > to GET /cgi-bin/testing/raj.cgi, cgieng_scan_headers reports: the CGI > program /sites/splypwr/site/live/html/cgi-bin/testing/raj.cgi did not > produce a valid header (name without value: got line " at > java.security.accesscontroller.doprivileged(native method)") > > > > > > > Can you please help us on this to resolve the issue. > > Regards, > FAIZAL > Cognizant - Bangalore > Phone: 2273100 > Ext: 7747 VNET - 57747 > > > -----Original Message----- > From: Williams, Ken [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 16, 2003 8:41 PM > To: Faizal, Abdul Razack (Cognizant); [EMAIL PROTECTED] > Subject: RE: Getting Security exception when using Java in Perl > > > > Hi Faisal, > > > > > > That message is basically just a generic error and doesn't tell us > much. It happens because your script has an error before sending a > valid HTTP header. Try putting > > > > > > use CGI::Carp qw(fatalsToBrowser); > > > > > > near the top of your code, which is an easy way to make sure you're > seeing the real error message. > > > > > > -Ken > > > -----Original Message----- > From: Faizal, Abdul Razack (Cognizant) > [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 16, 2003 6:11 AM > To: [EMAIL PROTECTED] > Subject: Getting Security exception when using Java in Perl > Importance: High > > Hi - > > We have written a java code which connects to an Oracle > database to query it to get the results. We implemented this > code in Perl using Inline 0.44 version. When we invoke it with > Perl in command prompt it is fine we got the results. But > where as when we convert the perl code to .cgi and invoke it > from browser we are getting some erro like given below. > > > > the CGI program html/cgi-bin/raj.cgi did not produce a valid > header (name without value: got line " at > java.security.accesscontroller.doprivileged(native method)") > > We wanted to know how to over come this issue. > > Regards, > > FAIZAL > > Cognizant - Bangalore > > Phone: 2273100 > > Ext: 7747 VNET - 57747