Unable to Run JDeveloper -- Starting OC4J

Hi,
I am getting the below error, when i run application on Jdev 10.1.3
Appreciate your help
Vishnu
[Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
**** Unable to obtain password from principals.xml. Using default.
C:\Jdev1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config>
"C:\Program Files\Java\jdk1.5.0_06\bin\javaw.exe" -client -classpath C:\Jdev1013\j2ee\home\oc4j.jar;C:\Jdev1013\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\Jdev1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config\server.xml
[waiting for the server to complete its initialization...]
Fatal error: Cannot find class java/lang/StackOverflowError
2006-08-27 11:50:11.811 ERROR J2EE EJB3027 [system] An error occured deploying EJB module: java.lang.InstantiationException: Error loading module file:/C:/Jdev1013/jdev/system/oracle.j2ee.10.1.3.36.73/embedded-oc4j/applications/admin_ejb.jar: Syntax error in source or compilation failed in: C:\Jdev1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\application-deployments\admin_ejb\generated\MBeanServerEjbRemote_StatefulSessionBeanWrapper0.java
Fatal error: Cannot find class java/lang/StackOverflowError
06/08/27 11:50:11 WARNING: Application.setConfig Application: system is in failed state as initialization failedjava.lang.InstantiationException: Error initializing ejb-modules: Error loading module file:/C:/Jdev1013/jdev/system/oracle.j2ee.10.1.3.36.73/embedded-oc4j/applications/admin_ejb.jar: Syntax error in source or compilation failed in: C:\Jdev1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\application-deployments\admin_ejb\generated\MBeanServerEjbRemote_StatefulSessionBeanWrapper0.java
Fatal error: Cannot find class java/lang/StackOverflowError
Aug 27, 2006 11:50:11 AM com.evermind.server.Application setConfig
WARNING: Application: system is in failed state as initialization failedjava.lang.InstantiationException: Error initializing ejb-modules: Error loading module file:/C:/Jdev1013/jdev/system/oracle.j2ee.10.1.3.36.73/embedded-oc4j/applications/admin_ejb.jar: Syntax error in source or compilation failed in: C:\Jdev1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\application-deployments\admin_ejb\generated\MBeanServerEjbRemote_StatefulSessionBeanWrapper0.java
Fatal error: Cannot find class java/lang/StackOverflowError
06/08/27 11:50:11 Error initializing server: Error initializing ejb-modules: Error loading module file:/C:/Jdev1013/jdev/system/oracle.j2ee.10.1.3.36.73/embedded-oc4j/applications/admin_ejb.jar: Syntax error in source or compilation failed in: C:\Jdev1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\application-deployments\admin_ejb\generated\MBeanServerEjbRemote_StatefulSessionBeanWrapper0.java
Fatal error: Cannot find class java/lang/StackOverflowError
06/08/27 11:50:11 Fatal error: server exiting
Process exited with exit code 1.

Hello,
You are correct, you need to change the JMS port.
When using OC4J stand alone, you can change the port by editing the following files:
- JMS: $ORACLE_HOME/j2ee/home/config/jmx.xml
- RMI: $ORACLE_HOME/j2ee/home/config/rmi.xml
- HTTP : $ORACLE_HOME/j2ee/home/config/default-web-site.xml (or any site you are using)
Look for the port attribute in the XML document.
Note that when you are usign a managed version of OracleAS, OPMN (Oracle Process Manager and Notification) is managing port conflicting automatically.
Regards
Tugdual Grall

Similar Messages

  • Unable to run Oracle JDeveloper

    H i all
    I just installed Jdeveloper in my system and am using mysql 4.1 as database. I am not able to rum my application as it still cannot find the com.jdbc.mysql.driver. Though i have given the library path of JConnector - mysql-connector-java-3.1.14 under project properties.
    Please let me know what is the problem
    thanks
    gdinesh
    Following is the trace of OC4J when i run it
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\JDeveloper\jdev\system\oracle.j2ee.10.1.3.40.66\embedded-oc4j\config>
    C:\JDeveloper\jdk\bin\javaw.exe -client -classpath C:\JDeveloper\j2ee\home\oc4j.jar;C:\JDeveloper\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -XX:MaxPermSize=256m -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\JDeveloper\jdev\system\oracle.j2ee.10.1.3.40.66\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    Apr 8, 2007 11:37:26 PM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    Apr 8, 2007 11:37:26 PM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    Apr 8, 2007 11:37:26 PM com.evermind.server.jms.JMSMessages log
    SEVERE: Failed to set the internal configuration of the OC4J JMS Server with: XMLJMSServerConfig[file:/C:/JDeveloper/jdev/system/oracle.j2ee.10.1.3.40.66/embedded-oc4j/config/jms.xml]
    java.lang.InstantiationException: recoverDestinations
         at com.evermind.server.jms.JMSUtils.make(JMSUtils.java:1072)
         at com.evermind.server.jms.JMSUtils.toInstantiationException(JMSUtils.java:1237)
         at com.evermind.server.jms.JMSServer.recoverState(JMSServer.java:1831)
         at com.evermind.server.jms.JMSServer.internalSetConfig(JMSServer.java:209)
         at com.evermind.server.jms.JMSServer.setConfig(JMSServer.java:182)
         at com.evermind.server.ApplicationServer.initializeJMS(ApplicationServer.java:2412)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:955)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.InstantiationException: recoverDestinations
         at com.evermind.server.jms.JMSUtils.make(JMSUtils.java:1072)
         at com.evermind.server.jms.JMSUtils.toInstantiationException(JMSUtils.java:1253)
         at com.evermind.server.jms.JMSServer.recoverDestinations(JMSServer.java:1938)
         at com.evermind.server.jms.JMSServer.recoverDestinations(JMSServer.java:1881)
         at com.evermind.server.jms.JMSServer.recoverState(JMSServer.java:1827)
         ... 6 more
    Caused by: java.io.IOException: The system cannot find the path specified
         at java.io.WinNTFileSystem.createFileExclusively(Native Method)
         at java.io.File.createNewFile(File.java:850)
         at com.evermind.server.jms.ServerFile.safeOpenFile(ServerFile.java:775)
         at com.evermind.server.jms.ServerFile.access$000(ServerFile.java:77)
         at com.evermind.server.jms.ServerFile$2.run(ServerFile.java:719)
         at oracle.oc4j.security.OC4JSecurity.doUnprivileged(OC4JSecurity.java:325)
         at com.evermind.server.jms.ServerFile.openFile(ServerFile.java:716)
         at com.evermind.server.jms.ServerFile.<init>(ServerFile.java:133)
         at com.evermind.server.jms.ServerDestination.makeFile(ServerDestination.java:447)
         at com.evermind.server.jms.ServerDestination.<init>(ServerDestination.java:122)
         at com.evermind.server.jms.ServerQueue.<init>(ServerQueue.java:54)
         at com.evermind.server.jms.ServerDestination.createDestination(ServerDestination.java:249)
         at com.evermind.server.jms.JMSServer.recoverDestinations(JMSServer.java:1921)
         ... 8 more
    07/04/08 23:37:26 *** (SEVERE) Failed to set the internal configuration of the OC4J JMS Server with: XMLJMSServerConfig[file:/C:/JDeveloper/jdev/system/oracle.j2ee.10.1.3.40.66/embedded-oc4j/config/jms.xml]
    Apr 8, 2007 11:37:26 PM com.evermind.server.ServerMessages severeJmsServerStartupException
    SEVERE: Exception starting JMS server: Failed to set the internal configuration of the OC4J JMS Server with: XMLJMSServerConfig[file:/C:/JDeveloper/jdev/system/oracle.j2ee.10.1.3.40.66/embedded-oc4j/config/jms.xml]
    Apr 8, 2007 11:37:28 PM oracle.j2ee.util.LoggingUtils logAndReturnMessage
    WARNING: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    07/04/08 23:37:28 SEVERE: ApplicationStateRunning.initConnector Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    07/04/08 23:37:28 SEVERE: ApplicationStateRunning.initConnector Stack trace: oracle.oc4j.sql.DataSourceException: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:2072)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnector(ApplicationStateRunning.java:2017)
         at com.evermind.server.ApplicationStateRunning.initConnector(ApplicationStateRunning.java:1272)
         at com.evermind.server.ApplicationStateRunning.initConnectors(ApplicationStateRunning.java:345)
         at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:206)
         at com.evermind.server.Application.setConfig(Application.java:439)
         at com.evermind.server.Application.setConfig(Application.java:340)
         at com.evermind.server.ApplicationServer.addApplication(ApplicationServer.java:1853)
         at com.evermind.server.ApplicationServer.initializeDeployedApplications(ApplicationServer.java:1608)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:990)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.resource.ResourceException: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:106)
         at oracle.oc4j.sql.DataSourceUtils.getDataSourceConnectionPool(DataSourceUtils.java:326)
         at com.evermind.server.ApplicationStateRunning.initDataSourceConnectionPool(ApplicationStateRunning.java:2053)
         ... 11 more
    Caused by: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:284)
         at oracle.oc4j.sql.DataSourceConnectionPoolImpl.<init>(DataSourceConnectionPoolImpl.java:108)
         at oracle.oc4j.sql.spi.ResourceAdapterImpl.createDataSourceConnectionPool(ResourceAdapterImpl.java:99)
         ... 13 more
    Caused by: oracle.classloader.util.AnnotatedClassNotFoundException:
         Missing class: com.mysql.jdbc.Driver
         Dependent class: oracle.oc4j.sql.config.DataSourceConfigUtils
         Loader: oc4j:10.1.3
         Code-Source: /C:/JDeveloper/j2ee/home/lib/oc4j-internal.jar
         Configuration: <code-source> in META-INF/boot.xml in C:\JDeveloper\j2ee\home\oc4j.jar
    This load was initiated at current-workspace-app.root:0.0.0 using the Class.forName() method.
    The missing class is not available from any code-source or loader in the system.
         at oracle.classloader.PolicyClassLoader.handleClassNotFound(PolicyClassLoader.java:2078)
         at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1679)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1635)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1620)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:242)
         at oracle.oc4j.sql.config.DataSourceConfigUtils.createConnectionFactory(DataSourceConfigUtils.java:281)
         ... 15 more
    07/04/08 23:37:28 WARNING: Application.setConfig Application: current-workspace-app is in failed state as initialization failed.
    java.lang.InstantiationException: Error occurred initializing connectors. Exception is: Exception creating connection pool. Exception: oracle.oc4j.sql.config.DataSourceConfigException: Unable to create : com.mysql.jdbc.Driver
    Apr 8, 2007 11:37:28 PM com.evermind.server.ServerMessages warningApplicationInitializationFailed
    WARNING: Exception initializing deployed application: current-workspace-app. Application: current-workspace-app is in failed state as initialization failed
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 11090 ms.
    Target URL -- http://192.168.1.7:8988/IMS-ViewController-context-root/Login.jsp
    07/04/08 23:37:32 Oracle Containers for J2EE 10g (10.1.3.1.1) initialized

    hi frank,
    now the error is goine abt the jdbc driver am getting the following error.Its really frustrating.Am running the orcle jdeveloper in windows vista.
    am really confused now.
    gdinesh
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\JDeveloper\jdev\system\oracle.j2ee.10.1.3.40.66\embedded-oc4j\config>
    C:\JDeveloper\jdk\bin\javaw.exe -client -classpath C:\JDeveloper\j2ee\home\oc4j.jar;C:\JDeveloper\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -XX:MaxPermSize=256m -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\JDeveloper\jdev\system\oracle.j2ee.10.1.3.40.66\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    Apr 9, 2007 12:57:45 AM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    Apr 9, 2007 12:57:45 AM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    Apr 9, 2007 12:57:45 AM com.evermind.server.jms.JMSMessages log
    SEVERE: Failed to set the internal configuration of the OC4J JMS Server with: XMLJMSServerConfig[file:/C:/JDeveloper/jdev/system/oracle.j2ee.10.1.3.40.66/embedded-oc4j/config/jms.xml]
    java.lang.InstantiationException: recoverDestinations
         at com.evermind.server.jms.JMSUtils.make(JMSUtils.java:1072)
         at com.evermind.server.jms.JMSUtils.toInstantiationException(JMSUtils.java:1237)
         at com.evermind.server.jms.JMSServer.recoverState(JMSServer.java:1831)
         at com.evermind.server.jms.JMSServer.internalSetConfig(JMSServer.java:209)
         at com.evermind.server.jms.JMSServer.setConfig(JMSServer.java:182)
         at com.evermind.server.ApplicationServer.initializeJMS(ApplicationServer.java:2412)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:955)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.InstantiationException: recoverDestinations
         at com.evermind.server.jms.JMSUtils.make(JMSUtils.java:1072)
         at com.evermind.server.jms.JMSUtils.toInstantiationException(JMSUtils.java:1253)
         at com.evermind.server.jms.JMSServer.recoverDestinations(JMSServer.java:1938)
         at com.evermind.server.jms.JMSServer.recoverDestinations(JMSServer.java:1881)
         at com.evermind.server.jms.JMSServer.recoverState(JMSServer.java:1827)
         ... 6 more
    Caused by: java.io.IOException: The system cannot find the path specified
         at java.io.WinNTFileSystem.createFileExclusively(Native Method)
         at java.io.File.createNewFile(File.java:850)
         at com.evermind.server.jms.ServerFile.safeOpenFile(ServerFile.java:775)
         at com.evermind.server.jms.ServerFile.access$000(ServerFile.java:77)
         at com.evermind.server.jms.ServerFile$2.run(ServerFile.java:719)
         at oracle.oc4j.security.OC4JSecurity.doUnprivileged(OC4JSecurity.java:325)
         at com.evermind.server.jms.ServerFile.openFile(ServerFile.java:716)
         at com.evermind.server.jms.ServerFile.<init>(ServerFile.java:133)
         at com.evermind.server.jms.ServerDestination.makeFile(ServerDestination.java:447)
         at com.evermind.server.jms.ServerDestination.<init>(ServerDestination.java:122)
         at com.evermind.server.jms.ServerQueue.<init>(ServerQueue.java:54)
         at com.evermind.server.jms.ServerDestination.createDestination(ServerDestination.java:249)
         at com.evermind.server.jms.JMSServer.recoverDestinations(JMSServer.java:1921)
         ... 8 more
    07/04/09 00:57:45 *** (SEVERE) Failed to set the internal configuration of the OC4J JMS Server with: XMLJMSServerConfig[file:/C:/JDeveloper/jdev/system/oracle.j2ee.10.1.3.40.66/embedded-oc4j/config/jms.xml]
    Apr 9, 2007 12:57:45 AM com.evermind.server.ServerMessages severeJmsServerStartupException
    SEVERE: Exception starting JMS server: Failed to set the internal configuration of the OC4J JMS Server with: XMLJMSServerConfig[file:/C:/JDeveloper/jdev/system/oracle.j2ee.10.1.3.40.66/embedded-oc4j/config/jms.xml]
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 14738 ms.
    07/04/09 00:57:53 Oracle Containers for J2EE 10g (10.1.3.1.1) initialized
    Target URL -- http://192.168.1.7:8988/IMS-ViewController-context-root/Login.jsp

  • Starting oc4j without designer

    Could i start oc4j service without starting Designer? If i start BPEL server,
    To run a JSP page, i do right click on the project and then "Run": it starts oc4j automatically.
    If I run "start_oc4j", it doesn't work because there is already the BPEL server running.
    I want to start Oracle BPEL server and oc4j without designer. Is it possible?
    Thank you,
    Ema
    PS- i'm working with the last version of Oracle BPEL PM.

    "start_oc4j.bat" is used by JDev itself and starts OC4J by passing certain parameters, including specific port settings to avoid conflicts.
    Just running it will not work as you discovered.
    My question is: what do you need? Do you need a running OC4J instance to deploy and run J2EE applications in your development environment? In this case you could just use the OC4J that is already running as part of your BPEL Server (not JDeveloper).
    If you want another container, you should download the standalone container from otn.oracle.com and configure it to avoid port conflicts with the one in BPEL.
    The embedded OC4J in Jdev is meant for use within JDev.

  • Unable to run struts project from jdeveloper 10.1.3

    Hi,
    I have created a struts-based application project using jdeveloper 10.1.3(build JDEVADF_10.1.3.1.0_NT..) by importing an ear file .The project seems to be built fine as i get no errors in compiling the entire project.I have included the Struts runtime library as well in the project.
    But when i try to run the login.jsp from the struts-config.xml,i get the :
    The page cannot be displayed message in the browser.
    I dont see any errors in the Embedded OC4J log except few warnings lik dis:
    [Another instance of the server is still running.  JDeveloper will shut it down and then restart the server.]
    Process exited.
    [Starting OC4J using the following ports: HTTP=8898, RMI=23899, JMS=9235.]
    D:\jdevr12\jdevhome\jdev\system\oracle.j2ee.10.1.3.39.81\embedded-oc4j\config>
    D:\jdevr12\jdevbin\jdk\bin\javaw.exe -client -classpath D:\jdevr12\jdevbin\j2ee\home\oc4j.jar;D:\jdevr12\jdevbin\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config D:\jdevr12\jdevhome\jdev\system\oracle.j2ee.10.1.3.39.81\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    25-Jul-2007 18:46:28 com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    25-Jul-2007 18:46:28 com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    WARNING: Code-source D:\jdevr12\jdevbin\jdev\appslibrt\xml.jar (from <library> in /D:/jdevr12/jdevhome/jdev/system/oracle.j2ee.10.1.3.39.81/embedded-oc4j/config/application.xml) has the same filename but is not identical to /D:/jdevr12/jdevbin/lib/xml.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in D:\jdevr12\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
    WARNING: Code-source D:\jdevr12\jdevbin\jdev\appslibrt\jazn.jar (from <library> in /D:/jdevr12/jdevhome/jdev/system/oracle.j2ee.10.1.3.39.81/embedded-oc4j/config/application.xml) has the same filename but is not identical to /D:/jdevr12/jdevbin/j2ee/home/jazn.jar (from <code-source> in META-INF/boot.xml in D:\jdevr12\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
    WARNING: Code-source D:\jdevr12\jdevbin\jdev\appslibrt\jazncore.jar (from manifest of /D:/jdevr12/jdevbin/jdev/appslibrt/jazn.jar) has the same filename but is not identical to /D:/jdevr12/jdevbin/j2ee/home/jazncore.jar (from <code-source> in META-INF/boot.xml in D:\jdevr12\jdevbin\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader default.root:0.0.0.
    WARNING: Code-source D:\jdevr12\jdevhome\jdev\system\oracle.j2ee.10.1.3.39.81\embedded-oc4j\applications\datatags\webapp\WEB-INF\lib\uix2.jar (from WEB-INF/lib/ directory in D:\jdevr12\jdevhome\jdev\system\oracle.j2ee.10.1.3.39.81\embedded-oc4j\applications\datatags\webapp\WEB-INF\lib) has the same filename but is not identical to /D:/jdevr12/jdevbin/jdev/appslibrt/uix2.jar (from <library> in /D:/jdevr12/jdevhome/jdev/system/oracle.j2ee.10.1.3.39.81/embedded-oc4j/config/application.xml). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader datatags.web.webapp:0.0.0.
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 26766 ms.
    pls help me out on what could be the problem.This application wsa running fine in Eclipse but i am unable to run it using Jdeveloper.

    Is this new develop page ?
    you check these points for this issue.
    1. Check JDEV_USER_HOME
    2. Design a Test PG and test it first.
    3. Your OAF patch level: is 12.0.4 ? Are you running with r12?
    Thanks

  • Error message when starting OC4J in JDeveloper 10.1.3.1

    Hello,
    I am new to Java Server Pages and OC4J. When I try to run a simple JSP page in JDeveloper 10.1.3.1, I get the following error message (edited):
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    ...\system\oracle.j2ee.10.1.3.39.84\embedded-oc4j\config>
    [waiting for the server to complete its initialization...]
    Error parsing internal-settings.xml: server-extension-provider class 'oracle.j2ee.ws.server.mgmt.runtime.InterceptorContainerExtension' not found
    oracle.classloader.util.AnnotatedClassNotFoundException:
         Missing class: oracle.j2ee.ws.server.codegen.ServerArtifactGenerator
         Depending class: com.evermind.server.ejb.compilation.Compilation
         Loader: oc4j:10.1.3
         Code-Source: ./j2ee/home/lib/oc4j-internal.jar
         Configuration: <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar
    Diese Load wurde um system.root:0.0.0 mit der Methode Class.forName() eingeleitet.
    Die fehlende Klasse ist in keiner Code-Source oder keinem Loader in dem System verfügbar.
    at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClassLoader.java:2068) [./j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@14916158]
         at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLoader.java:1679) [./j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@14916158]
         at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1635) [./j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@14916158]
         at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.java:1620) [./j2ee/home/lib/pcl.jar (from system property java.class.path), by sun.misc.Launcher$AppClassLoader@14916158]
         at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre bootstrap, by jre.bootstrap:1.5.0_06]
         at java.lang.Class.forName0 (Native method) [unknown, by unknown]
         at java.lang.Class.forName (Class.java:242) [jre bootstrap, by jre.bootstrap:1.5.0_06]
         at com.evermind.server.ejb.compilation.Compilation.generateWebServiceRefs (Compilation.java:1541) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.ejb.compilation.Compilation.compile (Compilation.java:189) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.ejb.compilation.Compilation.doGenerateCode (Compilation.java:264) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.ejb.EJBContainer.postInit (EJBContainer.java:898) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.ApplicationStateRunning.initializeApplication (ApplicationStateRunning.java:217) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.Application.setConfig (Application.java:413) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.Application.setConfig (Application.java:314) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.ApplicationServer.initializeSystemApplication (ApplicationServer.java:1557) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.ApplicationServer.initializeAutoDeployedApplications (ApplicationServer.java:1544) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.ApplicationServer.setConfig (ApplicationServer.java:974) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at com.evermind.server.ApplicationServerLauncher.run (ApplicationServerLauncher.java:131) [./j2ee/home/lib/oc4j-internal.jar (from <code-source> in META-INF/boot.xml in .\j2ee\home\oc4j.jar), by oc4j:10.1.3]
         at java.lang.Thread.run (Thread.java:595) [jre bootstrap, by jre.bootstrap:1.5.0_06]
    Oracle Containers for J2EE 10g (10.1.3.1.0) initialized
    Any idea, what's wrong with my configuration?
    Thanks,
    Wolfgang

    Tested JSP page in JDeveloper 10.1.3.1; JSP page does not generate an error.
    Reinstall JDeveloper.

  • Unable to run the page from JDeveloper

    Hi all,
    I am trying to run a OA Framework page. and i'm recieving the following error.
    An error was encountered when running "JRADXML"
    No response received in 30 secs.
    Please try the following:
    1) Increase the timeout limit by setting the JRAD.RUNREG_TIMEOUT parameter in the ide.properties file located in the system directory
    2) Check the Host Name in the Preferences, under Embedded OC4J
    3) See the Log window for any error messages.
    I am sure that this is because the OC4J Server was not shutdown properly before. I tried even restarting the PC, but still JDeveloper is throwing me the above error.
    I even tried changing the port numbers under preferrences but still the error continues.
    yesterday too i had this problem and i wasnt able to execute the page, but when i tried today morning it worked.
    Has anyone faced this problem/ Got a Solution
    Cheers !!!!
    Senthil

    This is the Message appearing in the Pane.. and the same information is in the log file...
    this time what happened is, i disconnected the machine from network while the OC4J Server was running and when i reconnected and tried running the page.. again i'm facing the problem.
    this problem was automatically getting resolved exactly the next day, So, i Changed my System Date and Restarted JDeveloper and Ran the page and it worked.
    basically , i think the Server holds/locks some file in the filesystem and it remains locked when the server isnt shutdown properly and when date changes, may be the new file tried to lock would be of diff name (since the filename has sysdate in it..)
    [Starting OC4J using the following ports: HTTP=9000, RMI=23950, JMS=9300.]
    D:\JDeveloper\jdevbin\jdk1.4.2\bin\javaw.exe -client -classpath D:\JDeveloper\jdevbin\j2ee\home\oc4j.jar;D:\JDeveloper\jdevbin\jdev\lib\jdev-oc4j.jar -Xbootclasspath/p:D:\JDeveloper\jdevbin\jdev\appslibrt\ojdbc14.jar;D:\JDeveloper\jdevbin\jdev\appslibrt\nls_charset12.zip -DFND_JDBC_STMT_CACHE_SIZE=200 -DCACHENODBINIT=true -DRUN_FROM_JDEV=true -mx256m -Doracle.j2ee.http.socket.timeout=1000 com.evermind.server.OC4JServer -config D:\JDeveloper\jdevhome\jdev\system9.0.3.5.1312\oc4j-config\server.xml
    [waiting for the server to complete its initialization...]
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 4287 ms.
    Auto-deploying OA Framework web application deployment descriptor (New server version detected)...
    Oracle9iAS (9.0.3.1.0) Containers for J2EE initialized
    Message was edited by:
    tcesenthil

  • Unable to Start OC4J home_default_island_1 - OAS 10.1.2.2

    We are running OAS 10.1.2.2 and are having issues starting OC4J home_default_island_1 and OC4J_BI_forms
    This is the error received in OC4J~home~default_island~1 logfile:
    09/04/15 12:41:36 *** (WARNING) Wed Apr 15 12:41:36 MDT 2009 [Thread[Orion Launcher,5,main]] getHostTimePrefix java.net.UnknownHostException: minint-1n8e2ttv: minint-1n8e2ttv
    09/04/15 12:41:36 Error starting ORMI-Server. Unable to bind socket: minint-1n8e2ttv: minint-1n8e2ttv
    09/04/15 12:41:36 java.lang.NullPointerException
    09/04/15 12:41:36 at com.evermind.server.rmi.RMIServer.run(RMIServer.java:474)
    09/04/15 12:41:36 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
    09/04/15 12:41:36 at java.lang.Thread.run(Thread.java:534)
    09/04/15 12:41:39 Warning: Error reading transaction-log file (/oracle_base/oas/j2ee/home/persistence/home_default_island_1/transaction.state) for recovery: premature end of file
    09/04/15 12:41:39 Forced or abrupt (crash etc) server shutdown detected, starting recovery process...
    09/04/15 12:41:39 Recovery completed, 0 connections committed and 0 rolled back...
    09/04/15 12:41:42 Oracle Application Server Containers for J2EE 10g (10.1.2.2.0) initialized
    09/04/15 12:41:42 java.lang.NullPointerException
    09/04/15 12:41:42 at java.util.Hashtable.put(Hashtable.java:395)
    09/04/15 12:41:42 at java.util.Properties.setProperty(Properties.java:102)
    09/04/15 12:41:42 at java.lang.System.setProperty(System.java:656)
    09/04/15 12:41:42 at com.evermind.server.OC4JMonitorThread.run(OC4JMonitorThread.java:300)
    09/04/15 12:41:42 at java.lang.Thread.run(Thread.java:534)
    Thanks for your assistance!
    wqbang

    I managed to solve the problem by setting the "Load All System JAR Files during OC4J Startup" in the "Embeded OC4J Server Preferences" under "Global > Startup".

  • Unable to start OC4J standalone server.

    Hi
    I have just started using Oracle 10g Portal Server. I have downladed the OC4J standalone and have installed at D:\JDeveloper\oc4j following the instructions of running the admin.jar creating the password. When I try starting the OC4J initializing it works fine starts the server with the message
    05/12/29 12:21:11 Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview 4 initialized
    But when I try to deploy a war file which I have created externally with the entries in aplication.xml
    <web-module id="mywar" path="../applications/mywar.war" />
    and default-web-site.xml
    <web-app application="default" name="mywar" root="/technology/mywar" />
    The server never starts up just hangs up with the message
    Starting OC4J from D:\JDeveloper\oc4j\j2ee\home ...
    If the entries are removed the server starts as usual.
    Can anyone let me know where is the problem I need to look at, because the war file works fine if deployed in tomcat or weblogic.
    Thanks in advance.

    Hi,
    As you asked me it is a simple war deployment. with the folder structure as
    simpleWar->index.jsp
    simpleWar->META-INF->application.xml
    simpleWar->WEB-INF->classes
    simpleWar->WEB-INF->lib
    simpleWar->WEB-INF->tld
    simpleWar->WEB-INF->struts-config.xml
    simpleWar->WEB-INF->validation.xml
    simpleWar->WEB-INF->validator-rules.xml
    simpleWar->WEB-INF->web.xml
    and the war file that I am creating is simpleWar.war.
    The contents of web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">
    <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
    <param-name>debug</param-name>
    <param-value>3</param-value>
    </init-param>
    <init-param>
    <param-name>detail</param-name>
    <param-value>3</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <!-- Action Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
    </servlet-mapping>
    <!-- The Welcome File List -->
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <!-- tag libs -->
    <taglib>
    <taglib-uri>struts-html</taglib-uri>
    <taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>struts-bean</taglib-uri>
    <taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>struts-logic</taglib-uri>
    <taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>util-tags</taglib-uri>
    <taglib-location>/WEB-INF/tld/tag-util.tld</taglib-location>
    </taglib>
    <taglib>
         <taglib-uri>example-taglib</taglib-uri>
         <taglib-location>/WEB-INF/tld/tag-util.tld</taglib-location>
    </taglib>
    </web-app>

  • Unable to run my pages from jdeveloper

    Hi all,
    From past 2 days am unable to run my OAF pages, actually what i did is i deleted the environment variable and again created a new one. I dont know why am unable to run the pages... The Error Which it is throwing is
    "Unable to run the page DiagnosticsPG.xml. OAProject "C:\Jdeveloper10g\jdevhome\jdev\myprojects\OAProject.jpr" must reside in the "C:\Jdeveloper10g\jdevbin\jdev\myprojects" directory in order to run successfully." To fix the problem, quit jdeveloper and then either relocate all the associate project files, or correct the JDEV_USER_HOME enviorment variable on your computer "
    Any one who have an idea can please suggest me on this
    Thanks in Advance

    Hi Gaurav..
    I got some message(Migrate User Settings) when i run the jdeveloper for the first time after installation which says " The User Settings found in the user home directory were generated by a different installation of JDeveloper than what is currently running. To avoid complications , some settings will be restored to their defaults. Do u wish to continue?" When i say yes.. am facing the problem which i mentioned above i.e it is taking directory home as C:\Jdeveloper9i\jdevbin\jdev.... Yes am setting the JDEV_USER_HOME to c:\JDeveloper9i\jdevhome\jdev... and then trying to open that using a C:\JDeveloper9i\jdevbin\jdev\bin\jdevw icon
    Thanks

  • Unable to run any page in jDeveloper(10.1.3)

    Hi,
    I am unable to run any page from jDeveloper. I am getting the below mentioned error:
    500 Internal Server Error
    java.lang.NullPointerException
    at oracle.apps.fnd.common.WebAppsContext.doValidateSession(WebAppsContext.java:1358)
    at oracle.apps.fnd.common.WebAppsContext.validateSession(WebAppsContext.java:1708)
    at oracle.apps.fnd.common.WebRequestUtil.validateContextPrivate(WebRequestUtil.java:463)
    at oracle.apps.fnd.common.WebRequestUtil.validateContext(WebRequestUtil.java:322
    OAF patch level: 12.0.4
    Pl. help me out. Its very urgent.
    Thanks,
    Puneet

    Is this new develop page ?
    you check these points for this issue.
    1. Check JDEV_USER_HOME
    2. Design a Test PG and test it first.
    3. Your OAF patch level: is 12.0.4 ? Are you running with r12?
    Thanks

  • Unable to run OAF page  in jdeveloper 10.1.3.3.0.3     since  SSO is enable

    hi ,
    I am using this patch p8431482_R12_GENERIC.zip for OAF page development.
    Previously pages in our application was working fine in jdeveloper.
    Now SSO is enabled to our Apps pages.from then onwards im unable to run pages in jdeveloper.
    can anyone please suggest me how to run SSO apps pages from jdeveloper.
    appreciate your help!
    thankQ

    Hi, I have encountered the same issue.
    Just wanted to find out if you were able to resolve it?
    Regards.

  • Unable to start oc4j instance

    Hi,
    My application was running well. But since last two days oc4j instance is not starting up.
    I reinstalled developer suite 10g release 2. But the problem is still there.
    A flash comes when i click start oc4j instance. Even i m not able to read the messages coming on the screen & the oc4j window is closed.
    My report server is not starting. I have tried to make report server up too thru naming service.
    Kindly help it is urgent.
    Thanks in Advance.
    Regards
    Swati

    Have you installed any new software or OS updates lately? It sounds like your OS can't find Java any more because your computer's environment settings have been modified or perhaps Java was uninstalled. A quick test of Java is to open a Command Window (CMD) and type "Java -version" (without the quotes). If you get an error this indicates that your PATH environment variable no longer includes the directory where Java is installed. You may only need to clean up the PATH environment setting to get things working again, or you may need to reinstall Java.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Unable to start OC4j

    Hi, I am not able to start OC4J on my unix box. It gives me below error. What might be the cause and how to resolve it. Looks like some port conflict but where should i check?
    $ ./oc4j -start
    Starting OC4J from /opt/webapps/obi_10.1.3.3.2/OracleBI/oc4j_bi/j2ee/home ...
    2008-04-09 15:58:52.803 ERROR ServerFile[PersistentMap,/opt/webapps/obi_10.1.3.3.2/OracleBI/oc4j_bi/j2ee/home/persistence/jms.state]: persistence file could not be locked. Resolve the sharing violation by ending the process currently holding the file lock or by using a different persistence directory for one or both processes.
    08/04/09 15:58:52 *** (SEVERE) ServerFile[PersistentMap,/opt/webapps/obi_10.1.3.3.2/OracleBI/oc4j_bi/j2ee/home/persistence/jms.state]: persistence file could not be locked. Resolve the sharing violation by ending the process currently holding the file lock or by using a different persistence directory for one or both processes.
    2008-04-09 15:58:52.814 ERROR Failed to set the internal configuration of the OC4J JMS Server with: XMLJMSServerConfig[file:/opt/webapps/obi_10.1.3.3.2/OracleBI/oc4j_bi/j2ee/home/config/jms.xml]
    08/04/09 15:58:52 *** (SEVERE) Failed to set the internal configuration of the OC4J JMS Server with: XMLJMSServerConfig[file:/opt/webapps/obi_10.1.3.3.2/OracleBI/oc4j_bi/j2ee/home/config/jms.xml]
    2008-04-09 15:58:52.832 ERROR J2EE OJR-00011 Exception starting JMS server: Failed to set the internal configuration of the OC4J JMS Server with: XMLJMSServerConfig[file:/opt/webapps/obi_10.1.3.3.2/OracleBI/oc4j_bi/j2ee/home/config/jms.xml]
    2008-04-09 15:58:52.923 ERROR J2EE RMI-00002 Error starting ORMI server webizdev1024 port 23,791: Address already in use
    2008-04-09 15:58:52.927 ERROR java.net.BindException: Address already in use
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
    at java.net.ServerSocket.bind(ServerSocket.java:319)
    at java.net.ServerSocket.<init>(ServerSocket.java:185)
    at com.evermind.server.rmi.RMIServer.createServerSocket(RMIServer.java:433)
    at com.evermind.server.rmi.RMIServer.createNonSecureSocket(RMIServer.java:347)
    at com.evermind.server.rmi.RMIServer.setConfig(RMIServer.java:210)
    at com.evermind.server.ApplicationServer.initializeRMI(ApplicationServer.java:2378)
    at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:966)
    at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:131)
    at java.lang.Thread.run(Thread.java:619)
    08/04/09 15:58:52 Error starting ORMI server webizdev1024 port 23,791: Address already in use
    08/04/09 15:58:52 Shutting down OC4J...

    looking at :
    2008-04-09 15:58:52.923 ERROR J2EE RMI-00002 Error starting ORMI server webizdev1024 port 23,791: Address already in use
    2008-04-09 15:58:52.927 ERROR java.net.BindException: Address already in use
    I suspect that the port 23791 is blocked. to release it use command `lsof` and have it killed. or run this command once and then try starting it might help:
    $cd BI_HOME/oc4j_bi/bin
    $oc4j -shutdown -port 23791 -password <oc4j admin pwd entered during installation>

  • Unable to start OC4J 10.1.3 on AIX

    Hi All,
    I have installed OC4J on AIX and on running the oc4j.sh script with -start option results in a coredump. Just wondering if I am missing something. Any help would be greatly appreciated.
    thanks
    -sheshi
    Here is the trace
    st-ibm18:$ ./oc4j.sh -start
    Starting OC4J...
    05/02/25 16:19:54 ServerComponent: initDeployment(): begin
    05/02/25 16:19:54 ServerComponent: copyAndDeploy(true): begin
    05/02/25 16:19:54 ServerComponent: copyAndDeploy(true): end--initDeployment
    05/02/25 16:19:54 ServerComponent: copyAndDeploy(true): end--Previous deployment not found
    05/02/25 16:19:54 ServerComponent: initDeployment(): end
    05/02/25 16:19:55 com.evermind.server.XMLApplicationServerConfig.postInit: Application ascontrol beginning the outside for loop, checking app ref 1 of 1
    05/02/25 16:19:55 com.evermind.server.XMLApplicationServerConfig.postInit: Application ascontrol has completed the for loop. The current count is 1
    05/02/25 16:19:55 ServerComponent: initDeployment(): begin
    05/02/25 16:19:55 ServerComponent: initDeployment(data, 0, 443): begin
    05/02/25 16:19:56 ServerComponent: initDeployment: returning NULL
    05/02/25 16:19:56 ServerComponent: initDeployment(data, 0, 443): end
    05/02/25 16:19:56 ServerComponent: initDeployment(): end
    ./oc4j.sh[11]: 85624 Segmentation fault(coredump)

    Triple asdf, I agree that the shell script, oc4j.sh, is too simple and nice to be guilty here. From the console output, it seems the coredump happened when the server was initializing ascontrol application. To confirm that, can you comment out the following two lines in your j2ee/home/config/server.xml and then try starting the server.
      <application name="ascontrol" path="../applications/ascontrol.ear" start="true" />
      <web-site path="./ascontrol-web-site.xml" />
    If you got the server started, then try adding these lines and bounce the server.

  • I unable to run ejb with application client using oc4j j2ee container

    Hi,
    I have installe oracle9i (1.0.2.2) oc4j j2ee container.
    I unable to run the ejbs . please help me how to run ejbs with application client and which files are shall configure.
    See the client application is :
    public static void main (String []args)
    try {
    //Hashtable env = new Hashtable();
    //env.put("java.naming.provider.url", "ormi://localhost/Demo");
    //env.put("java.naming.factory.initial", "com.evermind.server.ApplicationClientInitialContextFactory");
    //env.put(Context.SECURITY_PRINCIPAL, "guest");
    //env.put(Context.SECURITY_CREDENTIALS, "welcome");
    //Context ic = new InitialContext (env);
    System.out.println("\nBegin statelesssession DemoClient.\n");
    Context context = new InitialContext();
    Object homeObject = context.lookup("java:comp/env/DemoApplication");
    DemoHome home= (DemoHome)PortableRemoteObject.narrow(homeObject, DemoHome.class);
    System.out.println("Creating Demo\n");
    Demo demo = home.create();
    System.out.println("The result of demoSelect() is.. " +demo.sayHello());
    }catch ( Exception e )
    System.out.println("::::::Error:::::: ");
    e.printStackTrace();
    System.out.println("End DemoClient....\n");
    When I am running client application I got this type of Exception
    java.lang.SecurityException : No such domain/application: sampledemo
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java : 2040)
    at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java : 1884)
    at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java : 1491)
    at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java : 323)
    at com.evermind.server.rmi.RMIContext.lookup(RMIConext.java : 106)
    at com.evermind.server.administration.LazyResourceFinder.lookup(LazyResourceFinder.java : 59)
    at com.evermind.server.administration.LazyResourceFinder.getEJBHome(LazyResourceFinder.java : 26)
    at com.evermind.server.Application.createContext(Application.java: 653)
    at com.evermind.server.ApplicationClientInitialContext.getInitialContext(ApplicationClientInitialContextFactory.java :179 )
    at javax.naming.spi.NamingManager.getInitialContext(NamingManger.java : 246)
    at javax.naming.InitialContext.getDefaultInitialCtx(InitialContext.java : 246)
    at javax.naming.InitialContext.init(InitialContext.java : 222)
    at javax.naming.InitialContext.<init>(InitialContext.java : 178)
    at DemoClient.main(DemoClient.java : 23)
    .ear file is copied into applications directory.
    I have configured server.xml file like this
    <application name="sampledemo" path="../applications/demos.ear" />
    demos.ear file Contains following files
    application.xml
    demobean.jar
    Manifest.mf
    demobean.jar file contains following files
    application-client.xml
    Demo.class
    DemoBean.class
    DemoHome.class
    ejb-jar.xml
    jndi.properties
    Mainifest.mf
    Please give me your valuable suggestions. Which are shall i configure .
    Thanks & Regards,
    Badri

    Hi Badri,
    ApplicationClientInitialContextFactory is for clients which got deployed inside OC4J container..
    For looking up EJB from a stand alone java client please use RMIInitialContextFactory..So please change ur code....
    Also please check ur server.xml
    Since you have specified your ejb domain as "sampledemo"
    you have to use that domian only for look up..But it seems that you are looking up for "Demo" domain instead of "sampledemo" domain...So change your code to reflect that..
    Code snippet for the same is :
    Hashtable env = new Hashtable();
    env.put("java.naming.provider.url", "ormi://localhost/sampledemo");
    env.put("java.naming.factory.initial", "om.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "guest");
    env.put(Context.SECURITY_CREDENTIALS, "welcome");
    Context ic = new InitialContext (env);
    Hope this helps
    --Venky                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • I can't open up a specific .psd file in Photoshop cs6.

         Well, there's a specific file I can't open. I've worked on it previously, but a week later, and it won't open. All of my other PS CS6 files are intact, and will open immediately. However, this one file takes so long to load (2+ hours) that I end

  • How do I fix a 1439 error on iPod Classic

    iPod Classic not working at all.  Tried resetting with no luck.  Tried to restore - comes up with [The iPod "iPod" could not be restored. An unknown error occurred (1439).]  How do I fix a 1439 error?

  • Error "Non-permitted posting period 013"

    Hi expert When I try to load the data with datasource 3EC_CS_1A, I get the error "Non-permitted posting period 013". This Datasource request input Fiscal Year/Period before load data, I input Fiscal Year/Period from 2000001 to 2011012 and get above e

  • Images from Email

    Hello, is there anyway to assign a image from the email to a contact, or a wallpaper ?

  • How to style text that is enclosed in space characters

    Via a paragraph style sheet, I need to apply character styles to text that is enclosed in space characters. For example: The cat <<thinspace>> sat <<thinspace>> on the <<enspace>>mat<<enspace>> In the above, "Sat" would have one character style while