Starting embedded OC4J automatically?

I'm using Ant as the build system in JDeveloper and want to run some unit tests on EJBs with the embedded OC4J. For that, I need to start the EJBs from the Ant script to mimic right-clicking the EJB and selecting "Run [EJB name]". Is there a way to do that in Ant / Java within JDeveloper? Or would I need to deploy to a stand-alone OC4J? It seems a bit ironic that the only reason why I couldn't use the embedded OC4J is because I can't start it...

Thanx for the answer! I already copied the command line that JDeveloper is executing when launching the embedded OC4J and will use it for execution.
One thing, though: The embedded OC4J does differ from a standalone OC4J in that it is file-based. This means that you don't deploy with a JAR / WAR / EAR but rather just point to a directory with all the necessary files (classes, HTML, JSP, deployment descriptors), essentially in the "unpacked JAR / WAR / EAR" layout. This directory is specified as the "Output directory" in the project settings under "Configurations - Development - Paths". This saves quite some time because "deployment" just means copying files to this directory instead of packaging everything and then deploying through the OC4J servlet. You can see that if you create a web or EJB project in JDeveloper and run it in the embedded OC4J.
It also allows for (at least partial - haven't tried it with EJBs yet) hot deployment: Change a JSP that's running in the embedded OC4J and save it - when refreshing the JSP in the browser, it's automatically recompiled.

Similar Messages

  • HELP!!! Failed to start Embedded OC4J Server in JDev

    Hi,
    I have installed Oracle JDeveloper 10.1.2.1.0 and have tried to run simple test(for example index.jsp - Welcome) but I get error. - Failed to start Embedded OC4J Server in JDev
    OC4J with simple test have started well in other computers. This situation first time for me.
    Why OC4J can't start?
    This is OC4J log mess
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\JDeveloper\jdev\system10.1.2.1.0.1913\oc4j-config>
    C:\JDeveloper\jdk\bin\javaw.exe -ojvm -classpath C:\JDeveloper\j2ee\home\oc4j.jar;C:\JDeveloper\jdev\lib\jdev-oc4j.jar -Dhttp.proxyHost=coates-proxy -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts=coatesnet*|phoenix*|ev_evs1*|ev*|evs*|dr002*|dr001*|raptor*|cweb01*|cweb03*|cweb02*|orangepages*|unity*|dw01*|intra-apps*|intranet*|prod02*|prod01*|dev3*|dev2*|dev1*|app03*|app02*|app01*|localhost|127.0.0.1 -Xverify:none -Ddisable.checkForUpdate=true -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doracle.dms.sensors=NONE -Doc4j.jms.usePersistenceLockFiles=false com.evermind.server.OC4JServer -config C:\JDeveloper\jdev\system10.1.2.1.0.1913\oc4j-config\server.xml
    [waiting for the server to complete its initialization...]
    Process exited with exit code -1073741819.
    Help me please!

    Did the setup for JDEV_USER_HOME with the proper path (C:\OAFRAME\jdevhome\jdev) ,
    Keep the dbc file in the directory and setup the front end as well as back end login details in cluding responsibility details.

  • Starting embedded-oc4j over Win 2003 Server

    Hi, i need some help with this: when i try to start the Jdeveloper embedded-oc4j over Windows 2003 Server, it shows the next in the Messages Log window:
    Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config D:\Jdeveloper\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    Process exited with exit code 128.
    I`d appreciate if anybody can tell me what i can do!
    Regards!

    Hi,
    please go to Jdev_home\j2ee\home and type java -jar oc4j.jar in a command window. This should - hopefully -provide us with additional exception traces
    Frank

  • Cannot start embedded oc4j

    I just installed oracle 9.0.2 on rh linux 8.0 - no problems.
    I installed jdev 9.03 and seems to work. However I cannot start the embedded oc4j server to test a quick jsp page. I get the following error:
    IllegalArgumentException: Signal already used by VM
    Any ideas how to fix this? Thanks!!!!
    details:
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    /oracle/product/9.2.0.1.0/jdk/bin/java -client -classpath /jdev/j2ee/home/oc4j.jar -Xverify:none -Doracle.j2ee.dont.use.memory.archive=true -Xrs com.evermind.server.OC4JServer -config /home/tom/jdevhome/system9.0.3.1035/oc4j-config/server.xml
    [waiting for the server to complete its initialization...]
    java.lang.reflect.InvocationTargetException: java.lang.IllegalArgumentException: Signal already used by VM: SIGHUP
         at sun.misc.Signal.handle(Signal.java:152)

    JDeveloper skips the scan of ports less than 1024, as they need root user access in Unix platforms. I have filed an Enhancement request for the next release of JDeveloper to make it scan for port less than 1024 .
    raghu
    JDev Team

  • Starting embedded OC4J gives error XML-20108: Start of rootelement expected

    Product JDeveloper 10.1.2.0.0 (Build 1811)
    Up until recently I never got any errors when I started the embedded OC4J-server.
    Now I get the above error.
    It looks as if JDeveloper tries to access server.xml twice. The first process is updating the server.xml, and when the OC4J-server is starting up, it also tries to access server.xml, which is empty at that time (being updated by the other process).
    How can I solve this?
    lebbol

    No need to answer this thread any more, it is outdated

  • Programmatically start embedded oc4j

    I’m writing an extension. The extension contains a servlet. When someone uses the extention for the first time (clicking an icon, selecting a menu option, etc) I’d like to start an instance of the embedded oc4j and have my servlet running on it. I guess I’d want to be able to assign the ports it’s running on too so that I could avoid conflicts...
    Anyone have any ideas on how I could achieve this? Can the embedded oc4j be started from my java code? Also, would I need to package up my servlet/web.xml into a war file? I’ve been trying to track down the code that’s executed with you do a right-click -> run on a servlet but haven’t yet found it.
    any advice would be helpful as I’m pretty new at writing extensions for jdeveloper.
    thanks ,
    Dylan

    sorry.
    We're using the the 11g technology preview.
    The extension will help communicate to other services in our orginization. We use a servlet for this communication.
    Basically, I'd like the user to be able to right-click a file in the navigator pane and select a custom menu item that we've added. This will bring up a browser (I got this working based on code in the extensions samples) that is pointed to our servlet.
    I'd like to package this servlet with our extension. That way, when they install our extention they not only get the code that adds the new menu item, but the servlet as well. So the first time the user clicks the our menu item , it fires up the embedded oc4j with our servlet.
    thx,
    Dylan

  • Error starting embedded OC4J

    I created a simple (one JSP page) web application inside JDeveloper 10.1.3 and tried to run it inside the embedded OC4J server. I get the following error. Anyone know how to resolve?
    06/08/16 18:00:51 java.lang.NoSuchFieldError: oracle.oc4j.admin.management.mbeans.StateManageable.VALID_STATES
    06/08/16 18:00:51      at com.evermind.server.ejb.EJBContainer.isValidState(EJBContainer.java:260)
    06/08/16 18:00:51      at com.evermind.server.ejb.EJBContainer.setState(EJBContainer.java:250)
    06/08/16 18:00:51      at com.evermind.server.ejb.EJBContainer.<init>(EJBContainer.java:108)
    06/08/16 18:00:51      at com.evermind.server.ApplicationStateRunning.initializeApplication(ApplicationStateRunning.java:156)
    06/08/16 18:00:51      at com.evermind.server.Application.setConfig(Application.java:391)
    06/08/16 18:00:51      at com.evermind.server.Application.setConfig(Application.java:308)
    06/08/16 18:00:51      at com.evermind.server.ApplicationServer.initializeSystemApplication(ApplicationServer.java:1480)
    06/08/16 18:00:51      at com.evermind.server.ApplicationServer.initializeAutoDeployedApplications(ApplicationServer.java:1467)
    06/08/16 18:00:51      at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:922)
    06/08/16 18:00:51      at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:113)
    06/08/16 18:00:51      at java.lang.Thread.run(Thread.java:534)

    I don't think it involves spaces in the JDeveloper installation folder. Other developers in my office have JDeveloper installed in a path with no spaces, and they see the same problem. Actually, we don't even need to create a web application to see the problem. We see it when creating a new application server connection with the standalone OC4J 10.1.3 and clicking Test Connection:
    Error while getting remote MBeanServer for url: ormi://localhost:23791/default:
    Error reading application-client descriptor: Error communicating with server: Connection refused: connect; nested exception is:
         javax.naming.CommunicationException: Connection refused: connect [Root exception is java.net.ConnectException: Connection refused: connect]

  • JDeveloper 10g (10.1.3) 10.1.3 Developer Preview: can't start embedded oc4j

    With Oracle JDeveloper 10g (10.1.3) Developer Preview, I tried to make a simple jsp page as in this tutorial:
    http://www.oracle.com/technology/obe/obe9051jdev/visual_jsp/intro_to_visual_jsp.htm
    I only added some text then right-clicked file, selected Run. It didn't work:
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config>
    /usr/java/j2sdk1.4.2/bin/java -client -classpath /my/home/data/opt/jdeveloper/j2ee/home/oc4j.jar:/my/home/data/opt/jdeveloper/jdev/lib/jdev-oc4j-embedded.jar -Xverify:none -DcheckForUpdates=adminClientOnly -Xrs -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doracle.dms.sensors=NONE -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/server.xml
    [waiting for the server to complete its initialization...]
    05/04/08 09:02:24 Node started with id=127765687050882
    05/04/08 09:02:27 Auto-unpacking /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/applications/dms0.war... done.
    05/04/08 09:02:27 Auto-unpacking /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/applications/admin_web.war... done.
    Apr 8, 2005 9:02:29 AM com.evermind.server.XMLDataSourcesConfig parseRootNode
    INFO: Legacy datasource detected...attempting to convert to new syntax.
    05/04/08 09:02:37 Copying default deployment descriptor from archive at /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/connectors/datasources/datasources/META-INF/oc4j-ra.xml to deployment directory /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/application-deployments/default/datasources...
    05/04/08 09:02:37 Copying default deployment descriptor from archive at /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/connectors/OracleASjms/OracleASjms/META-INF/oc4j-ra.xml to deployment directory /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/application-deployments/default/OracleASjms...
    05/04/08 09:02:42 Copying default deployment descriptor from archive at /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/applications/admin_ejb.jar/META-INF/orion-ejb-jar.xml to deployment directory /my/home/marius/jdevhome/system/oracle.j2ee.10.1.3.3.51/oc4j-config/application-deployments/default/admin_ejb.jar...
    05/04/08 09:02:42 Auto-deploying - applications/admin_ejb.jar (orion-ejb-jar.xml had been updated since the previous deployment)...
    05/04/08 09:02:45 Auto-deploying - compiling and loading...
    05/04/08 09:02:45 done.
    05/04/08 09:02:46 Error initializing server: Error initializing ejb-module; Exception java.io.IOException: /my/home/data/opt/jdeveloper/jdev/bin/ojc: cannot execute
    05/04/08 09:02:47 Fatal error: server exiting
    Process exited with exit code 1.
    For a simple stand-alone java application, it worked.
    I have sun jdk 1.4.2 on Fedora Core 3.
    Don't know if there are similar bug reports, I searched this forum for "10.1.3" but the search page stays like that for ~2 minutes, then stops without showing anything.

    Hello Frank,
    Thank you for your suggestion. I tried that and I got the same error. Looked more careful at it:
    Exception java.io.IOException: /my/home/data/opt/jdeveloper/jdev/bin/ojc: cannot execute
    I tried to execute it manually:
    $ l /my/home/data/opt/jdeveloper/jdev/bin/ojc
    -rw-rw-r-- 1 marius marius 1.9k Dec 2 19:20 /my/home/data/opt/jdeveloper/jdev/bin/ojc
    $ /my/home/data/opt/jdeveloper/jdev/bin/ojc
    bash: /my/home/data/opt/jdeveloper/jdev/bin/ojc: Permission denied
    Did
    $ chmod a+x /my/home/data/opt/jdeveloper/jdev/bin/ojc
    which solved the execution. Now Hello word works.
    I got jdeveloper as a .zip archive, which doesn't keep unix permissions. The Linux distribution should be in .tgz archive, it would have avoided this problem.
    Thanks!

  • Failed to start embedded oc4j server

    Hi,
    I have downloaded Oracle JDeveloper 10.1.3.2.0 and created a simple project. When I try to run html file I get this error:
    OC4J startup failed
    java.lang.NoClassDefFoundError: oracle/dms/instrument/NounIntf
         at java.lang.Class.getDeclaredMethods0(Native Method)
         at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
         at java.lang.Class.getMethod0(Class.java:2611)
         at java.lang.Class.getMethod(Class.java:1579)
         at oracle.classloader.util.MainClass.invoke(MainClass.java:81)
         at oracle.oc4j.loader.boot.BootStrap.main(BootStrap.java:30)
    Process exited with exit code 0.
    Can someone please help?
    It is very urgent..
    To solve the problem I tried Start Webcenter Preconfigured OC4J option under Tools and get this error:
    A subdirectory or file C:\oraclexe\jdev\\extensions\oracle.adfp.seededoc4j.10.1.3.2.0\javacache already exists.
    A subdirectory or file C:\oraclexe\jdev\\extensions\oracle.adfp.seededoc4j.10.1.3.2.0\javacache\admin already exists.
    wsrp not installed
    installing wsrp......
    java.lang.RuntimeException: Instruction unknown: loadınstruction
         at com.sun.org.apache.bcel.internal.util.InstructionFinder.mapName(InstructionFinder.java:138)
         at com.sun.org.apache.bcel.internal.util.InstructionFinder.compilePattern(InstructionFinder.java:170)
         at com.sun.org.apache.bcel.internal.util.InstructionFinder.search(InstructionFinder.java:218)
         at com.sun.org.apache.bcel.internal.util.InstructionFinder.search(InstructionFinder.java:264)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.Mode.peepHoleOptimization(Mode.java:1444)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.Mode.compileApplyTemplates(Mode.java:1058)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.compileModes(Stylesheet.java:615)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.translate(Stylesheet.java:730)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:335)
         at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:410)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:791)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:619)
         at oracle.portlet.server.containerimpl.install.Main.applyTransformation(Main.java:284)
         at oracle.portlet.server.containerimpl.install.Main.install(Main.java:169)
         at oracle.portlet.server.containerimpl.install.Main.main(Main.java:126)
    ERROR: 'Instruction unknown: loadınstruction'
    FATAL ERROR: 'Could not compile stylesheet'
    oracle.portlet.server.containerimpl.install.InstallException: Error parsing stylesheet "resource/config-server.xsl"
         at oracle.portlet.server.containerimpl.install.Main.applyTransformation(Main.java:289)
         at oracle.portlet.server.containerimpl.install.Main.install(Main.java:169)
         at oracle.portlet.server.containerimpl.install.Main.main(Main.java:126)
    Caused by: javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:824)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:619)
         at oracle.portlet.server.containerimpl.install.Main.applyTransformation(Main.java:284)
         ... 2 more
    caused by: javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:824)
         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:619)
         at oracle.portlet.server.containerimpl.install.Main.applyTransformation(Main.java:284)
         at oracle.portlet.server.containerimpl.install.Main.install(Main.java:169)
         at oracle.portlet.server.containerimpl.install.Main.main(Main.java:126)
    Starting OC4J from C:\oraclexe\\j2ee\home ...
    Executing: C:\oraclexe\jdk\jre/..\bin\java -XX:MaxPermSize=128m -Xmx512m -jar "C:\oraclexe\\j2ee\home\oc4j.jar" -config C:\oraclexe\jdev\\extensions\oracle.adfp.seededoc4j.10.1.3.2.0\j2ee\home\config\server.xml
    OC4J startup failed
    java.lang.NoClassDefFoundError: oracle/dms/instrument/TransTraceIntf
         at java.lang.Class.getDeclaredMethods0(Native Method)
         at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
         at java.lang.Class.getMethod0(Class.java:2611)
         at java.lang.Class.getMethod(Class.java:1579)
         at oracle.classloader.util.MainClass.invoke(MainClass.java:81)
         at oracle.oc4j.loader.boot.BootStrap.main(BootStrap.java:30)
    Stop OC4J command finished.
    I deleted javacache and javacache\admin but of course it didn't help to solve it...

    The same errors can easily be reproduced by anyone with JDeveloper 10.1.3.2 by temporarily removing or renaming dms.jar
    This implies your dms.jar is not being loaded or is the wrong version or it may be the corrupted . Therefore have you tried reinstalling JDeveloper to eliminate the latter?

  • Problem running embeded OC4J from JDeveloper 11g TP 3

    I've just downloaded JDeveloper 11g Technical Preview 3. Unzipped it and ran.
    IDE runs ok, but when I try to run Web project on embedded OC4J, I got exceptions and the server never starts (exception text included on the bottom).
    Here is the way to reproduce the error:
    1. Create new Web Project with New Gallery wizard:
    a. New Gallery->general->projects->web project
    b. on Web Application page (step 3 of 7) choose Servlet 2.5/JSP 21.
    c. on Page Flow technology page (4 of 7) choose none
    d. don't include available libraries (5 of 7)
    e. on Web Project Profile (6 of 7) check Add JSP Page
    f. finish
    e. choose jsp name (after clicking finish a dialog pops up)
    2. Run the page
    a. select the page in Application Navigator
    b. right click on it and choose Run option
    In my case I got the following exception:
    [Starting Embedded OC4J Server using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\Documents and Settings\kazelot\Application data\JDeveloper\system11.1.1.0.22.47.96\o.j2ee\embedded-oc4j\config>
    D:\work\jdev1111\jdk\bin\javaw.exe -client -classpath D:\work\jdev1111\j2ee\home\oc4j.jar;D:\work\jdev1111\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -XX:MaxPermSize=512m -Ddisable.checkForUpdate=true -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false "-Djava.security.policy=C:\Documents and Settings\kazelot\Application data\JDeveloper\system11.1.1.0.22.47.96\o.j2ee\embedded-oc4j\config\java2.policy" oracle.oc4j.loader.boot.BootStrap -config "C:\Documents and Settings\kazelot\Application data\JDeveloper\system11.1.1.0.22.47.96\o.j2ee\embedded-oc4j\config\server.xml"
    [waiting for the server to complete its initialization...]
    2008-01-30 13:19:09 oracle.j2ee.xml.XMLMessages warningException
    WARNING: Exception Encountered
    2008-01-30 13:19:10 oracle.oc4j.util.SystemLog log
    SEVERE: Server start failed processing configuration
    java.security.AccessControlException: access denied ( CredentialAccessPermission credstoressp.credstore.default.systemuser read)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
         at java.security.AccessController.checkPermission(AccessController.java:427)
         at oracle.security.jps.util.JpsAuth$AuthorizationMechanism$3.checkPermission(JpsAuth.java:256)
         at oracle.security.jps.util.JpsAuth$Diagnostic.checkPermission(JpsAuth.java:180)
         at oracle.security.jps.util.JpsAuth$AuthorizationMechanism$6.checkPermission(JpsAuth.java:280)
         at oracle.security.jps.util.JpsAuth.checkPermission(JpsAuth.java:315)
         at oracle.security.jps.util.JpsAuth.checkPermission(JpsAuth.java:338)
         at oracle.security.jps.internal.credstore.util.CsfUtil.checkPermission(CsfUtil.java:527)
         at oracle.security.jps.internal.credstore.ssp.SspCredentialStore.getCredential(SspCredentialStore.java:412)
         at oracle.security.jps.fmw.util.JpsFmwUtil.findSystemUser(JpsFmwUtil.java:218)
         at oracle.security.jps.fmw.JpsUserManager.init(JpsUserManager.java:235)
         at oracle.security.jps.fmw.JpsUserManager.<init>(JpsUserManager.java:247)
         at oracle.security.jps.fmw.JpsUserManagerFactory$JpsUserManagerFactoryI.create(JpsUserManagerFactory.java:252)
         at com.evermind.server.deployment.UserManagerConfig$JAZN.construct(UserManagerConfig.java:635)
         at com.evermind.server.deployment.UserManagerConfig.delegatee(UserManagerConfig.java:253)
         at com.evermind.security.IndirectUserManager.getAdminUser(IndirectUserManager.java:126)
         at com.evermind.security.IndirectUserManager.getAdminUser(IndirectUserManager.java:126)
         at com.evermind.server.XMLApplicationServerConfig.setPassword(XMLApplicationServerConfig.java:3157)
         at com.evermind.server.XMLApplicationServerConfig.<init>(XMLApplicationServerConfig.java:244)
         at com.evermind.server.ApplicationServer.createConfig(ApplicationServer.java:648)
         at oracle.oc4j.server.ServerFactory$Worker.prepareConfig(ApplicationServerFactory.java:201)
         at oracle.oc4j.server.ServerFactory$Worker.start(ApplicationServerFactory.java:220)
         at oracle.oc4j.server.ServerFactory$Worker.run(ApplicationServerFactory.java:235)
         at java.lang.Thread.run(Thread.java:595)
    2008-01-30 13:19:10 oracle.oc4j.util.SystemLog logNoStack
    SEVERE: Server exiting: ApplicationServer entered state EXITING
    Process exited with exit code 1.
    Is it something with my configuration. My environment is:
    ADF Business Components     11.1.1.47.96
    Java(TM) Platform     1.5.0_11
    Oracle IDE     11.1.1.0.22.47.96
    SOA Composite Editor     11.1.1.0.0 (Build 071219.1424)
    Versioning Support     11.1.1.0.22.47.96
    Thanks for any suggestions,
    kazelot

    change the file to just (DIRTY way, but works)
    grant {
         permission java.security.AllPermission;
    };Really dirty as these permissions are not Java EE compliant.
    --olaf                                                                                                                                                                                                                                                                                                                                                                           

  • Does Embedded OC4J has a web based admin console ?

    Hi
    Thank you for reading my post
    does embedded OC4J has a web based admin console ?
    i tried to open the /em context and it said that the page not found.
    if it has no Admin console , it ir t possible to install an admin console for it ?
    thanks

    Hi,
    yes, it has. You need to start embedded OC4J as stand-alone from the jdev-home\j2ee\home using the java -jar oc4j.jar command. You can then launch it and access it via port 8888 and issue
    http:://....:8888/em
    The embedded server does not use the enterprise manager screen because the configuration is kept in the JDeveloper_home\jdev\system...\j2ee...\embedded...\config directory
    Frank

  • Embedded OC4J not starting, not accessible

    Hello Oracle folks,
    I have JDeveloper 9.0.5.2 (1618) and had a Struts project. Trying to lauch it in the embedded OC4J does not work anymore (for my colleagues it works). I tried any combination of re-installs and re-imports of the project from CVS. I also blew away the JDeveloper files in ${user.home}(so I had to start from zero, I opened the *.JWS file out of our cvs repository). Still the embedded OC4J won't start !!
    Can anybody explain this (maybe below error stack is an indication, and it only occurs in one of my workspaces)
    This is the detailed error stack:
    java.lang.NullPointerException
         at oracle.jdeveloper.ejb.EjbAppManager.getEjbModuleContainer(EjbAppManager.java:241)
         at oracle.jdeveloper.ejb.EjbAppManager.getOrionEjbJarNode(EjbAppManager.java:592)
         at oracle.jdeveloper.ejb.EjbAppManager.findOrionEjbJarNode(EjbAppManager.java:581)
         at oracle.jdeveloper.xml.oc4j.ejb.OrionEjbJarHelper.findOrionEjbJar(OrionEjbJarHelper.java:59)
         at oracle.jdevimpl.deploy.ejb.Oc4jEjbDeployer.validate(Oc4jEjbDeployer.java:95)
         at oracle.jdevimpl.runner.oc4j.Oc4jStarter.validate(Oc4jStarter.java:685)
         at oracle.jdevimpl.runner.oc4j.Oc4jStarter.preStart(Oc4jStarter.java:612)
         at oracle.jdevimpl.runner.oc4j.Oc4jStarter.start(Oc4jStarter.java:268)
         at oracle.ide.runner.RunProcess.startTarget(RunProcess.java:756)
         at oracle.jdeveloper.runner.JRunProcess.startTarget(JRunProcess.java:461)
         at oracle.ide.runner.RunProcess$2.run(RunProcess.java:699)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    #### Embedded OC4J Server could not be started up.

    Hi,
    Try to invoke the OC4j services from run using the following:
    START OC4J FROM CMD LINE -> C:ORACLEBI\OC4J_BI\BIN\OC4J.CMD –START
    TO STOP: C:\ORACLEBI\OC4J_BI\BIN\OC4J.CMD –STOP
    1. Run the Stop initially and then run the Start Command. (If still unable to start and throwing any error make a note of it)

  • Embedded OC4J Server could not be started up

    hi ,
    we are using java web services(JAX-RAC) in jdevloper for oaf page , for getting data from another application, if i run page from jdevlope with web services it is showing "failed to start embbed oc4j server". if i run without web services it is not showing any error.
    please hlep me, advanced thanks.
    regards,
    kishore
    Edited by: Saurabh on Nov 4, 2011 7:00 AM

    When I try to open the Tools/Embedded OC4J Server Preferences...
    the following error stack trace pops up:
    java.lang.NullPointerException
         at oracle.ide.net.URLFactory.newURL(URLFactory.java:85)
         at oracle.jdevimpl.runner.oc4j.Oc4jWorkspaceConfig.transmogrifyConfigFiles(Oc4jWorkspaceConfig.java:224)
         at oracle.jdevimpl.runner.oc4j.Oc4jWorkspaceConfig.configureAll(Oc4jWorkspaceConfig.java:112)
         at oracle.jdevimpl.runner.oc4j.EmbeddedServerAdminCommand.doit(EmbeddedServerAdminCommand.java:50)
         at oracle.ide.CommandProcessor.invokeImpl(CommandProcessor.java:391)
         at oracle.ide.CommandProcessor.invoke(CommandProcessor.java:343)
         at oracle.ide.CommandProcessor.invoke(CommandProcessor.java:110)
         at oracle.ide.IdeAction.performAction(IdeAction.java:665)
         at oracle.ide.IdeAction$1.run(IdeAction.java:857)
         at java.awt.event.InvocationEvent.dispatch InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    Any other way of checking the configuration? Corrupt files somewhere?
    Thanks,
    Gonzalo

  • Embeded Oc4j server not starting up in Jdeveloper 10g 10.1.3.0.3

    hi,
    I have created simle hello.jsp , but i try to run it with the embedded OC4j server i get the following error .
    C:\jdk1.4\bin\javaw.exe -client -classpath C:\jdev\j2ee\home\oc4j.jar;C:\jdev\jdev\lib\jdev-oc4j-embedded.jar -Dhttp.proxyHost=172.16.233.34 -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts=local.|localhost|127.0.0.1 -Dhttps.proxyHost=172.16.233.34 -Dhttps.proxyPort=8080 -Dhttps.nonProxyHosts=local.|localhost|127.0.0.1 -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:\jdev\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    Sep 30, 2005 6:23:17 PM com.evermind.server.XMLDataSourcesConfig parseRootNode
    INFO: Legacy datasource detected...attempting to convert to new syntax.
    Error: cannot read: java.lang.Enum
    05/09/30 18:23:23 Application: system is in state FAILED
    05/09/30 18:23:23 Error initializing server: Error initializing ejb-modules: Error loading module file:/C:/jdev/jdev/system/oracle.j2ee.10.1.3.34.12/embedded-oc4j/applications/admin_ejb.jar: Syntax error in source or compilation failed in: C:\jdev\jdev\system\oracle.j2ee.10.1.3.34.12\embedded-oc4j\application-deployments\admin_ejb\generated\MBeanServerEjbRemote_StatefulSessionBeanWrapper0.java
    Error: cannot read: java.lang.Enum
    05/09/30 18:23:24 Fatal error: server exiting
    Process exited with exit code 1.
    Can anyone help

    The 10.1.3 version of JDeveloper (and the embedded OC4J) requires JDK 5.0 to run.
    You can however set your project to work with JDK 1.4 in the project properties.

  • How to reload embedded oc4j in JDeveloper without terminating it?

    To the experienced:
    Using JDeveloper (10.1.3.4), when I need to see the effect of my changes in the application code (in the backing beans), the only way I know is to terminate the embedded oc4j by clicking the red square button (or Run > Terminate > Embedded OC4J Server), and then run a .jspx page to restart the oc4j. All these steps are just for the changes in the code to be loaded into the oc4j.
    That is a bit too cumbersome because such reloading is frequent. To test the changed application I need to use an outside page that sends a request to that .jspx page, with some information that the .jspx page needs. That won't work because the oc4j has been terminated. So I have to Run that .jspx page inside JDeveloper just to start the oc4j, knowing that this will spill error in the browser window because the information from the outside page is missing.
    Is there a way to have the application in the running oc4j updated without terminating and restarting the oc4j?
    Thanks for helping!
    Newman

    It kind of depends on the type of changes you did - some changes can be picked up automatically just by saving the new file and reloading in the browser.
    In any case you don't need to first stop the server and then run, you can just hit the run button again and JDeveloper will re-deploy your new page.
    You can have the HTML file be part of your project and run it from inside JDeveloper - this will also re-deploy your new JSPX.

Maybe you are looking for