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

Similar Messages

  • 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

  • Pointing ItunesU.class to a cgi-bin directory.

    Our school is setting up an ITuneU page and we have successfully compiled the ITunesU.class file but for some reason our web server does not have a cgi-bin directory to put these files into. Can we put the Java files into a different directory or is cgi-bin required?

    Our Itunes university is up and running.

  • 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 :)

  • Video plays on Root folder but not in Cgi-bin folder...Help!

    Hello-
    I just transfered my entire website content form one domain to another and for some reson my videos will not play on the new domain whereas they played correctly in the cg-bin folder of the old domain.  I do not understand why and need your help to figure it out since I am not a flash guy.
    Here is the link to the videos that are not working correctly.  http://www.healthywaterlife.com/cgi-bin/d.cgi/phil/videos.html
    My cgi guy says that all of the cgi is working correctly and he has stated that the problem lies within the code of the html.  So here is the html code for one of the videos...
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="605" height="350" id="FLVPlayer1">
               <param name="movie" value="FLVPlayer_Progressive.swf" />
               <param name="salign" value="lt" />
               <param name="quality" value="high" />
               <param name="scale" value="noscale" />
               <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=http://www.healthywaterlife.com/videos/historyofkangenwater&autoPlay=false&autoRewind=fals e" />
               <embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=http://www.healthywaterlife.com/videos/historyofkangenwater&autoPlay=false&autoRewind=fals e" quality="high" scale="noscale" width="605" height="350" name="FLVPlayer1" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" />        
    </object>
    And yes, my server, codero, supports all of the cgi as the old domain worked well and was operating on the codero server.
    Thanks for your help!

    Are you sure that all the files have been uploaded?
    The player.swf, the skin.swf, the actual .flv video file, and what about any javascript files used for Flash detection? So that could be as many as 4 files.
    To test, paste the entire absolute address to each of those files directly into your browser address bar, like this:
    http://www.healthywaterlife.com/videos/FLVPlayer_Progressive.swf
    You should not see ANY file not found messages.
    After verifying that each file exists on the server, then it's only a matter of correctly pathing all the Flash assets, and pathing includes correctly spelling file names (upper or lower case.. must be exact) as well using correct folder names.
    To review Flash pathing:
    Pathing issues
    Almost always when it works on the local machine and not the server, it's a pathing problem.
    You can put your Flash related files in whatever folders you want, they do NOT have to be in the root, they do NOT all have to be in the same folder. But if you have a problem and if sticking them all in the root folder works, then you know that the issue was a pathing problem.
    Just remember that paths used in the .swf become relative to the Web page on which the .swf is placed, NOT it’s physical location.  So for example, if your .swf is in the flash/data folder and you use that .swf on a Web page in the root folder, you are in effect, removing that .swf from flash/data and putting it in root. So if the .swf is loading any related files (xml, images, video, etc), the path used inside the .swf to load the .xml file has to be relative to it's new location in root and then back down into flash/data. This is true even though when testing the .swf by itself, it can be inside flash/data and work just fine, since relative to it's location, the path is just fine, they are in the same folder. But if that same path is used when the .swf is placed on a page two folder levels up, the relative path has changed, the old "same folder" path will not work.
    In fact if you are placing the .swf on a web page in a different folder than the .swf is stored in, and that .swf calls external assets, then direct clicking and opening of the .swf in it’s folder should NOT work! That’s because the paths to the external assets should be relative to the Web page and not the physical location of the .swf.
    So just be sure that you use addresses relative to the final Web page locations (not physical file locations) and you can put the Flash related files in what ever folders you want.
    Best wishes,
    Eye for Video
    www.cidigitalmedia.com
    If that doesn't fix it, post a link. That really give us the best chance to help you.
    Best of luck!
    Adninjastrator

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

  • Where is /cgi-bin/ and who puts files in it?

    One of my clients is trying to make a form work with /cgi-bin/mailto but I can't figure out:
    1) Where is the global /cgi-bin/ supposed to be?
    2) Who is responsible for putting files in it?
    Thanks!

    If you wan't to make the CGIs work server-wide, the default location is /Library/WebServer/CGI-Executables. The default web server setting already has a ScriptAlias directive pointing any address written as www.example.com/cgi-bin redirect to this directory. The global webmaster... the server administrator is responsible for all CGIs in this directory.
    If you want to let each individual webmasters take care of their own CGIs, each website can override this by creating their own cgi directory within their own web directory. This directory can be named anything (e.g. "/scripts/"). Generic form-to-mail type CGIs are usually placed in the /Library/Web... directory for global usage, but if a script is only used by a single website, it's usually put inside their own web directory. You may want to tweak their httpd.conf file to assign this folder as the ScriptAlias target. When you do this, websites can execute the CGIs with the .cgi extension (i.e. pass the script on to whatever compiler/interpretor, like perl). Otherwise, you'll need to name each script like scriptname.pl or scriptname.c instead of scriptname.cgi.
    Extended Keyboard Server   Mac OS X (10.4.8)  

  • Java\jdk1.6.0_02\jre\lib\ext\mysql-connector-java-5.1.16-bin.jar was unexp

    Hello, please i am new to Jdeveloper and weblogic servers and i developed an application using jdeveloper and when i try to run the application it brings up this error message
    "*** Using HTTP port 7101 ***
    *** Using SSL port 7102 ***
    C:\Users\Lucky\AppData\Roaming\JDeveloper\system11.1.2.3.39.62.76.1\DefaultDomain\bin\startWebLogic.cmd
    [waiting for the server to complete its initialization...]
    \Java\jdk1.6.0_02\jre\lib\ext\mysql-connector-java-5.1.16-bin.jar was unexpected at this time.
    Process exited."
    I tried deleting the jdk1.6.6.0_02 and tried it again but it still did not run, I also uninstalled the JDeveloper and weblogic server and reinstalled them but the error message still pops up. Please i need help to fix this.
    Thanks.
    Edited by: Chinedu on Feb 21, 2013 8:48 AM

    Andrew,
    Thanks for the lightning response... but the problem has been solved.
    I rebooted again, and installed again (didn't download again because the filesize checked out) and now it works fine, and I'm none the wiser as to the root cause of the problem, except that rt.jar has magically appeared:
    C:\Users\Administrator>dir "C:\Program Files\Java\jre6\lib\*.jar"
    Volume in drive C has no label.
    Volume Serial Number is 00AC-1BC7
    Directory of C:\Program Files\Java\jre6\lib
    08/11/2009  06:38 PM         6,685,813 charsets.jar
    08/11/2009  06:38 PM         2,989,538 deploy.jar
    08/11/2009  06:38 PM           716,841 javaws.jar
    08/11/2009  06:38 PM            88,256 jce.jar
    08/11/2009  06:38 PM           558,189 jsse.jar
    08/11/2009  06:38 PM               382 management-agent.jar
    08/11/2009  06:38 PM         1,704,664 plugin.jar
    08/11/2009  06:38 PM         1,115,985 resources.jar
    08/11/2009  06:38 PM        44,295,255 rt.jar                             <<<<<<<<<<<<<<<<<<
                   9 File(s)     58,154,923 bytes
                   0 Dir(s)  115,454,173,184 bytes freeSOOOO... I presume that the installer failed on rt.jar, probably because something (something in my start-up, I suppose) was using the JRE while the instal was running... but I didn't do anything different the second time (to the best of my knowledge).
    Thanks anyways... My hair (what's left of it) greatly appreciates your time.
    Cheers. Keith.

  • Is it possible to run a java application within a web browser?

    Hello everyone here! I have a question about running a java application within a web browser and I would appreciate it very much if anyone here can give me some answers.
    I have a standalone java application written with AWT. Basically this free application lets users to select spectral lines from a big file based on some criteria and plot those selected lines. Yes, it is a very simple application. Now I want to run this application within a web browser so that users don't need to download the application from the ftp site and thus don't need to install in their machine. Is it possible to run this application within browser? If yes, can we get the same plotting function as we run the application separately and where should I start out?
    Thanks in advance!
    kuilian

    Please see the signed applet discussion group for details of how to avoid the applet security restrictions. You can sign the applet, or use the policy file containing {AllPermission} for testing purposes (though not suitable for widespread deployment).
    Regards
    Matthew

  • Spawn a new PDF using Java Script within LC Designer

    I am trying to spawn a new PDF file to be created from an existing PDF using Java Script within the LC designer
    I have this example but I can't get it to work
    function createPdf()
        pdf = pdf$();
        pdf.addText('Hello World');
        pdf.writeToFile('c:/temp/hello_world.pdf');
        window.open('file://c:/temp/hello_world.pdf');
    Is it possible to create a PDF like this within LC Designer?

    Hi
    I would like to see if it was possible.  I thought it would be easy, as
    there is a standard batch processing sequence (Print 1st page of all) using
    Java that comes with Acrobat 7.  This allows you to print the first page of
    a number of files that you select when the sequence is run.  Its code is:
    /* Print 1st Page */
    /* This sequence prints the first page of
       each document selected to the default printer.
    this.print
    To my uninformed mind it seemed logical that the same code, slightly
    modified to print all pages, should work from within a form.
    Anyway, if there is a way to choose individual files, I would appreciate
    that.
    Thanks
    Rob

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

  • C:\Documents and Settings\User "c:/Program Files/Java/jdk1.5.0_14\bin\java.

    I have a class "Stimulus.java" in which another jar's class has been used. When I created jar and executed I got below error. I used "-classpath" to set dependancy jar file. Any clues are appreciated.
    import modulus.Modulus;
    public class Stimulus{
        public static void main(String[] args) {
                Model.main(args);
    C:\Documents and Settings\User>"c:/Program Files/Java/jdk1.5.0_14\bin\java.exe" -classpath "D:\User\mypgms\test\bin\Modulus.jar;" -jar D:\User\mypgms\test\bin\Stimulus.jar c:\test.txt
    Exception in thread "main" java.lang.NoClassDefFoundError: modulus/Modulus
            at Stimulus.main(Stimulus.java:4)

    You can't mix classpath values with the -jar option. Using the -jar option causes Java to use only the Class-Path: information in the jar's manifest file, while ignoring all external classpath information. Review this for details:
    http://java.sun.com/docs/books/tutorial/deployment/jar/run.html

  • Use of Java Code within the generated XML Forms Stylesheets

    Hello,
    is the use of Java-Code possible with the XSL-Files generated by XML-Forms, as possible in standard XSLs? I know that this would mean a modification.
    kind regards,
    Marco

    Hi Marco,
    I "executed" some java code within XSLs file. I have quoted the word executed because I didn't really run java code, but I used a simply trick that I describe you below.
    Into your XSLs put an iframe which is hided (it has an height of 0 pixel). As src of the iframe put the address of a portal component which execute your code (in my case calculate some PCD URL of some pages into a defined role). As result of component execution, I use the response.write method in order to execute some jscript code, which is able to interact with the HTML generated by XSLs files, for example in my case response.write put the PCD URL into a drop down list placed into the "edit" form.
    This works fine. I don't know if is suitable also for your case, anyway could be a hint, but pay attention to Roland's recommendations.
    Ciao
    Roberto

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

  • /opt/oc4j/java/jdk1.5.0_11/bin/jarsigner vncviewer.jar vncviewer  Failed

    When I try to visit a VM by console,firefox prompt "need to install plugins".
    Then I go back to config the VNCVIEWER.
    1)/opt/oc4j/java/jdk1.5.0_11/bin/keytool -genkey -alias vncviewer -validity 365
    execute successfully
    2) But when I execute
    [root@OVMServer Class]# /opt/oc4j/java/jdk1.5.0_11/bin/jarsigner vncviewer.jar vncviewer
    Enter Passphrase for keystore: oracle123
    jarsigner: unable to open jar file: vncviewer.jar
    I don't know why this command failed.
    Thanks,

    My vncviewer is called "VncViewer.jar" (with capital V's), is located in "/opt/oc4j/j2ee/home/applications/OVS/webapp1/Class/" and is from package "tightvnc-java-1.3.9-3".
    I had no such difficulties signing that particular file, using the "Oracle VM Manager Installation Guide Release 2.1": http://download.oracle.com/docs/cd/E11081_01/doc/doc.21/e10902.pdf

Maybe you are looking for