PERL CGI doesnt accept ORACLE+APACHE

Hi,
I am using Oracle+Apache+Perl+DBI/DBD and one thing very strange
is happening:
Oracle works fine ...
Perl + CGI + Apache works fine ...
Perl + Oracle works fine ...
But when it comes to Access a Perl script (CGI) accessing Oracle
in the Netscape using Apache as the Web server, nothing happens
The STOP button remains lighted as if the page havent finished
loading. No messages are displayed.
If I run the same script in the terminal prompt, it is executed
terrifically, generating all the HTML codes, but when I run it
using the browser, absolutely nothing happens.
Do you have any idea of what is wrong ?!
Thank you
Andre Lessa
[email protected]
[email protected]
null

Hey,
The problem is that you have not included ORACLE_HOME in your
cgi script. you need to do the following
BEGIN {$ENV{ORACLE_HOME}='your_dir_goes_here';}
also check error log.
under my redhat linux 5.2 it is in the following dir.
/var/log/httpd/
that is how i solved that problem
Alex
Email with any other questions;
Andre Lessa (guest) wrote:
: Hi,
: I am using Oracle+Apache+Perl+DBI/DBD and one thing very
strange
: is happening:
: Oracle works fine ...
: Perl + CGI + Apache works fine ...
: Perl + Oracle works fine ...
: But when it comes to Access a Perl script (CGI) accessing
Oracle
: in the Netscape using Apache as the Web server, nothing happens
: The STOP button remains lighted as if the page havent finished
: loading. No messages are displayed.
: If I run the same script in the terminal prompt, it is executed
: terrifically, generating all the HTML codes, but when I run it
: using the browser, absolutely nothing happens.
: Do you have any idea of what is wrong ?!
: Thank you
: Andre Lessa
: [email protected]
: [email protected]
null

Similar Messages

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

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

  • Can perl/cgi append to iplanet error log?

    I've tried to print the stderr for the warning/error messages in a hope that they go to the errors logfile. But they don't.
    Is it possible to append errors logfile using perl/cgi?
    Thanks.

    Actually, if you run CGIs in Apache, print to stderr will automatically go to the server's error logs.
    For iplanet web server, inside a CGI process, stderr is redirected to stdout, so anything to stderr actually shows up in the response page. It would be nice if iplanet has a configuration param to turn it on/off.

  • Trying to get lighttpd to upload a file through perl cgi

    Hi, I'm quite new in these things, so I might be doing something obvious wrong, but I'd like some help on this.
    I'm trying to make a webpage where people can upload files, this is the html page (located at /srv/html/index.html):
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>lighttpd Test Page</title>
    </head>
    <body>
    <div style="text-align:center; font: 12px sans-serif;">
    <span style="font-weight: bold; font-size: 20px;">
    Arch Linux
    </span>
    <br><br>
    This is a test page for the lighttpd Web Server.<br>
    <form action="/cgi-bin/upload.pl" method="post" enctype="multipart/form-data">
    <input type="file" name="fileName" size="40">
    <input type="submit" value="Send">
    <input type="reset">
    </form>
    </div>
    </body>
    </html>
    And the backend (in /srv/html/cgi-bin/upload.pl):
    #!/usr/bin/perl -wT
    use strict;
    use CGI;
    use CGI::Carp qw ( fatalsToBrowser );
    use File::Basename;
    $CGI::POST_MAX = 1024 * 1024 * 5000; # 5GB filesize limit
    my $safe_filename_characters = "a-zA-Z0-9_.-";
    my $upload_dir = "/srv/jail/";
    my $query = new CGI;
    my $filename = $query->param("fileName");
    if ( !$filename )
    print $query->header ( );
    print "There was a problem uploading your file (filesize limit may be exceeded).";
    exit;
    my ( $name, $path, $extension ) = fileparse ( $filename, '\..*' );
    $filename = $name . $extension;
    $filename =~ tr/ /_/;
    $filename =~ s/[^$safe_filename_characters]//g;
    if ( $filename =~ /^([$safe_filename_characters]+)$/ )
    $filename = $1;
    else
    die "Filename contains invalid characters";
    my $upload_filehandle = $query->upload("fileName");
    open ( UPLOADFILE, ">$upload_dir/$filename" ) or die "$!";
    binmode UPLOADFILE;
    while ( <$upload_filehandle> )
    print UPLOADFILE;
    close UPLOADFILE;
    print $query->header ( );
    print <<END_HTML;
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Done!</title>
    </head>
    <body>
    <p>Uploading done!</p>
    </body>
    </html>
    END_HTML
    My server config:
    # lighttpd configuration file
    # use it as a base for lighttpd 1.0.0 and above
    # $Id: lighttpd.conf,v 1.7 2004/11/03 22:26:05 weigon Exp $
    ############ Options you really have to take care of ####################
    ## modules to load
    # at least mod_access and mod_accesslog should be loaded
    # all other module should only be loaded if really neccesary
    # - saves some time
    # - saves memory
    server.modules = (
    # "mod_rewrite",
    # "mod_redirect",
    # "mod_alias",
    "mod_access",
    # "mod_cml",
    # "mod_trigger_b4_dl",
    # "mod_auth",
    # "mod_status",
    # "mod_setenv",
    # "mod_fastcgi",
    # "mod_proxy",
    # "mod_simple_vhost",
    # "mod_evhost",
    # "mod_userdir",
    "mod_cgi",
    # "mod_compress",
    # "mod_ssi",
    # "mod_usertrack",
    # "mod_expire",
    # "mod_secdownload",
    # "mod_rrdtool",
    "mod_accesslog" )
    ## a static document-root, for virtual-hosting take look at the
    ## server.virtual-* options
    server.document-root = "/srv/http/"
    ## where to send error-messages to
    server.errorlog = "/var/log/lighttpd/error.log"
    # files to check for if .../ is requested
    index-file.names = ( "index.php", "index.html",
    "index.htm", "default.htm" )
    ## set the event-handler (read the performance section in the manual)
    # server.event-handler = "freebsd-kqueue" # needed on OS X
    # mimetype mapping
    mimetype.assign = (
    ".pdf" => "application/pdf",
    ".sig" => "application/pgp-signature",
    ".spl" => "application/futuresplash",
    ".class" => "application/octet-stream",
    ".ps" => "application/postscript",
    ".torrent" => "application/x-bittorrent",
    ".dvi" => "application/x-dvi",
    ".gz" => "application/x-gzip",
    ".pac" => "application/x-ns-proxy-autoconfig",
    ".swf" => "application/x-shockwave-flash",
    ".tar.gz" => "application/x-tgz",
    ".tgz" => "application/x-tgz",
    ".tar" => "application/x-tar",
    ".zip" => "application/zip",
    ".mp3" => "audio/mpeg",
    ".m3u" => "audio/x-mpegurl",
    ".wma" => "audio/x-ms-wma",
    ".wax" => "audio/x-ms-wax",
    ".ogg" => "application/ogg",
    ".wav" => "audio/x-wav",
    ".gif" => "image/gif",
    ".jar" => "application/x-java-archive",
    ".jpg" => "image/jpeg",
    ".jpeg" => "image/jpeg",
    ".png" => "image/png",
    ".xbm" => "image/x-xbitmap",
    ".xpm" => "image/x-xpixmap",
    ".xwd" => "image/x-xwindowdump",
    ".css" => "text/css",
    ".html" => "text/html",
    ".htm" => "text/html",
    ".js" => "text/javascript",
    ".asc" => "text/plain",
    ".c" => "text/plain",
    ".cpp" => "text/plain",
    ".log" => "text/plain",
    ".conf" => "text/plain",
    ".text" => "text/plain",
    ".txt" => "text/plain",
    ".dtd" => "text/xml",
    ".xml" => "text/xml",
    ".mpeg" => "video/mpeg",
    ".mpg" => "video/mpeg",
    ".mov" => "video/quicktime",
    ".qt" => "video/quicktime",
    ".avi" => "video/x-msvideo",
    ".asf" => "video/x-ms-asf",
    ".asx" => "video/x-ms-asf",
    ".wmv" => "video/x-ms-wmv",
    ".bz2" => "application/x-bzip",
    ".tbz" => "application/x-bzip-compressed-tar",
    ".tar.bz2" => "application/x-bzip-compressed-tar",
    # default mime type
    "" => "application/octet-stream",
    # Use the "Content-Type" extended attribute to obtain mime type if possible
    #mimetype.use-xattr = "enable"
    ## send a different Server: header
    ## be nice and keep it at lighttpd
    # server.tag = "lighttpd"
    #### accesslog module
    accesslog.filename = "/var/log/lighttpd/access.log"
    ## deny access the file-extensions
    # ~ is for backupfiles from vi, emacs, joe, ...
    # .inc is often used for code includes which should in general not be part
    # of the document-root
    url.access-deny = ( "~", ".inc" )
    $HTTP["url"] =~ "\.pdf$" {
    server.range-requests = "disable"
    # which extensions should not be handle via static-file transfer
    # .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
    static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
    ######### Options that are good to be but not neccesary to be changed #######
    ## bind to port (default: 80)
    server.port = ###
    ## bind to localhost (default: all interfaces)
    #server.bind = "127.0.0.1"
    ## error-handler for status 404
    #server.error-handler-404 = "/error-handler.html"
    #server.error-handler-404 = "/error-handler.php"
    ## to help the rc.scripts
    server.pid-file = "/var/run/lighttpd/lighttpd.pid"
    ###### virtual hosts
    ## If you want name-based virtual hosting add the next three settings and load
    ## mod_simple_vhost
    ## document-root =
    ## virtual-server-root + virtual-server-default-host + virtual-server-docroot
    ## or
    ## virtual-server-root + http-host + virtual-server-docroot
    #simple-vhost.server-root = "/srv/http/vhosts/"
    #simple-vhost.default-host = "www.example.org"
    #simple-vhost.document-root = "/htdocs/"
    ## Format: <errorfile-prefix><status-code>.html
    ## -> ..../status-404.html for 'File not found'
    #server.errorfile-prefix = "/usr/share/lighttpd/errors/status-"
    #server.errorfile-prefix = "/srv/http/errors/status-"
    ## virtual directory listings
    #dir-listing.activate = "enable"
    ## enable debugging
    #debug.log-request-header = "enable"
    #debug.log-response-header = "enable"
    #debug.log-request-handling = "enable"
    #debug.log-file-not-found = "enable"
    ### only root can use these options
    # chroot() to directory (default: no chroot() )
    #server.chroot = "/"
    ## change uid to <uid> (default: don't care)
    server.username = "http"
    ## change uid to <uid> (default: don't care)
    server.groupname = "http"
    #### compress module
    #compress.cache-dir = "/var/cache/lighttpd/compress/"
    #compress.filetype = ("text/plain", "text/html")
    #### proxy module
    ## read proxy.txt for more info
    #proxy.server = ( ".php" =>
    # ( "localhost" =>
    # "host" => "192.168.0.101",
    # "port" => 80
    #### fastcgi module
    ## read fastcgi.txt for more info
    ## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
    #fastcgi.server = ( ".php" =>
    # ( "localhost" =>
    # "socket" => "/var/run/lighttpd/php-fastcgi.socket",
    # "bin-path" => "/usr/bin/php-cgi"
    #### CGI module
    cgi.assign = ( ".pl" => "/usr/bin/perl",
    ".cgi" => "/usr/bin/perl" )
    #### SSL engine
    #$SERVER["socket"] == "0.0.0.0:443" {
    ssl.engine = "enable"
    ssl.pemfile = "/etc/ssl/private/lighttpd.pem"
    # server.errorlog = "/var/log/lighttpd/error-ssl.log"
    # accesslog.filename = "/var/log/lighttpd/access-ssl.log"
    # server.document-root = "/home/lighttpd/html-ssl"
    #### status module
    #status.status-url = "/server-status"
    #status.config-url = "/server-config"
    #### auth module
    ## read authentication.txt for more info
    #auth.backend = "plain"
    #auth.backend.plain.userfile = "lighttpd.user"
    #auth.backend.plain.groupfile = "lighttpd.group"
    #auth.backend.ldap.hostname = "localhost"
    #auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
    #auth.backend.ldap.filter = "(uid=$)"
    #auth.require = ( "/server-status" =>
    # "method" => "digest",
    # "realm" => "download archiv",
    # "require" => "user=jan"
    # "/server-config" =>
    # "method" => "digest",
    # "realm" => "download archiv",
    # "require" => "valid-user"
    #### url handling modules (rewrite, redirect, access)
    #url.rewrite = ( "^/$" => "/server-status" )
    #url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )
    #### both rewrite/redirect support back reference to regex conditional using %n
    #$HTTP["host"] =~ "^www\.(.*)" {
    # url.redirect = ( "^/(.*)" => "http://%1/$1" )
    # define a pattern for the host url finding
    # %% => % sign
    # %0 => domain name + tld
    # %1 => tld
    # %2 => domain name without tld
    # %3 => subdomain 1 name
    # %4 => subdomain 2 name
    #evhost.path-pattern = "/srv/http/vhosts/%3/htdocs/"
    #### expire module
    #expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
    #### ssi
    #ssi.extension = ( ".shtml" )
    #### rrdtool
    #rrdtool.binary = "/usr/bin/rrdtool"
    #rrdtool.db-name = "/var/lib/lighttpd/lighttpd.rrd"
    #### setenv
    #setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" )
    #setenv.add-response-header = ( "X-Secret-Message" => "42" )
    ## for mod_trigger_b4_dl
    # trigger-before-download.gdbm-filename = "/var/lib/lighttpd/trigger.db"
    # trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" )
    # trigger-before-download.trigger-url = "^/trigger/"
    # trigger-before-download.download-url = "^/download/"
    # trigger-before-download.deny-url = "http://127.0.0.1/index.html"
    # trigger-before-download.trigger-timeout = 10
    ## for mod_cml
    ## don't forget to add index.cml to server.indexfiles
    # cml.extension = ".cml"
    # cml.memcache-hosts = ( "127.0.0.1:11211" )
    #### variable usage:
    ## variable name without "." is auto prefixed by "var." and becomes "var.bar"
    #bar = 1
    #var.mystring = "foo"
    ## integer add
    #bar += 1
    ## string concat, with integer cast as string, result: "www.foo1.com"
    #server.name = "www." + mystring + var.bar + ".com"
    ## array merge
    #index-file.names = (foo + ".php") + index-file.names
    #index-file.names += (foo + ".php")
    #### include
    #include /etc/lighttpd/lighttpd-inc.conf
    ## same as above if you run: "lighttpd -f /etc/lighttpd/lighttpd.conf"
    #include "lighttpd-inc.conf"
    #### include_shell
    #include_shell "echo var.a=1"
    ## the above is same as:
    #var.a=1
    The site is running over https with a self signed ssl-cert, if that matters. If I try to upload a file, the browser just quickly reloades the page, the filename still in the input field. The file isn't uploaded and the page that the script should display when completed doesn't show neither.
    Does anyone know how to troubleshoot this? I'm not getting any errors, it just doesn't work..

    I haven't used Websphere before so I can't say much about that. Try putting <%@ page language="Java" %> at the top of your jsp page.
    Try putting your java files into a package and see if that helps. I read somewhere that Tomcat once had issues with running classes that weren't in a package. Make sure to put the package statement at the top of your Java files if you do.
    Websphere says it caught an unhandled exception. Instead of having your method throw and Exception put your code in a try-catch block and then print a stack trace to see if it says anything when it trys to read and write data.
    Try{
        PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("doUpload.txt")));
        ServletInputStream in = request.getInputStream();
        int a=0;
        a=in.read();
        while (a!= -1){
            pw.print((char) a);
            a=in.read();
        pw.close();
    }catch(Exception e){
      e.printStackTrace();
    }Sorry I can't really give you more help.
    -S-

  • I have my my original itunes on my old computer that doesnt accept CD's anymore. My new computer has some of the old songs and some new songs. How do I get all my old content on the new computer and still keep the new content?

    I have my my original itunes on my old computer that doesnt accept CD's anymore and My new computer has some of the old songs and some new songs. How do I get all my old content on the new computer and still keep the new content? I also have a few different ipods and I want to have all the songs on all of them but it wont let me. I have read millions of the help articles and still cant figure it out. When I plug one ipod in it says it is going to delete all the old info to sync and cant just add the songs? Frustrated please help!!

    Copy everything from the old computer or your backup copy of your old computer, to your new one.

  • When i plug in my ipod to my PC it makes a sound like it doesnt accept it. on the ipod, it says connect to itunes because it was disabled many times. why wont it connect?P.S I know nothing about this kind of stuff

    when i plug in my ipod to my PC it makes a sound like it doesnt accept it. on the ipod, it says connect to itunes because it was disabled many times. why wont it connect?P.S I know nothing about this kind of stuff

    Disabled
    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Wrong passcode results in red disabled screen                         
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes       
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.

  • TS4268 When trying to sign in to imessage and facetime it doesnt accept my apple id

    Wheni try to use imessage and facetime im asked to sign in and when i do it doesnt accept it. Why?

    Go to Settings>>Message>>Send&Receive and check if your Apple ID was set or not. If not, set it properly.
    If it is still not working, unsign your Apple ID and select your mobile number ("+" "country code" "mobile number").
    Also check in: Settings>>Message if you turned on iMessage before. Here, turn off "Show Subject Field".
    Did you turn on iCloud as well?

  • HT5552 im living in australia and got a debit master card. with this im usually able to make online purchases. it doesnt accept the card in my account settings though. it sais payment method is declined. sureley this cant be right.

    im living in australia and got a debit master card. with this im usually able to make online purchases.
    it doesnt accept the card in my account settings though. it sais payment method is declined. sureley this cant be right.
    i dont want to get an credit card.

    im living in australia and got a debit master card. with this im usually able to make online purchases.
    it doesnt accept the card in my account settings though. it sais payment method is declined. sureley this cant be right.
    i dont want to get an credit card.

  • TS1702 My IOS is 4.2.2 and my ipod doesnt accept later versions. Before updating the software, I used to have viber and now I can reinstall it, because it needs IOS 4.3 or later. Is there any place where I can get the older versions of this app?

    My IOS is 4.2.2 and my ipod doesnt accept later versions. Before updating the software, I used to have viber and now I can reinstall it, because it needs IOS 4.3 or later. Is there any place where I can get the older versions of this app? Also, there are others app that wont install, such as netflix, angry birds, etc
    Please, help me! I really need it!

    Only if you have it on your computer or in a computer file backup

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

  • Getting Error 2140 while starting Oracle Apache Server in 11.5.6 Apps

    We are on Oracle Apps R11.5.6 on Win NT 4.0.
    When I tried to stop and start the Oracle Apache Server service, the service stopped normally but did not start at all. The error is as given below:
    When I try to start Apache Server through the services, I get the following error:
    "Could not start the OracleApacheServerTEST service on \\son1052.
    Error 2140: An internal Windows NT error occured."
    When I try to start Apache Server through the command prompt, I get the error:
    The OracleApacheServerTEST service is starting.
    The OracleApacheServerTEST service could not be started.
    The service did not report an error.
    More help is available by typing NET HELPMSG 3534.
    D:\oracle\testcomn\admin\scripts>goto end
    D:\oracle\testcomn\admin\scripts>echo "adapcctl.cmd exiting with status 2"
    "adapcctl.cmd exiting with status 2"
    D:\oracle\testcomn\admin\scripts>net helpmsg 3534
    The service did not report an error.
    EXPLANATION
    The service did not report an error.
    ACTION
    Try the task later. If the problem persists, contact your network administrator.
    What might be the problem?
    Any help would be greatly appreciated.
    Thanks in Advance.
    Praveen
    [email protected]

    Login from svrmgrl and shutdown the db and then restart the db now start the service and it must start. This problem comes when you restart the server. I hope this will solve your problem.
    [email protected]

  • Problem to install my web server application on Oracle-Apache web server

    I've developed my web site using Sun one studio 4 update 1 in according with the servlet engine version 2.3 (Tomcat 401).
    After the compilation I've try to install my site on Oracle-Apache 9i which use the servlet engine version 2.0.
    My problem concern that there's an complilation error about the server engine version. How I can update my sun One Studio Tomcat with the servlet engine version 2.0 and where I can find this servlet engine version to tomcat module?
    Many thanks
    Error description:
    oracle.jsp.provider.JspCompileException: Errors compiling:d:\oracle\ora92\apache\apache\htdocs\_pages\_mercia__web\_JspError.java
    Method getAttribute(java.lang.String) not found in interface javax.servlet.http.HttpSession. if (sess.getAttribute("strAnagFileName") == null || sess.getAttribute("strInFolder")== null ||

    You really need to upgrade your Oracle application server. Oracle 9iAS release 2 v903 is fully J2EE1.3 compliant and won't give you such problems.
    For now, change your session.getAttribute/session.setAttribute calls to session.getValue/session.putValue, which is the deprecated previous api.

  • Unable to Start Oracle Apache after SSL implementation

    Hi,
    We are on Oracle EBS 11i(11.5.10.2) on Windows 2003(32-Bit)
    We want to implement SSL for HTTP server. I tried this on our test instance by following +11i: A Guide to Understanding and Implementing SSL for Oracle Applications [ID 123718.1]+
    After implementing SSL, Oracle Apache is not starting and gives "Service didnt report error". I expected the adapcctl.cmd to prompt for password. I understand that in Unix Apache must be started as root in SSL mode. Is there any specific I need to do for Windows? After reverting the context file to the original file and running autoconfig Apache is starting normally.
    Please let me know if I had to anything Windows specific.
    Rgds,
    Thiru.

    Thanks.
    I did all that is mentioned in Note: +11i: A Guide to Understanding and Implementing SSL for Oracle Applications [ID 123718.1]+. Also referred to +Troubleshooting SSL with Oracle Applications 11i [ID 300969.1]+.
    After enabling Trace in httpd.conf I am getting the following error in ssl_engline_log
    +[24/ÇÈÑíá/2011 16:50:15 00624] [info] Server: Oracle HTTP Server Powered by Apache/1.3.19, Interface: mod_ssl/2.8.1, Library: OpenSSL/0.9.5a+
    +[24/ÇÈÑíá/2011 16:50:15 00624] [info] Init: 1st startup round (still not detached)+
    +[24/ÇÈÑíá/2011 16:50:15 00624] [info] Init: Initializing OpenSSL library+
    +[24/ÇÈÑíá/2011 16:50:15 00624] [info] Init: Loading certificate & private key of SSL-aware server dvlp003.imtac.com:443+
    +[24/ÇÈÑíá/2011 16:50:15 00624] [trace] Init: (dvlp003.imtac.com:443) unencrypted RSA private key - pass phrase not required+
    +[24/ÇÈÑíá/2011 16:50:15 00624] [info] Init: Loading certificate & private key of SSL-aware server dvlp003.imtac.com:10010+
    +[24/ÇÈÑíá/2011 16:50:15 00624] [trace] Init: (dvlp003.imtac.com:10010) unencrypted RSA private key - pass phrase not required+
    +[24/ÇÈÑíá/2011 16:50:15 00624] [info] Init: Seeding PRNG with 136 bytes of entropy+
    +[24/ÇÈÑíá/2011 16:50:15 00624] [info] Init: Generating temporary RSA private keys (512/1024 bits)+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [info] Init: Configuring temporary DH parameters (512/1024 bits)+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [trace] Inter-Process Session Cache (DBM) Expiry: old: 0, new: 0, removed: 0+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [info] Init: Seeding PRNG with 136 bytes of entropy+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [info] Init: Configuring temporary RSA private keys (512/1024 bits)+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [info] Init: Configuring temporary DH parameters (512/1024 bits)+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [info] Init: Initializing (virtual) servers for SSL+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [info] Init: Configuring server dvlp003.imtac.com:443 for SSL protocol+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [trace] Init: (dvlp003.imtac.com:443) Creating new SSL context (protocols: SSLv2, SSLv3, TLSv1)+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [trace] Init: (dvlp003.imtac.com:443) Configuring RSA server certificate+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [trace] Init: (dvlp003.imtac.com:443) Configuring RSA server private key+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [trace] Init: (dvlp003.imtac.com:443) Configuring server certificate chain (3 CA certificates)+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [info] Init: Configuring server dvlp003.imtac.com:10010 for SSL protocol+
    +[24/ÇÈÑíá/2011 16:50:16 00624] [error] Init: (dvlp003.imtac.com:10010) Illegal attempt to re-initialise SSL for server (theoretically shouldn't happen!)+
    I am using port 443. The changes made to application tier context file is:
    set the %s_url_protocol variable to https
    set the %s_local_url_protocol variable to https
    set the %s_webentryurlprotocol variable to https
    set the %s_frmConnectMode variable to https
    set the %s_webssl_port variable to the Apache SSL port required
    set the %s_active_webport variable to the same value as that for the %s_webssl_port variable
    set the %s_webport variable to the same value as that for the %s_webssl_port variable
    set the %s_web_ssl_directory variable to point to the full directory path of the directory that is to contain the .crt and .key files that you are using for Apache
    set %s_apps_portal_url variable to https
    AutoConfig completed sucessfully. Our env is 11.5.10.2 on Windows 2003.
    Rgds,
    Thiru

  • Cannot load d:\oracle\apache\apache\apache\modules\orajipa8i.dll into serve

    Dear All,
    Getting following error while trying to start http server service.
    "Syntax error on line 1 of d:\oracle\oracle\apache\apache\conf\mod_ose.conf
    Cannot load d:\oracle\apache\apache\apache\modules\orajipa8i.dll into server"
    Pls tell me the work arounds.
    Thanks,
    Sathis.

    I am getting the same error message on my side.
    Were you able to get around the problem? Thank you.

Maybe you are looking for

  • I cant receive imessage vis my mobile number ...i can thru my email....i did everything possible .

    i cant receive imessage vis my mobile number ...i can thru my email....i did everything possible .

  • Performance ora:view and collection()

    ora:view allows an XML structured table to be used in a XQuery "for" clause, while collection processes a set of documents in a directory. Normally these are two different sets of data. However, with XDB I can have a WEBDAV directory which can consis

  • 3PR posting must be before Payroll posting?

    Hi Experts, I have a general question regarding posting after payroll. Our end user told me that we should do 3PR posting before we even create payroll posting documents. But they don't know why we need to keep doing with this order. Any reason from

  • Error in date prompt after migrating from 5.x to XI R2

    Hi, We have migrated from 5.x to XiR2  SP5 and are facing a problem with the date input parameter. Our users use DESKI , when they try to access thier reports  based on Stored Procedure,and the reports  having date prompt , they get an error. In 5.x

  • Cant install os x, or get into safe mode

    Hi all, Forgive my ignorance am a newbie to Macs, anyway here is my problem. I have just bought a Macbook Pro 15inch ( mid 2010 ) from a friend, He required the hard drive in the macbook so i said no prob take it and i installed my own 1TB hard drive