Oc4j server starting

how to start oc4j server using -start command and how to increase heap memory in that???????

Use the following:
java -Xms512m -Xmx512m -jar oc4j.jar

Similar Messages

  • OC4J Server start error

    Hi All,
    I am trying to bring up the OC4J on SunSolaris, while bringing up the server I am getting following error in log file.
    Please help resolve this. Thanks in advance.
    09/11/26 10:37:42.327 ascontrol: 10.1.3.5.0 Started
    09/11/26 10:42:06.834 ascontrol: Error initializing servlet
    java.lang.NoClassDefFoundError
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:141)
         at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
         at java.awt.Font.initializeFont(Font.java:308)
         at java.awt.Font.<init>(Font.java:344)
         at oracle.sysman.ias.studio.app.StudioConsole.loadFont(StudioConsole.java:292)
         at oracle.sysman.ias.studio.app.StudioConsole.init(StudioConsole.java:107)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpApplication.loadServlet(HttpApplication.java:2528)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:5006)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4930)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3139)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:775)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:226)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:127)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:116)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:534)
    09/11/26 10:42:06.838 ascontrol: Servlet error
    java.lang.NoClassDefFoundError
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:141)
         at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
         at java.awt.Font.initializeFont(Font.java:308)
         at java.awt.Font.<init>(Font.java:344)
         at oracle.sysman.ias.studio.app.StudioConsole.loadFont(StudioConsole.java:292)
         at oracle.sysman.ias.studio.app.StudioConsole.init(StudioConsole.java:107)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpApplication.loadServlet(HttpApplication.java:2528)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:5006)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4930)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3139)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:775)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:226)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:127)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:116)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:534)
    09/11/26 10:58:53.890 ascontrol: 10.1.3.5.0 Stopped
    09/11/26 10:59:44.270 10.1.3.5.0 Started
    09/11/26 10:59:47.385 ascontrol: 10.1.3.5.0 Started
    09/11/26 11:00:41.19 ascontrol: Error initializing servlet
    java.lang.NoClassDefFoundError
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:141)
         at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
         at java.awt.Font.initializeFont(Font.java:308)
         at java.awt.Font.<init>(Font.java:344)
         at oracle.sysman.ias.studio.app.StudioConsole.loadFont(StudioConsole.java:292)
         at oracle.sysman.ias.studio.app.StudioConsole.init(StudioConsole.java:107)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpApplication.loadServlet(HttpApplication.java:2528)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:5006)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4930)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3139)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:775)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:226)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:127)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:116)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:534)
    09/11/26 11:00:41.24 ascontrol: Servlet error
    java.lang.NoClassDefFoundError
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:141)
         at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
         at java.awt.Font.initializeFont(Font.java:308)
         at java.awt.Font.<init>(Font.java:344)
         at oracle.sysman.ias.studio.app.StudioConsole.loadFont(StudioConsole.java:292)
         at oracle.sysman.ias.studio.app.StudioConsole.init(StudioConsole.java:107)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpApplication.loadServlet(HttpApplication.java:2528)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:5006)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpApplication.findServlet(HttpApplication.java:4930)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:3139)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:775)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:226)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:127)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:116)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:534)

    It says that its not able to find the classes that it is searching for .. I believe that you need to see with the application, if any class is missing or what!
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:141)
    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
    at java.awt.Font.initializeFont(Font.java:308)
    at java.awt.Font.<init>(Font.java:344)
    at oracle.sysman.ias.studio.app.StudioConsole.loadFont(StudioConsole.java:292)
    at oracle.sysman.ias.studio.app.StudioConsole.init(StudioConsole.java:107)
    at com.evermindhttp://Oracle Containers for J2EE 10g (10.1.3.5.0)

  • How to Starting and Stopping OC4J Server using Ant

    How to Starting and Stopping OC4J Server using Ant
    In the ant task definitions for ant-oracle-classes.jar (see antlib.xml) there are two tasks called
         name="restartServer" classname="oracle.ant.taskdefs.deploy.JSR88StartServer"
         name="shutdownServer" classname="oracle.ant.taskdefs.deploy.JSR88ShutdownServer"
    I thought that these would shutdown and start the OC4J server. I guessed the parameters as – (Does anyone know where 50 ant targets are documented?)
    <oracle:restartServer
    userid="${oc4j.admin.user}"
         password="${oc4j.admin.password}"
         deployeruri="${deployer.uri}"
    />
    <oracle:shutdownServer
         userid="${oc4j.admin.user}"
         password="${oc4j.admin.password}"
         deployeruri="${deployer.uri}"
    />
    This, however does not start and stop the SOA suite. To do that I've hacked this solution together -
    <path id="oc4j.console">
         <pathelement location="${oracle.home}/config"/>
         <pathelement location="${oracle.home}/jlib/startupconsole.jar"/>
         <pathelement location="${oracle.home}/opmn/lib/optic.jar"/>
         <pathelement location="${oracle.home}/lib/xmlparserv2.jar"/>
    </path>
    <target name="stop" description="stop oc4j server" depends="init">
         <java classname="oracle.appserver.startupconsole.view.Runner">
              <classpath refid="oc4j.console"/>
              <sysproperty key="ORACLE_HOME" path="${oracle.home}"/>
              <arg value="stop"/>
         </java>
    </target>
    <target name="start" description="restart oc4j server" depends="init">
         <java classname="oracle.appserver.startupconsole.view.Runner">
              <classpath refid="oc4j.console"/>
              <sysproperty key="ORACLE_HOME" path="${oracle.home}"/>
              <arg value="start"/>
         </java>
    </target>
    This sort of works – except when the SOA suite doesn't stop cleanly – and needs user interaction to press a Close button. This isn't very useful when doing a continous integration build and deploy.
    So, does anyone have any suggestions or alternative methods to do this?
    - frank

    Actually if the server throws exceptions when it stops (which it always has since we applied patch 10.1.3.3) this technique will pause until a user responds to pop-up ... So a better way (I think) is -
    <target name="start" description="start oc4j server" depends="init">
    <java classname="oracle.appserver.startupconsole.view.Runner">
    <classpath refid="oc4j.console"/>
    <sysproperty key="ORACLE_HOME" path="${oracle.home}"/>
    <arg value="start"/>
    </java>
    </target>
    <target name="stop" description="stop oc4j server" depends="init">
    <echo message="We expect OC4J *NOT* to stop cleanly, so we will timeout after 3 minutes ..."/>
    <java classname="oracle.appserver.startupconsole.view.Runner" fork="true" timeout="180000">
    <classpath refid="oc4j.console"/>
    <sysproperty key="ORACLE_HOME" path="${oracle.home}"/>
    <arg value="stop"/>
    </java>
    </target>
    <target name="restart" description="restart oc4j server">
    <antcall target="stop"/>
    <!-- wait for server to quieten down -->
    <waitfor maxwait="2" maxwaitunit="minute">
    <not><http url="http://${oc4j.http.hostname}:${oc4j.http.port}"/></not>
    </waitfor>
    <antcall target="start"/>
    </target>

  • How to start the oc4j server

    I install oracle 9ias 9.0.3,but i don't know how to start the oc4j server.
    thanks for any help?

    hi
    Refer "Starting and Stopping OC4J" from
    http://otn.oracle.com/tech/java/oc4j/doc_library/902/A95880_01/html/toc.htm
    hope this helps.
    shrini

  • Starting OC4J Server

    I've installed OC4J on Oracle 9i Application Server 1.0.2.2 on
    Solaris v 5.7. I have Java version 1.2.1 as my default Java
    environment.
    The installation of OC4J went through fine. However, when trying
    to start the OC4J server, I get the following error:
    $ java -jar orion.jar
    Error initializing server: Error instantiating default
    application at file:/app.
    Any suggesstions?
    Thanks,
    Ricardo R. Guzman

    Did you do this first:
    java -jar orion.jar -install
    This will set your admin password. Not absolutely necessary, but
    useful. The error indicates that you don't have write access to
    some directory. Here is the layout of oc4j:
    /../j2ee/home
    this should be the directory you start oc4j from. The .. is
    whereever you have installed oc4j.
    j2ee/home/application-deployments
    this directory is where the applications are actually deployed.
    j2ee/home/applications
    this directory is where ear files can be automatically deployed,
    if you want to do that. By default, this feature is not enabled.
    j2ee/home/config
    various configuration xml files.
    j2ee/home/default-web-app
    this directory has the startup default web application.
    The message you got doesn't make sense, unless you have your
    default-web-site.xml file pointing to a directory /app for your
    default-web-app. If you have done this, oc4j needs read/write
    access to the directory. If you have not setup this permission,
    this would explain the error you are getting.
    regards,
    the elephantwalker
    www.elephantwalker.com

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

  • 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

  • Start OC4J Server from JButton

    I have JClient Swing applicaton and i have to start the Embedded OC4J Server from JButton because after that a jsp file must be run from this button. I tried this:Runtime.getRuntime().exec("java -jar oc4j.jar") but no effect. Any ideas?!

    I tried what you suggested. Put the link which is like
    "http://localhost:port/context-root/my.jsp" before
    Runtime.getRuntime().exec("java.exe -jar oc4j.jar");
    but with no effect again. The Embedded OC4J Server doesn't start.What I do wrong?

  • Start OC4J Server

    I have JClient Swing applicaton and i have to start the Embedded OC4J Server from JButton. I tried this:Runtime.getRuntime().exec("java -jar oc4j.jar") but no effect. Any ideas?!

    I tried what you suggested. Put the link which is like
    "http://localhost:port/context-root/my.jsp" before
    Runtime.getRuntime().exec("java.exe -jar oc4j.jar");
    but with no effect again. The Embedded OC4J Server doesn't start.What I do wrong?

  • 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 use the same OC4j server with different port number

    How to use the same OC4j server with different port numbers..?
    I have to OC4J installed on my machine on different hard disk drives....
    I want to be able to run both the server simultaneously..?
    is it possible ..it yes then how..?
    for that i have changed the port number of one server...
    but when i am trying to start the other server with different port number..it says that JVM -Bind already...
    Is there any clues...?
    Nilesh G

    In the config directory:
    default-web-site.xml: Change the port the HTTP listener listens on
    jms.xml: Change the port the JMS service listens on
    rmi.xml: Change the port the ORMI listener listens on.
    Or, you can add another web-site.xml file, and deploy your applications to 1 server, and bind the web applications to the different web sites. This way you only have to deploy your applications to 1 place.
    Rob
    Oracle

  • How to load a java class at server start-up

    Hi,
    I have one custome java class that is being referenced by all the applications deployed in OC4J container. How can I load that class automatically and be evailable in the path at server start-up time. Is there an option available to give the class name that also gets loaded automatically.
    Thanks

    To me, you have two mixed issues.
    1. OC4J supports a startup/shutdown model where a named class will be invoked when the container is started (or stopped).
    This is described in the doc here:
    http://download-west.oracle.com/docs/cd/B32110_01/web.1013/b28952/startclas.htm#CIHECEIB
    Note that this specifically calls the methods that are implemented from the respective OC4JShutdown and OC4JStartup interfaces -- the class that is instantiated and called here is not available to all other applications by default. This is more to suit the need where something needs to be done when the container is started/stopped.
    2 The next option is where you just want to make a class available to all applications deployed to the container. For this we provide the shared-library mechanism. Using this you can either make use of the implicit global.libraries shared-lib in which you simply drop JAR files into the j2ee/home/applib directory whereupon the classes will become available by default to all applications. Or you can choose to install a shared-library that contains your specific classes (in a JAR file) and then import that into the default application whereupon the configuration will be inherited by all deployed applications.
    cheers
    -steve-

  • Problem on running Preconfigured OC4J server in JDeveloper 10.1.3.2

    Hi all,
    I have problem on running preconfigured oc4j server in JDeveloper 10.1.3.2. I get the error message below :
    C:\Jdev10132\jdev\extensions\oracle.adfp.seededoc4j.10.1.3.2.0\srcimage\bin>
    C:\Jdev10132\jdev\extensions\oracle.adfp.seededoc4j.10.1.3.2.0\srcimage\bin\adfp_oc4j.cmd C:\Jdev10132\jdk\jre\.. C:\Jdev10132\ C:\Jdev10132\jdev\extensions\oracle.adfp.seededoc4j.10.1.3.2.0 -start
    wsrp not installed
    installing wsrp......
    C:\Jdev10132\jdev\extensions\oracle.adfp.seededoc4j.10.1.3.2.0\javacache alt path or file already exist
    C:\Jdev10132\jdev\extensions\oracle.adfp.seededoc4j.10.1.3.2.0\javacache\admin
    path or file already exist
    System can not find the specified path
    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)
    System can not find the specified path
    Error: Can not find C:\Jdev10132\jdev\extensions\oracle.adfp.seededoc4j.10.1.3.2.0\j2ee\home\config\server.xml.
    Stop OC4J command finished
    Any help is appreciated...
    Thanks in advance
    Aliye

    well I have downloaded the latest version of jdk (1.6) to check with it so it solved some of the problems but still I get an error on running the oc4j server. Error I get is:
    Starting OC4J from C:\Jdev10132\j2ee\home ...
    Executing: C:\Jdev10132\jdk\jre..\bin\java -XX:MaxPermSize=128m -Xmx512m -jar "C:\Jdev10132\j2ee\home\oc4j.jar" -config C:\Jdev10132\jdev\extensions\oracle.adfp.seededoc4j.10.1.3.2.0\srcimage\j2ee\home\config\server.xml
    07/02/19 10:45:10 Error initializing server: IO error reading system
    07/02/19 10:45:10 Fatal error: server exiting
    Stop OC4J command finished.
    I couldnt understand what is the problem now..
    Thanks for your help..
    Aliye

  • How to configure the .EAR to the OC4J server step by step ?

    I have configured the JavaBean of the OC4J server with the following step:
    1.create the eosp.ear with the JDeveloper's wizard
    2.copy the eosp.ear to the OC4J Server with the Path:
    J2EE_HOME/applications/
    3.modify the server.xml and add the following words:
    <application name="eosp" path="../applications/eosp.ear" auto-start="true"/>
    4.restart the OC4J server and show the information:
    Auto-deploying eosp (New server version detected)...
    5.create the new JSP and this source code is:
    <%@ page import="com.beautybeard.eosp.common.*"%>
    <%@ page import="com.beautybeard.eosp.constant.*"%>
    6.visit the JSP and show the error information:
    Error parsing JSP page /eosp/usr_profile/login.jsp
    Syntax error in source/eosp/usr_profile/login.jsp.java:5: Package com.beautybeard.eosp.common not found in import.import com.beautybeard.eosp.common.*; ^/eosp/usr_profile/login.jsp.java:6: Package com.beautybeard.eosp.constant not found in import.import com.beautybeard.eosp.constant.*; ^2 errors
    why?
    why can not find the package?
    please help me out

    Hi Sky-
    It looks like you have a web application only.
    You need to create a war file as described above. A war file is a jar'd file containing your web components, including your javabean class files, etc. JDeveloper 9i can do this for you. You've already done the hard work. Suppose that the project you have created that contains your javabeans, etc in JDev 9i is called myproject (with myproject.jpr as the project file). Right click on the myproject.jpr in the JDev navigator and select 'new...', go to Deployment Profiles and select J2EE Web Module (WAR File) - a general screen will pop up asking you to save the deployment profile (you can just use the default if you want). Once you select OK on that, you will get a screen that calls itself the J2EE Web Module Deployment Profile Settings. This is the screen that you can use to enter your information.
    Your servlet and javabean classes will go into WEB-INF/classes subdirectory that you see to your left in this window. Simply select the WEB-INF/classes entry and it will display a list of your java sources (it will only place the compiled output in this directory - there is a toggle for it).
    Once you have specified that your javabean and servlet classes go in this directory, you should be set. Go ahead and save / close. In your navigation screen under your project (myproject.jpr or whatever your project name is) you will see your files, jsps, etc and something called webapp1.deploy (if you accepted the default). If you right-click on that, you will get a menu that asks a number of things, one of which is to Deploy to EAR file. Select that entry and it will create an ear file for you. You can play with the various settings to change the name of the ear file, but that's about all you have to do. Once this is completed, you can put the EAR file on your linux box or wherever you want, adjust your server.xml and default-web-app.xml files and launch the app!
    Good luck!
    Ray
    Hi,Ray
    Thank you for giving me the detail information!
    I'm sorry that I can not give the detail and clear problem ,which make you delusoried.
    ok,now I give you my aim.
    1. I will construct my application system with JavaBean(not EJB),Servlet,JSPs (linux+IAS+JDeveloper+Oracle8i database)
    2. I will package business function with JavaBean. example:
    * CheckLogin.java
    package com.beautybeard.eosp.javabean.usrprofile;
    import com.beautybeard.eosp.common.*;
    import com.beautybeard.eosp.data.*;
    import java.io.*;
    import java.lang.*;
    public class CheckLogin{
    public CheckLogin()
    //do nothing here
    public boolean getCheckLogin(){
    3. I will control the request and response with Servlets.
    example:
    *CheckLoginSevlet.java
    package com.beautybeard.eosp.servlet.usrprofile;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    import java.sql.*;
    import com.beautybeard.eosp.servlet.*;
    import com.beautybeard.eosp.javabean.usrprofile.*;
    public class CheckLoginServlet extends DefaultServlet
    public void service(HttpServletRequest req,HttpServletResponse res) throws IOException, ServletException
    //use the JavaBean
    CheckLogin cl = new CheckLogin();
    if (cl.getCheckLogin){
    res.sendRedirect("login.jsp");
    }else{
    res.sendRedirect("err.jsp");
    4. I will display the result with JSPs:
    example:
    <%//login.jsp%>
    <%@ page import="com.beautybeard.eosp.common.*"%>
    <%@ page import="com.beautybeard.eosp.data.*"%>
    5. I have success on running the above steps in the 9iJDevelper(pure java) environment(OS:Windows 2000 Server), and now I will move the JSPs ,Servlets,JavaBeans to the Server(linux) without the JDeveloper's deployment wizard.
    how to configure the IAS to carry my point?
    thank you!
    Sky liu

  • Oc4j server embeded in Jdeveloper 10g is not ruuning

    hi,
    1.
    I am trying to run ocrj server embede in Jdeveloper from command promt
    for which as given step in Jdevelioper handbook , i proceeded as executing
    setvars -go from directory jdev\bin , but i am getting the following error
    D:\JDev\jdev\bin>setvars -go
    Using JDeveloper installation in "D:\JDev\jdev\"
    Using JDeveloper root in "D:\JDev\"
    'findstr' is not recognized as an internal or external command,
    operable program or batch file.
    2. if i proceed next step without caring the previous step , the server is start but vanished instantly
    i am using Windows XP(sp 2) jdk 1.4
    pz can any one will guide me
    log file showing the following message
    06/02/13 20:25:11 Auto-unpacking D:\JDev\BC4J\redist\bc4j.ear...
    06/02/13 20:25:12 Auto-unpacking D:\JDev\BC4J\redist\bc4j.ear... done.
    06/02/13 20:25:19 Auto-unpacking D:\JDev\soap\lib\soap.ear...
    06/02/13 20:25:19 Auto-unpacking D:\JDev\soap\lib\soap.ear... done.
    06/02/13 20:25:19 9.0.4.0.0 Started
    06/02/13 20:26:34 9.0.4.0.0 Started
    06/02/14 18:23:07 9.0.4.0.0 Started
    06/02/14 18:23:14 Forced or abrupt (crash etc) server shutdown detected, starting recovery process...
    06/02/14 18:23:14 Recovery completed, 0 connections committed and 0 rolled back...
    06/02/14 18:23:14 9.0.4.0.0 Started
    06/02/15 09:58:49 9.0.4.0.0 Started
    06/02/15 09:58:55 Forced or abrupt (crash etc) server shutdown detected, starting recovery process...
    06/02/15 09:58:55 Recovery completed, 0 connections committed and 0 rolled back...
    06/02/15 09:58:55 9.0.4.0.0 Started
    06/02/15 10:03:58 9.0.4.0.0 Started
    06/02/15 10:03:58 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 10:04:13 9.0.4.0.0 Started
    06/02/15 10:04:14 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 10:41:12 9.0.4.0.0 Started
    06/02/15 10:41:13 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 12:20:46 9.0.4.0.0 Started
    06/02/15 12:20:46 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 12:21:02 9.0.4.0.0 Started
    06/02/15 12:21:02 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 12:21:26 9.0.4.0.0 Started
    06/02/15 12:21:27 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 12:21:34 9.0.4.0.0 Started
    06/02/15 12:21:35 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 12:21:43 9.0.4.0.0 Started
    06/02/15 12:21:44 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 12:28:23 9.0.4.0.0 Started
    06/02/15 12:28:23 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 12:29:45 9.0.4.0.0 Started
    06/02/15 12:29:46 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 12:30:37 9.0.4.0.0 Started
    06/02/15 12:30:37 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 12:43:34 9.0.4.0.0 Started
    06/02/15 12:43:35 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 13:01:43 9.0.4.0.0 Started
    06/02/15 13:01:43 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 14:59:13 9.0.4.0.0 Started
    06/02/15 14:59:13 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 14:59:32 9.0.4.0.0 Started
    06/02/15 14:59:33 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 15:05:39 9.0.4.0.0 Started
    06/02/15 15:05:39 9.0.4.0.0 Stopped (JVM termination)
    Waiting for your response
    Rgds
    nripa

    Thaks Frank ! I did as your suggestion and in the command line the following message comes
    D:\JDev\j2ee\home>java -jar oc4j.jar
    06/02/16 10:53:01 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)
    initialized
    I Assumed that oc4j server statrted , I test the server using the browser to connect to http://localhost:8888 i got
    You are not authorized to view this page
    You might not have permission to view this directory or page using the credentials you supplied.
    HTTP Error 403 - Forbidden
    Internet Explorer
    i checked the port number in relevent xml file
    pz if possible support me
    Rgds
    nripa

Maybe you are looking for

  • Getting syntax error in "SAPLBBP_PDH_CUF" in shopping cart/RFx/PO creation process in SRM7.0.Is it Patch issue?

    Getting syntax error in "SAPLBBP_PDH_CUF" in shopping cart/RFx/PO creation process in SRM7.0.Is it Patch issue?

  • Conflict between Articulate Engage swf and Quiz Manager

    I am inserting an articulate engage swf into my Breeze presentation and my Presenter quiz questions do not work correctly after inserting the engage swf.  My process has been to publish the engage swf which also publishes a content folder....Then I i

  • Arrow keys are not scrolling

    When I try to use my arrow keys to scroll down the page, it jumps right down to the very bottom of the page, and the "home" and "end" buttons dont work either.

  • I can't convert my songs

    Hi everyone! I recently downloaded Itunes 9.0. With the previous versions, when I needed to convert a song I just dropped it in my library and Itunes converted it automaticaly. But now nothing happens. What should I do? Thanks !

  • Adobe Site Problems

    I have noticed that, every time I try to access the site www.adobe.com with Internet Explorer 7, Internet Explorer locks up, and I must do a ctrl-alt-del to terminate Internet Explorer. This problem happens consistently, and it has done so over sever