AS904: JDBC classpath problem in OC4J instance

Hi,
I want to run an ADF Faces web app in AS 904 (WAR contains all JAR incl. JDBC JARs). It does not work because the the application uses a newer version of the JDBC JARs than the version provided with AS904. The OC4J instance seems to load the older JDBC version instead of the JDBC version provided with the WAR.
The classpath of the AS904 OC4J instance defined in application.xml does not include any JDBC JARs.
This fact seems to be the root of all the trouble!
Is there a way to change the classpath for the JDBC JARs of my OC4J instance without affecting other OC4J instances?
Markus

Thanks Avi!
I can' solve my problem because the CLASSPATH of the OC4J-instance has a fixed prefix definition. Changing the CLASSPATH in application.xml oder with a cmd switch like -cp "my class path" only affects the CLASSPATH behind the prefix.
The prefix is definds in the manifest file of the oc4j.jar like this:
lib/ejb.jar lib/servlet.jar lib/ojsp.jar lib/jndi.jar lib/
jdbc.jar iiop.jar iiop_gen_bin.jar lib/jms.jar lib/jta.jar lib/jmxri
.jar lib/javax77.jar lib/javax88.jar ../../opmn/lib/ons.jar ../../op
mn/lib/optic.jar ../../lib/dms.jar ../../dms/lib/dms.jar lib/connecto
r.jar lib/cos.jar lib/jsse.jar ../../oracle/lib/jsse.jar lib/jnet.ja
r lib/jcert.jar lib/activation.jar lib/mail.jar ../../javavm/lib/jasp
er.zip ../../lib/xmlparserv2.jar ../../oracle/lib/xmlparserv2.jar lib
/jaxp.jar lib/jaas.jar jazn.jar ../../jdbc/lib/classes12dms.jar ../..
/oracle/jdbc/lib/classes12dms.jar ../../jdbc/lib/nls_charset12.jar ..
/../oracle/jdbc/lib/nls_charset12.jar jaxb-rt-1.0-ea.jar ../../soap/
lib/soap.jar ../../webservices/lib/wsserver.jar ../../webservices/lib
/wsdl.jar ../../rdbms/jlib/aqapi.jar lib/jem.jar ../../javacache/lib/
cache.jar lib/http_client.jar ../../jlib/jssl-1_1.jar ../../oracle/jl
ib/jssl-1_1.jar ../../jlib/repository.jar ../../oracle/jlib/repositor
y.jar lib/jaasmodules.jar ../../sqlj/lib/runtime12ee.jar ../../sqlj/l
ib/translator.jar lib/crimson.jar
As you can see, the JDBC lib is loaded with this settings before my CLASSPATH seetings!
I bet changing this manifest file affects Oracle support. ;-)
In the end, my J2EE web application does not run on a J2EE compliant Oracle AS 904!
Thanks,
Markus

Similar Messages

  • To change the JDBC driver for a single OC4J instance

    Hello,
    I implemeted an app with oracle adf (Jdeveloper 10.1.2 ) and it use Oracle Domain objects.
    I have an oas 10g (9.04.1) in windows
    and I want to change the default jdbc driver for a single oc4j instance
    in metalink i found the following information:
    1.- From OTN, download and copy the 10.1.0.x JDBC driver to a directory on the server. E.g OH/newjdbc
    2.- Opening EM-Website, navigate to the OC4J instance that should be altered.
    3.- Find the "Java-Options" and, add the -Xbootclasspath option to it, pointing to the new JDBC driver.
    E.g. -Xbootclasspath/p:$OH/newjdbc/ojdbc14.jar
    4.- Restart the OC4J instance
    my 'Java-optios' default is
    -server -Xrs -Djava.security.policy=C:\oracle\904\j2ee\test_adf\config\java2.policy -Djava.awt.headless=true
    my new 'Java optios' now is
    -server -Xrs -Djava.security.policy=C:\oracle\904\j2ee\test_adf\config\java2.policy -Djava.awt.headless=true -Xbootclasspath/p = D:\jdev1012\jdbc\lib\classes12.jar
    is this correct?
    now I cannot deploy my app
    Rigoberto

    Seems you missed something in step 3. From those steps the driver should be installed under C:\oracle\904\newjdbc and used in classpath, not d:\jdev1012.

  • Problem with a JDBC Adapter when connect to Instance on SQL Server

    Hi,
    Currently I'm setting up a communication channel with the JDBC adapter to work on a SQL Server database. When I use a string without specifying the connection instance, the JDBC driver takes the default instance and connects to a database without problems.
    jdbc: sqlserver: / / Server01; databaseName = IntegraSAP1
    The problem is when I need to connect to another instance of it server.
    jdbc: sqlserver: / / Server01; instanceName = SAP; databaseName = IntegraSAP2
    The JDBC driver, in short, send me the following error:
    Cause Exception: 'Error when attempting
    to get processing resources: com.sap.aii.af.lib.util.concurrent.ResourcePoolException:
    Unable to create new pooled resource: DriverManagerException:
    Can not establish connection:: com.microsoft.sqlserver.jdbc.SQLServerException:
    The connection to the named instance  has failed. Error:
    java.net.UnknownHostException: .
    I appreciate your help,
    Regards,
    Johnny

    Not sure, might be port number is not required in case using instance. Give one more try with :
    jdbc:sqlserver:/ /Server01\SAP; databaseName = IntegraSAP2
    A comment from http://msdn.microsoft.com/en-us/library/ms378428.aspx
    "SQL Server 2000 and SQL Server 2005 allow for the installation of multiple database instances per server. Each instance is identified by a specific name. To connect to a named instance of SQL Server, you can either specify the port number of the named instance (preferred), or you can specify the instance name as a JDBC URL property or a datasource property."
    Regards,
    Sunil Chandra

  • Problem in running instance of oc4j

    Hi
    i am using Jdeveloper 10g for developing J2EE application. In order to debug my JSP code, I wanted to start the OC4J instance. For that i went to <JDEV_HOME>\j2ee\home and ran "java -jar oc4j.jar" command in the command prompt.The server started, but when i tried to test OC4J by accessing http://localhost:8888 i get following error.
    ERROR
    The requested URL could not be retrieved
    While trying to retrieve the URL: http://localhost:8888/
    The following error was encountered:
    Connection Failed
    The system returned:
    (111) Connection refusedThe remote host or network may be down. Please try the request again.
    Your cache administrator is webmaster.
    Generated Tue, 13 Jun 2006 13:08:52 GMT by box.inatech.com (squid/2.5.STABLE6)
    Pls can any one help me to find a amicable solution for this problem.
    Thanks well in advance.
    Shrikant

    Hi Shrikant,
    Not too sure but ths OC4J you are talking about is the embedded OC4J right? Or did you download it separately? Because the embedded OC4J has a bunch of features missing from the regular OC4J. I know in the regular OC4J if you start it up and type in the URL address you can access the admin console and so on, not so sure about the embedded. The embedded AFAIK is just for quick testing and deploying of applications. I dont even think you can deploy web services in the embedded OC4J even.
    Hope that helps.

  • JDBC and Classpath problems on OpenVMS

    Hello,
    I'm working on an OpenVMS server and I got a simpler Java application that needs to establish a connection to an Oracle database, the application works perfectly well on Windows but when I moved to OpenVMS I got some problems with the oracle driver.
    I believe I�m using the correct driver, I already checked on the oracle site according to my java version (1.4.2) and my database version (oracle 9i 9.2.0.7.0)
    This is the error:
    $java -jar miss.jar "DnBProcess"
    About to start loading parameters for the MISS Proxy.
    Successfully load parameters for the MISS Proxy.
    About to load interface settings for DnBProcess
    Settings for DnBProcess succesffully loaded.
    About to load interface DnBProcess
    About to start loading parameters for DnB Interface.
    Successfully load parameters for DnB Interface.
    Interface DnBProcess succesffully loaded.
    About to execute interface DnBProcess
    Connecting to the database...
    java.lang.NoClassDefFoundError: oracle/jdbc/OracleDriver
    at miss.DnBProcess.ExecuteQueryToFile(DnBProcess.java:85)
    at miss.DnBProcess.Execute(DnBProcess.java:178)
    at miss.Proxy.ExecuteInterface(Proxy.java:160)
    at miss.Proxy.main(Proxy.java:207)
    I know is a classpath problem, and my classpath on VMS looks like this:
    define JAVA$CLASSPATH .,SYS$COMMON:[JAVA$142.LIB]TOOLS.JAR,SYS$COMMON:[JAVA$142.LIB]DT.JAR,SYS$COMMON:[JAVA$142.JRE.LIB]RT.JAR, USER1:[MONTEALEGRE.TEST.LIBS]OJDBC14.JAR,USER1:[MONTEALEGRE.TEST.MISS.LIBS]OJDBC14.JAR,[]
    As you can see I added the �ojdbc14.jar� in different folders but my application seems not to find it.
    Does anyone know how to set the classpath properly on VMS? Or maybe give me some tips that could lead me to find a solution to this problem.
    Thanks.
    Ileana.

    I would try googling for OpenVMS classpath. Unfortunatley the first result is this thread but there are a bunch of resources from IBM and HP listed and maybe they can help you.

  • Error while installing OIM, during the OC4J Instance Configuration Assistan

    Hi, running RHEL 4 32Bit Linux. There's an installation of the SOA Suite 10.1.3.1 (Release 2) on /u01/app/oracle/OracleAS_1, and I am installing OIM on /u01/app/oracle/OraHome_2
    Near the end of the installation, when it's installing the recommended configuration assistants, I get an error while the OC4J Instance Configuration Assistant piece is running.
    Here's the full readout:
    Launched configuration assistant 'OC4J Instance Configuration Assistant'
    Tool type is: Recommended.
    The command being spawned is: '/u01/app/oracle/OraHome_2/jdk/bin/java -Djava.net.preferIPv4Stack=true -Djava.io.tmpdir=/tmp -mx512M -classpath /u01/app/oracle/OraHome_2/dcm/lib/dcm.jar:/u01/app/oracle/OraHome_2/dcm/lib/oc4j_deploy_tools.jar:/u01/app/oracle/OraHome_2/opmn/lib/opmnplugin.jar -Doracle.ias.sysmgmt.logging.logdir=/u01/app/oracle/OraHome_2/j2ee/home/log oracle.j2ee.tools.deploy.Oc4jDeploy -oraclehome /u01/app/oracle/OraHome_2 -verbose -inifile /u01/app/oracle/OraHome_2/j2ee/deploy.ini '
    Start output from spawned process:
    Reading ini file - '/u01/app/oracle/OraHome_2/j2ee/deploy.ini'
    Adding web-app 'wirelesssso-web.war' for app 'wirelesssso'.
    Adding web-app 'web.war' for app 'sso'.
    Adding web-app 'ssohelp.war' for app 'sso'.
    Adding web-app 'pls.war' for app 'sso'.
    OC4J instance 'OC4J_SECURITY': Adding java stop command line option '-server'
    OC4J instance 'OC4J_SECURITY': Adding java command line option '-Xmx512m'
    OC4J instance 'OC4J_SECURITY': Adding Environment variable 'LD_LIBRARY_PATH' with value '/u01/app/oracle/OraHome_2/lib32:/u01/app/oracle/OraHome_2/lib'
    OC4J instance 'OC4J_SECURITY': Adding Environment variable 'DISPLAY' with value 'oracleb.djl.com:0.0'
    Adding web-app 'ui.war' for app 'oiddas'.
    OC4J instance 'OC4J_SECURITY': Adding java stop command line option '-Xss1M'
    Ignoring jvm command-line option '-Xmx512m'. Larger heap already specified with '-Xmx512m'
    OC4J instance 'OC4J_SECURITY': Env Option 'LD_LIBRARY_PATH' already exists with value '/u01/app/oracle/OraHome_2/lib32:/u01/app/oracle/OraHome_2/lib'
    Initializing DCM...done.
    Creating OC4J instance 'OC4J_SECURITY' (protected)...done.
    Adding dependent libraries for application 'default'...done.
    Calling SMI to save changes.
    SMISession.saveChanges succeeded.
    Starting OC4J instance 'OC4J_SECURITY'...done.
    Deploying application 'wirelesssso' to OC4J instance 'OC4J_SECURITY'.
    Notification ==> Application Deployer for wirelesssso STARTS [ 2006-11-27T17:20:23.691EST ]
    Notification ==> Undeploy previous deployment
    Notification ==> Removing files for app file:/u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/wirelesssso.ear
    Notification ==> Copy the archive to /u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/wirelesssso.ear
    Notification ==> Unpack wirelesssso.ear begins...
    Notification ==> Unpack wirelesssso.ear ends...
    Notification ==> Initialize wirelesssso.ear begins...
    Notification ==> Initialize wirelesssso.ear ends...
    Notification ==> Initialize wirelesssso-web begins...
    Notification ==> Initialize wirelesssso-web ends...
    Notification ==> deleting: /u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/wirelesssso.ear
    Notification ==> deleting: /u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/wirelesssso/wirelesssso-web.war
    Notification ==> Application Deployer for wirelesssso COMPLETES [ 2006-11-27T17:20:24.193EST ]
    Deploying application 'oiddas' to OC4J instance 'OC4J_SECURITY'.
    Notification ==> Application Deployer for oiddas STARTS [ 2006-11-27T17:20:24.246EST ]
    Notification ==> Undeploy previous deployment
    Notification ==> Removing files for app file:/u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/oiddas.ear
    Notification ==> Copy the archive to /u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/oiddas.ear
    Notification ==> Unpack oiddas.ear begins...
    Notification ==> Unpack oiddas.ear ends...
    Notification ==> Initialize oiddas.ear begins...
    Notification ==> Initialize oiddas.ear ends...
    Notification ==> Initialize ui begins...
    Notification ==> Initialize ui ends...
    Notification ==> deleting: /u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/oiddas.ear
    Notification ==> deleting: /u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/oiddas/ui.war
    Notification ==> Application Deployer for oiddas COMPLETES [ 2006-11-27T17:20:28.312EST ]
    Deploying application 'sso' to OC4J instance 'OC4J_SECURITY'.
    Notification ==> Application Deployer for sso STARTS [ 2006-11-27T17:20:28.351EST ]
    Notification ==> Undeploy previous deployment
    Notification ==> Removing files for app file:/u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/sso.ear
    Notification ==> Copy the archive to /u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/sso.ear
    Notification ==> Unpack sso.ear begins...
    Notification ==> Unpack sso.ear ends...
    Notification ==> Initialize sso.ear begins...
    Notification ==> Initialize sso.ear ends...
    Notification ==> Initialize web begins...
    Notification ==> Initialize web ends...
    Notification ==> Initialize ssohelp begins...
    Notification ==> Initialize ssohelp ends...
    Notification ==> Initialize pls begins...
    Notification ==> Initialize pls ends...
    Notification ==> deleting: /u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/sso.ear
    Notification ==> deleting: /u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/sso/web.war
    Notification ==> deleting: /u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/sso/ssohelp.war
    Notification ==> deleting: /u01/app/oracle/OraHome_2/j2ee/OC4J_SECURITY/applications/sso/pls.war
    Notification ==> Application Deployer for sso COMPLETES [ 2006-11-27T17:20:29.806EST ]
    Calling updateConfig to notify DCM of new deployments...done.
    Adding OC4J mount points for application 'wirelesssso'...done.
    Adding OC4J mount points for application 'oiddas'...done.
    Adding dependent libraries for application 'sso'...done.
    Adding OC4J mount points for application 'sso'...done.
    Calling SMI to save changes.
    SMISession.saveChanges succeeded.
    Binding web app 'wirelesssso-web' to default-web-site for application 'wirelesssso' in OC4J instance 'OC4J_SECURITY'
    Web app 'wirelesssso-web' bound successfully.
    Binding web app 'ui' to default-web-site for application 'oiddas' in OC4J instance 'OC4J_SECURITY'
    Web app 'ui' bound successfully.
    Binding web app 'web' to default-web-site for application 'sso' in OC4J instance 'OC4J_SECURITY'
    ERROR: Caught exception while binding web app 'web' to default-web-site:
    Calling updateConfig to notify DCM of new web-bindings...java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at oracle.j2ee.tools.deploy.Oc4jDeploy.doDeploy(Unknown Source)
         at oracle.j2ee.tools.deploy.Oc4jDeploy.execute(Unknown Source)
         at oracle.j2ee.tools.deploy.Oc4jDeploy.deploy(Unknown Source)
         at oracle.j2ee.tools.deploy.Oc4jDeploy.main(Unknown Source)
    Caused by: com.evermind.client.orion.AdminCommandException: Disconnected: RMIConnection Disconnected
         at com.evermind.client.orion.BindWebAppCommand.execute(BindWebAppCommand.java:31)
         at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminConsole.java:139)
         ... 8 more
    Caused by: com.evermind.server.rmi.OrionRemoteException: Disconnected: RMIConnection Disconnected
         at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1621)
         at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnection.java:1572)
         at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:55)
         at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:22)
         at __Proxy0.bindWebApp(Unknown Source)
         at com.evermind.client.orion.BindWebAppCommand.execute(BindWebAppCommand.java:28)
         ... 9 more
    done.
    Adding application 'wirelesssso' to the DCM repository...done.
    Application 'wirelesssso' deployed successfully.
    Adding application 'oiddas' to the DCM repository...done.
    Application 'oiddas' deployed successfully.
    Undeploying application 'sso' from OC4J instance 'OC4J_SECURITY'.
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at oracle.j2ee.tools.deploy.Oc4jDeploy.doDeploy(Unknown Source)
         at oracle.j2ee.tools.deploy.Oc4jDeploy.execute(Unknown Source)
         at oracle.j2ee.tools.deploy.Oc4jDeploy.deploy(Unknown Source)
         at oracle.j2ee.tools.deploy.Oc4jDeploy.main(Unknown Source)
    Caused by: com.evermind.client.orion.AdminCommandException: IOException communicating with the remote server: Connection reset
         at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminConsole.java:121)
         ... 8 more
    Caused by: java.net.SocketException: Connection reset
         at java.net.SocketInputStream.read(SocketInputStream.java:168)
         at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
         at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
         at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2508)
         at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2361)
         at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java:1800)
         at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java:725)
         at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:149)
         at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4jAdminConsole.java:106)
         ... 8 more
    FAILED!
    ERROR: Caught exception while undeploying 'sso' from 'OC4J_SECURITY':
    Removing OC4J mount points for application 'sso'...done.
    Calling SMI to save changes.
    SMISession.saveChanges succeeded.
    Calling updateConfig to notify DCM of undeployments...done.
    Stopping OC4J instance 'OC4J_SECURITY'...done.
    Calling SMI to retry init of failed plugins...done.
    Terminating DCM...done.
    Copying /u01/app/oracle/OraHome_2/j2ee/deploy.ini to /u01/app/oracle/OraHome_2/j2ee/deploy.ini.1164667126315.bak.
    Writing any undeployed entries back to /u01/app/oracle/OraHome_2/j2ee/deploy.ini.
    Oc4jDeploy tool completed, but with errors.
    End output from spawned process.
    Any help is appreciated, thanks!

    Hi, did you ever resolve this problem? We've got the same error.
    Cheers,
    Eystein

  • How to create new OC4J instance in AS 10.1.3 with BC4J- and ADF-Libraries

    Hi
    I have done all the steps mentioned in this thread:
    How to create new OC4J instance in AS 10.1.3
    However, the new created OC4J instance obviously misses some libraries. If I deploy my Application to this OC4J I get an internal error: Class not found: oracle.jbo.JboException.
    The same Application runs well in the "home" Instance.
    What is the trick, to create a new OC4J instance, which more or less behaves the same way as the "home" instances (and especially has all the same libraries)?
    Thanks for your help
    Frank Brandstetter

    I encountered this last month. I definitely agree that it is a glaring omission to not have "Create Like" functionality when instantiating new containers. Here's my notes on the manual steps required after using createinstance to create the fresh container. Not too bad. I've been deploying ADF applications to the new container with no problems after this.
    ==============
    The default (home) OC4J container is pre-configured for ADF 10.1.3 applications; however, when $ORACLE_HOME/bin/createinstance is used to create additional containers, these containers are not configured automatically to host ADF 10.1.3 applications.
    I followed these manual steps:
    1. $ORACLE_HOME/j2ee/home/config/server.xml defines three shared libraries that "install" the needed JARs for Oracle ADF applications in your application server instance (container). Note that "install" does not necessarily mean available to applications (see Step 2). Copy the three shared library element definitions to the <application-server> element of your new container (in server.xml).
    <shared-library name="oracle.expression-evaluator" version="10.1.3" library-compatible="true">
         <code-source path="/usr2/oracle/as10130/jlib/commons-el.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/oracle-el.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/jsp-el-api.jar"/>
    </shared-library>
    <shared-library name="adf.oracle.domain" version="10.1.3" library-compatible="true">
         <code-source path="/usr2/oracle/as10130/BC4J/lib"/>
         <code-source path="/usr2/oracle/as10130/jlib/commons-cli-1.0.jar"/>
         <code-source path="/usr2/oracle/as10130/mds/lib/concurrent.jar"/>
         <code-source path="/usr2/oracle/as10130/mds/lib/mdsrt.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/share.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/regexp.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/xmlef.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/adfmtl.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/adfui.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/adf-connections.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/dc-adapters.jar"/>
         <code-source path="/usr2/oracle/as10130/ord/jlib/ordim.jar"/>
         <code-source path="/usr2/oracle/as10130/ord/jlib/ordhttp.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/ojmisc.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/jdev-cm.jar"/>
         <code-source path="/usr2/oracle/as10130/lib/xsqlserializers.jar"/>
         <import-shared-library name="oracle.xml"/>
         <import-shared-library name="oracle.jdbc"/>
         <import-shared-library name="oracle.cache"/>
         <import-shared-library name="oracle.dms"/>
         <import-shared-library name="oracle.sqlj"/>
         <import-shared-library name="oracle.toplink"/>
         <import-shared-library name="oracle.ws.core"/>
         <import-shared-library name="oracle.ws.client"/>
         <import-shared-library name="oracle.xml.security"/>
         <import-shared-library name="oracle.ws.security"/>
         <import-shared-library name="oracle.ws.reliability"/>
         <import-shared-library name="oracle.jwsdl"/>
         <import-shared-library name="oracle.http.client"/>
         <import-shared-library name="oracle.expression-evaluator"/>
    </shared-library>
    <shared-library name="adf.generic.domain" version="10.1.3" library-compatible="true">
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/bc4jdomgnrc.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/lib"/>
         <code-source path="/usr2/oracle/as10130/jlib/commons-cli-1.0.jar"/>
         <code-source path="/usr2/oracle/as10130/mds/lib/concurrent.jar"/>
         <code-source path="/usr2/oracle/as10130/mds/lib/mdsrt.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/share.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/regexp.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/xmlef.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/adfmtl.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/adfui.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/adf-connections.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/dc-adapters.jar"/>
         <code-source path="/usr2/oracle/as10130/ord/jlib/ordim.jar"/>
         <code-source path="/usr2/oracle/as10130/ord/jlib/ordhttp.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/ojmisc.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/jdev-cm.jar"/>
         <code-source path="/usr2/oracle/as10130/lib/xsqlserializers.jar"/>
         <import-shared-library name="oracle.xml"/>
         <import-shared-library name="oracle.jdbc"/>
         <import-shared-library name="oracle.cache"/>
         <import-shared-library name="oracle.dms"/>
         <import-shared-library name="oracle.sqlj"/>
         <import-shared-library name="oracle.toplink"/>
         <import-shared-library name="oracle.ws.core"/>
         <import-shared-library name="oracle.ws.client"/>
         <import-shared-library name="oracle.xml.security"/>
         <import-shared-library name="oracle.ws.security"/>
         <import-shared-library name="oracle.ws.reliability"/>
         <import-shared-library name="oracle.jwsdl"/>
         <import-shared-library name="oracle.http.client"/>
         <import-shared-library name="oracle.expression-evaluator"/>
    </shared-library>
    2. To make the necessary ADF and JSF support libraries available to your deployed ADF application, the default application (that your ADF application and the majority of applications should inherit from) should explicitly import the shared library in the <orion-application> element of $ORACLE_HOME/j2ee/<your container>/config/application.xml.
    <imported-shared-libraries>
         <import-shared-library name="adf.oracle.domain"/>
    </imported-shared-libraries>
    Note: the adf.oracle.domain shared library imports several other shared libraries including oracle.expression-evaluator.

  • JNDI problems in OC4J

    Hi,
    I'm running OC4J integrated with the SOA Suite 10.1.3.3.
    I have a legacy web service created with XFire and deployed in OC4J, lets call it HelloWorldService. I would like to bind a POJO object from within this service with JNDI.
    I would then like to lookup this object from another web service which is a EJB3 session bean, deployed in the same OC4J instance. Lets call it LookupBean.
    I can see in the JNDI browser that the POJO is bound under the HelloWorldService. But when i try to lookup the POJO i get an error saying that the POJO cannot be found.
    This is how i bind the POJO from HelloWorldService
    Context initialContext = new InitialContext();
    initialContext.bind("HelloWorldServicePOJO", obj);
    This is how i try to do the lookup from LookupBean:
    Hashtable env = new Hashtable();
    env.put("java.naming.factory.initial",
    "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put("java.naming.provider.url","ormi://localhost:12401/HelloWorldService");
    //env.put("java.naming.provider.url","opmn:ormi://localhost:6003:home/HelloWorldService");
    env.put("java.naming.security.principal","oc4jadmin");
    env.put("java.naming.security.credentials","oc4jadmin");
    Context context = new InitialContext(env);
    POJO obj = (POJO) context.lookup("HelloWorldServicePOJO");
    I have tried also with the out commented line above, but it does not work. What can be wrong?
    Thanks,
    Mattias

    Hi,
    thanks for the link, but I already knew it and read a lot in it. I still don't get what exactly is going wrong. I replaced the jgroups-core.jar by my jgroups-jar which results in the same exception. It also seems that somehow the commons-logging.jar-classes from /webservices is being loaded even though it's not in the classpath of my application. I noticed this when I replaced every commons-logging.jar by the commons-logging-api.jar from JCL 1.0.4 (which we use in our application) since my EJBs could not be loaded then due to the following problem:
    06/08/04 15:34:42 oracle.oc4j.admin.internal.DeployerException: java.lang.InstantiationException: Error initializing ejb-modules: [cms-core:pbb-jms-receiver-1.0:Importer_Topic] - Unable to load ejb-class com.pironet.pbng.jms.mdb.asynchron.ImporterTopicSubscriber, see section 23.2 of the EJB 2.1 specificationjava.lang.ExceptionInInitializerError
    06/08/04 15:34:42 at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication(ApplicationDeployer.java:510)
    06/08/04 15:34:42 Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Category
    06/08/04 15:34:42 at java.lang.Class.getDeclaredConstructors0(Native Method)
    06/08/04 15:34:42 at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
    06/08/04 15:34:42 at java.lang.Class.getConstructor0(Class.java:2640)
    06/08/04 15:34:42 at java.lang.Class.getConstructor(Class.java:1629)
    06/08/04 15:34:42 at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:410)
    06/08/04 15:34:42 ... 27 more
    It seems like the initialization of the jchannel happens, even though it's being initialized in my application, in one of the classloaders which don't have access to my libs...and I'm definitely not going to add all my jars into locations the root-classloader (or whoever) has access to.

  • JNDI lookup name in a standalone oc4j instance

    Hi,
    Could you please let me know how to create a JNDI lookup name for a database in a stanalone OC4j Instance?
    Both OC4J and oracle 9i database are in the same server.
    Thanks in advance,
    Sukonya

    Hi,
    I have the oracle 9i database as well as the oc4j instance in my local machine.I am trying to deploy a J2ee Application on the OC4j instance,using eclipse IDE.I have not created any connection pool or datasource in the oc4j instance but after i build the application I see that the connection pool and datasource instance have been created in the OC4j instance.
    following are the contents of the build.xml file(for the ant build tool)
    <?xml version="1.0" encoding="UTF-8" ?>
    - <project name="TicketLoggingSystem" default="bind-web-app" basedir="../">
    <property name="app.server" value="D:/oc4j/j2ee/home" />
    <property name="dest.dir" value="${basedir}/dest" />
    <property name="war.file" value="${dest.dir}/TicketLoggingSystem.war" />
    <property name="ear.file" value="${dest.dir}/TicketLoggingSystem.ear" />
    <property name="web.inf" value="${basedir}/WEB-INF" />
    <property name="web.classes" value="${dest.dir}/classes" />
    <property name="app.xml" value="${basedir}/application.xml" />
    <property name="src.dir" value="${basedir}/src" />
    <property name="oc4j.host" value="localhost" />
    <property name="oc4j.admin.port" value="23791" />
    <property name="oracle.home" value="D:/oc4j" />
    <property name="j2ee.home" value="${oracle.home}/j2ee/home" />
    <property name="oc4j.admin.username" value="oc4jadmin" />
    <property name="oc4j.admin.password" value="welcome" />
    <property name="oc4j.ormi" value="ormi://${oc4j.host}:${oc4j.admin.port}" />
    <property name="app.name" value="TicketLoggingSystem" />
    <property name="jdbc.url" value="jdbc:oracle:thin:@localhost:1521:80" />
    <property name="jdbc.username" value="scott" />
    <property name="jdbc.password" value="tiger" />
    <property name="connection.driver" value="oracle.jdbc.driver.OracleDriver" />
    <property name="connection.datasource" value="oracle.jdbc.pool.OracleDataSource" />
    <property name="xa.location" value="jdbc/xa/MpsiDS" />
    - <!-- Delete dest folder
    -->
    - <target name="init">
    <delete dir="${dest.dir}" includeemptydirs="true" />
    <mkdir dir="${dest.dir}" />
    <mkdir dir="${web.classes}" />
    </target>
    - <!-- Compile all Java files
    -->
    - <target name="wscompile">
    - <javac srcdir="${src.dir}" destdir="${web.classes}" deprecation="on" debug="on">
    <exclude name="**/*.properties,**/*.xml" />
    - <classpath>
    <fileset dir="${web.inf}/lib" includes="*.jar" />
    <fileset dir="${app.server}/lib" includes="servlet.jar" />
    </classpath>
    </javac>
    </target>
    - <!-- Build Web archive file
    -->
    - <target name="buildWar" depends="init,wscompile">
    - <war destfile="${war.file}" webxml="${web.inf}/web.xml">
    - <fileset dir="${basedir}">
    <include name="content*/**" />
    </fileset>
    <webinf dir="${web.inf}" includes="*.xml,*.tld" excludes="web.xml" />
    <classes dir="${web.inf}/classes" />
    <lib dir="${web.inf}/lib" includes="*.jar" />
    </war>
    </target>
    - <!-- Build Enterprsie Archive
    -->
    - <target name="buildEar" depends="buildWar">
    - <ear destfile="${ear.file}" appxml="${app.xml}">
    <fileset dir="${dest.dir}" includes="*.war" />
    </ear>
    </target>
    - <!-- Checking availability of oc4j
    -->
    - <target name="check-oc4j-available">
    <echo message="------> Checking to see if OC4J is started ." />
    <echo message="[checking oc4j on machine =${oc4j.host}]" />
    <echo message="[port=${oc4j.admin.port}]" />
    - <condition property="oc4j.started">
    <socket server="${oc4j.host}" port="${oc4j.admin.port}" />
    </condition>
    </target>
    - <!-- Remove data source
    -->
    - <target name="remove-data-source" depends="check-oc4j-available" if="oc4j.started">
    <echo message="Removing DataSource" />
    - <java jar="${j2ee.home}/admin.jar" fork="true">
    <arg value="${oc4j.ormi}" />
    <arg value="${oc4j.admin.username}" />
    <arg value="${oc4j.admin.password}" />
    <arg value="-application" />
    <arg value="${app.name}" />
    <arg value="-removeDataSource" />
    <arg value="-location" />
    <arg value="jdbc/TicketLoggingSystem" />
    </java>
    <echo message="Removed DataSource Successfully" />
    </target>
    - <!-- Undeploy
    -->
    - <target name="undeploy" depends="remove-data-source" description="Undeploying the application" if="oc4j.started">
    <echo message="Undeploying the Application ${app.name}" />
    - <java jar="${j2ee.home}/admin.jar" fork="true">
    <arg value="${oc4j.ormi}" />
    <arg value="${oc4j.admin.username}" />
    <arg value="${oc4j.admin.password}" />
    <arg value="-undeploy" />
    <arg value="${app.name}" />
    </java>
    <echo message="Undeploying the Application ${app.name} is Successful" />
    </target>
    - <!-- Deploy
    -->
    - <target name="deploy" depends="undeploy,buildEar" if="oc4j.started">
    <echo message="Deploying the Application ${app.name}" />
    - <java jar="${j2ee.home}/admin.jar" fork="true">
    <arg value="${oc4j.ormi}" />
    <arg value="${oc4j.admin.username}" />
    <arg value="${oc4j.admin.password}" />
    <arg value="-deploy" />
    <arg value="-file" />
    <arg value="${ear.file}" />
    <arg value="-deploymentName" />
    <arg value="${app.name}" />
    </java>
    <echo message="Deploying the Application ${app.name} is Successful" />
    </target>
    - <!-- Create data source
    -->
    - <target name="create-data-source" depends="check-oc4j-available" if="oc4j.started">
    <echo message="Creating DataSource for Application ${app.name}" />
    - <java jar="${j2ee.home}/admin.jar" fork="true">
    <arg value="${oc4j.ormi}" />
    <arg value="${oc4j.admin.username}" />
    <arg value="${oc4j.admin.password}" />
    <arg value="-application" />
    <arg value="${app.name}" />
    <arg value="-installDataSource" />
    <arg value="-jar" />
    <arg value="${oracle.home}/jdbc/lib/ojdbc14dms.jar" />
    <arg value="-url" />
    <arg value="${jdbc.url}" />
    <arg value="-connectionDriver" />
    <arg value="${connection.driver}" />
    <arg value="-location" />
    <arg value="jdbc/TicketLoggingSystem" />
    <arg value="-username" />
    <arg value="${jdbc.username}" />
    <arg value="-password" />
    <arg value="${jdbc.password}" />
    <arg value="-className" />
    <arg value="${connection.datasource}" />
    </java>
    <echo message="Created DataSource Successfully for Application ${app.name}" />
    </target>
    - <!-- Binding web-app
    -->
    - <target name="bind-web-app" depends="deploy,create-data-source" if="oc4j.started">
    <echo message="executing bind web app" />
    - <java jar="${j2ee.home}/admin.jar" fork="true">
    <arg value="${oc4j.ormi}" />
    <arg value="${oc4j.admin.username}" />
    <arg value="${oc4j.admin.password}" />
    <arg value="-bindWebApp" />
    <arg value="${app.name}" />
    - <!-- app deployname
    -->
    <arg value="${app.name}" />
    - <!-- web module name
    -->
    <arg value="default-web-site" />
    - <!-- web site name
    -->
    <arg value="/${app.name}" />
    - <!-- context root
    -->
    </java>
    <echo message="Access the application using: http://${oc4j.host}:8888/${app.name}" />
    </target>
    </project>
    Following are the contents of Oc4J home->services->jdbc resources:
    Datasource:
    Name jdbc/TicketLoggingSystem
    Application TicketLoggingSystem
    JNDI Location jdbc/TicketLoggingSystem
    Connection Pool
    Managed by OC4j
    Test
    when i click the datasource name,I see that its type is Native datasource with no related connection pool.
    Whereas for the default datasource oracleDS,
    Type     Managed Data Source
    Connection Pool     Example Connection Pool
    However on deployment a connection pool is also created along with the datasource
    Name jdbc/TicketLoggingSystem_connectionPool
    Application TicketLoggingSystem
    ConnectionFactory class : oracle.jdbc.pool.OracleDataSource
    Do we need to bind this connection pool to our datasource?If yes how is it done.And if that is not required,why is this connection pool created?Are the datasource and connection pool already bound to each other?
    Also when I test either the datasource or connection pool,it says
    Confirmation     
    Connection to "jdbc/TicketLoggingSystem_connectionPool" established successfully
    or
    Connection to "jdbc/TicketLoggingSystem" established successfully.
    and displays both the connection pool and datasource details together for both the tests.
    In my java code,while trying to establish connection to the database what should I mention in lookup i.e,
    InitialContext context = new InitialContext();
    DataSource dataSource = (DataSource) context.lookup("     jdbc/TicketLoggingSystem or      jdbc/TicketLoggingSystem_connectionPool");
    con = dataSource.getConnection();
    Sorry if I am sounding novice.Thanks a lot in advance,
    Sukanya

  • JInitiator and OC4J Instance

    HI Gentlemen,
    On my 9i DB, 9i DS when I uninstalled JInitiator 1.3.9 through the Control Panel, I could start OC4J Instance (JInitiator was automatically installed when I typed "Yes"). However, when I shut down OC4J Instance, exited from XP and then tried to start OC4J Instance anew, I got the address in use error--JVM_Bind. Uninstalling JVM again did not help.
    Please drop a few lines to me, it is an existing medical application that I can not start now--it is very serious a problem.
    Thank you very much, kind regards from
    Miklos HERBOLY

    ... forget the part about the classpath.
    try and request http:// servername:port/forms90/java/f90all_jinit.jar
    If this doesn't start the download of f90all_jinit.jar, then there is something wrong with the configuration. If it downloads, please follows the rest of Ahmed's suggestion.
    Frank

  • Single SOA Suite Install with multiple oc4j instances and java processes

    We right now have 5 BPEL processes and 5 ESB processes all running under one java.exe process. We would like to seperate some of
    them out into their own java.exe processes without having to install more
    %ORACLE_HOME% instances of SOA Suite. I can create an oc4j instance but of
    course it doesn't have any SOA Suite stuff deployed to it. I tried to see what
    the install would do with this new oc4j instance but it wants to create a new
    %ORACLE_HOME% with an entire installation of SOA Suite.
    Is there some sort of way to clone oc4j instances that have SOA Suite deployed to them so that you
    don't need multiple %ORACLE_HOME% instances?
    ### How is this Issue Impacting Your Business ###
    We really don't want to have a lot of %ORACLE_HOME% instances to have to maintain. We are
    migrating projects over from our current integration server product and we'll
    have potentially dozens more BPEL and ESB projects. We definitely want to
    group and isolate projects so that outages of one project do not bring down
    others that are unrelated.
    We are currently experiencing periodic problems with one BPEL project that requires recycling but all the other BPEL and ESB
    projects get recycled also. If we could put this project into it's own java
    process without creating another SOA SUITE instance, it would be a big
    help.
    ANSWER
    =======
    You can create multiple domains in BPEL or create multiple systems/groups in ESB to group different projects.
    MY REPLY:
    =========
    We have been using systems/groups in ESB but they all run under the save java.exe process. I would assume that having a seperate domain in BPEL would also run in that same java.exe process.
    Right now, the one BPEL project we have a problem with will gobble up all the JDBC connections from time to time and that requires a recycle of SOA Suite, which means all BPEL and ESB projects that run in that java.exe process get recycled also. We're working that issue in a different ticket.
    It would be nice if the SOA Suite installation would install against a new oc4j instance and not assume it has to create a complete %ORACLE_HOME% instance. The components of SOA Suite seem to be J2EE based components.
    Scenario: I already have an oc4j instance called oc4j_soa and a complete %ORACLE_HOME% installation of soa suite. I then create a new oc4j instance from Enterprise Manager. Then I would deploy the esb-dt, esb-rt, orabpel, etc. components of SOA Suite to that new oc4j instance and modify the necessary config file so that it can work with OHS and the SOA Suite Databases. Is this possible?
    Does anyone have any experience with this or do people typically install multiple complete installation of SOA Suite with mulitple Oracle Homes?

    Hi,
    yes, on metalink you get in touch with real experts....
    You have to install serveral application servers to get different ORACLE_HOMEs.
    For each one, you can install a BPEL PM.
    But: For each BPEL PM you need your own database instance, or you have to configure them as a clustered BPEL installation.... (but i do not know if this work with non RAC DBs)

  • OC4J Instance Configuration Assistant Hanging Whilst Applying Patch 4960210

    Hi all,
    I'm experiencing an issue whilst trying to apply Patch 4960210 (10.1.2.2) onto my existing Application Server 10g Relesae 2 (Discoverer 10.1.2.0) on a Windows platform.
    The problem is that the OC4J Instance Configuration assistant just hangs at the Initializing DCM stage:
    <p>
    Configuration assistant "Application Server website Configuration Assistant" succeeded
    Result code for launching of configuration assistant is: 0
    Launched configuration assistant 'OC4J Instance Configuration Assistant'
    Tool type is: Recommended.
    The command being spawned is: 'C:\oracle\orabise/jdk/bin/javaw.exe -Djava.io.tmpdir=C:\DOCUME~1\GARYWI~1\LOCALS~1\Temp -mx512M -classpath C:\oracle\orabise/dcm/lib/dcm.jar;C:\oracle\orabise/dcm/lib/oc4j_deploy_tools.jar -Djava.library.path="C:\oracle\orabise\lib32;C:\oracle\orabise\bin;C:\Program Files\PC Connectivity Solution\;C:\oracle\orabisetools\bin;C:\oracle\orabisetools\jlib;C:\oracle\orabisetools\jre\1.4.2\bin\client;C:\oracle\orabisetools\jre\1.4.2\bin;C:\oracle\orabise\jdk\jre\bin\classic;C:\oracle\orabise\jdk\jre\bin;C:\oracle\orabise\bin;C:\oracle\orabise\jlib;C:\oracle\orabip\jre\1.4.2\bin\client;C:\oracle\orabip\jre\1.4.2\bin;C:\oracle\DevSuiteHome10g;C:\oracle\DevSuiteHome10g\jdk\jre\bin\classic;C:\oracle\DevSuiteHome10g\jdk\jre\bin;C:\oracle\DevSuiteHome10g\jdk\jre\bin\client;C:\oracle\DevSuiteHome10g\jlib;C:\oracle\DevSuiteHome10g\bin;C:\oracle\DevSuiteHome10g\jre\1.4.2\bin\client;C:\oracle\DevSuiteHome10g\jre\1.4.2\bin;C:\oracle\oraclexe\app\oracle\product\10.2.0\server\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Wave Systems Corp\Gemalto\Access Client\v5\;C:\Program Files\Gemplus\GemSafe Libraries\BIN;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared" -Doracle.ias.sysmgmt.logging.logdir=C:\oracle\orabise/j2ee/home/log oracle.j2ee.tools.deploy.Oc4jDeploy -oraclehome C:\oracle\orabise -verbose -inifile C:\oracle\orabise/j2ee/deploy.ini -redeploy'
    </p>
    <p>
    Start output from spawned process:
    </p>
    <p>
    Reading ini file - 'C:\oracle\orabise/j2ee/deploy.ini'
    Adding web-app 'discoverer.war' for app 'discoverer'.
    OC4J instance 'OC4J_BI_Forms': Adding Environment variable 'DISPLAY' with value 'localhost:0'
    OC4J instance 'OC4J_BI_Forms': Adding property 'oracle.forms.configFileName=C:/oracle/orabise/forms/server/formsweb.cfg'
    OC4J instance 'OC4J_BI_Forms': Adding property 'oracle.path=C:/oracle/orabise/bin;C:/oracle/orabip/jre/1.4.2/bin/client;C:/oracle/orabip/jre/1.4.2/bin;C:/oracle/DevSuiteHome10g;C:/oracle/DevSuiteHome10g/jdk/jre/bin/classic;C:/oracle/DevSuiteHome10g/jdk/jre/bin;C:/oracle/DevSuiteHome10g/jdk/jre/bin/client;C:/oracle/DevSuiteHome10g/jlib;C:/oracle/DevSuiteHome10g/bin;C:/oracle/DevSuiteHome10g/jre/1.4.2/bin/client;C:/oracle/DevSuiteHome10g/jre/1.4.2/bin;C:/oracle/oraclexe/app/oracle/product/10.2.0/server/bin;C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;C:/Program Files/NTRU Cryptosystems/NTRU TCG Software Stack/bin/;C:/Program Files/Wave Systems Corp/Gemalto/Access Client/v5/;C:/Program Files/Gemplus/GemSafe Libraries/BIN;C:/Program Files/Common Files/Roxio Shared/DLLShared/;C:/Program Files/Common Files/Roxio Shared/9.0/DLLShared/'
    OC4J instance 'OC4J_BI_Forms': Adding OC4J start command line option '-userThreads'
    OC4J instance 'OC4J_BI_Forms': Adding Environment variable 'LD_LIBRARY_PATH' with value 'C:\oracle\orabise\lib32:C:\oracle\orabise\lib:C:\oracle\orabise\jdk\jre\lib\sparc'
    OC4J instance 'OC4J_BI_Forms': Env Option 'LD_LIBRARY_PATH' already exists with value 'C:\oracle\orabise\lib32:C:\oracle\orabise\lib:C:\oracle\orabise\jdk\jre\lib\sparc'
    OC4J instance 'OC4J_BI_Forms': Adding property 'java.rmi.server.randomIDs=true'
    OC4J instance 'OC4J_BI_Forms': Adding property 'oracle.disco.activation.preferencePort=16001'
    OC4J instance 'OC4J_BI_Forms': Adding java command line option '-Xmx512M -Xms128M'
    OC4J instance 'OC4J_BI_Forms': Adding property 'oracle.discoverer.applications.port=7778'
    OC4J instance 'OC4J_BI_Forms': Adding property 'oracle.discoverer.applications.host=D9GVDX1S'
    Initializing DCM...
    Any light or suggestions anyone can shed on this greatly appreciated. The install has been hanging now for over 2hrs.
    Kind Regards,
    Gary.
    </p>

    What does "adopmnctl.sh status" return?
    Do you have proper entry in the hosts file?
    Did you source the correct env file before running the installer?
    Can you find any errors in the opmn.log file?
    Can you ignore the error and continue with the installation?
    Thanks,
    Hussein

  • OC4J 10.1.3.0.0 :: How to create a Parent OC4J Instance ?

    Hi,
    I have an Oracle Application Server Instance on a Windows System :-
    D:\OraAppServer1\j2ee\home>ver
    Microsoft Windows 2000 [Version 5.00.2195]
    D:\OraAppServer1\j2ee\home>java -jar oc4j.jar -version
    Oracle Containers for J2EE 10g (10.1.3.0.0)  (build 060119.1546.05277)I have created two OC4J Instances & the hierarchy is as follows :-
    home
    |
    |
    |-------OC4J_SS1
    |
    |-------OC4J_SS2Now, I am trying to create an additional OC4J instance that can act as the parent instance for the two OC4J isntances. I am trying to setup a hieararchy that looks like this :-
    home
    |
    |
    |-------OC4J_SS
                  |
                  |-------OC4J_SS1
                  |
                  |-------OC4J_SS2The reason for this setup is to have a Parent JNDI NameSpace that the Child Instances can access. We are trying to setup JMS Queues ( File / Memory based Persistence ) & the applications in both the instances ( MDBs ) will be listening to the same Queues.
    We are trying to setup the Queues in the Parent OC4J ( OC4J_SS ) so that the applications in OC4J_SS1 and OC4J_SS2 can access the Queues.
    We noticed that the createInstance command does not have the facility to specify the parent - all the OC4J Instances seem to inherit from the default home instance.
    D:\OraAppServer2\opmn\bin>createinstance -?
    Error: Unknown argument: -?
    Usage:
    createinstance <arguments>
    where arguments are:
      -instanceName <name> :Name of new instance to be created.
      -port <http port>    :(optional)User specified HTTP port.
                            Required in J2EE Server and Process Management
                            install type only.
      -startASControl      :(optional)Start the Application Server Control
                            when starting this new instance.
      -ASControlIsRoutable :(optional)Make the Application Server Control
                            routable when started.We do not want to play with the home instance - instead, we want to deploy our solutions in our own OC4Js.
    Can you please guide us in this solution ?
    Please do let me know if I need to include any other information.
    Regards,
    Sandeep

    Hi Steve,
    Thanks again - I was able to create a Group & put the OC4J instances that I need as a Group.
    It's a very useful feature.
    Now, when I check the Administration page for the Group,
    I notice that I can " Create/delete/view _____________ for the instances in this group."
    I do not want to replicate the JNDI Connection settings for every instance in my Group
    ( the # could easily bloat up to 5 / 6 in the future ).
    I am trying to create a common JNDI Lookup Service that will be available to both the OC4J Instances.
    It's something like this:-
    |          |
    |   OC4J_SS1     |
    |          |
    |          |
         |
         |
         |
         V
    |          |------> jdbc / xxxxx
    |   Group JNDI  |------> jms  / xxxxx ( especially, file based Queues )
    |   Bindings     |
    |          |
         ^
         |
         |
         |
    |          |
    |   OC4J_SS2     |
    |          |
    |          |
    ----------------Is this possible in OC4J ? Or, do I need to use a heavy duty product like the
    Oracle Internet Directory to achieve this ?
    Can you once again post some Documents / WhitePapers that discuss this ?
    Regards,
    Sandeep

  • Error while undeploying/creating OC4J instance

    Hi,
    following error is shown while I'm trying to undeploy an application on AS 10.1.2.0.2:
    An error occured while undeploying the application. An exception has occurred while manipulating the DCM repository
    database. Please refer to the accompanying exception for more details.
    Resolution:
    Base Exception:
    java.sql.SQLException
    OALL8 is in an inconsistent state.. OALL8 is in an inconsistent state.
    And following while creating a new OC4J instance:
    An exception has occurred while manipulating the DCM repository
    database. Please refer to the accompanying exception for more details.
    According to google the OALL8 has something to do with the JDBC driver.
    Thanks in advance,
    Koen Verhulst

    Are you doing this using the EM GUI? Or using dcmctl?
    Either way, I'd try to remove the lk file that you had (no idea why that file was around - did you do multiple installs on the same box?)
    and then retry the operation.

  • Unable to deploy a simple WAR / EAR file on Standalone OC4J instance

    All,
    This issue is baffling me since yesterday and while I continue to look for options , would appreciate if anyone of you has run into something similar and give me some hints on how to proceed on this ..
    I downloaded the Standalone OC4J ( 10.1.3 ) from otn.oracle.com and also downloaded JDK 1.5 Update 12 from the Sun Website and installed it on my local
    Windows XP machine. Everything works well and the application gets deployed.
    I then copied the 10.1.3 Standalone OC4J to the Solaris 5.9 box which already
    has JDK 1.5 Update 12 installed. We extracted the OC4J to its own directory , set the Java_Home and the Oracle_Home environment variables and were able to
    startup the OC4J instance.
    However when trying to deploy even a simple HelloWorld.jsp file packaged as an EAR or WAR , we get these errors..
    [Aug 8, 2008 9:40:27 AM] Application Deployer for CISS STARTS.
    [Aug 8, 2008 9:40:27 AM] Copy the archive to /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/CISS.ear
    [Aug 8, 2008 9:40:28 AM] Initialize /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/CISS.ear begins...
    [Aug 8, 2008 9:40:28 AM] Unpacking CISS.ear
    [Aug 8, 2008 9:40:28 AM] Error while unpacking CISS.ear java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:203) at java.util.jar.JarFile.(JarFile.java:132) at java.util.jar.JarFile.(JarFile.java:97) at oracle.oc4j.util.FileUtils.unjar(FileUtils.java:309) at oracle.oc4j.util.FileUtils.autoUnpack(FileUtils.java:488) at com.evermind.server.deployment.EnterpriseArchive.(EnterpriseArchive.java:234) at oracle.oc4j.admin.internal.ApplicationDeployer.initArchive(ApplicationDeployer.java:412) at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:187) at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93) at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52) at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298) at java.lang.Thread.run(Thread.java:595)
    [Aug 8, 2008 9:40:28 AM] Operation failed with error: Unable to find/read file META-INF/application.xml in /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/CISS (META-INF/application.xml)
    Using the above error messages , I certainly do not find the CISS.ear file getting copied to /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/CISS.ear
    which explains the rest of the messages.
    I have tried placing the EAR file both remote and local on the Application Server box but the results remain the same. Assuming it might be a permissions issue , we have opened up all the permissions on this OC4J home ( recursively )
    to everyone ..
    Is there a specific version of tar / unzip / jar required to deploy EARs / WARs on Solaris 5.9 running JDK 1.5 Update 12.
    We had some issues when extracting OC4J to its directory but there were no errors displayed on the screen ... Only when we tried starting up the OC4J instance , it started complaining about missing XML files .. This was resolved by manually extracting the XML's from the corresponding jars and placing them in the proper directories ..
    Also looked at Bug:6330834 but am not very sure if this applies to our case because all these drives are local to the Sun box.
    Other than attempting a reinstall and opening an Service Request with Oracle , I am running out of ideas at this time ..
    So any ideas / hints would be gladly accepted :)
    Vishwa

    When you say:
    I then copied the 10.1.3 Standalone OC4J to the Solaris 5.9 box which already has JDK 1.5 Update 12 installed. We extracted the OC4J to its own directory , set the Java_Home and the Oracle_Home environment variables and were able to
    startup the OC4J instance.
    We had some issues when extracting OC4J to its directory but there were no errors displayed on the screen ... Only when we tried starting up the OC4J instance , it started complaining about missing XML files .. This was resolved by manually extracting the XML's from the corresponding jars and placing them in the proper directories ..
    It sounds like you have some funky issues there with those missing XML files -- that is not expected or normal.
    Do you mean you copied the same oc4j_extended.zip to the server and unzipped it, or you zipped up the directories you were using on the Windows box, copied that over, and unzipped it?
    I don't know of any problems with Solaris, JDK5, U12.
    What about if you do this to remove any issues with the remote copy aspect of the deployment.
    1. Stop OC4J.
    2. Manually copy CISS.ear to /home/aplperdev1/ssp_java/oc4j/j2ee/home/applications/
    3. Edit the j2ee/home/config/server.xml file and add the entry to deploy the application
    4. Edit the j2ee/home/config/default-web-site.xml and bind any web-modules you need.
    5. Start the server and see what happens -- the application should be deployed.
    Also, what happens if you use the $JAVA_HOME/bin/jar to try and view the contents of the CISS.ear file?
    -steve-

Maybe you are looking for