WebLogic 6.1SP3: CGI Script Displayed, Not Processed

I've setup CGI support in my WebLogic 6.1SP3 installation, on my Solaris box. I am attempting to run a simple script that prints a message to the screen/browser. When I attempt to run the CGI script, I see the contents of the script on screen. The script is never actually processed.
Has anyone else encountered such a problem?

Hi Rick,
Just a shot in the dark, but does the script have eXecute privs? You
should ask your question in the webserver newsgroup group:
http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.webserver&utag=
Thanks,
Bruce
Rick wrote:
>
I've setup CGI support in my WebLogic 6.1SP3 installation, on my Solaris box. I am attempting to run a simple script that prints a message to the screen/browser. When I attempt to run the CGI script, I see the contents of the script on screen. The script is never actually processed.
Has anyone else encountered such a problem?

Similar Messages

  • 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.

  • Component is not getting displayed in process scheduler menu

    Hi All,
    I have created a project and created/registered a component in that project. I have also added a page which is having a record definition with a record named L_RUNCNTL having two search fields, to this component and configured L_RUNCNTL as search record for this component.
    I have registered this component with below details:
    Menu Name : PROCESS_SCHEDULER
    Bar Name : PROCESS
    Folder Name as PT_PROCESS_SCHEDULER
    Select “Always Use default local node?” Check box
    Permission List : PTPT1000
    But after registration, when I open process scheduler menu I dont see this component listed. However, previously I created a component in this project and registered it with same details given above and I could see it in process scheduler menu.
    I am surprised why another component registered with same details is not getting displayed in process scheduler menu.

    Thanks Michel,
    I got this problem resolved. Here is what I did:
    Ran portal security sync at the navigation PeopleTools > Portal > Portal Security Sync.
    Cleared browser cache, accessed the page again and saw the link was available.

  • Script Alert: "Sorry I could not process the following files" (Error Message using Image Processor)

    I'm a seasoned Photoshop/Bridge CS5 user who recently upgraded to CS6.  In Bridge I just ran my first Image Processor batch, trying to convert a set of RAW .NEF files to .PSD files with a basic editing action I created applied to them.  Photoshop CS6 opens the files from Bridge and applies the actions, but then I get the "Script alert" error message "Sorry I could not process the following files" and a list of all of the files in the batch I was trying to run the script on.  The files all remain open and are saved on my hard drive in a folder created by the Image Processor script, but do not close unless I manually close them.  I never had this problem in CS5 where the image processor would apply the desired actions to the batch of photos one at a time, then save and close.  Thoughts on how I can fix this bug?

    Hey Jeff--
    No specific action steps to make the image safe - no flattening, etc. Had problems narrowing down the specific action step causing the problem. So I ran the Image Processor script in the ExtendScript ToolKit and debugged in. (I'm using the version that shipped with CS4.)
    Turns out what was happening is that the app.activeDocument.close() command on line 1490 was never getting called, because the this.SaveFile() above it was throwing an exception. More debugging got me to the problem - SaveFile() tries to restore the history state after making a doc safe for saving as a JPEG. This causes an exception. So I commented out line 1571:
    // app.activeDocument.ativeHistoryState = historyState;
    The script runs just fine after this. I commented out the close to see what history states got added to the doc, but no new states are recorded, so commenting out the restore line should not cause any problems.
    Of course, my solution does not solve the problem and I may need to comment out all the saveFile() lines that does this. Not sure why some actions have this problem and others don't. The actions I am running have about 25 steps. Perhaps PS is not catching up quick enough. I added a $.sleep(2500) after the restore history but that didn't help.
    So, not sure where this gets us. I will check about posting an action set with just one of the actions that cause the problem. But I may also have our customer comment out that line of the Image Processor script.
    Hope this helps. May post more next week.

  • IView not processed for second time, but 'old' cached data is displayed...

    <b>I have the following scenario</b>:
    In IView 1, I select a notification number. Then, I click on a button to create a service order.
    This calls IView 2, and the notification number is passed as a request parameter to IView 2.
    The problem happens when I close the popup and select another Notification to do the same thing with. When the popup is called, the old data is still there. The IView itself is not processed (no doInitialization etc).
    <b>Details</b>:
    The parameter is passed correcty to the other IView.
    This is done by using:
    a = window.open('<%=String.valueOf(Constants.QUICKSERVICEORDER_COMPONENT)%>?notificationnumber=<%=R3_Notification.getNotificationNumber()%',
    'createserviceorder',
    'toolbar=no,menubar=no,location=no,personalbar=no,titlebar=yes,scrollbars=auto,resizable=yes,width=600,height=500');
    In the second IView's java part, the parameter is picked up:
    notificationnumber = request.getParameter("notificationnumber");
    That did work in the previous Portal version, so there's really no reason to believe it's wrong now...
    But after upgrading to EP6, it does not behave the same way anymore.
    I added messages to the defaultLogger, to write to the log at doInitialization.
    Then, I can see that output is NOT written...
    It looks like the popup IView is not being called again, but just displays the OLD data.
    Unless I upload the component again to the Portal.
    Then it works. Once. Looks like a caching issue to me.
    Just clicking on the 'x' to close the window doesn't seem to clear the cache.
    So I have to find a way to refresh this IView or clear its Cache or something...
    But how is a mystery...
    Anyone else encounter this problem?

    Yes, that solved the problem.
    Thanks very much!
    Background info (might be helpful to others...)
    We migrated from 5.0 to Portal 6.20. This caused problems with caching.
    There are differences between caching in those versions. But the main reason was that the portal version information was set in the portalapp.xml file...
    To solve the issue, the lines referring to the portal version have been removed from the portalapp.xml:
      <application-config>
        <property name="ClassLoadingPolicy" value="5.0"></property>
        <property name="DeploymentPolicy" value="5.0"></property>
        <property name="AuthenticationPolicy" value="5.0"></property>
      </application-config>
    Also, a line was added in the Portalapp.xml:
        <property name="ALLOW_BROWSER" value="No"/>
    If the component is called directly (as in our case), then the Iview caching will not be used. All the caching has to be done via the portalapp.xml file.

  • Af:commandImageLink not processing the aboulite path for displaying image

    All,
    We are required to display an image in the UI. The image is not stored in the deployed ear file. It is stored in the "*<DOMAIN_HOME>\Inventory\images*".
    Where DOMAIN_HOME=D:\JUPITER_CORONA\system11.1.1.3.37.56.60\DefaultDomain\inventory
    I would process an image absolute path in the af:commandImageLink tag as follows,
    *<af:commandImageLink "icon=file://D:/JUPITER_CORONA/system11.1.1.3.37.56.60/DefaultDomain/inventory/images/equipment.png" text"equipment" shotdesc="icon" />*
    The problem is that the above tag is not processing the above mentioned absolute path and displaying text "icon" instead of actual icon image. As per the ADF documentation the tag processes absolute path as well.
    Can someone suggest as to where I am going missing.
    regards,
    Chandra

    I was not able to get what you want very well, the situation is a little bit un-usual,
    but for solution I suggest the below way.
    write a servlet/JSP that return the image (it is like copying the file, read the image from absolute path and send it to the OUTPUTSTREAM of the response aslo remember the MIME and the write filter for the jsp/servlet that end with .jpg or any extension for the image.)
    then in the jsf page write the below code.
    <af:commandImageLink icon="/jspOrservlerpath/servlet/filename.jpg" text"equipment" shotdesc="icon" />
    your servlet (get the filename.jpg and then find the file and return it)
    this solution is very common for cases that the file is not available physically such as when you want to read it from another place(your case) or database.
    I hope this help you.
    I can send you the source for the servlet/jsp if you want.

  • Script alert: "Sorry I could not process the following files:"

    I keep getting this error when I try to run the "Image Processor" Script.  I have tried searching everywhere to no avail.  I am running on Windows 7 and CS6.  What I have tried:
    Increasing History States, Memory Usage, and Scratch Disks
    Turning "Save in Background" on and off
    Turning "Open Documents as Tabs" on and off
    Deleting the Preset Scripts
    Deleting the preferences file
    Reinstalling Photoshop
    Checked for updates
    Tried to come in through Bridge, instead of Photoshop
    Convert one photo instead of many.(all above was tested with one)
    Working variations:  Using the image processor for PSD instead of JPG yields appropriate results.
    Related Pictures:
    Thanks for your help.
    ~AS

    AStrickland wrote:
    A wild guess. I see from you screen capture your processing open documents and that your saving to the same location. My wild guess is that you duped a document and never saved that document so the document has no backing file therefore no location or there is a new document open the has not been saved.  Photoshop Image Process script does not know how to save into no location? Do you?

  • Some times the logs not display in process chains

    Some times the logs not display in process chains then how could we find them??

    If you are in Tcode RSPC and opened your process chain you are able to click on the Logs icon. It will prompt you for a date selection.
    If this still doesn't work you might have forgotton to activate and schedule your process chain. Before you activate check that your start variant is set to Direct scheduling by double clicking on the start variant.
    hope this helps.
    Cheers,
    Andrew van Schooneveld
    (assign points if useful)

  • Servlet engine invoked FROM CGI script?

    Yes this is a backwards request, but I need a simple servlet engine that can be invoked through a CGI script. I perfectly realize the problems associated with this like session management, benefits in threading, etc not to mention the overhead of JVM startup on each request...
    Anything with which anyone's familiar? Searching returns (of course) how to invoke CGI from Servlet containers which is obviously not what I need.
    Thanks!

    Hi Michael,
    I am running 7.0 on Win NT while its the same case its displaying the whole content
    as it is setted the weblogic.servlet.CGIServlet in the web.xml file and providing
    the compiler for perl also .
    Looking for a quick reply
    Thanks
    Shivani
    Michael Young <[email protected]> wrote:
    Hi.
    What platform/OS version are you running WLS on?
    Thanks,
    Michael
    Suren Jain wrote:
    Hi,
    We are having problems invoking cgi scripts from the browser.
    When we try to access it, it is not executed, instead the script is displayed
    in the browser.
    We are using weblogic 5.1 and sp9.
    In the properties file we have specified
    weblogic.httpd.register.cgi-bin=weblogic.servlet.CGIServlet
    weblogic.httpd.initArgs.cgi-bin=\
    cgiDir=/opt/equitydev/geo/cgi-bin,\
    *.pl=/usr/local/bin/perl5,\
    *.sh=/bin/ksh
    Appreciate your help.
    Thanks
    Suren.--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • This.submitForm() -- problem with my cgi script

    Thanks to George Johnson for an earlier answer to a related issue with this.submitForm.
    I am trying to use this.submitForm as per Example 1 on p. 348 of "JavaScript for Acrobat API Reference" document.
    To avoid any restrictions with my web hosting service, I am using the following JavaScript (on my form's Submit button) on my local XAMPP server:
    this.submitForm ("./cgi-bin/myscript.cgi");
    My question involves what should be in the myscript.cgi file before I submit to it.  If there is no file to start with, the
    submission will result in a "File not found" error.  So I guess I need the myscript.cgi file in the cgi-bin folder to begin with.
    When I put in a blank myscript.cgi file in that folder (hoping the submission will overwrite it), I can the following message:
    Server error!  The server encountered an internal error and was unable to complete your request. Either the server is overloaded or
    there was an error in a CGI script.
    Can you tell me what is happening?  What should my original myscript.cgi have in it, if anything?

    Thanks for responding.
    I want CGI script to processes the incoming data from the PDF form submission. I want that process to save the FDF to a file on the server. 
    I also understand that the script has to return a response to the client.  I would like to send some kind of confirmation to the client.
    I realize that writing scripts isn't rocket science, but it would seem that Adobe would have some examples of scripts that deal specifically with fdf data.  Could you point me to any examples?

  • PHP CGI scripts problem

    I am using iPlanet webserver on a Win 2000 machine. Amongst the other things
    I am doing with it, I have some PHP scripts which I want to run on it.
    I have followed the manual on CGI, but I cannot get it to work.
    After using the Admin setup, the 'obj.conf' file contains:
    NameTrans fn="pfx2dir" from="/abc" dir="c:/Netscape/Server4/xyz" name="cgi"
    Service fn="send-cgi" type="magnus-internal/cgi"
    <Object name="cgi">
    ObjectType fn="force-type" type="magnus-internal/cgi"
    Service fn="send-cgi"
    </Object>
    The 'mime.types' file contains:
    type=magnus-internal/cgi exts=cgi,exe,bat,php
    type=application/x-php exts=php
    Windows is set up to recognise '.php' extensions and run the PHP
    interpreter.
    The error message which I get is:
    [03/Oct/2001:16:38:51] failure ( 900): for host 132.132.132.132 trying to
    GET /zyz/test.php, send-cgi reports: could not send new process (The
    operation completed successfully.
    [03/Oct/2001:16:38:51] failure ( 900): cgi_send:cgi_start_exec
    c:\Netscape\Server4\abc\test.php failed
    Any ideas why this does not work?
    Steven

    Hi Steven ,
    Follow exactly
    http://benoit.noss.free.fr/php/install-php4.html
    to install and configure PHP in IWS under WIndowsNT.
    If it still does'nt works notify me.
    Regards
    T.Raghulan
    [email protected]

  • LMS 3.2 Apache 403 Error on CGI Scripts

    I've been chasing my tail for a couple of days now, and see no other option than to ask here.  It's probably something reall
    y dumb that I'm just not seeing.
    On a Windows 2008 server with SP1 LMS 3.2 is running fine (as long as no one uses stupid scripts ;o)) on a good day, but whenever I try to access any of the cgi scripts installed under Program Files/CSCOpx/cgi-bin it get the dreaded "You don't have permission to access /cgi-bin/dbadmin/pdbadmin/nph-dbreader.pl on this server".  The httpd.conf section for the CGI handling is as follows:
    ScriptAlias /cgi-bin/ "D:/PROGRA~2/CSCOpx/cgi-bin/"
    <Directory "D:/PROGRA~2/CSCOpx/cgi-bin">
    AllowOverride None
    Options +ExecCGI
    AddHandler cgi-script .pl
    #ScriptInterpreterSource Registry-Strict
    ScriptInterpreterSource Script
    </Directory>
    LoadModule perl_module modules/mod_perl.so
    What I would like to know is what have I missed..?  You can see my first attempt by replacing the ScriptInterpreterSource from Registry-Script to the default, Script, to no avail...
    Also, if I make any modifications to the httpd.conf file I cannot just restart the Apache daemon, I have to stop and start the daemon manager, otherwise no one can access the web login page: is that normal..?  As in the following:
    The Apache daemon is restarted:
    [Fri Dec 11 15:14:38 2009] [notice] Child 6088: Child process is running
    [Fri Dec 11 15:14:38 2009] [notice] Child 6088: Acquired the start mutex.
    [Fri Dec 11 15:14:38 2009] [notice] Child 6088: Starting 500 worker threads.
    [Fri Dec 11 15:14:38 2009] [notice] Child 6088: Starting thread to listen on port 1741.
    [Fri Dec 11 15:14:38 2009] [notice] Child 6088: Starting thread to listen on port 443.
    Lots of the following messages appear in the error.log file:
    [Fri Dec 11 15:14:38 2009] [error] [client 10.185.64.101] client denied by server configuration: com.cisco.nm.cmf.servlet.LwmsMainServlet
    [Fri Dec 11 15:14:38 2009] [error] [client 10.185.64.101] client denied by server configuration: D:/Program Files/CSCOpx/cgi-bin/error/403.pl
    Any help would be most appreciated...
    Regards,
    Sean

    I have no expirience with the W2008 OS yet.
    I get the impression it does things differently.
    If you know the casuser password, I asume you can try to log onto the server and try an run the perl script in a dos box.
    Maybe it will provide a clue.
    if you don't know the casuser password you can set it using CSCOpx\bin\resetpasswd.exe.
    Cheers,
    Michel

  • Formmail action & cgi scripts

    I have 2 forms I built in CS3 that have to be processed in a
    secure manner. I followed the advice I found online and from my
    webhost (network solutions) and downloaded Visual Form Mail Pro. I
    uploaded the cgi script files to the cgi-bin on the server and
    setup the permissions. When I click the submit button on the form,
    I get an Internal Server Error message. I think the problem is the
    action field on the properties panel. I cannot find anything that
    will tell me what the action should be. I cannot use the mailto
    action, the forms are for secure medical information to be
    forwarded to a dr's office. One other issue with how the form needs
    to be processed to email, is my client wants the email sent to his
    gmail account, how do I configure that?
    the url for the form I tried to configure is
    https://www.stluciegi.com/contact/patientcontact.html

    ou can use PHP on this hosting?
    I'd suggest using the phpformmail script.
    here's my stock cut 'n paste on what to set to what, and why
    1)go to
    http://http://developerkarma.com/projects
    -->phpformmail
    download it.
    extract the ZIP file.
    More detailed instructions are in the docs folder. These
    shortcut
    instructions are for version 1.07 of the phpformmail script.
    2) open formmail.php in dreamweaver
    Make the following changes (in code view, turn line numbers
    on)
    2a)
    line 4,
    define('CHECK_REFERER', true);
    change to:
    define('CHECK_REFERER', false);
    reason: too many people use a firewall or Norton security to
    restrict this.
    2b)
    Line 43
    $referers = array('www.example.com', 'example.com');
    change to the domain name of your web site.
    reason: this probably isn't needed since we just turned the
    referrer
    checking off. but change it anyway.
    2c)  *this is to hard-code the recipient address into
    the php
    file, where it is totally invisible *
    Line 46
    $recipient_array = array();
    change to:
    $recipient_array = array('me' =>
    '[email protected]');
    **of course, replace [email protected]  with
    the email address
    you want to receive the form data. Also note the single quote
    marks.
    reason: this sets the email address the form results will be
    sent to.
    You can also make a list of possible recipient alias values-
    see the readme
    in the docs folder.
    2d) give the script a default "From" address to use.
    Go to line 41
    Change:
    define('FROM', null);
    to:
    define('FROM', 'Example Name <[email protected]>');
    substituting your name and email address.
    3) now do a File-->Save As and save this file to within
    this Local Site
    folder. save it as anythingyouwant.php
    4) in dw's File Panel, find anythingyouwant.php and upload it
    to the remote
    site.
    5) Now open your form html file in dreamweaver,
    5a)click the mouse into the form area, and select the
    <form> tag on the
    lower left margin of the design window.
    In the Property Inspector, it should now show the properties
    of the <form>
    tag. In the Property Inspector, to the right of the ACTION
    line, click the
    folder icon and browse to and select the anythingyouwant.php
    file
    you've saved to within this site.
    5b) now click within the form area and go to dw
    menu-->Insert-->Form
    Objects-->Hidden Field
    This inserts a hidden form field.
    In the property inspector, change the NAME/ID of this field
    to: recipient
    And the VALUE of this field to: me
    the code should look like:
    <input name="recipient" type="hidden" id="recipient"
    value="me">
    This tells the script to use the "me" recipient_alias value
    as the email
    address to send the form to.
    5c: Do you have a form field to collect the user's email
    address?
    If yes, if this field is named exactly "email" then the
    script will use the
    user's email as the reply to in the outgoing email
    6) Save and upload the form page.
    Try the form from the website.
    Optional:
    1-make a new page for a thank you for submitting message.
    In the form, insert another hidden field.
    Name: redirect
    Value:  the full absolute
    http:// address to the new thank you page.
    If you don't set a redirect value- the form script will build
    a "thank you,
    here is what you submitted" page. If you want to use that
    dynamic page-
    upload the .css file that it uses.
    2- If you have a field in the form to collect the visitor's
    email address,
    IF you name this field  in the form exactly  
     email   then the visitor's
    email address will be the Reply To address in the outgoing
    email.
    There are 30 or so other optional form fields to control the
    form- see the
    readme in the docs folder. One of those optional control
    fields is
    verification.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Running CGI scripts

    Hi,
    I am running WebLogic Server 5.1. I get the message - "cgi-bin: Failed
    to execute CGI script:reports" when I try to execute cgi-bin scripts
    (*.cgi).
    I have setup the properties file as follows -
    weblogic.httpd.register.cgi-bin=weblogic.servlet.CGIServlet
    weblogic.httpd.initArgs.cgi-bin=\
    cgiDir=/export/home/webbi/NetTracker/cgi-bin
    and am trying to access cgi script as
    http://<host:port>/cgi-bin/reports/ntcgi.cgi
    Appreciate your help.
    Raja

    Marta,
    Thanks for your reply. I followed your advice, it still complains
    cgi-bin: Failed to exec CGI script:ntcgi.cgi
    Any ideas?
    Raja
    Marta Ramos wrote:
    Hi,
    I had the same problem. Try this:
    weblogic.httpd.initArgs.cgi-bin=\
    cgiDir=/export/home/webbi/NetTracker/cgi-bin/reports
    And access to the cgi script as
    http://<host:port>/cgi-bin/ntcgi.cgi
    Do not ask me why, but WebLogic do not admit directories after
    the cgi-bin directory at the URL. That is why he is trying to
    execute the cgi script "reports".
    Hope this help you.
    Marta.
    Raja Ramanathan <[email protected]> wrote:
    Hi,
    I am running WebLogic Server 5.1. I get the message - "cgi-bin: Failed
    to execute CGI script:reports" when I try to execute cgi-bin scripts
    (*.cgi).
    I have setup the properties file as follows -
    weblogic.httpd.register.cgi-bin=weblogic.servlet.CGIServlet
    weblogic.httpd.initArgs.cgi-bin=\
    cgiDir=/export/home/webbi/NetTracker/cgi-bin
    and am trying to access cgi script as
    http://<host:port>/cgi-bin/reports/ntcgi.cgi
    Appreciate your help.
    Raja

  • CGI script for simple form

    Can anyone give me a CGI script that will make a form
    automatlly e-mail the information gathered from an online form?
    Can that code be placed right into the html file?

    There are only two ways to process form data -
    1. Use mailto:[email protected] as the action of the form
    2. Use a server-side scripting method to a) harvest the
    form's data, b)
    process it in some manner, e.g., enter it into a database, c)
    formulate and
    send an email to one or more email recipients, and d)
    redirect the visitor
    to some ending page
    Method 1 is quite simple, and is also the least reliable. It
    depends both
    on your visitor having an email client already installed on
    their computer -
    this eliminates public computers, or home users without email
    clients
    installed (more and more it seems) - and on the installed
    email client
    responding to
    the mailto call. It is not possible to use this method *and*
    send the
    visitor to a
    thank you page as well.
    Method 2a is the preferred method, since it eliminates the
    problems of
    method
    1, but it means that you have to grapple with
    server-scripting somehow (ASP,
    CF, PHP, perl, etc.).
    Method 2b would be to use some third-party form processing,
    like
    http://www.bebosoft.com/products/formstogo/,
    or if your server supports PHP,
    you could investigate
    http://www.geekministry.com/formbuilder/,
    a very nice
    product by a frequent poster here.
    You would have to decide which of these methods is best for
    your needs,
    but if it's Method 2a, then start by asking your host what
    they provide for
    form
    processing. If it's 2b, then read their FAQ/instructions
    carefully.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "inhouse7" <[email protected]> wrote in
    message
    news:gda6ap$79k$[email protected]..
    > Can anyone give me a CGI script that will make a form
    automatlly e-mail
    > the information gathered from an online form?
    > Can that code be placed right into the html file?

Maybe you are looking for