JSP file not found. server.xml/web.xml problem?

Hi there,
I have a login.jsp that accepts username and password. Once login is approve, it calls main.jsp file as follows using <jsp:forwards>:
if (login != null){
out.println("Login Successful!");
session.setAttribute("sessionUsername", username);
session.setAttribute("sessionPassword", password);
out.println("session started!");%>
<jsp:forward page="main.jsp" />
Problem is that the server returns "file not found", when I'm sure the main.jsp is right there! I suspect there is some configuration problem with the Tomcat, but I donno what. Do I need to edit the server.xml or web.xml, coz I didn't?

please check that the jsp file to which you are forwarding the request exist at the same location where forwarding jsp exists.

Similar Messages

  • Error 404, JSP file not found

    Hello all
    I am using tomcat on solaris. I have copied my war file under the webapps folder. When I start the tomcat services, it shows the messages for adding the context path for that war file, it also creates a folder for it under webapps but fails to show me any of the jsp pages. I can view all the html and gif files, but none of the jsps (gives the error - 404). If I rename my war file, and then start tomcat services, it works well. I don't want to rename my war file. Pls help!!
    For further details - I have checked my server.xml file, and it is correct. There was an old version of the same folder under webapps, which I got rid off, but seems that somewhere it is still caching it.
    In my server.xml file, if I do
    <Context path="/first"
    docBase="webapps/first"
    crossContext="false"
    debug="0"
    reloadable="true" >
    </Context>
    IT FAILS !! but if I just change the <Context path="/first1" , it works and does not give any error for jsp page. There isn't any contect path named "first" in my server.xml file.
    Thanks in advance.
    Regards
    Anusha

    Actually, I don't know how to create a subdirectory under webapps directory. When I tried to add a subdirectory calle myapp (.../webapps/myapp), I got "The requested URL /application/ was not found on this server" error message. Do I need to modify server.xml or web.xml in conf directory?
    Thanks in advance!
    tacomaZ

  • WLS 10.3.2 error - specific file not found system-jazn-data.xml

    I don't want to use this on my stand alone server. Does anyone know how to get around it asking for the file upon deployment? Is there a setting in the WLS console to disable this feature?

    hi,
    1)Is this error occured at leat one secutity enable app installed?(Without application server works well?)
    2)Is your app file base secutty enabled one(jazn-dat.xml) then what is the jazn-data.xml file size?
    3)All ways keep a backup of newely created domain system-jazan-data.xml. Then you can replace the original one in case.
    4)What is tha pllication? If it is an ADF app what is the version?
    Nilum.

  • Acrobat File Not Found After Printing Web Page

    Here is my problem:
    I am trying to print a web page from our intranet but once the process is complete, a log file opens saying:
    "The system cannot find the file" and then it lists the file I just tried to create.
    The page is basic HTML with a small amount of Javascript.  Disabling the Javascript had the same problem.
    The page is about 30 pages long.  Only printing the first page had the same problem.
    Printing to PDF on an external site had the same problem.
    I tried the same process in Office and ran into the same problem.
    Here is what I am doing:
    I am opening the web page in the browser.  I go to File > Print.  I select "Adobe PDF" as my printer.  I do not make any edits to the settings.
    Here is my environment:
    Adobe Acrobat 9 Standard
    Windows XP SP3.
    Tried it both in Firefox 3.6 & IE 7.
    "Acrotray.exe" is running in the background.
    Acrobat is completely updated.
    Is it a setting issue?  Possibly a software conflict issue?
    Thanks,
    -B

    Thanks for the reply!
    Here are answers to your questions:
    No, I cannot print to PDF from other applications.
    I do have have the checkboxes to request filename and open in Acrobat selected.
    I do not get an error from Distiller during the process of creating a PDF.  It isn't until it is completely done that the log file pops up that simply says, "The system cannot find the file" and lists the file location (i.e. c:\users and settings\desktop...).
    Beyond that log file, it looks like everything is running fine.
    Let me know if any other information that will help.

  • File Not Found Error in JSP

    hi..i m developing one application in JDeveloper...now from html file i am directing to jsp page. using Form tag
    <form action="http://128.127.100.51:8990/ValidateUser.jsp" name="login" method="post"> but it shows me error. "http://128.127.100.51:8990/ValidateUser.jsp" file not found..though html file and ValidateUser.jsp file both are in Public_html file
    Now wht is wrong with this
    Regards
    Chintan

    1: Double check the port number that your Tomcat Server is using. (TOMCAT_HOME/conf/server.xml).
    2: check you IP. This is not the 'localhost' IP (not sure if it is LAN or real IP). So it may change dynamically.
    3: Check for Firewalls. Also, since you are not using localhost, you will have to make sure you traverse all the firewalls built around your system. If you have a router (home), windows XP, or some other firewall, make sure the appropriate ports are opened. If you are behind a corporate firewall, or your ISP closes ports... your kinda out of luck until you find a way to cheat around them.
    2: Try just using just "/ValidateUser.jsp" as long as it is one the same domain as the Form. This will make it less likely to break, should your IP change.

  • File Not Found Error on iPlanet 6.1

    Hi All,
    Just a newbie here and don't have ample experience in configuring servers.
    I have deployed my JSP pages ( in JAR file) in our iPlanet 6.1 directory and everything works properly except in one of the pages. It returned a FileNotFound Exception.
    service-j2ee reports: WEB2798: [] ServletContext.log(): WEB4059: can't find /manageroutingresults.jsp (File not found)
    In the Access logs, it says:
    [10/Sep/2007:04:17:03 +0000] "GET /manageroutingresults.jsp?message=insertion%20of%20route%20failed:
    manageroutingresults.jsp is indeed cant be found because it should manageRoutingResults.jsp. I tried searching for any jsp files with this name ('manageroutingresults'), but I could not find any.
    By the way, the error occurs everytime my page redirect to other page.
    Is there any way how to solve this?
    hope you can help me...
    Thank you so much.

    Hi,
    I am not much comfortable with App.Server. Still I wish to try to help you.
    When I read the line manageroutingresults.jsp is indeed cant be found because it should manageRoutingResults.jsp. I can feel that you are trying to access "manageroutingresults.jsp" instead of "manageRoutingResults.jsp"
    To my knowledge, letter-case matters. So try to access both the pages manually - "manageroutingresults.jsp" and "manageRoutingResults.jsp".
    Before that, ensure that the jsp file is available in your app-server folder.
    Please let me know the result

  • "XML File not found for the Container DataBindings.cpx" error after deploy

    Hello,
    I have a problem with my JSP-Javaproject. Local works all fine but when i deploy my project to a Oracle Aplication Server i allway get this XML-File-Not-found exception:
    oracle.jbo.NoXMLFileException: JBO-26001: XML File not found for the Container DataBindings.cpx
    In my EAR-File the DataBindings.cpx is at:
    \WEB-INF\classes\
    My JSP-File:
    <jbo:ApplicationModule id="AippackageModule" definition="DataBindings.DataModule" releasemode="Stateful" />
    My web.xml:
    <context-param>
    <param-name>CpxFileName</param-name>
    <param-value>DataBindings</param-value>
    </context-param>
    My DataBindings.cpx:
    <?xml version='1.0' encoding='windows-1252' ?>
    <Application xmlns="http://xmlns.oracle.com/adfm/application" id="DataBindings"
    Package="" ClientType="Generic">
    <pageMap>
    </pageMap>
    <pageDefinitionUsages>
    <page id="eonerrorPageDef"
    path="de.avacon.ahb.system.tools.pageDefs.eonerrorPageDef"/>
    </pageDefinitionUsages>
    <dataControlUsages>
    <BC4JDataControl Configuration="AppModuleLocal"
    Package="model.data"
    xmlns="http://xmlns.oracle.com/adfm/datacontrol"
    id="DataModule">
    <Parameters/>
    </BC4JDataControl>
    </dataControlUsages>
    </Application>
    What can i do?
    Thanks, steve

    Adding the dependency in the ViewController fixed this for me.
    I'm using two AppModules in the controller and the second one wasn't being picked up.
    I was able to fix this by:
    Go to the Project Properties, select Dependencies, edit the Dependent Projects and Archives, find the model that's failing and add a tick in the Build Output box.
    The model should now be picked up in the ViewController's DataBindings.cpx source file, though I did have to restart JDev for this to be picked up.
    HTH
    Phil

  • XML File not Found for the Container BC4J.cpx

    Hi,
    Have following error when I start a BC4J-JSP/Struts application (with Embedded and standalone OC4J) :
    500 Internal Server Error
    oracle.jbo.NoXMLFileException: JBO-26001: XML File not found for the Container BC4J.cpx
         oracle.jbo.mom.ContainerDefImpl oracle.jbo.mom.DefinitionManager.loadProjectDefinition(java.lang.String)
              DefinitionManager.java:751
         oracle.jbo.mom.ContainerDefImpl oracle.jbo.mom.DefinitionManager.loadProjectDefinition()
              DefinitionManager.java:793
         void oracle.jbo.mom.DefinitionManager.initManager()
              DefinitionManager.java:137
         void oracle.jbo.uicli.mom.JUMetaObjectManager.<init>()
              JUMetaObjectManager.java:57
         oracle.jbo.uicli.mom.JUMetaObjectManager oracle.jbo.uicli.mom.JUMetaObjectManager.getJUMom()
              JUMetaObjectManager.java:131
         oracle.jbo.common.ampool.SessionCookie oracle.jbo.http.HttpContainer.findSessionCookie(javax.servlet.http.HttpSession, java.lang.String, java.lang.String, java.util.Properties)
              HttpContainer.java:541
         boolean oracle.jbo.html.struts11.BC4JRequestProcessor.initPageFromPath(oracle.jbo.html.struts11.BC4JActionMapping, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              BC4JRequestProcessor.java:222
         org.apache.struts.action.ActionMapping oracle.jbo.html.struts11.BC4JRequestProcessor.processMapping(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
              BC4JRequestProcessor.java:124
         void org.apache.struts.action.RequestProcessor.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              RequestProcessor.java:234
         void org.apache.struts.action.ActionServlet.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              ActionServlet.java:1292
         void org.apache.struts.action.ActionServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              ActionServlet.java:492
         void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              HttpServlet.java:740
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              HttpServlet.java:853
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ServletRequestDispatcher.java:721
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
              ServletRequestDispatcher.java:306
         boolean com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.ApplicationServerThread, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletRequest, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
              HttpRequestHandler.java:767
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(java.lang.Thread)
              HttpRequestHandler.java:259
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run()
              HttpRequestHandler.java:106
         void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
              PooledExecutor.java:803
         void java.lang.Thread.run()
              Thread.java:484
    Then I make a Reload and it's ok.
    I have a Workspace with two Projects :
    BC4J.jpr for Businnes Components
    Web.jpr for JSP Struts
    In /classes I have the file Web.cpx, but no BC4J.cpx.
    From which does this name come ? Can I change this name ?
    Thanks
    Yves

    I found this on Metalink...
    JBO-26001: NoXMLFileException
    Cause: Could not open the named XML file for read.
    The following is from Note 137429.1. Hope this helps.
    Raja.
    JBO-26001: NoXMLFileException
    Cause: Could not open the named XML file for read.
    Action: 1. Make sure that the file is present. In particular, if the file is to be found in a zip/jar file, make sure that the Zip/JAR file is included in the CLASSPATH.
    2. This error is also reported if the name of the XML file does not match the object Name specified in the XML file. If the file system support case insensitive file names (e.g., Windows NT), make sure that the file name matches the object Name in the XML file in case-sensitive fashion.
    3. For a .JPX file, this error is reported if the JPX file is missing the JboProject XML tag. Check the JPX file to make sure that the valid tag is in there.
    4. One XML file may be extending another XML file (specified by the Extends element in this XML file). This error is reported if the base XML file is not found.
    5. When loading the XML file for a package (JboPackage tag), this error is reported if some unexpected error occurs while loading a containee.
    In all of the above cases, a more descriptive message may be printed on Diagnostic. If you are not seeing Diagnostic messages, you can run your application with Diagnostic turned on, as in "java -Djbo.debugoutput=console ...", to see Diagnostic messages.

  • UIXJSP App built off BC4J Project JBO Excep XML File not found for the Container

    Running JDEV 9.0.3 build 960
    Created a new project in folder "UIX JSP"
    "UIX JSP" note the space!
    Create a default UIX JSP Application based on existing BC4J Project
    When running a JSP - Get a JBO Error complaining that the XML File not found for the Container
    If I recreate the project with name UIX_JSP problem does not occur.

    I logged a bug on this.

  • XML File not found for the Container model.cpx

    I can run my application from JDeveloper without receiving the error. But when I deploy the application I get the following:
    500 Internal Server Error
    oracle.jbo.NoXMLFileException: JBO-26001: XML File not found for the Container model.cpx     at oracle.jbo.mom.DefinitionManager.loadProjectDefinition(DefinitionManager.java:751)     at oracle.jbo.uicli.mom.JUMetaObjectManager.createPool(JUMetaObjectManager.java:457)     at oracle.jbo.http.HttpContainer.findSessionCookie(HttpContainer.java:541)     at oracle.jbo.html.struts11.BC4JRequestProcessor.initPageFromPath(BC4JRequestProcessor.java:233)     at oracle.jbo.html.struts11.BC4JRequestProcessor.processMapping(BC4JRequestProcessor.java:123)     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:234)     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:721)     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)     at java.lang.Thread.run(Thread.java:479)
    Any Ideas?

    Hi,
    please explicitly "make" the project. One reason for this problem could be that the model.cpx isn't created properly. Select the model project and compile the complete project before deploying it. Sometimes it helps to clear the "class" directory of the project on teh file system before re-compiling
    Frank

  • FILE not found error: j2ee/home/applib/applications-mapping.xml (No such fi

    Hi EveryBody
    i have my applications-mapping.xml file already in the applib directory, but when i try to conect to a remote ejb i had this error[b]
    FILE not found error: j2ee/home/applib/applications-mapping.xml (No such file or directory)
    can anyone help??

    gday
    Is the error on the client or server?
    What role in the application does applications-mapping.xml fulfill?
    How are you loading the file in?
    -steve-

  • SMD uninstallation error "ORADBPAR.XML" file not found.

    Hello Experts,
    I was doing  System preparation in solution manager  through Solman_setup.In step 6.5 I came across Install Diagonostic agent .I checked in my system that older version of SMD is installed that may cause problem in future so I decided to uninstall it and install newer version of SMD7.3.I downloaded the SMD file and started sapinst with sudo access to uninstall it.Now I am getting an error saying ORADBPAR.XML file not found.I checked for this file but I could not find .Plz help me out to find this file and resolve the issue.
    Thanks
    Aditya Roushan

    Hi Carole,
    I had older version of SMD(7.01) installed in my system.I tried uninstalling this with sapinst downloaded with SMD7.2 so i got this error.I had to download the SMD7.01 from market place (you willl get this in archive) and then uninstall the SMD using this sapinst (which came with 7.01 version).i could do this successfully.Hope this will help you
    @Jose:Thanx for ur reply but using sudo had no problem.I uninstalled older SMD7.01 and installed SMD7.2 using sudo privilege only.
    Thanks
    Aditya Roushan

  • 404 File not Found when accessing Video Web server

    I am trying to access a Video Web server remotely. Everything works fine on a PC and also on Internet Explorer for Mac.
    When I login using Safari I get the error message "404 File not Found" "The requested URL was not found on this server"
    I have been successful twice through Safari but after that it doesn't seem to work for days.
    I have removed all cookies, emptied the Cache, reset safari, deleted all keychain access references to the website.
    It seems to be a security issue but I am not sure what else to do.
    Any ideas would be greatly appreciated

    Try using open DNS:
    Adding Open DNS codes to your Network Preferences, should give good results in terms of speed-up as well as added security:
    Open System Preferences/Network. Double click on your connection type, or select it in the drop-down menu, and in the box marked 'DNS Servers' add the following two numbers:
    208.67.222.222
    208.67.220.220
    (You can also enter them if you click on Advanced and then DNS)

  • Web-application deployment problem (404 - File not found)

    Hello
    Does anyone have had the same problems like me on deploying java web-applications on iPlanet WS 6.0?
    I started with the HelloWorld.war example that came with the server and went through the manual but no luck so far. Heres what I did:
    0. Checked that webapps are enabled in the servler.xml file
    1. Created a directory /opt/webapps and /opt/webapps/hello with sufficient permissions
    2. Copied the HelloWorld.war example to /opt/webapps
    3. Deployed the excample on my test-server using the webinterface.
    Heres the content of the web-apps.xml file of my testserver after step 3:
    [DTD here]
    <vs>
    <jsp-servlet enable="true">
    <init-param>
    <param-name>use-precompiled</param-name>
    <param-value>true</param-value>
    </init-param>
    </jsp-servlet>
    <web-app uri="/hello" dir="/opt/webapps/hello" enable="true"/>
    </vs>
    All files have been extracted to /opt/webapps/hello properly. The server has been restarted.
    When I finally point my browser to http://server/hello or hello/index.jsp I get only a 404 - File not found message by the server. The context path seems to be totaly ignored.
    Heres the error log of the server
    [17/Feb/2003:16:17:38] info (12040): successful server startup
    [17/Feb/2003:16:17:38] info (12040): iPlanet-WebServer-Enterprise/6.0SP2 B11/13/2001 00:49
    [17/Feb/2003:16:17:39] info (12041): Installing a new configuration
    [17/Feb/2003:16:17:39] info (12041): [LS ls1] http://XXX.XXX.XXX.XX, port 1080 ready to accept requests
    [17/Feb/2003:16:17:39] info (12041): A new configuration was successfully installed
    [17/Feb/2003:16:17:40] info (12041): Using the Solaris VM v1.2.2 from Sun Microsystems Inc.
    [17/Feb/2003:16:17:40] info (12041): Java VM classpath: /www/ns-home6sp2/plugins/servlets/examples/legacy/beans.10/SDKBeans10.jar:/opt/jdk1.2.2/lib/tools.jar:/www/ns-home6sp2/bin/https/jar/NSServletLayer.jar:/www/ns-home6sp2/bin/https/jar/NSJavaUtil.jar:/www/ns-home6sp2/bin/https/jar/NSJavaMiscUtil.jar:/www/ns-home6sp2/bin/https/jar/servlet.jar:/www/ns-home6sp2/bin/https/jar/servlet-2.3-filters-api.jar:/www/ns-home6sp2/bin/https/jar/jsp092.jar:/www/ns-home6sp2/bin/https/jar/jaxp.jar:/www/ns-home6sp2/bin/https/jar/crimson.jar:/www/ns-home6sp2/bin/https/jar/xalan.jar:/www/ns-home6sp2/bin/https/jar/jspengine.jar:
    [17/Feb/2003:16:17:40] info (12041): Loading IWSSessionManager by default.
    [17/Feb/2003:16:17:40] info (12041): IWSSessionManager: Maximum number of sessions is 1000
    [17/Feb/2003:16:17:40] info (12041): Adding web application (/hello) at (/opt/webapps/hello)
    [17/Feb/2003:16:17:40] info (12041): Loading IWSSessionManager by default.
    [17/Feb/2003:16:17:40] info (12041): IWSSessionManager: Maximum number of sessions is 1000
    [17/Feb/2003:16:17:40] info (12041): vs(https-duke)servlet 'snoop' class = 'SnoopServlet' loaded in context = '/hello'
    [17/Feb/2003:16:17:40] info (12041): snoop: init
    [17/Feb/2003:16:17:40] info (12041): Successfully initialized web application environment (web-apps.xml) for virtual server (https-duke)

    i had similar problem due to the incorrect jdk path...
    try http://..../hello/snoop, if this works, it seems that the jsp file cannot be compiled automatically and jdk path needs to be checked...

  • "File Not Found" when addCourse through iTunesU web service.

    I have problem to add Course to my institute's iTunesU site through Web Service.
    I was able to get the xml doc back through showTree operation and here is part of it:
    <Site>
    <Name>my institute's name</Name>
    <Handle>123</Handle>
    <AggregateFileSize>63057465318</AggregateFileSize>
    <Section> <Name>Your Classes</Name>
    <Handle>456</Handle>
    <AggregateFileSize>57423912007</AggregateFileSize>
    <Course>
    <Name>course 1</Name>
    <Handle>111</Handle>
    </Course>
    </Section>
    <Section>
    I was able to get the uploadURL back too. The URL to get the uploadURL request:
    https://deimos.apple.com/WebObjects/Core.woa/API/GetUploadURL/myInstitute.edu.45 6?type=XMLControlFile
    The uploadURL I got back looks like:
    https://deimos2.apple.com/WebObjects/Files.woa/Upload/myInstitute.edu.456/X_1371095208_1a.43c06fa3.467dc4f2/%5Banonymous1371095208%5D/0046e71254900a071aa9241221a469d98ff1ef6fa973544c45ef9 5260dac6c64f05b10aefc
    But when I use the uploadURL above and post the addCourse.xml:
    <ITunesUDocument>
    <AddCourse>
    <ParentHandle>456</ParentHandle>
    <Course>
    <Name>Jing Test iTunesU Web service Course</Name>
    <ShortName>Jing Test</ShortName>
    </Course>
    </AddCourse>
    </ITunesUDocument>
    The response I got
    <error>File Not Found</error> File Not Found
    I used myInstitute.edu.456 to get the uploadURL and set it to ParentHandle on addCourse.xml since 456 is the section handler in whoch I want to add the course.
    I tried to remove 456 from the myInstitute.edu to get the uploadURL and then use it to add course, got the same error.
    Is there something wrong with the URL I used to get the uploadURL?
    here is the code and the values pass to the methodI used to send addCourse request:
    url = uploadURl on above
    name="file"
    fileName="file.xml";
    data=addCourse xml on above
    contentType="text/xml"
    public String invokeAction(String url,
    String name,
    String fileName,
    String data,
    String contentType) throws MessagingException {
    // Send a request to iTunes U and record the response.
    StringBuffer response = null;
    System.out.println("xml doc: ---" + data);
    try {
    // Verify that the communication will be over SSL.
    if (!url.startsWith("https")) {
    throw new MalformedURLException("ITunesUFilePOST.invokeAction(): URL \""
    + url + "\" does not use HTTPS.");
    // Build the multipart data.
    MimeMultipart multipart = new MimeMultipart();
    MultipartFormBuilder.addMultipartFormBody(multipart,
    name,
    fileName,
    data,
    contentType);
    // Create a connection to the requested iTunes U URL.
    HttpURLConnection connection =
    (HttpURLConnection) new URL(url).openConnection();
    connection.setUseCaches(false);
    connection.setDoOutput(true);
    connection.setRequestMethod("POST");
    connection.setRequestProperty("Content-Type",
    "multipart/form-data; boundary="
    + MultipartFormBuilder.getMultipartBoundary(multipart));
    String multipartData = MultipartFormBuilder.getMultipartData(multipart);
    // Send the multipart data to iTunes U.
    connection.connect();
    OutputStream output = connection.getOutputStream();
    output.write(multipartData.getBytes("UTF-8"));
    output.flush();
    output.close();
    // Read iTunes U's response.
    response = new StringBuffer();
    InputStream input = connection.getInputStream();
    Reader reader = new InputStreamReader(input, "UTF-8");
    reader = new BufferedReader(reader);
    char[] buffer = new char[16 * 1024];
    for (int n = 0; n >= 0;) {
    n = reader.read(buffer, 0, buffer.length);
    if (n > 0) response.append(buffer, 0, n);
    // Clean up.
    input.close();
    connection.disconnect();
    } catch (UnsupportedEncodingException e) {
    // ITunes U requires UTF-8 and ASCII encoding support.
    throw new java.lang.AssertionError("ITunesUFilePOST.invokeAction(): UTF-8 encoding not supported!");
    } catch (IOException e) {
    // Report communication problems.
    throw new java.lang.AssertionError("ITunesUFilePOST.invokeAction(): I/O Exception " + e);
    // Return the response received from iTunes U.
    System.out.println("response from ITunesUFilePOST: " + response.toString());
    return response.toString();
    }

    I'm having a similar "File Not Found" error, but it's happening for any API request other than GetUploadURL. I'm sending a POST request to the GetUploadURL, and that part is working correctly, as I get a URL such as the following:
    https://deimos2.apple.com/WebObjects/Files.woa/Upload/wvu.edu/X_1372071795_4d9433be.4c3fdd3d.4c3fdd3e/%22Chris%20Scharf%22%20%3Ccbscharf%40mail.wvu.edu%3E%20%28cbscharf%29%20%5B3258 7%5D/0046eaaaf078cf5d6b60f18926106a50a5050cf8f9c91a7608074e6d2949a8759017969ece
    Then, I've tried using curl (within 90 seconds) to submit a simple XML document containing a ShowTree request:
    <?xml version="1.0" encoding="UTF-8"?>
    <ITunesUDocument>
    <ShowTree>
    <KeyGroup>most</KeyGroup>
    </ShowTree>
    </ITunesUDocument>
    The command executed is "curl -F file=test.xml URL" (where URL is the URL retrieved from GetUploadURL. But I simply get "<error>File Not Found</error>"
    I'm correctly sending credentials, since I'm getting upload URLs. And it's not an issue with the XML document, since it's not even getting to the server.

Maybe you are looking for

  • Accrual Balance incorrect on SS LOA page in R12

    Hi, I have created the below steps for accruals for APAC region. 1)Create Annual leave element (Non-recurring, Final Termination , multiple entries allowed) 2) Input vales: Days 3)Element link 4)Absence type: Annual leave , Category :Vacation, balanc

  • New serial numbers in SAP for new equipment

    Hi Experts, I recently ordered new machines & receipted machines prior to creating serial numbers. The serial numbers created are not showing as being in new stock location XXXX. Later, unreceipted the PO & tried to create serial numbers first before

  • New computer, how to keep my Itunes library

    I am getting a new computer, but don't want to have to go through the process of organising a whole new Itunes library. How can I save my library as it it, then transfer it across?

  • Ps 5.5 won't start up, erros message in Mac OS X 10.7.3

    When I want run Ps (ver 5.5, Mac Os X Lion 10.7.3) I got error message saying something like this (trying to translate because I have PL version): Can't open working file because file is blocked or you don't have access privileges'. Error pop ups whe

  • My MacBook Keeps Crashing On Certain Sites *Problem Included*

    Hey guys my mac keeps crashing when i view certain sites.... I think that it has something to do with plug ins or something because it always happens on youtube. Heres the problem Process: Safari [4752] Path: /Applications/Safari.app/Contents/MacOS/S