Running a Perl CGI Script on WLS5beta

I am facing problem in running a Perl CGI Script on Weblogic
Application
Server
I set the CGIServlet Property in the Weblogic Properties file as
weblogic.httpd.register.cgi-bin=weblogic.servlet.CGIServlet
weblogic.httpd.initArgs.cgi-bin=\
cgiDir=/weblogic/myserver/public_html/cgi-bin,\
*.pl=/bin/perl.exe,\
I installed the Perl on my system and put the perl exe in the bin
directory
of the Weblogic App Server. But I am getting the error "failed to
execute
the test.pl ". Where test.pl is a simple test perl script.
APP server ver is WLE5 Beta

Vipul,
Vipul Sanghvi wrote:
I am facing problem in running a Perl CGI Script on Weblogic
Application
Server
I set the CGIServlet Property in the Weblogic Properties file as
weblogic.httpd.register.cgi-bin=weblogic.servlet.CGIServlet
weblogic.httpd.initArgs.cgi-bin=\
cgiDir=/weblogic/myserver/public_html/cgi-bin,\
*.pl=/bin/perl.exe,\It shouldn't end with ,\ right?
Was it a mistake?
-Kumar
>
I installed the Perl on my system and put the perl exe in the bin
directory
of the Weblogic App Server. But I am getting the error "failed to
execute
the test.pl ". Where test.pl is a simple test perl script.
APP server ver is WLE5 Beta[att1.html]

Similar Messages

  • Error running HAL routine from a perl cgi script via a browser

    Hi,
    I'm getting an error while trying to run a HAL routine from a perl- cgi initiated from a web browser. Perl-Cgi script runs fine when run from command line.
    07/23/2010|183648|N/A|Info|N/A|Analytic Services Adapter Log File Started
    07/23/2010|183648|AppName/Plan2|Info|Connect|Method Started
    07/23/2010|183648|AppName/Plan2*|Error|Connect|java.lang.UnsatisfiedLinkError: no HssJNIDriver950 in java.library.path*
    07/23/2010|183648|AppName/Plan2|Error|Connect|Method Ended - Connect completed with exceptions.
    07/23/2010|183648|N/A|Info|N/A|Analytic Services Adapter Log File Ended
    I've added the following env. variables in Apache server's httpd.conf file
    SetEnv ARBORPATH "E:\\Hyperion\\products\\Essbase\\EssbaseClient"
    SetEnv APS_HOME "E:\\Hyperion\\products\\Essbase\\aps"
    SetEnv ESSLANG "English_UnitedStates.Latin1@Binary"
    SetEnv EASPATH "E:\\Hyperion\\products\\Essbase\\eas\\server"
    SetEnv HYPERION_HOME "E:\\Hyperion"
    SetEnv ESSBASEPATH "E:\\Hyperion\\products\\Essbase\\EssbaseClient"
    SetEnv EAS_HOME "E:\Hyperion\products\Essbase\eas\console"
    SetEnv CLASSPATH "E:\\Vignette\\V7\\vbis\\Hyperion\\EssbaseAdapter"
    SetEnv PATH "E:\\Hyperion\\common\\ADM\\9.5.0.0\\Essbase\\9.5.0.0\\bin;E:\\Vignette\\V7\\vbis\\Hyperion\\EssbaseAdapter\\adm;C:\\Program Files (x86)\\Java\\jre1.5.0_17\\bin\\;E:\\Hyperion\\products\\Essbase\\EssbaseClient\\bin;E:\\Hyperion\\products\\Essbase\\EssbaseClient;E:\\Hyperion\\common\\CSS\\9.5.0.0\\bin;E:\\Hyperion\\products\\Essbase\\eas\\console\\bin;"
    Any pointers would be appreciated.
    Thanks in Advance!!

    Vipul,
    Vipul Sanghvi wrote:
    I am facing problem in running a Perl CGI Script on Weblogic
    Application
    Server
    I set the CGIServlet Property in the Weblogic Properties file as
    weblogic.httpd.register.cgi-bin=weblogic.servlet.CGIServlet
    weblogic.httpd.initArgs.cgi-bin=\
    cgiDir=/weblogic/myserver/public_html/cgi-bin,\
    *.pl=/bin/perl.exe,\It shouldn't end with ,\ right?
    Was it a mistake?
    -Kumar
    >
    I installed the Perl on my system and put the perl exe in the bin
    directory
    of the Weblogic App Server. But I am getting the error "failed to
    execute
    the test.pl ". Where test.pl is a simple test perl script.
    APP server ver is WLE5 Beta[att1.html]

  • Perl/cgi scripts display as text; don't execute in Safari

    The web tells me I have to update mod_perl. I hope there is an easy way to do it.

    Info is slightly incorrect. I just upgraded (today) to OS X 10.10.1. That is when my perl/cgi scripts stopped executing in Safari. I have tried building mod_perl but the build script fails with a permissions error.

  • Failing to create temp file in Perl cgi script

    This used to work, perhaps before the Apache 2.4 upgrade?
    From the httpd error log:
    AH01215: Error in tempfile() using template /tmp/XXXXXXXXXX: Could not create temp file /tmp/4VmuZsw3Wt: No such file or directory at...
    Here's the offending code:
    #!/usr/bin/perl
    use strict;
    use warnings;
    use File::Temp;
    use CGI;
    my $q = new CGI();
    print $q->header();
    print "Hi mom\n";
    my( $foo, $bar ) = File::Temp::tempfile();
    print $foo "Test content\n";
    close( $foo );
    print "Hi dad\n";
    1;
    If invoked from the command-line, it works as intended. Tried as users me, root and http (the Apache user).
    If run as CGI script, I get this:
    Hi mom
    then it aborts with an HTTP 500, and emits the above message in the error log.
    Before anybody asks:
    drwxrwxrwt 7 root root 240 May 22 20:51 /tmp
    The Apache configuration has this, which /some/path/cgi contains my above script.
    ScriptAlias "/cgi" /some/path/cgi
    Baffled ...

    Restarting Apache fixed the issue. Ran out of file descriptors perhaps?
    The question is: will it happen again?
    Last edited by jernst (2014-05-22 21:20:12)

  • Can Flex work with a perl CGI script?

    i have a perl script that returns xml data
    eg:
    http://www.script.com/thescript.pl?method=search?surname=kelly
    would it be possible to use httpservice here? or is it even
    possible?

    hmm bit confused? what does var1 represent? variable being
    sent?
    currently im getting this error
    The reference to entity "surname" must end with the ';'
    delimiter.
    <mx:HTTPService id="e4xService" url="
    http://www.irishineurope.ie/cgi-bin/NLI/france-search.pl?method=search?&surname=Kelly"
    method="POST"/>
    //not sure if that should be GET

  • Perl CGI script in WLS

    Hi,
    Does anyone have an idea how a Perl script should be registered with
    WebLogic Server, so that something like "/cgi-bin/clock.pl" will
    function properly (by executing the script and returning the result
    produced by the execution)?
    Thanks.
    Hann Wei

    Have just found the information from the WebLogic web site.
    Hann Wei

  • Calling a java program from a perl CGI

    The perl program takes form data, does stuff with it, writes it to a file, and then calls a java program to encrypt it, and email it.
    When I telnet to the server, I can run the java program using:
    java CryptoMail.class [email protected] data.txt
    The java program uses jar files which are defined in the Classpath in an .sh script in the etc/profile.d/ directory.
    When I run the perl cgi from the web, it doesn't work. I figured that it wasn't getting the classpath defined because the user wasn't actually logging in so I tried it with java -classpath etc...
    Any ideas???
    I tried the following:
    ==================
    $cmdtorun='/usr/j2sdk1.4.0_02/bin/java CryptoMail $email $file';
    system($cmdtorun);
    ==================
    and also tried variations of the following:
    ==================
    /usr/j2sdk1.4.0_02/bin/java -classpath .:/home/sites/site1/web/cgi-bin/activation.jar:/home/sites/site1/web/cgi-bin/mail.jar /home/sites/site1/web/cgi-bin/CryptoMail [email protected] /home/sites/site1/web/cgi-bin/wellsfargo.txt
    ==================

    >
    Any ideas???Write a script file that explicitly paths everything.
    Test it by setting the class path and path to nothing in the environment and seeing if it works.
    Redirect errors from everything to a log file.
    Then run the script from your perl program. Verify that it did not return any errors. Verify there are no errors in the log file.

  • Are servlets like cgi scripts?

    hi all,
    are servlets like cgi scripts?
    or
    they should be embedded within the html file,
    thank you very much
    :)

    Yes, Servlets are very similar to CGI scripts -- they both run on the server and grab input from the HTTP GET or POST request, then send generated HTML back to the client browser.
    Often Servlets are described as being superior to CGI scripts because each time a CGI script is run a new process must be created. However, you can run Perl CGI scripts without starting a new process (using mod_perl, for example), and therefore that claim is unfounded.

  • MaxL (use Essbase.pm) via Perl CGI??? (remake)

    I am sorry for my Englishcit: "Problem: trying to "use Essbase;" in a Perl CGI script running under Apache generates error "The answer was such:" I ran into similar problems and discovered that ARBORPATH must be defined in your script's environment and that LIBPATH must include $ARBORPATH/bin and $ARBORPATH/dlls. I added these environmnet definitions to a common module that I include everywhere. I make sure is use this common module before attempting to use Essbase. "Q:How IT is made?I have written:$ENV{ARBORPATH} = 'F:/Essbase';use lib 'F:/Essbase';use lib 'F:/Essbase/bin';use lib 'F:/Essbase/dll';$ARBOTPATH = 'F:/Essbase';use Essbase;(I am sorry for my perl)Does not work.Where at me a mistake?(in DNA to not search:)

    Successfully installed Runtime client (including ESSCMD and MaxL) on Win 2k machine and tested Essbase.pm functionality using regular Perl script (/sample/table.pl).Problem: trying to "use Essbase;" in a Perl CGI script running under Apache generates following error:"Can't load 'c:/Perl/site/lib/auto/Essbase/Essbase.dll' for module Essbase: load_file:The specified module could not be found at c:/Perl/lib/Dynaloader.pm line 206."Any one found a way to "use Essbase;" in a Perl CGI script?

  • LoadVariablesNum on button to access cgi script mail form

    Greetings: I've used this method many times in the past to create an email form in a movie clip with a "send button" that accesses a perl, cgi script to email text input fields. It worked fine in past versions of Flash, but now I'm using Flash CS3 (v9.0, AS 2.0). I've tried 3 different cgi scripts I found online for this purpose and am sure the configurations for sendmail server & perl bins, etc are correct. All of the other "if" and "else" statements on the button work fine. But I can see a Safari (browser) error message saying POST was not used, but clearly it is. I'm trying to trouble shoot whether the problem is from the flash button or the cgi script.
    Has something changed in Flash CS3 from previous versions, where I'm certain it has worked before???
    Here is my button code:
    on (release) {
    //Make sure the user filled in all the required fields.
    if (name1 ne "" and name2 ne "" and subject ne "" and email ne "") {
    //Check to make sure the email address includes and @.
    i = "0";
    validmail = 0;
    while (Number(i)<=Number(length(email))) {
    if (substring(email, i, 1) eq "@") {
    validmail = 1;
    i = Number(i)+1;
    //If there's no @ in the email go to the error page.
    if (Number(validmail) == 0) {
    gotoAndStop("error");
    } else {
    //The line below assumes the script is in the same directory as the HTML page.
    loadVariablesNum("http://www.companyname.com/cgi-bin/FormMail.pl", 0, "POST");
    //Go to the confirmation frame.
    gotoAndStop("thankyou");
    } else {
    //if the user left required fields blank, show them an error message.
    gotoAndStop("error");
    Here is the error message I can access on Safari>window>activity:
    "The HTML form fails to specify the POST method, so it would not be correct for this script to take any action in response to your request.
    If you are attempting to configure this form to run with FormMail, you need to set the request method to POST in the opening form tag, like this: <form action="/cgi-bin/FormMail.pl" method="post">
    Why isn't the command from the button in the Flash swf file, being recognized by the html page?
    Thanks in advance for any help.
    Janis

    in version 6, case didn't count. after version 6, it counts.
    so, gotoandPlay(3), used to work but, not now.  you need to use gotoAndPlay(3).
    also, undefined numeric variables were assigned a default value of 0 with flash 6 and prior.  not now, they're undefined.  so, watch for code like
    while(var1<1){
    do something
    var1++;
    where var1 is never initialized.
    about policy files:  check the security class'es loadPolicyFile() method.

  • How can i call a CGI script from java?

    The subject pretty much says it all. I want to call a perl cgi script so i can read from/write to files on a server. I don't know how to sign applets and this would be the easiest way for me, if someone could please tell me.

    Let me get this clear. Basically what u want to do is to just call a URL, right?
    U can do it by using the following code:
    import java.applet.*;
    import java.net.*;
    import java.io.*;
    public class testhttp
    public static void main(String[] args)
    try
    URL url = new URL ("http://../testcgi.cfm");
    HttpURLConnection cxn =
    (HttpURLConnection)url.openConnection();
    cxn.setRequestMethod("POST");
    cxn.setUseCaches(false);
    cxn.setDoOutput(true);
    cxn.setDoInput(true);
    ByteArrayOutputStream bytes = new
    ByteArrayOutputStream(400);
    PrintWriter writer = new PrintWriter (bytes,true);
    writer.print("application=map&release=1&items=prog1");
    writer.flush();
    cxn.setRequestProperty("Content-
    Length",String.valueOf(bytes.size()));
    cxn.setRequestProperty("Content-
    Type","application/x-www-form-urlencoded");
    bytes.writeTo(cxn.getOutputStream());
    System.out.println(bytes);
    String currentLine;
    BufferedReader in = new BufferedReader (new
    InputStreamReader(cxn.getInputStream(),"8859_1"));
    while((currentLine = in.readLine()) != null) {
    System.out.println(currentLine); }
    catch(Exception e) { e.printStackTrace(); }
    There is also a library called HTTP client which can be found at:
    http://www.innovation.ch/java/HTTPClient/index.html
    It's very simple to use and the documentation is all there, but their web server seems to be down right now.
    Anyway, hope my post helps.

  • Apache - CGI script can't read query string from STDIN

    My Perl CGI script begins as follows:
    if ($ENV{'REQUEST_METHOD'} eq "POST") {
    read(STDIN,$in,$ENV{'CONTENT_LENGTH'});
    I dumped all ENV variables at entry, and verified that REQUEST_METHOD = "POST" and CONTENT_LENGTH = 73 (which is correct). QUERY_STRING is null. After the above read statement, $in is still null. Any idea why STDIN is not providing the query string?
    Thanks!
    Chap
    867MHz Powerbook   Mac OS X (10.4.8)  

    Hi--
    This isn't really an answer to the question you asked, but is there a reason you aren't using the Perl CGI module? It's installed by default on OS X and makes this kind of stuff much, much easier. Just add a line like this at the top of your script:
    <pre class="command">use CGI qw(:standard);</pre>Then you can get the paramaters for your script like so:
    <pre class="command">my $value = param('paramname');</pre>No muss, no fuss. You can get more information at the CPAN archive page for this module.
    charlie

  • "cannot execute CGI script " error

    Greetings.
    I am trying to setup a Sun One version 6.1 server. When I try to run a simple cgi script, with a .pl suffix, I get:
    "cannot execute CGI script "
    Is there anything in particular I should look for in resolving hte problem ?
    Thanks.
    alan

    One thing I'd like to mention is this document:
    Document ID: 75347
    Title: Sun[TM] ONE WebServer 6 - cannot execute CGI script - Permission denied
    which states:
    case 2: The value for the chroot is NOT set and NO rights are granted
    for cgi's to execute anywhere.
    <PROPERTY name="chroot" value=""/>
    Note that the value of "value=" above will differ from your setup but that
    the location of the line within the server.xml file should be easily
    identifiable by the formatting described above.
    To quickly identify a fix, grant permissions from the root level by
    modifying the line to look thus:
    <PROPERTY name="chroot" value=""/>
    The problem and fix look to be the same. Any idea what the fix should look like ?
    Thanks.
    alan

  • CGI Script execution

    Is there a way to execute a Perl/Cgi scripts in Cold fusion Built in Server. Actually I have tested my scripts in Apache Server by putting my cgi scripts in cgi-bin but in the Coldfusion built in Server we are having does not contain a cgi-bin. So what is the alternate way that can be used to execute a cgi script in the cold fusion built in Server.

    Answered here:
    http://forums.adobe.com/message/2918918#2918918

  • How to run NMS perl scripts in SunONE 6.1

    Any one have info on running the NMS perl scripts with the perl compiler shipped with 6.1? Particularly interested in nms FormMail. I need to get it running in on windows xp and Sun Solaris.
    WebServer is reporting the following error.
    failure: for host dbmrpm41.deluxe.com trying to POST /cgi-bin/FormMail.pl, cgi_s
    can_headers reports: HTTP4044: the CGI program C:\Sun\WebServer6.1\bin\https\per
    l\perl.exe did not produce a valid header (program terminated without a valid CG
    I header. Check for core dump or other abnormal termination)
    When I run FormMail.pl in a command prompt, I receive the following:
    Can't locate auto/POSIX/autosplit.ix in @INC (@INC contains: C:/Sun/WebServer6.1
    /bin/https/perl/lib/MSWin32-x86 C:/Sun/WebServer6.1/bin/https/perl/lib) at C:/Su
    n/WebServer6.1/bin/https/perl/lib/AutoLoader.pm line 146.
    at C:/Sun/WebServer6.1/bin/https/perl/lib/MSWin32-x86/POSIX.pm line 5
    Edited by: garyb on Mar 18, 2008 9:04 AM

    The Perl you found in the bin/https/perl directory is a private copy of Perl used to implement parts of the Web Server Administration Server. You shouldn't try to use it to run CGI scripts.
    Instead, you can download your own Perl distribution. ActiveState has a Perl distribution called ActivePerl. You can get it for free from http://www.activestate.com/Products/activeperl/. Other options are listed at http://win32.perl.org/.

Maybe you are looking for

  • I have two apple ID´s how can I fuse them?, I have two apple ID´s how can I fuse them?

    does anyone know how to manage 2 apple ID´s ???

  • Failure to connect to 11G XE from Sql Developer

    Hi Gurus, I have been trying for more than a week to make this work. Basically I am trying to install XE database 11.2.0 on my windows 7 64 bit computer. I have had problems with the getting the listener up , finally managed to get it up by deleting

  • My macbook air makes a creaking noise

    Does anybody else have this problem? I haven't noticed it when it's on a flat surface (but usually when I'm using it in a place where it's on a flat suface, it's noisier there), just usually on my lap. I'm sure it doesn't hurt anything, but it's real

  • Hierarchy nodes as characteristics in a query

    Hi all, I would like to ask if there is a way to use hierarchy nodes of InfoObject 0cost_elemnt as characteristics in a query. In other words I have a grouping of cost elements in R/3 and uploaded this group as a hierarchy in BW. Now the users want t

  • EPMA for Essbase (Is this product for real?)

    Hi All, Just curious if anyone else is having the same issues with EPMA (with Essbase 11.1.1.3) that we experience each month. I have no faith in this product and I am always terrified that unintended changes will go through to Production. It doesn't