Servlets in the CGI-BIN

Can servlets go in the CGI-BIN???
my server has a CGI-BIN.... does it surport servlets??

Servlets were conceived to replace cgi-bin programming.
Servlets can be put anywhere, even in the cgi-bin folder, but servlets need a servlet engine to run, such as Tomcat(jakarta.apache.org/tomcat) or Jrun (from www.macromedia.com), among others.

Similar Messages

  • With iPlanet6.0 how can I include servlets in the cgi directory?

    I have created a cgi directory ex. http://hostname/cgi-bin to refer to the cgi.exe's. However.. I have developed a new servlet that replaces one of the cgi programs. The servlet context must fit in with our existing architecture so the servlets context must map to the cgi URL we have in place. This works fine with every web app server under the sun .. even Sun One7... but not on iPlanet 6.0. This is because it seems that every resource mapped by a CGI directory must be a CGI program - the web server doesn't have the intelligence to know that a servlet with the same context is available and so when the CGI directory is enabled... the servlet is not found, yet when it is removed the servlet is referenced just fine.
    Has anyone any ideas? Unfortunately I can't change the context of the servlet as our existing systems depend on the original cgi structure.
    Many thanks,
    Mark

    Right /cgi must reference a cgi and /servlet is for legacy servlets that arent deployed as applications.
    I dont think you are going to make it work like that, maybe do a redirect from /cgi/cginame to /servlet/servletname . That's the only thing that may work.

  • Where is the cgi-bin "backwards" referred to in the tutorial gone?

    Hello.
    I am doing the tutorial for networks, and I am supposed to create a connection to http://java.sun.com/cgi-bin/backwards to test communication. However, it does not exist. Does anyone know what the correct address is, or know of some equvalent site?
    Also, is it not possible to save login information on this site. It is cumbersom to manually log in every time I visit these fora.
    Regards
    JT

    Whats that supposed to mean? Please enlighten silly little me with your endless wisdom. I assume that since on other forums I visit I can save and use cookies with login information so I am automatically logged on, that this is possible here to. Pretty silly.
    And for the record. If all you have to share is aimed at putting down people, you have a sad life indeed.
    JT

  • Forms in Dreamweaver - Where's the CGI?

    I can build a form in Dreamweaver to collect information that
    I want users to submit to a database or text file on the server.
    In order for this form to work I must specify an ACTION which
    is the CGI script on the server. The server (Linix) has some
    scripts pre-installed in the CGI-BIN but it seems to me that I need
    a script that will match my form.
    Do I need to learn to write CGI scripts or is there an
    automated process that builds the script based on the form?

    > Do I need to learn to write CGI scripts or is there an
    automated process
    > that
    > builds the script based on the form?
    A form sends data back to the server. Something on the server
    has to process
    this data and do something with it. It can be a CGI script or
    other server
    side code (ASP, PHP, CF, etc.)
    If your web host already has a CGI script for you to use, you
    should be able
    to get instructions from them on how to use it with your form
    that you
    created.
    -Darrel

  • Cgi-bin folder in 10.4.11

    I'm running 10.4.11 (the regular edition, not server) and I'm running a small website through the personal web sharing feature. I want to integrate a perl script. Do I create a cgi-bin folder in the root folder of my website and put the script in there, or is the cgi-bin folder I'm looking for elsewhere? Thanks.

    So where is the apache config file?
    /etc/httpd/httpd.conf
    Also, by main web content directory, do you mean the root folder of my website, the folder that you mentioned above, or some other folder?
    I mean whatever folder you're using for your web content - by default that's either /Library/WebServer/Documents, or the 'Sites' directory in individual user's home directories.
    My point is that any CGI scripts should be outside of the normal web content.

  • Formail and CGI-bin file

    I installed a form mail product called Formail several months
    ago. I am using Dreamweaver 8 at work. I am creating a new form and
    cannot find my cgi-bin file to modify the program. Does anybody
    have any experience with this program in Dreamweaver? I have
    earched for hours. The old form I created still works great but I
    cannot trace it back to the cgi-bin file. I think I have been
    working to long!!!!!

    look inside your cgi-bin for a file named formmail.pl
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "Warren Sims" <[email protected]> wrote in
    message
    news:g7d4d0$jf7$[email protected]..
    > I installed a form mail product called Formail several
    months ago. I am
    using
    > Dreamweaver 8 at work. I am creating a new form and
    cannot find my cgi-bin
    file
    > to modify the program. Does anybody have any experience
    with this program
    in
    > Dreamweaver? I have earched for hours. The old form I
    created still works
    great
    > but I cannot trace it back to the cgi-bin file. I think
    I have been
    working to
    > long!!!!!
    >

  • Executing cgi-bin from a java program

    I am trying to develop a Java HTTP server that also includes support for CGI-BIN but the last weeks i am stack at the same point ! I am trying to execute the cgi and then give it an argument but i never have an output ! Please help cause the deadline is coming near !!!
         //Set environment variables
    String[] setVar = {"REQUEST_METHOD=POST","CONTENT_LENGTH="+extra.length};
    String[] cgi = {"/bin/bash","./home/pap/jhttp"+Petition_Analysis.pt.uri.path,"/n"};
    //Execute the cgi-bin with the appropriate input
    Process cgiOut = Runtime.getRuntime().exec(cgi,setVar);
    // get its output (your input) stream
    DataOutputStream put = new DataOutputStream(cgiOut.getOutputStream());
    put.writeBytes(Petition_Analysis.pt.Pet_Body);
    DataInputStream in = new DataInputStream(cgiOut.getInputStream());
    // Read and print the output
    String line;
    StringBuffer page = new StringBuffer();
    while ((line = in.readLine()) != null) {
    page.append(line);
    //Send page to client
    out.print("HTTP/1.1 200 OK\r\n");
    out.print("Content-Length: " + page.toString().length() +"\r\n\r\n");
    System.out.print(page);
    Cgi call is like that:
    ./post_from.cgi
    first_operand=342&second_operand=32&operation=-
    Note that there is a blank line !

    Well no, the script works perfectly, here is the output of the console in Linux system and this exactly what i want to do in the program:
    [pap@laptop pap]$ export CONTENT_LENGTH=11
    [pap@laptop pap]$ export REQUEST_METHOD=POST
    [pap@laptop pap]$ /home/pap/jhttp/cgi-bin/post_form.cgi
    op1=1&op2=2
    Content-Type: text/html
    <html><head><title>Script results</title></head>
    <body>
    <p>Number of sent fields: 2</p>
    <p>
    <b>Field:</b> op1<br>
    <b>Valor:</b> 1
    </p>
    <p>
    <b>Field:</b> op2<br>
    <b>Valor:</b> 2
    </p>
    </body></html>
    So the question is how to this inside a Java program and better forget my code which is erroneous
    also forgive my english :)

  • Why is cgi-bin special?

    I have a server side perl script running in the cgi-bin
    directory that returns html to the client. It embeds a flash object
    with the standard &lt;object&gt; and &lt;embed&gt;
    tags. The HTML is received correctly by the client, but the flash
    object does not display.
    If you save the received page as static html, it displays
    just fine, so the syntax is correct. Obviously saved someplace
    other than the cgi-bin directory, as it is not readable, generally.
    Once the html is returned to the client, how can the
    rendering be different from a static html page? I'm saying that if
    you do &quot;view source&quot;, once from the returned html
    and once from the static page, you see no differences, whatsover.
    The only difference is the URL of the page. When
    &quot;cgi-bin&quot; is in the URL, the object does not
    display.

    Thanks, Barbara! That did the trick. I was in expert mode but I clicked on 'guided' then clicked on 'expert' again and it showed up.

  • Java ITunesU within cgi-bin

    I am unable to run the shell script that contains:
    java ITunesU
    within the cgi-bin directory. We are currently using SUSE Linux.
    We are able to run this on the command line and can tell that it generates HTML.
    When trying to run with the url: http://oes.tiu.edu/cgi-bin/itunesu
    we get the following message:
    Error 500
    Error message:
    Premature end of script headers: itunesu
    Has anyone successfully implemented the java version of authentication?

    First Time i'm getting this error before this (from last 7 months) i didn't get any error.....nothing is install new everything is same.....

  • Cgi-bin folder

    Hi,
    I've made up some forms for a website but when I link to the
    perl script in
    the cgi-bin folder it comes up with "You are not authorised
    to view this
    page".
    Am I linking it wrong or doing something else wrong? I've
    found this
    problem on a few sites I've worked on and I've fixed it by
    linking to a
    script on our own site but I'd rather figure this out than
    work around it.
    Thanks

    Ask your host to give you read permissions on that folder.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "JimR99" <[email protected]> wrote in message
    news:e2nrs2$e5s$[email protected]..
    > Hi,
    >
    > I've made up some forms for a website but when I link to
    the perl script
    > in the cgi-bin folder it comes up with "You are not
    authorised to view
    > this page".
    >
    > Am I linking it wrong or doing something else wrong?
    I've found this
    > problem on a few sites I've worked on and I've fixed it
    by linking to a
    > script on our own site but I'd rather figure this out
    than work around it.
    >
    > Thanks
    >
    >
    >

  • Changing cgi-bin script

    Hello all you experts out there!
    I inherited a Dreamweaver website which allows the public to
    ask for information to be sent out to them. Whilst it is very easy
    to edit the html file and add a couple of new options to it, I
    cannot find out how to get these new options to impact on the
    cgi-bin file and filter through to the email that is set up.
    Can anyone offer me some simple - very simple - help?
    Thanks

    What script is being used? Is it custom or something like
    formmail.pl?
    Nancy Gill
    Adobe Community Expert
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: Dreamweaver CS3: The Missing Manual,
    DMX 2004: The Complete Reference, DMX 2004: A Beginner's
    Guide
    Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "MD-SKYE" <[email protected]> wrote in
    message
    news:fvsjcp$ho3$[email protected]..
    > Hello all you experts out there!
    >
    > I inherited a Dreamweaver website which allows the
    public to ask for
    > information to be sent out to them. Whilst it is very
    easy to edit the
    > html
    > file and add a couple of new options to it, I cannot
    find out how to get
    > these
    > new options to impact on the cgi-bin file and filter
    through to the email
    > that
    > is set up.
    >
    > Can anyone offer me some simple - very simple - help?
    >
    > Thanks
    >

  • Creating CGI bin

    Hello everyone,
    I need to create a CGI bin folder for my site and "change the
    permission",
    but I don't know how to do it. Could someone please help me
    with this? I
    can't seem to be able to figure it out :-(
    Thank you very much for your time!
    Victoria

    Victoria wrote:
    > Hello everyone,
    > I need to create a CGI bin folder for my site and
    "change the
    > permission", but I don't know how to do it. Could
    someone please help
    > me with this? I can't seem to be able to figure it out
    >
    > Thank you very much for your time!
    > Victoria
    Hi Victoria,
    As long as the cgi-bin folder doesn't have to be outside your
    normal file
    structure, you can just create the folder.
    There is a Permissions extension you can use in Dreamweaver
    to "change the
    permission"; have a look at
    http://www1.umn.edu/securclt/ftp/dreamweaver.html#permissions,
    where they
    show you how to download, install and use it.
    HTH,
    Pete.
    Peter Connolly
    http://www.acutecomputing.co.uk
    Derby
    UK
    Skype ID: acutecomputing

  • I am not able to verify my apple id thro the link (in my email)erro message is " /cgi-bin/Webob-jects/IDMSAccount.woa/wa/vetemail )

    i am not able to verify my apple id thro the link (in my email)erro message is " /cgi-bin/Webob-jects/IDMSAccount.woa/wa/vetemail )
    i pad was bought in uk and is used in india

    lllaass,
    Thank you for responding. I did not create a new ID. I went to Manage Your ID when changing my email. However, my problem is resolved. I called support and recieved help there.
    Somehow my Ipod either wasn't registered to my Apple ID (even though I bought it from the Apple Store) or the registration didn't transfer with the email address change.
    For some reason, though, I did lose all of my previous imessage conversations just because I switched my Apple ID email address. I also had to resync my Google accounts to Mail, Contacts, and Calendar.
    Strange, but everything seems to be relatively back to normal now.

  • What is the relationship between CGI-Executables and cgi-bin?

    I am trying to get CGIs working locally on my Mac and am having difficulty understanding the relationship between CGI-Executables/ and cgi-bin/.
    I have activated CGI in my httpd.conf file, and have the following perl test script: /Library/WebServer/CGI-Executables/test.cgi file, and have the file permissions set appropriatly
    If I call the script from the actual url: http://127.0.0.1/CGI-Executables/test.cgi, it doesn't work. If I use: http://127.0.0.1/cgi-bin/test.cgi, it works fine.
    Why cgi-bin and not CGI-Executables? What is the relationship between /Library/WebServer/CGI-Executables/ and cgi-bin?
    And how do I get CGIs working in individual users' Sites/ file? Do all CGIs go in the /Library/WebServer/CGI-Executables/ directory, or can each users' Site/ directory have it's own cgi-bin?
    Ti Powerbook G4   Mac OS X (10.4.4)  

    Now I am having trouble getting CGI to work in the user directories. I have a perl script that works for 127.0.0.1/cgi-bin/test.cgi, but not for 127.0.0.1/~joe/cgi-bin/test.cgi.
    My apache error log says:
    [Tue Feb 14 08:14:23 2006] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /Users/joe/Sites/cgi-bin/first.cgi
    Permissions for Library/WebServer/CGI-Exectuables/test.cgi and /Users/joe/Sites/cgi-bin/ are 777.
    I think the problem is somewhere in my directory configs. Apache has so many, it's hard to know what's what.
    Here's the first directory directives in httpd.conf:
    # First, we configure the "default" to be a very restrictive set of
    # permissions.
    <Directory />
    Options FollowSymLinks
    AllowOverride Options
    </Directory>
    Farther down, there's this, which I added ExecCGI and index.cgi:
    # Control access to UserDir directories. The following is an example
    # for a site where these directories are restricted to read-only.
    <Directory /Users/*/Sites>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews Indexes SymLinksIfOwnerMatch Includes ExecCGI
    DirectoryIndex index.html index.cgi
    <Limit GET POST OPTIONS PROPFIND>
    Order allow,deny
    Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS PROPFIND>
    Order deny,allow
    Deny from all
    </LimitExcept>
    </Directory>
    Then down at the bottom of the file is something I suspect was added automatically when the user account was created:
    Include /private/etc/httpd/users/*.conf
    <Directory "/Users/joe/Sites/">
    Options Indexes MultiViews Includes
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    To further confuse things, there is another file /etc/httpd/user/joe.conf that has additional user-directory directives:
    <Directory "/Users/joe/Sites/">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    Is there something in all these directory configurations that is preventing the user from accessing cgi-bin? Can I add directives to an .htaccess file in the user directory.
    Ti Powerbook G4   Mac OS X (10.4.4)  

  • File not found: /cgi-bin

    Starting on May 2007, unidentified errors started occurring
    on our coldfusion MX7 servers (Window2003) at approximately the
    same time each night but not every night (...maybe 4 to 5 time a
    week). These errors does not effect the performance our
    applications on these servers or at least I don't think it does. No
    schedule jobs or programs have been created that reference the cfm
    template that this process is trying to locate. FYI, no users are
    in these servers at this time. I'm going to assume it's something
    running in the background and I'm not smart enough to figure it
    out. Does anyone have an idea of what is going on?
    Examples of error msg in application log:
    “May 22, 2007 7:03 PM Error 0 File not found:
    /7x0o7F_9Ns_r.cfm The specific sequence of files included or
    processed is: C:\Inetpub\wwwroot\7x0o7F_9Ns_r.cfm“
    Examples of error msg in exception log:
    "Error","jrpp-462","05/22/07","19:03:33",,"File not found:
    /7x0o7F_9Ns_r.cfm The specific sequence of files included or
    processed is: C:\Inetpub\wwwroot\7x0o7F_9Ns_r.cfm "
    coldfusion.runtime.TemplateNotFoundException: File not found:
    /7x0o7F_9Ns_r.cfm
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:83)
    at
    coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
    at
    coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
    at
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at
    coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at
    coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115)
    at coldfusion.CfmServlet.service(CfmServlet.java:107)
    at
    coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:318)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:264)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    "Error","jrpp-462","05/22/07","19:03:33",,"File not found:
    /cgi-bin/7x0o7F_9Ns_r.cfm The specific sequence of files included
    or processed is: C:\Inetpub\wwwroot\cgi-bin\7x0o7F_9Ns_r.cfm "
    coldfusion.runtime.TemplateNotFoundException: File not found:
    /cgi-bin/7x0o7F_9Ns_r.cfm
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:83)
    at
    coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
    at
    coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
    at
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at
    coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
    at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
    at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at
    coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115)
    at coldfusion.CfmServlet.service(CfmServlet.java:107)
    at
    coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:318)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:264)
    at
    jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

    In any case, you shouldn't be doing any includes in Application.cfc(side note: capital A). The application file is not meant for presenting CFM pages. Translate all such includes into logic involving, for example, cflocation.

Maybe you are looking for

  • How to stop automatic scrolling (vertical or horizontal) found on web pages.

    I'm not talking about the auto-scroll feature of firefox. Many web pages now have horizontal or vertical sections which auto-scroll, it might be "breaking news" or stock prices... Most people are not bothered but I'm Attention Deficit (ADD) and they

  • HT1473 QUESTION:

    Help! I have created a video from a slideshow in iPhoto which I can see in iTunes on my Macbook, but how do I view this on my iPad? I can't see a home video option in itunes on the iPad? Can I then share this with another iPad user?Thanks!

  • WL6.x: Order of services availability on server start

    Hi all, I am experiencing a problem with my application which is related to the order that WebLogic uses to start it's internal services. Basically what I'm trying to do is to access a t3-file-system in a startup-servlet to read some configuration in

  • Another ringtone query !!

    I have converted one of my itunes to a ringtone ...m4r etc I need to drag it into the ringtones folder in my i tunes library so that it will sync with my i phone BUT I have no ringtones folder in my i tunes library. can anyone tell me how I create on

  • HT4759 My photo stream is on but i don't see any photos when i log onto icloud

    My photo stream is shown on my iphone and ipad but when i log into icloud on my pc i dont see photos as an option.