943,841 Members | Top Members by Rank

Ad:
  • Perl Discussion Thread
  • Unsolved
  • Views: 1319
  • Perl RSS
May 10th, 2009
0

Perl-CGI Tomcat

Expand Post »
Hi,

I am trying to run a Perl-CGI script through Tomcat Server and running into issues.

The script runs fine through command prompt and also runs half through webpage. The problem comes when I try to access some files in directories located on some other server.

I think tomcat security does not allow me to access those directories.

Are there any configuration settings which will allow to access thise directories.? Am I looking into the right issue? Or is the issue related to something else>?

Any pointers will be appreciated.

Please let me know if this is not the right forum to post this stuff.

Thanks in Advance!!!

Gaurav
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gsarin is offline Offline
6 posts
since May 2009
May 11th, 2009
0

Re: Perl-CGI Tomcat

What uid is the Tomcat Server running as? What uid are you running at the command prompt? You might try an su to the uid of the Tomcat server and see if the script runs. You might have to change ownership or chmod the directories. If that doesn't work, I'm... uh ... sort of out of ideas.
Reputation Points: 26
Solved Threads: 38
Posting Whiz in Training
mitchems is offline Offline
293 posts
since Feb 2009
May 11th, 2009
0

Re: Perl-CGI Tomcat

The question is probably best asked on a forum dedicated to http servers and not a CGI forum dedicated to CGI scripts.
Reputation Points: 246
Solved Threads: 67
Practically a Posting Shark
KevinADC is offline Offline
898 posts
since Mar 2006
May 11th, 2009
0

Re: Perl-CGI Tomcat

Thanks for replying..
I actually get stuck when I try to run Esscmd script from with a perl-cgi script as follows

system ("E:\\Hyperion\\essbase\\bin\\esscmd.exe", "E1_test.cmd")
Or
system ("esscmd.exe", "E1_test.cmd")

Both give the following error:

"Essbase Command Mode Interface - Release 9.3.1 (ESB9.3.1.0.0B181) Copyright (c) 1991, 2007, Oracle and/or its affiliates. All rights reserved. U.S. Patent Number 5,359,724 U.S. Patent Number 6,317,750 Failed in GCInit(). Return code 10 ARBORPATH variable isn't set, using default value You should always set ARBORPATH variable Using ARBORPATH [\ARBOR] ARBORPATH dump: \(5c) A(41) R(52) B(42) O(4f) R(52) \(5c) Path to locale files passed to GCInit() was ESSLANG variable isn't set Could not find the locale files at specified location".

Esscmd command runs fine from windows command promt. Env. ARBORPATH is set to "E:\Hyperion\Essbase" and PATH is set to "E:\HYperion\essbase\bin".

Esscmd.exe is present in "E:\Hyperion\Essbase\bin" and "E:\Hyperion\AnalyticAdministrationServices\server\bin".

I understand that perl-cgi script is unable to locate esscmd because it looks in it's default cgi-bin folder somewhere in C:\Program files\Apache Group\Apache\cgi-bin.

Will the problem be solved if I set ARBORPATH to "E:\HYperion\essbase\bin" along with "E:\Hyperion\Essbase". Will this have any other implications?

IS there any other way I can get rid of this issue.

Any pointers will be appreciated.

Thanks in Advance!!
Gaurav


Click to Expand / Collapse  Quote originally posted by mitchems ...
What uid is the Tomcat Server running as? What uid are you running at the command prompt? You might try an su to the uid of the Tomcat server and see if the script runs. You might have to change ownership or chmod the directories. If that doesn't work, I'm... uh ... sort of out of ideas.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gsarin is offline Offline
6 posts
since May 2009
May 12th, 2009
0

Re: Perl-CGI Tomcat

Issue Solved.

I had to set up the environment variables related to essbase in apache config file.

THE environment variables for Apache CGI are different from that of the operating system and have to be set in the Apache httpd.confg file.

Thanks for the replies though.

Gaurav
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gsarin is offline Offline
6 posts
since May 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Perl Forum Timeline: Help! comparing two sequences through perl
Next Thread in Perl Forum Timeline: New to perl, Need a good tutorial(with HTML help)





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC