Java.io.File not found in JDK 1.4

why the java.io.file is deprecated.
Frans

[fthamura],
why the java.io.file is deprecated.Probably because in J2SE 1.4, the New I/O package java.nio package provides scalable I/O operations for files. Through the File channels, a programmer will be able to provide memory-mapped buffers, improved file locking mechanism and faster I/O transfers with the new API package.
FransHTH.
Allen Lai
Developer Technical Support
SUN Microsystems
http://www.sun.com/developers/support/

Similar Messages

  • Java class files not found error in jsp sub-directories

    Hello:
    I have a web-application that is setup in the following way:
    index.jsp
    test\index1.jsp
    WEB-INF\classes\test.class
    Both jsp pages index.jsp and index1.jsp uses the test.class in the WEB-INF\classes directory.
    The index.jsp page works fine.
    The test\index1.jsp gives me a "cannot resolve symbol" error. Error shown below:
    [jsp src:line #:19]
    cannot resolve symbol symbol : class test location: class test.index1 test ts = new test("hello");
    Any help at all is appreciated.
    Thanks,
    Benny

    Hello Qiang:
    Thanks a lot for replying, and sorry for the delay in replying back to you. I have been searching the forums for a while and have yet to find anyone else with a similar problem. And yes, it is kinda wierd.
    But, anyways, I checked the java version from the windows command line as follows and it is using version 1.4.2:
    java -version
    java version "1.4.2_04"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
    Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
    Also, here are the contents of my test.class file:
    public class test
    private String t = null;
    public test(String t1)
    setTest(t1);
    public void setTest(String t1)
         t = t1;
    public String getTest()
         return t;
    Here are the contents of my index.jsp file:
    <b> hello </b>
    <%
    String test_str = null;
    test ts = new test("Hello from the main jsp directory");
    test_str = ts.getTest();
    %>
    <b> test_str is: </b> <%=test_str%>
    Click here to test your jsp index1.jsp file in the test sub-directory
    Here are the results from this jsp page:
    hello
    test_str is: Hello from the main jsp directory
    Click here to test your jsp index1.jsp file in the test sub-directory
    Here are the contents from the test/index1.jsp file:
    <b> hello from test sub-directory </b>
    <%
    String test_str = null;
    test ts = new test("Hello from the jsp test sub-directory");
    test_str = ts.getTest();
    %>
    <b> test_str is: </b> <%=test_str%>
    And here is what happens when I try to go to the test/index1.jsp page:
    Request URI:/benny_test/test/index1.jsp
    Exception:
    OracleJSP:oracle.jsp.provider.JspCompileException:
    Errors compiling:C:\OC4J\j2ee\home\application-deployments\default\benny_test\persistence\_pages\_test\_index1.java
    Line #     Error
    47
         [jsp src:line #:5]
    cannot resolve symbol symbol : class test location: class test.index1 test ts = new test("Hello from the jsp test sub-directory");
    47
         [jsp src:line #:5]
    cannot resolve symbol symbol : class test location: class test.index1 test ts = new test("Hello from the jsp test sub-directory");
    I will try putting it in a package like you said and see if that helps. Also, do you see a similar issue in your environment.
    Anyways, thanks for all your help. Hope to hear from you soon.
    Thanks,
    Benny

  • Java File not Found Exceptions and other errors?

    Hello experts, an issue on our Portal has caught my attention. Every time the J2EE Engine is restarted, a large amount of errors are written on our Trace files. When looking at the trace files, I see that most errors are Java IO File not Found Exceptions. For example:
    [EXCEPTION]
    #1#java.io.FileNotFoundException: ./log/system/database.1.log (No such file or directory (errno:2))
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at java.io.FileInputStream.<init>(FileInputStream.java:66)
         at com.sap.engine.services.log_configurator.archive.ArchivingThread.archiveTask(ArchivingThread.java:77)
         at com.sap.engine.services.log_configurator.archive.ArchivingThread.run(ArchivingThread.java:40)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
    #1.5 #0012799E98F6000F0000001800003A9E00044A5F2B9CCDEC#1207672520886#com.sap.engine.services.log_configurator.archive.ArchivingThread##com.sap.engine.services.log_configurator.archive.ArchivingThread######c3cfd920058911dd8ace0012799e98f6#SAPEngine_System_Thread[impl:5]_24##0#0#Error##Java###./log/system/server.1.log (No such file or directory (errno:2))
    [EXCEPTION]
    #1#java.io.FileNotFoundException: ./log/system/server.1.log (No such file or directory (errno:2))
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at java.io.FileInputStream.<init>(FileInputStream.java:66)
         at com.sap.engine.services.log_configurator.archive.ArchivingThread.archiveTask(ArchivingThread.java:77)
         at com.sap.engine.services.log_configurator.archive.ArchivingThread.run(ArchivingThread.java:40)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
    #1.5 #0012799E98F6000F0000001900003A9E00044A5F2B9CE7BC#1207672520893#com.sap.engine.services.log_configurator.archive.ArchivingThread##com.sap.engine.services.log_configurator.archive.ArchivingThread######c3cfd920058911dd8ace0012799e98f6#SAPEngine_System_Thread[impl:5]_24##0#0#Error##Java###./log/system/security.1.log (No such file or directory (errno:2))
    [EXCEPTION]
    #1#java.io.FileNotFoundException: ./log/system/security.1.log (No such file or directory (errno:2))
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at java.io.FileInputStream.<init>(FileInputStream.java:66)
         at com.sap.engine.services.log_configurator.archive.ArchivingThread.archiveTask(ArchivingThread.java:77)
         at com.sap.engine.services.log_configurator.archive.ArchivingThread.run(ArchivingThread.java:40)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
    #1.5 #0012799E98F6000F0000001D00003A9E00044A5F2BE5C172#1207672525667#com.sap.engine.services.log_configurator.archive.ArchivingThread##com.sap.engine.services.log_configurator.archive.ArchivingThread######c3cfd920058911dd8ace0012799e98f6#SAPEngine_System_Thread[impl:5]_24##0#0#Error##Java###./log/applications.1.log (No such file or directory (errno:2))
    [EXCEPTION]
    #1#java.io.FileNotFoundException: ./log/applications.1.log (No such file or directory (errno:2))
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at java.io.FileInputStream.<init>(FileInputStream.java:66)
         at com.sap.engine.services.log_configurator.archive.ArchivingThread.archiveTask(ArchivingThread.java:77)
         at com.sap.engine.services.log_configurator.archive.ArchivingThread.run(ArchivingThread.java:40)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
    In summary, the system cannot find the files server.1.log, security.1.log, database.1.log and applications.1.log. I tried manually adding these files (I created them on my computer and left them empty) on the path written, but it did not work, for some reason they are deleted.
    Another error that is happening during restart of the engine is the following:
    #1.5 #0012799E98F6001B0000002000003A9E00044A5F2BCC28D7#1207672523990#com.sap.tc.logging##com.sap.tc.logging.APILogger.FileLog[setFormatter()]######c3c3f240058911dd9ed80012799e98f6#SAPEngine_System_Thread[impl:5]_10##0#0#Warning##Java###Attempting to change a formatter on active log ./log/system/httpaccess/responses.trc. reset() method must be called first.#1#java.lang.Exception: Attempting to change a formatter on active log ./log/system/httpaccess/responses.trc. reset() method must be called first.
         at com.sap.tc.logging.FileLog.setFormatter(FileLog.java:448)
         at com.sap.engine.services.log_configurator.admin.LogConfigurator.adjustConfiguration(LogConfigurator.java:795)
         at com.sap.engine.services.log_configurator.admin.LogConfigurator.applyConfiguration(LogConfigurator.java:1535)
         at com.sap.engine.services.log_configurator.LogConfiguratorContainer.prepareStart(LogConfiguratorContainer.java:545)
         at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:223)
         at com.sap.engine.services.deploy.server.application.StartTransaction.prepareLocal(StartTransaction.java:176)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesLocal(ApplicationTransaction.java:365)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:132)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesLocalAndWait(ParallelAdapter.java:250)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationLocalAndWait(DeployServiceImpl.java:4450)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationsInitially(DeployServiceImpl.java:2610)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.clusterElementReady(DeployServiceImpl.java:2464)
         at com.sap.engine.services.deploy.server.ClusterServicesAdapter.containerStarted(ClusterServicesAdapter.java:42)
         at com.sap.engine.core.service630.container.ContainerEventListenerWrapper.processEvent(ContainerEventListenerWrapper.java:144)
         at com.sap.engine.core.service630.container.AdminContainerEventListenerWrapper.processEvent(AdminContainerEventListenerWrapper.java:19)
         at com.sap.engine.core.service630.container.ContainerEventListenerWrapper.run(ContainerEventListenerWrapper.java:102)
         at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
         at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
         at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
    Any ideas?

    Nothing really seemed to work when trying to solve this problem, just suddenly it stopped appearing. It might have been our installation of SPS 15, since it was around that time that the error went away.

  • Jws source file not found (Java client proxy)

    Hi,
    I created a web service in Workshop, and generated a Java proxy from it using the test console. I then wrote a stand-alone Java client to invoke an operation on the web service based on the workshop examples. I'm able to first get the service proxy fine.
    MyService_Impl proxy = new MyService_Impl("http://localhost:7001/MyProcesses/MyService.jws?WSDL=");
    Then, the following line fails.
    MyServiceSoap soapProxy = proxy.getMyServiceSoap();
    Error is a SoapFaultException with message "Source file MyService.jws not found". I don't know where it's looking for the file to begin with. Is there a place where I can control that?
    When I look at the WSDL in the workshop test browser, the soap:address location URL is different from the actual URL in the test browser address bar.
    I'm new to this stuff. Any ideas will help.
    Thanks

    hello folks,
    I have Windows XP home Firefox v1.0.6.
    removed old java in Add/Remove programs.
    cleared the "Temporary Internet Files" folder that contained C:\Documents and Settings\Greg\Local Settings\Temporary Internet Files\Content.IE5.
    tried to load jre-1_5_0_04-windows-i586-p-iftw.exe for the third time, and the install still hangs up.
    J2SE Runtime Environment 5.0 Update Installer Information : Error 1311. Scource file not found: C:\Documents and Settings\Greg\Local Settings\Temporary Internet Files\Content.IE5\2XFKL4VY\je150000[1].cab. Verify that the file exists and that you can access it.
    and,
    Error 1311. Scource file not found: C:\Documents and Settings\Greg\Local Settings\Temporary Internet Files\Content.IE5\EEIDPHGA\jp150040[1].cab. Verify that the file exists and that you can access it.
    here's the thing, I cannot surf to "Content.IE5" folder in my "Local Settings\Temporary Internet Files" folder, but I can plug in the directory in the address bar of Windows Explorer & see the "Content.IE5" folder.
    I do not see "je150000[1].cab" or "je150000[1].cab" in there.
    Am I using the wrong program to fresh install Java for Firefox in XP?
    Is there something wrong with my operating system?
    monitoring this thread.....
    thanx.

  • Java.lang.RuntimeException: Registry initialization file not found (UNIX)

    Hi,
    When I tried to read a tiff image using JAI.create("fileload", filename); it throws an expception as below.
    java.lang.RuntimeException: Registry initialization file not found.
            at javax.media.jai.OperationRegistry.initializeRegistry(OperationRegistr
    y.java:357)
            at javax.media.jai.JAI.<clinit>(JAI.java:560)
            at jrun__pages__Projects__ShowDrawing2ejsp1f._jspService(jrun__pages__Pr
    ojects__ShowDrawing2ejsp1f.java:107)
            at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
            at jrun.jsp.JSPServlet.service(JSPServlet.java:106)
            at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
            at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
            at jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.j
    ava:414)The crazy problem is that, it works fine with my server which runs in windows. The same throws exceptions when I execute in unix server.
    Can anyone knows exactly where the problem is?
    Thanks in advance,
    -Sara

    So which version of JAI have you installed on your UNIX server?

  • File not found, Missing resource bundle

    Hi
    I have a problem in accessing files (XML and Resource bundles) in Java projects. I used to access these files in WD Java. The same piece of code does not work here.
    e.g. When I create a new file object by providing the path name I get a file not found exception. The file exists in my package and I call it this way:
    File f = new File("file.txt"); then in an input stream but it doesnt work. However in a J2EE project the same code works.
    Similarly the resouce bundle never seems to work even if I give the fully classified class name for the property file. I can access property files in WD Java with ease. I understand that the root path changes and hence the problem. How should I solve it? Is there an elegant way which makes it work in all cases? Please throw some light on the root path for these projects. Thank you.
    regards
    LNV
    Edited by: vln on Jan 16, 2008 9:34 AM

    You should be using
    <b>this.getClass().getResourceAsStream(filePath)</b>
    which will return you an InputStream.
    Check the JDK documentation for the respective methods in java.lang.Class and java.lang.ClassLoader.
    HTH!
    \-- Vladimir

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

  • When compiling I get msg: Class java.io.* not found in import.

    import java.io.InputStreamReader;
    import java.io.BufferedReader;
    import java.io.IOException;
    public class CheckNumber {
    //program that checks the input buffer has valid integer value
         public static void main(String[] args) {
              String inLine = null;
              int checkInteger = 0;
              try {
              BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in) );
              System.out.print("Enter a valid Integer and hit <ENTER>: ");
              inLine = inStream.readLine();
              checkInteger = Integer.parseInt(inLine);
              } catch (NumberFormatException nfe) {
              System.out.println("You did not enter a valid Integer: " + nfe);
              return;
              } catch (IOException e) {
              System.out.println("IOException: " + e);
              return;
              System.out.println("You entered a valid Integer: " + checkInteger);
    Compiling produced the following output:
    C:\jdk\work1>javac CheckNumber.java
    CheckNumber.java:1: Class java.io.InputStreamReader not found in import.
    import java.io.InputStreamReader;
    ^
    CheckNumber.java:2: Class java.io.BufferedReader not found in import.
    import java.io.BufferedReader;
    ^
    CheckNumber.java:12: Class java.io.BufferedReader not found in type declaration.
    BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in) );
    ^
    CheckNumber.java:12: Class java.io.InputStreamReader not found in new.
    BufferedReader inStream = new BufferedReader (new InputStreamReader(System.in) );
    ^
    CheckNumber.java:15: Class java.io.BufferedReader not found in void main(java.lang.String[]).
    inLine = inStream.readLine();
    ^
    CheckNumber.java:21: Exception java.io.IOException is never thrown in the body of the corresponding try statement.
    } catch (IOException e) {
    ^
    6 errors

    I recently did a standard installation of jdk 1.5.
    This is the first time I am trying import.
    I set the path:
    set path=c:\jdk\bin
    Hmm...
    C:\jdk\bin>java -version
    java version "1.5.0_15"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
    Java HotSpot(TM) Client VM (build 1.5.0_15-b04, mixed mode, sharing)
    C:\jdk\bin>javac -J-version
    'javac' is not recognized as an internal or external command,
    operable program or batch file.
    There's no javac.exe file.
    I have javaw.exe and java.exe.

  • ERROR: OUI files not found at their expected location. while cloning 11.5.9

    Dear Friends,
    Getting error when cloning 11.5.9 from PROD to DEV:
    ERROR: OUI files not found at their expected location. Please make sure that the pre-requisit OUI patch was applied correctly: patch should be unzipped directly at the ORACLE_HOME root level so that
    <iAS ORACLE_HOME>/oui21/oui/lib/OraInstaller.jar exists.
    Restart adclone.pl after performing required corrections.
    I applied the patch 5035661 also but still the error exists.
    Please let me know the fix.
    [appldev@betestoracle bin]$ perl adcfgclone.pl appsTier
    First Creating a new context file for the cloned system.
    The program is going to ask you for information about the new system:
    Enter the values for the new APPL_TOP Context:
    Does the target system have more than one application tier server node (y/n) [n] ?:
    Is the target system APPL_TOP divided into multiple mount points (y/n) [n] ?:
    Target system APPL_TOP mount point [apps/applprod/prodappl]:/apps/DEV/devappl
    Target system COMMON_TOP directory [apps/applprod/prodcomn]:/apps/DEV/devcomn
    Location of JDK 1.3.1 on the target system [usr/java/jdk1.3.1_10]:
    The new context file has to contain port numbers related to target system.
    Do you want to preserve the port values from the source system on the target system (y/n) [y] ?:n
    Clone Context uses the same port pool mechanism as the Rapid Install
    Once you choose a port pool, Clone Context will validate the port availability.
    Enter the port pool number:[0-99]
    50
    Checking the port pool 50
    done: Port Pool 50 is free
    Web Listener port is 8050
    Complete port information available at /apps/DEV/devappl/admin/out/PROD_betestoracle/portpool.lst
    Backing up /apps/DEV/devappl/admin/PROD_betestoracle.xml to /apps/DEV/devappl/admin/PROD_betestoracle.xml7.bak
    Creating the new APPL_TOP Context file from :
    /apps/DEV/devappl/ad/11.5.0/admin/template/adxmlctx.tmp
    The new APPL_TOP context file has been created :
    /apps/DEV/devappl/admin/PROD_betestoracle.xml
    Log file located at /tmp/CloneContext_05131045.log
    Please enter the APPS password:
    apps
    Running Rapid Clone with command:
    perl ./adclone.pl java=/apps/DEV/devcomn/util/jre/1.1.8 mode=apply stage=/apps/DEV/devcomn/clone component=appsTier method=CUSTOM appctxtg=/apps/DEV/devappl/admin/PROD_betestoracle.xml
    ERROR: OUI files not found at their expected location. Please make sure that the pre-requisit OUI patch was applied correctly: patch should be unzipped directly at the ORACLE_HOME root level so that
    <iAS ORACLE_HOME>/oui21/oui/lib/OraInstaller.jar exists.
    Restart adclone.pl after performing required corrections.
    Starting application Services for PROD:
    Running:
    /apps/DEV/devcomn/admin/scripts/PROD_betestoracle/adstrtal.sh APPS/<appspwd>
    Regards,
    DB

    ERROR: OUI files not found at their expected location.Please see these docs.
    Troubleshooting RapidClone issues with Oracle Applications R12 [ID 603104.1] -- adcfgclone.pl appsTier fails with "ERROR: OUI files not found at their expected location"
    Preclone DBtier Fails: Error: Oui Files Not Found [ID 739589.1]
    Troubleshooting Guide and Known Issues List for the Oracle Application Management Pack for Oracle E-Business Suite [ID 812294.1]
    Application Management Pack for Oracle E-Business Suite Release 2.0.x Troubleshooting Guide [ID 412044.1]
    Thanks,
    Hussein

  • SAPinst error:- The java class is not found:  com.sap.engine.offline.Offlin

    Hi,
    I am in the midst of Installing SOLMAN on RHEL5-ORACLE
    Have installed IBM JDK version 1.4.2_10
    During the CREATE SECURE STORE PHASE I am getting the following error:
    sapinst_dev log file O/P
    WARNING[E] 2008-06-09 18:04:43.225
               CJSlibModule::writeError_impl()
    CJS-30050  Cannot create the secure store. SOLUTION: See output of log file SecureStoreCreate.log:
    The java class is not found:  com.sap.engine.offline.OfflineToolStart.
    TRACE      2008-06-09 18:04:43.225 [iaxxejsbas.hpp:483]
               EJS_Base::dispatchFunctionCall()
    JS Callback has thrown unknown exception. Rethrowing.
    TRACE      2008-06-09 18:04:43.243 [syuxctask.cpp:1382]
               CSyTaskImpl::start(bool)
    A child process has been started. Pid = 2529
    TRACE      2008-06-09 18:04:43.281 [syuxctask.cpp:1382]
               CSyTaskImpl::start(bool)
    A child process has been started. Pid = 2530
    ERROR      2008-06-09 18:04:43.310 [sixxcstepexecute.cpp:951]
    FCO-00011  The step createSecureStore with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_SecureStore|ind|ind|ind|ind|8|0|createSecureStore was executed with status ERROR .
    TRACE      2008-06-09 18:04:43.317 [iaxxgenimp.cpp:752]
                CGuiEngineImp::showMessageBox
    <html> <head> </head> <body> <p> An error occurred while processing service SAP Solution Manager 4.0 Support Release 4 > SAP Systems > Oracle > Central System > Central System. You may now </p> <ul> <li> choose <i>Retry</i> to repeat the current step. </li> <li> choose <i>View Log</i> to get more information about the error. </li> <li> stop the task and continue with it later. </li> </ul> <p> Log files are written to /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS. </p> </body></html>
    TRACE      2008-06-09 18:04:43.317 [iaxxgenimp.cpp:1255]
               CGuiEngineImp::acceptAnswerForBlockingRequest
    Waiting for an answer from GUI
    SAPINST.LOG file  O/P
    WARNING 2008-06-09 18:04:43.224
    Execution of the command "/opt/IBMJava2-amd64-142/bin/java -classpath /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/sharedlib/launcher.jar -Xmx256m com.sap.engine.offline.OfflineToolStart com.sap.security.core.server.secstorefs.SecStoreFS /tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/lib:/tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/sharedlib/exception.jar:/tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/sharedlib/logging.jar:/tmp/sapinst_instdir/SOLMAN/SYSTEM/ORA/CENTRAL/AS/install/sharedlib/tc_sec_secstorefs.jar create -s SMD -f /sapmnt/SMD/global/security/data/SecStore.properties -k /sapmnt/SMD/global/security/data/SecStore.key -enc -p XXXXXX" finished with return code 1. Output:
    The java class is not found:  com.sap.engine.offline.OfflineToolStart
    WARNING[E] 2008-06-09 18:04:43.225
    CJS-30050  Cannot create the secure store. SOLUTION: See output of log file SecureStoreCreate.log:
    The java class is not found:  com.sap.engine.offline.OfflineToolStart.
    ERROR 2008-06-09 18:04:43.310
    FCO-00011  The step createSecureStore with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_SecureStore|ind|ind|ind|ind|8|0|createSecureStore was executed with status ERROR .
    SecurStoreCreate log O/P
    The java class is not found:  com.sap.engine.offline.OfflineToolStart
    Pls suggest how to resolve this issue
    Pls help to resolve this issue
    Rgds,
    Abhijeet

    Hi All,
    I Found the Solution.
    The SAPinst tool was somehow not able to extracte the
    J2EEINSTALL.SAR files from the JAVA Components DVD.
    So I manually extracted the the file in the temporary install folder which the SAPinst creates in the /tmp filesystem (on LINUX by deafult) during the installation process.
    The following command is used (I used this on Red Hat LINUX 5.2) to extract the J2EEINSTALL.SAR file:-
    /sapmnt/SMD/exe/SAPCAR
    -xvf /dump/SR4_Java_Components/D51033521/DATA_UNITS/JAVA_J2EE_OSINDEP_J2EE_INST/J2EEINSTALL.SAR
    /sapmnt/SMD/exe/SAPCAR -->source directory of the file SAPCAR which is used to extarct CAR / SAR files on UNIX
    /dump/SR4_Java_Components/D51033521/DATA_UNITS/JAVA_J2EE_OSINDEP_J2EE_INST/J2EEINSTALL.SAR--> destination dir. where the SAPinst tool will read and execute the file.
    Rgds,
    Abhijeet K

  • Preverify doesn't work. Always return error 2 "File not found"

    Hello,
    I have this configuration:
    - Latest JDK and JRE
    - Ubuntu Linux 7.10 64 bits
    - NetBeans 6RC2 Mobility Pack
    When I try to build a project, NetBeans returns:
    Preverifying 6 file(s) into /home/alfredbaudisch/NetBeansProjects/GameBuilderDemo2/build/preverified directory. 
    java.io.IOException: Cannot run program "/home/alfredbaudisch/Desenvolvimento/Utils/WTK2.5.2/bin/preverify": java.io.IOException: error=2, File not found
    Then I downloaded WTK 2.5.2 by myself and tried to build it using the toolbar:
    Creating project "GameBuilderDemo2" 
    Place Java source files in "/home/alfredbaudisch/j2mewtk/2.5.2/apps/GameBuilderDemo2/src" 
    Place application resource files in "/home/alfredbaudisch/j2mewtk/2.5.2/apps/GameBuilderDemo2/res" 
    Place application library files in "/home/alfredbaudisch/j2mewtk/2.5.2/apps/GameBuilderDemo2/lib" 
    Settings updated 
    Project settings saved 
    Building "GameBuilderDemo2" 
    java.io.IOException: Cannot run program "/home/alfredbaudisch/Desenvolvimento/Utils/WTK2.5.2/bin/preverify": java.io.IOException: error=2, File not found 
    Build failed  Any suggestion?
    Thanks.
    Edited by: AlfredBaudisch on Nov 25, 2007 1:36 PM

    The problem was that WTK was not accepting JRE 64-bits, then I installed JRE 32-bits and set up WTK to look for it.
    I wrote an article about the platform Ubuntu + NetBeans 6:
    http://mobiledeveloper.auriummobile.com/index.php/2007/11/25/perfect-java-development-platform-with-ubuntu-710-and-netbeans-6/
    Edited by: AlfredBaudisch on Nov 25, 2007 6:47 PM

  • JBO:33001 bc4j.xcfg file not found in class path

    Hi,
    I am yet another victim of the age-old error JBO:33001 bc4j.xcfg file not found in class path, When i have my BC4JApp.jar in Tomcat Web-inf/lib directory. All the other jar files and class files in my webserver-application web-inf classes and lib directory works.
    But Tomcat server is not able to read this bc4j.xcfg file. I can see in my jar file that this bc4j.xcfg exists and in the specified package directory. still the problem persists. My BC4JApp.jar is perfectly working when i use JDeveloper. but not when i use tomcat4.0 and call a JSP using BC4JApp.jar from browser (My environment is Jdeveloper3.2, Tomcat4.0+IIS in middle tier and oracle 8i as DB, everything on windows2k)
    I have gone through almost all the threads possible that relates to this error in this form. None of them have a answer except to say "put the file in classpath". and last reply is "will fix in jDeveloper 9i. So what happens to us who are working in Jdeveloper 3.2?
    1. I have this file in my jar file.
    2. I also tried creating a seperate directory manually, with the same name as my package under web-inf/classes, web-inf/lib , just under web-inf directory and atlast under approot directory also. I tried having my package directory containing bc4j.xcfg in these folders one at a time and also tried having this directory in all these folders at the same time.
    Still no solution.
    Itz frustrating that neither proper documentation nor a right url page nor i am aware of available addressing this. page links given in above threads only gives me the wonderful page of ie's "Page cannot be displayed".
    Is there a answer to this error and my problem. If this doesn't work, then i have to all the way develop from scratch creating my jsp using JDBC calls and Stored packages etc.
    I don't want to give up on this Jdeveloper at this final moment because if this bc4j.xcfg file is found, my application will work perfectly. on these final moments, if this doesn't work, i am frightened to imagine to develop my application in standard way. Atlast, if thatz the option left,we have to do that bcos our production date is close by.
    Please can some one in this forum or Jdeveloper help me to solve this problem. I am desperate and very urgent.
    Waiting for a reply from Jdev team very much...
    ( I just posted in the other thread which is pretty old, dated backto May 2001, which was relevant to this error. Just to make sure it is noticed, I am posting it seperately too)
    Thanks
    Hari(2/3/02)

    Hi All,
    For those who are following this thread, I got a solution for this error with the help of Jdev Team.
    This solution may work, if you have deployed your application in Tomcat4.0.1. This is the environment in which I work and tested.
    As you may be aware, Tomcat ignores value in CLASSPATH variable.
    To see any files that are existing or newly deployed, it has it own way of detecting it.
    Addition information on Tomcat working, you can follow this link,
    http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html
    Coming to point, Tomcat has got five classloaders and each classloader invoked, looks in their related directories for files in following order.
    1. /WEB-INF/classes of your web-application
    2. /WEB-INF/lib/*.jar of your web application
    3. BootStrap classes of your JVM (Tomcat's $JAVA_HOME/jre/lib/ext)
    4. System class loader classes($CATALINA_HOME/bin/bootstrap.jar,CATALINA_HOME/lib/tools.jar)
    5. $CATALINA_HOME/common/classes
    6. $CATALINA_HOME/common/lib/*.jar
    7. $CATALINA_HOME//classes
    8. $CATALINA_HOME/lib/*.jar
    So All your individual application related files should be deployed in your application's WEB-INF/classes or WEB-INF/lib directory accordingly.
    If your application files are unpacked, they should be deployed or copied under WEB-INF/classes directory
    if the files are within a jar, they should be under WEB-INF/lib directory.
    If your Jar-files contains bc4j components, then those jar files should be deployed under WEB-INF/lib directory. Also,do the next step to copy all relavant BC4J runtime libraries under lib directory.
    IMPORTANT: Please remember to copy and paste all the required BC4j runtime libraries in the Same WEB-INF/lib directory along with your application jar files. This is the real reason which can solve this JBO:33001 to disappear. It worked for me.
    To configure your directory for tag-lib uri's, use web.xml to set the taglib-uri attribute.
    Put your web.xml and DataTags.tld in the WEB-INF directory.
    Your simple web.xml may look like as follows.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
         <taglib>
              <taglib-uri>
                   /webapp/DataTags.tld
              </taglib-uri>
              <taglib-location>
                   /WEB-INF/DataTags.tld
              </taglib-location>
         </taglib>
    </web-app>
    You may then modify this web.xml to suit further requirements of your application.
    Remember to stop and restart the Tomcat Server (service) by using shutdown and startup scripts after updating any jar files/class files/ JSP or source files deployed in Tomcat.
    Sometimes, only this helps even though your context's reloadable attribute is set to true in Tomcat Server's server.xml file.
    Hope this above information helps you to solve this error in Tomcat environment. My Sincere thanks once again to Juan and Jdev team for their help and efforts to solve this problem.
    Thanks
    Hari

  • 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

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

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

  • Is there a way to password protect an album in iPhoto?

    Hi guys, I have a few photos that I would like to restrict access too. Is there any way to do this in iPhoto? Thanks, C

  • Purchase Order Conversion

    Is there any standard program available to convert PO's directly in SRM. We are implementing extended classic scenario EBP 5.0

  • Photo Downloader freezes when loading device list

    I'm using Bridge 2.1.1.9 on a Mac running 10.5.4. Recently, when I connect a Nikon camera to transfer photos, the Adobe Photo Downloader freezes after displaying a "Loading device list" message. I have to Force Quit the Photo Downloader to get out of

  • Funny red icon next to unsent text messages - what's this about?

    Help! BB (Curve 8520)stopped sending texts today and a little red icon (letter L within a red circle) comes up by unsent texts. Cannot see what has changed,or why it's happened and most importantly cannot rectify it! Any thoughts, views or advice wou

  • Why do I find the Dogpile (search) addon will not download?

    I find Firefox-listed, in Get Addons: " Dogpile 20091122 " , by Ahmed El-Mahdawy, jtekUSA (Dogpile.com Web Search) I click on the "Add to Firefox" green button; but I only get error message: Firefox could not install the search plugin from "https://a