OC4J & JDK 1.4.1

I have installed the JDK 1.4.1(& performed all the steps mentioned in the Oracle doc). But somehow I can not start the server in debug mode for remote debugging(it runs in non-debug!!). The command I use is as follows:
"javaw.exe -ojvm -XXdebug,port4000,detached,quiet -jar oc4j.jar -config config\server.xml"
& no error msg is printed either!!
anybody has any ideas?

the "detached" means "don't wait for the debugger and let me attach the debugger whenever I want".
If this isn't what you want, remove the "detached"
Rob

Similar Messages

  • Please help me on installing OC4J as windows Service

    Hi, Guys:
    Could anyone help me on installing OC4J service as a windows service in my computer? I always got the following error message when I tried to start OC4J service:
    The Oracle BI: OC4J Service service on local computer started and then stopped. Some services stop automatically if they are not in use by other servies or programs.
    I am using Windows server 2008, service pack 1, 64 bit operating system.
    OC4J has been successfully installed and I can see enterprise manager from http://localhost:8888/em.
    I set envionment parameters as follows:
    ORACLE_HOME: C:\OC4J\oc4j_extended_101350
    JAVA_HOME: C:\java\JDK7u7 (I use jdk-7-windows-i586)
    J2EE_HOME: %ORACLE_HOME%\j2ee\home
    and I run cmd as administrator, cd to javaservice subdirectory, use javaservices to install OC4J as follows:
    javaservice -install "Oracle BI: OC4J Service" "C:\java\JDK7u7\jre\bin\server\jvm.dll" -XX:MaxPermSize=128m -Xmx512m "-Djava.class.path=C:\OC4J\oc4j_extended_101350\j2ee\home\oc4j.jar" -start oracle.oc4j.loader.boot.BootStrap
    I was told it is installed successfully. But I got the problem as I said before. It was strange though I did it on my local computer which is a windows7, service pack 1, 64 bit operating system successfully. I struggleed for 3 weeks with the same problem on my local PC and suddenly it worked without problem. I did not remember I changed anything. Is there anything that I missed?
    Any suggestion would be appreciated!
    Sam

    Well, I added two lines in OC4J.cmd
    set ORACLE_HOME=C:\OC4J\oc4j_extended_101350
    set JAVA_HOME=C:\JAVA\JDK7u7
    before
    set J2EE_HOME=%ORACLE_HOME%\j2ee\home
    and I restarted the windows. It looks try to run OC4J but failed, as I open services window, it shows OC4J is "stopping". When I try to run it manually, I got the same problem again. is there anything I missed? What is your OC4J, JDK and javaservice version?
    Sam

  • Web Services Tutorial (9.0.3)

    Hi,
    I'm new at Web Services using Oracle9iAS (9.0.3.0.0)and am having a problem running the tutorial at http://www.oracle.com/technology/tech/webservices/htdocs/series/statelessjava/index.html.
    I manage to get to the point of deploying the Web Service and everything is fine. I then create the Web Service Stub and that seems to be created OK, but when I come to run it I get the error:
    C:\OC4J\jdk\bin\javaw.exe -client -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=1328 -classpath C:\WorkArea\JDeveloper\Project\classes;C:\jdev\lib\jdev-rt.jar;C:\jdev\lib\jdev-rt.jar;C:\soap\lib\soap.jar;C:\lib\xmlparserv2.jar;C:\jlib\javax-ssl-1_2.jar;C:\jlib\jssl-1_2.jar;C:\j2ee\home\lib\activation.jar;C:\j2ee\home\lib\mail.jar;C:\j2ee\home\lib\http_client.jar HelloImplStub
    Debugger connected to local process.
    [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type "text/html", must be: "text/xml". Response was:
    <HTML><HEAD><TITLE>500 Internal Server Error</TITLE></HEAD><BODY><H1>500 Internal Server Error</H1><PRE>Servlet error: Cannot generate Class: C:\OC4J\j2ee\home\application-deployments\WorkspaceStatelessJava-ProjectStatelessJava-WS\WebServices\temp\__java_stateless_rpc\__HelloImplStatelessWrapper.java:9: '.' expected
    import IHelloImpl;
                     ^
    1 error
    </PRE></BODY></HTML>
         at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:209)
         at org.apache.soap.rpc.Call.invoke(Call.java:268)
         at HelloImplStub.sayHello(HelloImplStub.java:73)
         at HelloImplStub.main(HelloImplStub.java:34)
    Debugger disconnected from local process.
    Process exited with exit code 0.
    I have even tried creating the client using Axis but receive the same error message, so the problem is withthe Web Service.
    Does anyone have any ideas?
    Nigel

    Hi,
    I'm new at Web Services using Oracle9iAS (9.0.3.0.0)and am having a problem running the tutorial at http://www.oracle.com/technology/tech/webservices/htdocs/series/statelessjava/index.html.
    I manage to get to the point of deploying the Web Service and everything is fine. I then create the Web Service Stub and that seems to be created OK, but when I come to run it I get the error:
    C:\OC4J\jdk\bin\javaw.exe -client -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=1328 -classpath C:\WorkArea\JDeveloper\Project\classes;C:\jdev\lib\jdev-rt.jar;C:\jdev\lib\jdev-rt.jar;C:\soap\lib\soap.jar;C:\lib\xmlparserv2.jar;C:\jlib\javax-ssl-1_2.jar;C:\jlib\jssl-1_2.jar;C:\j2ee\home\lib\activation.jar;C:\j2ee\home\lib\mail.jar;C:\j2ee\home\lib\http_client.jar HelloImplStub
    Debugger connected to local process.
    [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type "text/html", must be: "text/xml". Response was:
    <HTML><HEAD><TITLE>500 Internal Server Error</TITLE></HEAD><BODY><H1>500 Internal Server Error</H1><PRE>Servlet error: Cannot generate Class: C:\OC4J\j2ee\home\application-deployments\WorkspaceStatelessJava-ProjectStatelessJava-WS\WebServices\temp\__java_stateless_rpc\__HelloImplStatelessWrapper.java:9: '.' expected
    import IHelloImpl;
                     ^
    1 error
    </PRE></BODY></HTML>
         at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:209)
         at org.apache.soap.rpc.Call.invoke(Call.java:268)
         at HelloImplStub.sayHello(HelloImplStub.java:73)
         at HelloImplStub.main(HelloImplStub.java:34)
    Debugger disconnected from local process.
    Process exited with exit code 0.
    I have even tried creating the client using Axis but receive the same error message, so the problem is withthe Web Service.
    Does anyone have any ideas?
    Nigel

  • Problem depolying Web Service in 9.0.3

    Hi,
    After getting JDevloper up & working OK, I'm now trying to deploy a web service. I'm following the tutorial for deploying a Java Web Service (http://www.oracle.com/technology/tech/webservices/htdocs/series/statelessjava/index.html)
    All is fine until the actual deployment when I recieve this in the log:
    "---- Deployment started. ---- 29/07/2005 14:00:12
    Wrote WAR file to C:\WorkArea\JDeveloper\Project\WebServices.war
    Wrote EAR file to C:\WorkArea\JDeveloper\Project\WorkspaceStatelessJava-ProjectStatelessJava-WS.ear
    Invoking OC4J admin tool...
    c:\OC4J\jdk\jre\bin\javaw.exe -jar C:\j2ee\home\admin.jar ormi://127.0.0.1/ admin -deploy -file C:\WorkArea\JDeveloper\Project\WorkspaceStatelessJava-ProjectStatelessJava-WS.ear -deploymentName WorkspaceStatelessJava-ProjectStatelessJava-WS
    Error: javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: Invalid username/password for default (admin); nested exception is:
         javax.naming.AuthenticationException: Invalid username/password for default (admin)
    Exit status of OC4J admin tool (-deploy): 1
    Elapsed time for deployment: 4 seconds
    #### Deployment incomplete. #### 29/07/2005 14:00:16
    The password to admin is welcome which is what I configured in JDeveloper. I can run the admin tool from the command line using welcome as a password, so what's up?
    I'm using Oracle9ias 9.0.3
    Nige

    If you use Oracle AS:
    Set the security username and password for OC4J access:
    http://localhost:18100/ -> j2eeApplications -> your_web_app -> Security
    Be sure to grant RMI access to the user group.
    !!You need to restart server for changes to take effect!!
    http://localhost:18100/ -> "Restart all"

  • Please Help me on BI Java SDK using BI JDBC Connector

    Hi, I'm new to sap BI Java SDK. I'm not getting how to get the primarykey columns, using BI JDBC Connector (for relational data sources). If anybody knows, please let me know. its very very urgent task to be done in my project. In the below following code.... I have written a code to connect to the database through resource bundle, reading table names, once user select table name, i need to show the primary key columns of that table to the user. here i'm not getting how to get the primary key columns . Please send me the code if there is any method to find out the primarykey columns or a logic to get them. I will be greatful to you.... if you can do this favour. Please check out the following code ........
    ManagedConnectionFactory mcf;
    IConnectionFactory cf;
    IConnectionSpec cs;
    mcf = new JdbcManagedConnectionFactory();
    cf = (IConnectionFactory) mcf.createConnectionFactory();
    cs = cf.getConnectionSpec();
    ResourceBundle rbLocal = ResourceBundle.getBundle( "xxxx");
    Enumeration propnames = rbLocal.getKeys();
    while (propnames.hasMoreElements())
    String key = (String) propnames.nextElement(); //out.print(key); //out.println("="rbLocal.getString(key)"");
    cs.setPropertyValue(key, rbLocal.getString(key));
    // Establishing the connection. // The IBIRelational interface provides an entrypoint to access // metadata and execute queries.
    IBIConnection connection = (IBIConnection) cf.getConnectionEx(cs);
    IBIRelational rel = connection.getRelational();
    IBIQuery query = rel.createQuery();
    String sqlStatement = "SELECT * FROM " + "BICQPERSON where type='pk'"; ResultSet rs = IBIDataSet dataset = query.execute();
    Thanks SreeKanth

    Well, I added two lines in OC4J.cmd
    set ORACLE_HOME=C:\OC4J\oc4j_extended_101350
    set JAVA_HOME=C:\JAVA\JDK7u7
    before
    set J2EE_HOME=%ORACLE_HOME%\j2ee\home
    and I restarted the windows. It looks try to run OC4J but failed, as I open services window, it shows OC4J is "stopping". When I try to run it manually, I got the same problem again. is there anything I missed? What is your OC4J, JDK and javaservice version?
    Sam

  • AIA Foundation Pack Config Utility failed

    Hello,
    While installing AIA FP 2.3 following error occured:
    BUILD FAILED
    /oracle/app/product/aia/Infrastructure/install/scripts/FPInstall.xml:92: exec returned: 1
    Command = /oracle/app/product/oc4j/jdk/bin/java has failed
    Execution Error : java.lang.Exception: Error executing the command:
    setenv PATH /oracle/app/product/aia/apache-ant-1.7.0/bin:/oracle/app/product/oc4j/jdk/bin:$PATH && setenv ANT_HOME /oracle/app/product/aia/apache-ant-1.7.0 && setenv JAVA_HOME /oracle/app/product/oc4j/jdk && setenv DEPLOY_COMP oracle.aia.common && setenv ORACLE_HOME /oracle/app/product/oc4j && setenv AIA_HOME /oracle/app/product/aia&& setenv BPEL_HOME /oracle/app/product/oc4j/bpel && cd /oracle/app/product/aia/Infrastructure/install/scripts && ant --noconfig -buildfile FPInstall.xml
    at com.oracle.aia.utils.Deploy.executeCommand(Unknown Source)
    at com.oracle.aia.utils.Deploy.executeProcess(Unknown Source)
    at com.oracle.aia.utils.PipSelector.traverse(Unknown Source)
    at com.oracle.aia.utils.PipSelector.main(Unknown Source)
    Obviously java haven't been found. And I'm not wondering about this, because in my case the java directory is situated in /oracle/app/product/oc4j/jdk/jre/bin/
    The JAVA_HOME is set to the correct directory. Now my questions are: Where does this path for java comes from? Can I change it anywhere? Or what could I do to avoid this problem?

    Hi,
    I am getting below error when i try to run
    D:\\product\10.1.3.1\OracleAS_1\jdk\bin\java.exe -jar H:\product\AIA/Infrastructure/install/lib/AIAUtils.jar -i H:\product\AIA -nopips
    Total time: 6 minutes 51 seconds
    FAILED - Please verify the AIA intallation log for more details.
    08/06/2009 6:7 PM : ERROR: Error executing the command:
    set PATH=H:\product\AIA\apache-ant-1.7.0\bin;D:\product\10.1.3.1\OracleAS_1\jdk\
    bin;%PATH%&& set ANT_HOME=H:\product\AIA\apache-ant-1.7.0&&set JAVA_HOME=D:\prod
    uct\10.1.3.1\OracleAS_1\jdk&&set DEPLOY_COMP=oracle.aia.common&& set ORACLE_HOME
    =D:\product\10.1.3.1\OracleAS_1&& set AIA_HOME=H:\product\AIA&& set BPEL_HOME=D:
    \product\10.1.3.1\OracleAS_1\bpel&& cd /d H:\product\AIA\Infrastructure\install\
    scripts && antExit -buildfile FPInstall.xml
    java.lang.Exception: Error executing the command:
    set PATH=H:\product\AIA\apache-ant-1.7.0\bin;D:\product\10.1.3.1\OracleAS_1\jdk\
    bin;%PATH%&& set ANT_HOME=H:\product\AIA\apache-ant-1.7.0&&set JAVA_HOME=D:\prod
    uct\10.1.3.1\OracleAS_1\jdk&&set DEPLOY_COMP=oracle.aia.common&& set ORACLE_HOME
    =D:\product\10.1.3.1\OracleAS_1&& set AIA_HOME=H:\product\AIA&& set BPEL_HOME=D:
    \product\10.1.3.1\OracleAS_1\bpel&& cd /d H:\product\AIA\Infrastructure\install\
    scripts && antExit -buildfile FPInstall.xml
    at com.oracle.aia.utils.Deploy.executeCommand(Unknown Source)
    at com.oracle.aia.utils.Deploy.executeProcess(Unknown Source)
    at com.oracle.aia.utils.PipSelector.traverse(Unknown Source)
    at com.oracle.aia.utils.PipSelector.main(Unknown Source)
    FPInstall.log
    [echo] --------------------------------------------------------------
    [echo] | Registering ESB service H:\product\AIA\Infrastructure\install\systems\AIASystemFoundation on CHSASERORA01.syntelorg.com, port 7779
    [echo] --------------------------------------------------------------
    [echo]
    [deployESBSuitcase] Deployment Attempt Response :
    [deployESBSuitcase] <errors>
    [deployESBSuitcase] <error code="2006" severity="5">
    [deployESBSuitcase] <description>ESB DT Cache is not initialized.May be ESB bootstrap failed</description>
    [deployESBSuitcase] <fix>Please review ESB prameters for their correctness.</fix>
    I followed below workarrounds but stil i am getting same error:
    1:one of the property declarations needs to be changed from:
    <property name="dt.oc4j.http.port" value="${env.DT_OC4J_HTTPPORT}" />
    to:
    <property name="dt.oc4j.http.port" value="${env.DT_OC4J_HTTP_PORT}" />
    2: changed the"Options FollowSymLinks MultiViews"in the httpd.conf file
    Please help me to move further...........
    Regards
    Hemakishore

  • Errors in deploying the example iBank migrated from wls8.1 to S1AS8

    Hi,all.
    With the miagration tool ,the example iBank ,one provided by Sun,can be migrated successfully.In the ott directory,run the build_ear.cmd file,then the ibank.ear is generated.when I deploy it on S1AS8, there is a error:
    CLI171 Command deploy failed : Deploying application in domain failed; Fatal Er
    ror from EJB Compiler -- JDO74046: JDOCodeGenerator: Caught a MappingConversionE
    xception loading or creating mapping model for application 'ibank' module 'Trans
    actionandothers': JDO71002: The schema file ibank_Transactionandothers does not
    contain a table named TRANSACTION_HISTORY
    ; requested operation cannot be completed
    the error occurs in Transactionandothers.jar because when I deploy the Transactionandothers.jar alone,the same error occurs.
    I did not use cature-schema to generate the dbschema file,let themigration to generate it.after the error occurs,I use the capture schema command ,but at last it only shows"Schema captured Saving schema ..." but I can't find the schema file.Does it generate the schema file.
    Who can help me,thanks a lot.

    Shivakumar,
    What version of OC4J, JDK are you using ? What O/S are you using ?
    regards
    Debu

  • HttpIOException

    I wonder Why I get such error? Can anybody help?
    com.evermind.server.http.HttpIOException: Read timed out
         at java.lang.Throwable.fillInStackTrace(Native Method)
         at java.lang.Throwable.fillInStackTrace(Compiled Code)
         at java.lang.Throwable.<init>(Compiled Code)
         at java.lang.Exception.<init>(Compiled Code)
         at java.io.IOException.<init>(Compiled Code)
         at com.evermind.server.http.HttpIOException.<init>(Compiled Code)
         at com.evermind.server.http.EvermindServletInputStream.read(Compiled Code)
         at javax.servlet.ServletInputStream.readLine(Compiled Code)

    Edward,
    Can you please tell us what version of OC4J/JDK are you using ? In what circumstance you got this error and what code generate these exception ?

  • JDeveloper 9.0.3 & Java 1.4.2

    Hi ,
    I'm having problems installing JDeveloper.
    I'm running Oracle9ias StandAlone, but have upgraded the JDK to 1.4.2.
    All runs OK, the JDK is now in <Oracle_home>/jdk
    I then unzip JDeveloper into C:/JDev as per documentation. When I try to start JDeveloper i receive the error message
    "Cannot find a J2SE SDK installed at the path ..\..\jdk"
    I installed the Base Install (complete install without documentation and JDK) of JDeveloper
    Any help would be appreciated .
    Nige

    Errrr... OK, I've worked it out. Must have SetJavaHome c:\OC4J\jdk in the jdev.conf
    Sorry for the trouble...
    Nige

  • Problem with classloader (for shared-lib's) on oc4j 10.0.3.4 under jdk 1.5

    I have a project that runs great on oc4j 10.0.3.4 under jdk 1.6. (everything worked great)
    I recently tried to run it under jdk 1.5 and i've run into a little problem with the shared-lib's:
    The classloader's debug file reports the following: (i have translated some of it)
    Class error: oracle.classloader.util.AnnotatedNoClassDefFoundError:
         Missing class: javax.xml.bind.JAXBContext
    Dependant class: nl.comp.util.XmlUtil
         Classloader: comp:0.1
         Code-source: /C:/programs/oc4j/j2ee/home/shared-lib/comp/0.1/comp.jar
         Configuration: <code-source> in /c:/programs/oc4j/j2ee/home/config/server.xml
    The missing class is available from the following location:
         1. Code-source: /C:/programs/oc4j/lib/xml.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\programs\oc4j\j2ee\home\oc4j.jar)
    This code-source is available from classloader oracle.xml:10.1.0_2
         2. Code-source: /C:/programs/oc4j/j2ee/home/shared-lib/jaxb/2.1.6/jaxb-api.jar (from <code-source> in /c:/programs/oc4j/j2ee/home/config/server.xml)
    This code-source is available from classloader jaxb:2.1.6.
    So the classloader knows where to find the necessary lib, but it isn't loading it? If i run the exact same code (with same descriptors and everything) under jdk 1.6, it works, under 1.5 i get the above error.
    What is different on the class loader level between the two jdk versions that might affect the program in such a way?
    Need i update a descriptor or do something else?

    Jack,
    Not a definitive answer for you (sorry), just a few suggestions (that I assume you are unaware of).
    1. Try unsetting your "ClassPath" variable. Open a "command" window and type the following:
    set ClassPath=2. Launch OC4J from the directory where the "oc4j.jar" file is located, for example:
    D:
    cd oc4j\j2ee\home
    java -jar oc4j.jar3. I'm just guessing, but if your drive "D:" is a mapped, network drive, this may be causing the problem. Perhaps try installing OC4J on a local drive?
    Hope this helps.
    Good Luck,
    Avi.

  • Which version of OC4J 9.0.2 or 9.0.3 supports jdk 1.4

    does anybody know which version of OC4J 9.0.2 or 9.0.3 supports jdk 1.4??
    thanks

    OC4J v9.0.3 support JDK 1.4. By default OC4J standalone come with JDK 1.3.1.
    Below are instructions to enable JDK 1.4 support in OC4J v9.0.3 standalone.
    - Download JDK 1.4 from http://java.sun.com/
    - Rename existing [OC4J_HOME]/jdk to [OC4J_HOME]//jdk131
    [OC4J_HOME] - is the directory where oc4j_extended.zip was extracted
    mv jdk jdk131
    - copy JDK 1.4 with all the sub-directories into [OC4J_HOME]
    cp -r <a jdk1.4> OR install JDK 1.4 into [OC4J_HOME]/jdk
    Note: remember to name the directory jdk under [OC4J_HOME]
    - The file jdk/jre/lib/security/java.security needs to be edited to include the following:
    # Oracle specific definitions
    auth.policy.provider=oracle.security.jazn.spi.PolicyProvider
    login.configuration.provider=oracle.security.jazn.spi.LoginConfigProvider
    The above steps will enable you to use OC4J under JDK 1.4.0
    -Prasad

  • OC4J 9.0.2 production with JDK 1.4.0: mostly broken

    I have tried OC4J 9.0.2 production with several combinations of JDK 1.3.1 and JDK 1.4.0 for building, deploying, and running a simple, home-grown EJB-based web service. If I build the EAR file using JDK 1.3.1, it will run fine on OC4J using JDK 1.3.1 or JDK 1.4.0.
    I have thus far found it to be impossible to build the EAR file using JDK 1.4.0 and have it run sucessfully on OC4J using either JDK 1.4.0 or JDK 1.3.1. I always get the following when attempting to invoke the web service via the generated Java proxy stubs:
    5/8/02 7:33 PM database: oracle.jsp.runtimev2.JspServlet: init
    5/8/02 7:33 PM database: 9.0.2.0.0 Started
    5/8/02 7:33 PM database: oracle.j2ee.ws.SessionBeanWebService: init
    5/8/02 7:33 PM database: Servlet error
    oracle.j2ee.xanadu.JasperGenerationError: no source generated during code generation!: 1 in getFile name: com\mycompany\common\ejb\Info.class
    1 in getFile name: com\mycompany\common\ejb\Info.java
    error: error message 'class.format' not found
    binary class definition not found: com.mycompany.common.ejb.Info
         at oracle.j2ee.ws.JavaWrapperGenerator.generate(JavaWrapperGenerator.java:267)
         at oracle.j2ee.ws.RpcWebService.generateWrapperClass(RpcWebService.java:662)
         at oracle.j2ee.ws.RpcWebService.generate(RpcWebService.java:436)
         at oracle.j2ee.ws.RpcWebService.getWrapper(RpcWebService.java:767)
         at oracle.j2ee.ws.RpcWebService.doPost(RpcWebService.java:309)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:652)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    Notes:
    1) When attempting to deploy onto an OC4J instance running on JDK 1.4.0, I have replaced the tools.jar file and modified the global-web-application.xml as per: ORA-92102 Timeout on Web Forms
    2) I have verified that the EJB deploys correctly regardless of build and/or deployment environment.
    3) Let's pretend that I can configure each of these environments to run under JDK 1.4.0 or JDK 1.3.1: run OC4J (fresh install), build ear, deploy ear, invoke web service. Here are the combinations I have tried:
    BROKEN: run OC4J 1.4.0, build ear 1.4.0, deploy ear 1.4.0, invoke web service 1.4.0
    WORKS: run OC4J 1.4.0, build ear 1.3.1, deploy ear 1.4.0, invoke web service 1.4.0
    WORKS: run OC4J 1.4.0, build ear 1.3.1, deploy ear 1.3.1, invoke web service 1.3.1
    WORKS: run OC4J 1.4.0, build ear 1.3.1, deploy ear 1.3.1, invoke web service 1.4.0
    WORKS: run OC4J 1.3.1, build ear 1.3.1, deploy ear 1.3.1, invoke web service 1.3.1
    WORKS: run OC4J 1.3.1, build ear 1.3.1, deploy ear 1.3.1, invoke web service 1.4.0
    WORKS: run OC4J 1.3.1, build ear 1.3.1, deploy ear 1.4.0, invoke web service 1.4.0
    WORKS: run OC4J 1.3.1, build ear 1.3.1, deploy ear 1.4.0, invoke web service 1.3.1
    BROKEN: run OC4J 1.3.1, build ear 1.4.0, deploy ear 1.3.1, invoke web service 1.3.1
    BROKEN: run OC4J 1.3.1, build ear 1.4.0, deploy ear 1.4.0, invoke web service 1.4.0
    Is Oracle aware of this problem? What is causing it (e.g. class format change in classes compiled in JDK 1.4.0)? Are you working to fix it in the next release (either preview or production)?

    I've also just downloaded JDK 1.4.0 and tried running the "Simple JSP Examples" that come with OC4J R2.
    Of course these simple examples didn't even compile:
    <blockquote>
    500 Internal Server Error
    OracleJSP: oracle.jsp.provider.JspCompileException:
    Errors compiling:/oracle/product/ias9i/j2ee/home/application-deployments/default/defaultWebApp/persistence/_pages/_examples/_jsp/_num/_numguess.java
    error: Invalid class file format in /oracle/product/j2sdk1.4.0/jre/lib/rt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand.
    /oracle/product/ias9i/j2ee/home/application-deployments/default/defaultWebApp/persistence/_pages/_examples/_jsp/_num/_numguess.java:0: Class java.lang.Object not found in class com.orionserver.http.OrionHttpJspPage.
    package examples.jsp._num;
    ^
    2 errors
    </blockquote>
    So whose fault is this?
    Is it my fault for not reading this forum before downloading the 40MB J2SE 1.4.0 install?
    Is it Oracle's fault for failing to point out that OC4J is compatible with ONLY 1.3.1 ?
    Is it Sun's fault for breaking compatibility with their own product? So much for write once run anywhere. This is not what Java was supposed to be about.

  • Urgent : Oracle AS 10.1.2.0.2 : Switch OC4J's JDK version to 1.3 ?

    Hi,
    We have inherited an EJB application which was written during the hey days of JDK 1.3.
    We have an Oracle AS 10.1.2.0.2 & we have successfully migrated most of the other Applications / Oracle J PDK Applications which were developed using JDK 1.4. Unfortunately, we now need to migrate the older EJB application to Oracle AS 10.1.2.0.2.
    We tried a few dry runs with our staging Oracle As 10.1.2.0.2 instances - unfortunately, the application's code just won't compile - it looks as if we need to rewrite our application to compile under JDK 1.4. We can do this - but, we are hard pressed for time & we are looking for a solution that can bail us out of this tight corner.
    I would like to know if we can switch the OC4J's JDK version to 1.3 in any supported way ? If yes, we can just install another Oracle AS J2EE instance dedicated to out legacy ( !! ) EJB Application at this time & think about reqwiting & performance tuing at leisure.
    If not, what other options to I have ? Have I provided enough information or do I need to post additional infromation ? Please do let me know if more information is needed.
    Thanks in advance,
    Sandeep

    Hi,
    We also tried to follow Metalink Note:351476.1 which talks about changing the JAVA version used to run a specific OC4J instance. However, after following the steps, when we try to start our OC4J instance, we see this error:-
    D:\OraInfra\opmn\bin>opmnctl startproc process-type=OC4J_JDK13
    opmnctl: starting opmn managed processes...
    =============================================================================
    opmn id=nac014:6200
    0 of 1 processes started.
    ias-instance id=OraInfra.myHost.idc.oracle.com
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    ias-component/process-type/process-set:
    OC4J/OC4J_JDK13/default_island
    Error
    --> Process (pid=6240)
    failed to start a managed process after the maximum retry limit
    Log:
    D:\OraInfra\opmn\logs\OC4J~OC4J_JDK13~default_island~1
    Now, when I look into the log file, I see this ( !! ) :-
    06/02/21 18:18:11 Start process
    06/02/21 18:18:13 Start process
    06/02/21 18:18:15 Start process
    I understand that OC4J tried thrice before giving up, but if there are no error, I don't know why OC4J just refuses to start ? Truly, the mystery deepens....
    Regards,
    Sandeep

  • OC4J 9.0.4 stand alone + JDK 1.4.2

    Hi,
    I'm upgrading my web applications from OC4J (1.0.2.2) to OC4J 9.0.4. Also, upgrading from JDK1.3.1 to JDK 1.4.2. I have installed OC4J 9.0.4 stand alone version on my Windows 2000 machine and I have a couple of questions:
    1. I didn't find any JDK directory under OC4J_HOME. So, do I need to copy JDK 1.4.2 directory and place it under OC4J_HOME. Also, do I need to set any CLASSPATH while running OC4J ?
    2. I have an issue with running JSPs in the default application. However, the servlet examples run fine.I get the following error on running JSPs:
    quote:
    05/10/14 15:42:23 IOException in compile: CreateProcess: javac.exe -J-Xmx1024m -
    classpath oc4j.jar;E:\oc4j_extended\j2ee\home\lib/ejb.jar;E:\oc4j_extended\j2ee\
    home\lib/servlet.jar;E:\oc4j_extended\j2ee\home\lib/ojsp.jar;E:\oc4j_extended\j2
    ee\home\lib/jndi.jar;E:\oc4j_extended\j2ee\home\lib/jdbc.jar;E:\oc4j_extended\j2
    ee\home\iiop.jar;E:\oc4j_extended\j2ee\home\iiop_gen_bin.jar;E:\oc4j_extended\j2
    ee\home\lib/jms.jar;E:\oc4j_extended\j2ee\home\lib/jta.jar;E:\oc4j_extended\j2ee
    \home\lib/jmxri.jar;E:\oc4j_extended\j2ee\home\lib/javax77.jar;E:\oc4j_extended\
    j2ee\home\lib/javax88.jar;E:\oc4j_extended\j2ee\home\../../opmn/lib/ons.jar;E:\o
    c4j_extended\j2ee\home\../../opmn/lib/optic.jar;E:\oc4j_extended\j2ee\home\../..
    /lib/dms.jar;E:\oc4j_extended\j2ee\home\../../dms/lib/dms.jar;E:\oc4j_extended\j
    2ee\home\lib/connector.jar;E:\oc4j_extended\j2ee\home\lib/cos.jar;E:\oc4j_extend
    ed\j2ee\home\lib/jsse.jar;E:\oc4j_extended\j2ee\home\../../oracle/lib/jsse.jar;E
    :\oc4j_extended\j2ee\home\lib/jnet.jar;E:\oc4j_extended\j2ee\home\lib/jcert.jar;
    E:\oc4j_extended\j2ee\home?
    unquote:
    Could somebody tell me what I'm doing wrong ?
    Any help will be greatly appreciated.
    Thanks,
    Shyam

    Thanks a lot for your help qlin. I found a solution to the JSP issue from the archives.
    However, I ran into a new issue. I got the following error when I tried to access a JSP in my web application (this works with OC4J 1.0.2.2):
    05/10/17 16:38:19 dsap2: JspServlet: unable to dispatch to requested page: Exception:oracle.jsp.parse.JspParseException: Line # 165,
    Error: Unexpected end of file
    I got the same error with both JDK 1.4.2 and JDK 1.3.1.
    Any idea what could be causing the error, and how to trace it?
    Regarding the OC4J version, I have to use 9.0.4 as we have a product that uses it and I have to stick with the same version.
    Also, I have a couple of other questions.
    1. I use OC4J stand-alone on Win2K machine for development and deploy on a Solaris machine that uses the integrated OC4J version, which comes with Oracle Application Server 10g. Do you see any issues with this ?
    2. I currently have a simple logging mechanism using "System.out.println" to print output to a log file in the stand-alone version. Do you know of any better logging scheme that can be used with the integrated OC4J ?
    Any help/suggestions will be greatly appreciated.
    Thanks,
    Shyam
    I didn't find any JDK directory under OC4J_HOME.So, do I need to copy JDK 1.4.2
    directory and place it under OC4J_HOME. Also, do Ineed to set any CLASSPATH while
    running OC4J ?Yes, since 9.0.4 or even earlier possibly, oc4j
    installation is not bundled with a JDK installation.
    It is easy enough to download any JDK version you
    wanted. You do not need to place a copy of JDK
    inside OC4J_HOME. I believe it is better not to set
    any CLASSPATH for running OC4J, although it is
    probably does not matter any way.
    05/10/14 15:42:23 IOException in compile:CreateProcess: javac.exe -J-Xmx1024m -
    Please search this forum for "IOException in compile:
    CreateProcess: javac.exe". You will see the answer.
    By the way, any particular reason that you decide not
    to upgrade to 10.1.2.0.2 directly?
    It is obvious that 10.1.2 should be better than
    9.0.4. After another several months, 10.1.3 should be
    a even better choice since 10.1.3 supports j2ee 1.4
    while 10.1.2 and 9.0.4 supports j2ee 1.3.Thanks for your help qlin.I found a solution to the JSP issue by searching the archives.
    However I ran into a new issue. When I try to run my web application, I get the following exception:
    05/10/17 16:38:19 dsap2: JspServlet: unable to dispatch to requested page: Exception:oracle.jsp.parse.JspParseException: Line # 165,
    Error: Unexpected end of file
    I tried run OC4J with both JDK 1.4.2 and 1.3.1 versions but still get the same error.

  • OC4J and JDK 1.5

    Hi all,
    which version supports the latest JDK (1.5 or 5.0 as you
    want)?
    Thanks

    I'm all for experimentation .. just don't call Oracle support with your experimental efforts ;-)
    Thanks for posting the info.
    For what it's worth, I can comment that I've tried a recent internal OC4J build from our mainline with JDK5.0 and it now works fine -- as far as I tested it anyway.
    One thing to note is that if you do follow this advice and start OC4J with JDK 5.0, then if you ever revert back to starting it at a later date with JDK 1.4, you will see some problems with the compiled EJB wrapper code. This is because it was originalled compiled with 5.0 but then later is being loaded by 1.4, and a class version exception is thrown.
    If you get this and do want to use JDK 1.4, the easiest way to fix it is to remove all the generated subdirectories under the j2ee/home/application-deployments directory. This will cause OC4J to regenerate and compile new EJB wrappers using the JDK 1.4 compiler.
    -steve-

Maybe you are looking for