Running CGI executable in weblogic 6.1

Hi,
I am trying to run the CGI executable(m/c code)
"test.exe" located in
<web-root>/mqconnect/scripts using weblogic 6.1(SP5)
I have made the following changes to web.xml:
------ web.xml ----------------
<servlet>
<servlet-name>CGIServlet</servlet-name>
<servlet-class>weblogic.servlet.CGIServlet</servlet-class>
<init-param>
<param-name>cgiDir</param-name>
<param-value>/mqconnect/scripts</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>CGIServlet</servlet-name>
<url-pattern>*.exe</url-pattern>
</servlet-mapping>
------End of web.xml ----------------
On trying to execute (URL: http://<hostname>/mqconnect/scripts/test.exe), i get
the server error
--------WebLogic Error--------
Failed to exec CGI script. Return value : 1
-------- End of WebLogic Error--------
Is there something else i should add ot the web.xml to run a CGI executable in
weblogic (I am able to execute it successfully on Apache Tomcat)
thx

Each and every servlet you want acces it should have an entry in web.xml. Otherwise you cant access. (weblogic 6.1 > above)
-thanks
Praveen Sadhu.

Similar Messages

  • Scripts missing from Library/WebServer/CGI-Executables

    I updated my Tiger system to Leopard, and in general all is well, however, there are no scripts in Library/WebServer/CGI-Executables. I believe there should be at least two, test-cgi and printenv. In fact, I can't find these anywhere on Leopard. Can anyone point me to copies of these scripts? I did not try to use Web Sharing until after upgrading to Leopard, if I put my own script into Library/WebServer/CGI-Executables, my browsers do access it correctly.

    I have none in either Tiger or Leopard, but then I've never run a webserver. Have you backed up your Tiger installation. If so, copy them from there. If not, bad juju.

  • How to run CGI-C in Mac?

    What must I do to run CGI-C scripts in Mac?
    We were required in class to use CGI for the server-side processing of HTML. And we use the C programming language.
    Anyway, so what I did was that I made an HTML file in Documents with form action='/Library/WebServer/CGI-Executables/sample3.cgi', made a C file and compiled it in CGI (sample3.cgi). I saved this in /Library/WebServer/CGI-Executables but when I ran the HTML file and clicked some buttons, it opened the folder instead and did not execute the CGI file. My professor said something about setting up a web server first, but he didn't exactly tell me how, why and how it was going to help with anything. Can anyone tell me the best thing that I should do in step-by-step? Or if there was something wrong with the directories I used? Thaank you.
    For additional info, I use 2013 MacBook Air, the gcc compiler for C and Xcode as my editor.

    Sorry been away for a few days.
    If the local web server is running you should be able to access the cgi files by referencing them in your HTML document as
    /cgi-bin/program_name
    I know the folder is CGI-Executables but the httpd.conf file aliases that to cgi-bin so that is the name you use in the HTML code.  Try that and see if it works.
    Here is a simple perl cgi script
    #! /usr/bin/perl
    print "Content-type: text/html\n\n";
    print "<html><body><h1>Hello World!";
    print "</h1></body></html>\n";
    Save that to CGI-Executables as test.pl  chmod it to 755.
    With the above installed you should be ale to open a web browser and enter
    http://localhost/cgi-bin/test.pl
    and the script should run.
    Here is  a simple html document to test it also
    <html><body><h1>It WORKS! in sites</h1>
    <FORM ACTION="/cgi-bin/test.pl"
    METHOD="GET">
    <DIV>Your input:<BR>
    <INPUT NAME="data" SIZE="60" MAXLENGTH="80"><BR>
    <INPUT TYPE="SUBMIT" VALUE="Send"></DIV>
    </FORM>
    </body></html>
    When you press the submit  button  the cgi program will run.
    As I wrote its been a while since I used CGI (most of this has been replaced by php) and I can;t remember if there needs to be any changes to the https.conf if that doesn't work post back and we'll see if the conf file needs to be modified.
    regards

  • Year out of range error running ODI APIs on WebLogic

    We are running ODI APIs on WebLogic to execute scenarios previously built using ODI Studio.
    Getting error: oracle.odi.runtime.agent.ExecutionException: Session Failed :3044 : 17268 :
    99999 : java.sql.BatchUpdateException: Year out of range.17268 : 99999 :
    java.sql.SQLException: Year out of range.
    java.sql.BatchUpdateException: Year out of range.
    The source table (fnd_profile_options) has dates such as '0001-01-01 AD' (in 'YYYY-MM-DD BC' format),
    which are valid dates in Oracle.
    The scenario executes successfully when run through ODI Studio, or via APIs on tomcat servers.
    Our current ODI version is Build ODI_11.1.1.3.0_GENERIC_100623.1635. Does anyone have any idea where to look?
    Thanks in advance.
    Joe

    Hi Joe,
    I suggest you to use a explict transformation on this date, I mean, to_date or to_char functions.
    I already saw some java issues with the regional settings that causes a distinct NLS_LANGUAGE SESSION on Oracle and then, because of that, some date works when launched from one application but not from other...
    Make any sense at your environment?
    Cezar Santos
    http://odiexperts.com

  • Normal CGI-Executables permission problem? and Executing Binary CGIs?

    Running 10.4.7. And we are having the no permission problem when trying to run CGI scripts from within CGI-Executables. I have looked at the httpd.conf file and the line that was supposed to be there is. I also have an alias under the default webserver pointing to it. Any help?
    Also, until then, I made a directory under the main website executable and can run perl cgi files. But I get the following error when running the binary file :
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Thanks,
    Corey

    Forget the CGI-Executables, the Alias was fritzing it up, and deleted the alias and is working. But I am still having the problem of the binary CGI files. The only difference I have on the web server is entropy's PHP5 is installed, but wouldn't think that would be an issue.
    Corey

  • Configuring the CGI-Executables folder on the webserver

    would like to install w3perl for squid statistics on a MAC running 10.5, the folder in which to place the perl scripts is indicated as /Library/WebServer/CGI-Executables/w3perl, the scripts are already in this folder
    When i run the installation from the browser, I get an error
    The requested URL /w3perl/confstat.pl was not found on this server
    what could be the problem? the w3perl folder is in the CGI-Executables and the file confstat.pl is in the folder w3per;
    have I not defined the CGI executables folder properly? how do i know i have configured the CGI-executables properly

    If your script is in /Library/WebServer/CGI-Executables/w3perl/confstat.pl then the URL for that CGI would be:
    http://your.server.net/cgi-bin/w3perl/confstat.pl
    The URI needs the leading /cgi-bin in order for Apache to interpret it as a CGI request and route it to the CGI-Executables directory.

  • CGI-Executables directory

    Hi,
    I'm trying to set up a simple Apache WebServer on my MacBookPro 10.6.2.
    So far, I have it working in as far as if I type http://localhost I get the index page I load into /Library/WebServer/Documents but when I try to get that page to run a CGI script, I get an error saying that the URL cannot be found.
    I've placed the CGI script in many different locations;
    - /Library/WebServer/CGI-Executables
    - /Library/WebServer/Documents
    - /Library/WebServer/CGI-Executables/cgi-bin
    - /Library/WebServer/Documents/cgi-bin
    but none of them make a difference.
    Here's my simple index.html page:
    <html>
    <head>
    <title>TEST PAGE</title>
    </head>
    <body>
    HELLO WORLD!
    <form action="/CGI-Executables/mycgi.cgi" method="post">
    <dl>
    <dt> Username <dd> <input name="user" size="50">
    <dt> Password <dd> <input name="pass" size="50">
    </dl>
    <input type="submit" value="Submit">
    </form>
    </body>
    </html>
    and here's my cgi script:
    #!/bin/bash
    echo "Content-type: text/html"
    echo ""
    echo "<html><head><title>Bash as CGI"
    echo "</title></head><body>"
    echo "Hello $(user)"
    echo "Today is $(date)"
    echo "</body></html>"
    Any help appreciated.
    Regards,
    Dan

    Try the server forums or the Unix forum (under OS X Technologies).

  • Running cgi script placed on one machine by a web server installed on anoth

    I have weblogic installed on machine 1 and
    CGI Script placed on another machine 2.
    Is it possible for Weblogic to service/run CGI Script placed on machine 2. If so how can we do it.

    Mah
    I don't know about Weblogic, but here is some code that POSTs to a CGI script (XXX.pl) with a few parameters and retrieves part of the result (and HTML table) in a large string.
    Maybe you could use this kind of thing:
    protected String getTable(String hostID, Interval interval) throws IOException{
    StringBuffer query=new StringBuffer(100);
    Socket s = new Socket("some.host.com",80);
    BufferedReader in = new BufferedReader
    (new InputStreamReader(s.getInputStream()));
    PrintWriter out= new PrintWriter(s.getOutputStream());
    Calendar c=Calendar.getInstance();
    c.setTime(interval.getStart());
    query.append("s%5fm="+MonthConverter.int2mmm(c.get(Calendar.MONTH)));
    query.append("&s%5fd="+c.get(Calendar.DAY_OF_MONTH));
    query.append("&byear="+c.get(Calendar.YEAR));
    query.append("&Report=Submit");
    out.print("POST /cgi-bin/XXX.pl?site="+hostID+" HTTP/1.0\n");
    out.print("Accept: text/html\n");
    out.print("User-Agent: yourapplicationname\n");
    out.print("From: myemail@myhost\n");
    out.print("Content-type: application/x-www-form-urlencoded\n");
    out.print("Content-length: "+query.length()+"\n\n");
    out.print(query.toString());
    out.flush();
    String line;
    boolean finished=false;
    boolean started=false;
    StringBuffer resultBuffer=new StringBuffer(1000);
    while ((line = in.readLine()) !=null
    && !finished) {
    if (line.indexOf("Tmin,Tmax and Precipitation amount")>-1)
    started=true;
    if (started)
    resultBuffer.append(line);
    if (line.indexOf("</HTML>")>0)
    finished=true;
    out.close();
    in.close();
    return resultBuffer.toString();

  • Running CGI

    I'm new to developing cgi on the Mac, what do I need to test my cgi scripts through Safari? I'm talking about testing locally, not uploading to my ISP. I want to get them working before I post them to the web. They are interactive scripts so just running them through Terminal won't work.
    Hope this is understandable.

    OK, I guess this means Apache comes with the OS??? Ran the grep, this is what it came back with:
    Last login: Thu Aug 31 16:27:10 on console
    Welcome to Darwin!
    You have new mail.
    [Mike-Lipays-Computer:~] mike% grep -w -i CGI /etc/httpd/httpd.conf
    # also affects SERVER_NAME and SERVER_PORT in CGI scripts.
    # mod_status and mod_info output etc., but not CGI generated documents).
    ScriptAlias /cgi-bin/ "/Library/WebServer/CGI-Executables/"
    # "/Library/WebServer/CGI-Executables" should be changed to whatever your ScriptAliased
    # CGI directory exists, if you have that configured.
    <Directory "/Library/WebServer/CGI-Executables">
    # If you want to use server side includes, or CGI outside
    # To use CGI scripts:
    #AddHandler cgi-script .cgi
    # pathnames for oft-used CGI file processors.
    # Format: Action media/type /cgi-script/location
    # Format: Action handler-name /cgi-script/location
    #ErrorDocument 404 /cgi-bin/missing_handler.pl
    # days. This bug involved a CGI script distributed as a part of Apache.
    # support/phfabuselog.cgi.
    #<Location /cgi-bin/phf*>
    # ErrorDocument 403 http://phf.apache.org/phfabuselog.cgi
    [Mike-Lipays-Computer:~] mike%
    Now, can you tell me what this means, and how do I change it to allow cgi to run wherever I want?
    I'm using perl, I know there are others out there, but I work with several ISP's and not all allow everything, perl seems to be allowed with all the ones I'm working with.

  • Error in Jdeveloper while running a project on weblogic server.

    Hi ,
    I am receiving below error while running a project in Weblogic. I am using Jeveloper 11.1.1.2.0
    *** Using port 7101 ***
    "C:\Documents and Settings\nlatif\Application Data\JDeveloper\system11.1.1.2.36.55.36\DefaultDomain\bin\startWebLogic.cmd"
    [waiting for the server to complete its initialization...]
    The system cannot find the path specified.
    The JRE was not found in directory D:\OracleJeveloper\Middleware\jdk160_14_R27.6.5-32. (JAVA_HOME)
    Please edit your environment and set the JAVA_HOME
    variable to point to the root directory of your Java installation.
    Press any key to continue . . .
    where as I can run the same project in other machine on Jdeveloper with out this error.
    Thanks & regards,
    Noman

    Noman,
    have you checked that the folder D:\OracleJeveloper\Middleware\jdk160_14_R27.6.5-32 contains the jre?
    Timo

  • I recieve the following error when running an executable ("This VI is not Executable. The full development version of Labview is required to fix the errors"

    I recieve the following error when trying to build and run a labview executable. I am able to build the executable but when trying to run the executable, a pop up window comes up asking the user to select a dll. (please see screen shot attached). Once the DLL is selected, I get the error that This VI is not Executable. The full development version of Labview is required to fix the errors. (please see screen shot attached). I have also attached a snapshot of the project window.
    I have the professional development system
    I can run the main VI
    all the required DLL's are in the dependencies section of the project window.
    I am trying to find the root cause of this error but to no avail. can anyone give me a clue to what i am missing here. Any suggestions on where i should look to find the problem ?
    Thanks in advance to all labview users for your help
    Attachments:
    project window.PNG ‏36 KB

    other PNG
    Attachments:
    Broken Arrow on EXE.PNG ‏179 KB

  • How can i run a executable right after a rman job has run?

    How can i run a executable right after a rman job has run?
    I have a rman job that execute every night. The backup is local.
    I want to have a duplicate of the backup on another machine.
    I want the executable to sync the directory to execute right after the rman backup.
    How can i do this using the job scheduler?
    Normaly, i would configure rman to run the backup on both location. But im having trouble with rman regarding this:ORA-600 [2103] on RMAN Backup to NFS mounted file system

    Hi,
    If the rman job is in fact a Scheduler jobs (appears in the dba_scheduler_jobs view) then you can create a second event-based job that runs after the rman job (and set the raise_events attribute for the rman job).
    Instructions are here
    Create Event based job
    Hope this helps,
    Ravi.

  • How do I determine in Java if running local or deployed weblogic server

    Using JDeveloper 11.1.1.4.0
    I need to determine in my Java code, if I am running my application locally (JDeveloper/Weblogic) or if the application is running on a deployed Weblogic server. The code will be used to determine where to place files when testing on PC verses where to place files when deployed. For example (c:\temp or /usr2/upload).
    Thanks,
    Troy

    Hi,
    well one way is to identify using weblogic system properties here is the one example to get weblogic managed server name of application running in java http://www.baigzeeshan.com/2011/11/oracle-adf-how-to-get-managed-server.html
    check other properties as well http://docs.oracle.com/cd/E13222_01/wls/docs90/config_scripting/config_WLS.html#1019588
    Zeeshan

  • How to run the application in weblogic

    Hello!
    I have deployed 1 application in Apache Tomcat , it is working fine. Now i want to deploy same application in Weblogic Server. I have already installed "Weblogic 9.1". Now i dont know how to do and what to do next.
    I also dont know where to copy that application folder in weblogic, and how to run & deploy the application?
    I have stuck over here.
    Please if anybody knows how to run the application in weblogic, plz let me know.
    I need your help.
    Thank you.

    hi,
    have you gone through [this link.|http://e-docs.bea.com/wls/docs92/index.html]. i think it may help.

  • How to run JSP pages in weblogic 8.1 sp2

    hi frnzs,
    plese give me some idea about how to run JSP pages in weblogic server.

    enen i dont know hw to fly palne otherwise i can definitely give u sm guides abt that......

Maybe you are looking for

  • Encountered an error while updating iTunes

    Yesterrday I have updated my iMac to Lion. Then I did a software update and there are two updates one of them is iTunes 10.4. But it gives me an error: installer encountered an error that caused the installation to fail I have also tried to download

  • My iPad is frozen on the ibook list

    My ipad2 appears to be frozen in the iBook "browse" section under "top authors" on John Grishams name and list oof books! What did I do wrong and how do I unstick it?

  • EDI 810 Inbound - Vendor Invoice

    Hi What is the Message type, Basic type, Process code and Function module for Inbound Vendor Invoice (EDI 810 Inbound) ? Thanks Maruthi

  • Web-form errors/Its urgent

    ERROR: An error occurred. Your web form must capture customer name and email address. Please fix this issue and re-insert your web form on your web page. Why above error occues in folllowing form: <div class="mid-container col2-left-layout" id="rowan

  • Oracle 11g download problem (Files is Broken)

    hi i am download 11g 2 zip files. but some files broken. please any one upload this .jar files 1) database\stage\components\oracle.jdk\1.5.0.17.03\1\Datefiles\all.jar 2) database\stage\Components\oracle.swd.oui.core\11.2.0.1.0\1\DataFiles\-----------