Starting OC4J installed through ( java -jar oc4j.jar -install)

Hi,
I want to use MapViewer. I installed OC4J standalone,using the following command
java -jar oc4j.jar -install and then installed MapViewer in directory "lbs" under Oracle home. After that I updated the following two files
1) http-web-site.xml
2) server.xml
according to the installation guide. I have runned the scripts and imported the MapViewer's dmp into Scott's schema.
My oracle httpService is running and is listening on normal http port i.e. 8080
I have to do the following
1) Start OC4J (How can I do that ? I tried it as
java -jar E:\oracle\j2ee\home\OC4J.jar but it says that the (c:\config\server.xml, System can not find the path specified. Since this is not the actual path, actual one is ... E:\oracle\j2ee\home\config\server.xml ) 2) How to check that OC4J is running or not ?
3) Wot and how to run in browser for viewing the output, i.e. any DML/retrieval from Spatial data/maps...
I know, I m very near to get output, but sometimes it feels so far.
Please help me... You may suggest any book, link, or reply to above questions..
Thanx
Zaaf.

1) cd to j2ee/home
then start as:
java -jar oc4j.jar
or
java -jar E:\oracle\j2ee\home\oc4j.jar -config E:\oracle\j2ee\home\config\server.xml
2) You will get a message that the server is started
For details please look at http://otn.oracle.com/tech/java/oc4j/pdf/oc4j_so_usersguide_r2.pdf
thanks
Debu

Similar Messages

  • No such method error when starting OC4J 1.3 Developer's Preview

    Hi,
    Having run 1.0.2.2.1 successfully I've now installed OC4J 1.3 Developer's Preview version. When I start up the server (java -jar oc4j.jar) I get the following error:
    java.lang.NoSuchMethodError
    at org.apache.crimson.tree.XmlDocumentBuilder.startDTD(XmlDocumentBuilder.java:615)
    at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1131)
    I'm executing the commmand from the same directory as oc4j.jar and have the CLASSPATH set as follows:
    E:\Oracle\iSuites\j2ee\home\ejb.jar;
    E:\Oracle\iSuites\j2ee\home\jndi.jar;
    E:\Oracle\iSuites\j2ee\home\oc4j.jar;
    e:\oracle\isuites\j2ee\home\crimson.jar
    Any ideas ?
    Cheers,
    Geoff

    Hi Geoff,
    As far as I know, there is no "OC4J 1.3 Developer's Preview" version;
    there is a "9.0.3 Developer's Preview Version". However, I would suggest
    using the "9.0.2 Production Version" (also available for download from the Technet web site: http://technet.oracle.com)
    Also, you need to be using JDK 1.3.1 with that version of OC4J.
    You can find information on how to run OC4J in "debug" mode from the
    Atlassian web site:
    http://www.atlassian.com
    and on the OrionSupport web site:
    http://www.orionsupport.com
    You can also try using the "verbosity" flag, as in:
    java -jar oc4j.jar -verbosity 10
    (10 is the highest value for "verbosity")
    Good Luck,
    Avi.

  • Getting windows services through java

    Hi,
    I just want to get the status of windows services( SERVICE_NAME: DWMRCS)
    and also i have to stop and start the services through java code is there any help?
    thanks

    Use "sc" util with Runtime.exec().

  • Getting error while running command java -jar oc4j.jar -install

    java -jar oc4j.jar -install
    ON RUNNING The above command getting below error , is it because Java home is not set?
    Warning: -jar not understood. Ignoring.
    Exception in thread "main" java.lang.NoClassDefFoundError: oc4j.jar
    at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)
    at JvThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)
    at JvRunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)
    at __gcj_personality_v0 (/oracle/u01/app/oracle/product/10.2.0/db_1/oc4j/j2ee/home/java.version=1.4.2)
    at __libc_start_main (/lib/tls/libc-2.3.4.so)
    at JvRegisterClasses (/oracle/u01/app/oracle/product/10.2.0/db_1/oc4j/j2ee/home/java.version=1.4.2)
    navisdb.igglobal.com(express)$ javac
    ksh: javac: not found
    ENVIORNMENT DETAIL : RED HAT LINUX ENTERPRISE EDITION
    Extracted OC4J_extended.zip file at oracle 10g installation location.

    does this command work?
    /home/oracle:MCSE>gij --showversion
    gij (GNU libgcj) version 3.4.6 20060404 (Red Hat 3.4.6-11)

  • Problem starting oc4j.jar

    Hi all
    I want to run oc4j in a w2k sp3 machine, and I want to do it with a non administrator group's user. When I start it with "java -jar oc4j" I receive an error "Error starting Http-server: (code=10106)", then it shows "Oracle9iAS (9.0.2.1.0) Containers for J2EE initialized", but there's nothing listening. I tried to looking for this error, by I can't find anything.
    If I start the container with an user belonging to administrators groups I have no problems. I know it can be troubles creating a port less than 1024 without administratives privileges, but I set port 11500 to start the sever.
    I'm really don't know if this is a j2ee problem or a windows problem, but I'm having big headaches with this issue. Could someone help me?
    Thanks in advance.
    Alfredo

    I have running iis 5.0, but i checked there's nothing
    listening in the port where I want to start the oc4j.
    Still I tried other ports than 11500, but I always get
    the same error.

  • Java -jar oc4j.jar -properties

    hi,
    I run following this one. i got a error please rectify that
    java -jar oc4j.jar -properties
    *09/05/13 16:11:11 Invalid jsp taglib location: C:\Documents and Settings\nvinodh*
    *\Desktop\oc4j\j2ee\home\%s_javapOracleHome%\j2ee\home\jsp\lib\taglib does not ex*
    ist or is not a directory
    09/05/13 16:11:11 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)
    initialized
    thanks
    with regards

    Greetings,
    From the error listed it appears that you have a path that is specific to your development machine which does not exist on your server. It is good practice to avoid placing jars and libraries that your application is dependent upon in directory structures which only exist on your development machine. So if you have oc4j on your dev box, put the taglib in a path relative to an ORACLE_HOME environment variable and deploy taglibs to same on the server.
    -Michael

  • Error while running (java -jar orion.jar -install)  Need yr help ?

    Hi,
    I have
    Win 2000 Professional
    Oracle 9i release 1and have the Pre-Requisites of MapViewer as follows.
    OC4J_extended (Pre-Requisite for MapViewer)
    XML Parser (Built-in OC4J)
    Oracle 9iI don't know whether I have Oracle Client or not which is also pre-requisite for MapViewer ? I think it is built-in with any of the above... most probably with Oracle 9i !!!
    I have JDK1.3 as wellI have Oracle9iAS release 1.0.2.2.2a, but I don't want to use it, as I have OC4J standalone...
    I want to have the configuration, for using Oracle Spatial/MapViewer.... How can I do that ? I need steps/procedure...
    I am having problems in configuring OC4J which I have downloaded. I have unzipped OC4J_Extended in Oracle 9i Database home directory (not in Oracle 9iAS home directory... because I dont have installed iAS)
    Its installation guide asks for installation through the following command
    java -jar orion.jar -installbut after unzip, I don't get any file named "orion.jar"
    What should I do ? Where am wrong ? Should I have to use 9iAS for using MapViewer in any case, if so which version ? I need the heirarchy of steps ?
    I m really stucked !!!
    Any help would be highly appreciated.
    Thanx
    Zaaf.

    Hi,
    If you are just using OC4J, you should only need to do:
    java -jar oc4j.jar -install
    Also note that you should not install oc4j in the oracle_home
    directory. If/when you upgrade oracle to apply patches, etc
    it will overwrite/cause problems with your oc4j install if you
    put it in the oracle_home directory. Put it in any other directory.
    The only part of Oracle9iAS needed to run mapviewer is oc4j.
    After that is installed, then follow the instructions in the MapViewer
    User's Guide (available on OTN).

  • Install and Start OC4J

    I unzipped the oc4j.jar under d:\jdeveloper\j2ee\home. So under the prompt (d:\jdeveloper\j2ee\home),
    For installation, I typed:
    start java -jar oc4j.jar -install
    It never asked me for a password or somthing like that.
    So I tried the: java -jar oc4j.jar -install
    My NT4.0 does not accept the option (-jar).
    Then I tested the starting of OC4j by tying:
    start java -jar oc4j.jar
    or
    java -jar oc4j.jar (NT4.0 did not accept this way)
    And finally I tested using the web
    http://<Here is my machine's hostname>:8888/soap/servlet/soaprouter
    It says page not found.
    For correctly installation and starting of the oc4j, what should I do?
    Thanks.

    First of all, thanks to respond to my question.
    Yes, I am using Jdeveloper 9i. But when I tried to create an Application Server (under the Connections)of the System Navigator, I always failed the testing.
    1)For the Authentication Page:
    What should be the user name and password?
    (I tried admin)
    2)For the Connection Page
    URL ormi://167.167.189.49/ (This is my local machine)
    Target Web Site : http-web-site (This is the default)
    3)Local Directory where ...: D:\jdeveloper\j2ee\home (This is where my jdeveloper installed)
    I never pass the TEST successfully.
    What is the right way to do it?
    Thanks.
    Scott

  • Error messages when installing/starting oc4j (11.1.1.0.0) Technical Preview

    Hello,
    Could someone please assist me with the following error messages?
    08/08/12 10:25:30 SEVERE: AbstractInfo.getAnnotation oracle.webservices.annotations.async.AsyncWebService cannot be found in the given classpath.
    08/08/12 10:25:30 SEVERE: AbstractInfo.getAnnotation oracle.webservices.annotations.async.AsyncWebService cannot be found in the given classpath.
    08/08/12 10:25:32 Don't know how to map non-serializable type: interface javax.management.j2ee.statistics.Stats to Open MBean Type.
    08/08/12 10:25:34 WARNING: J2EE JNDI-00002
    08/08/12 10:25:34 WARNING: No javax.jms.ConnectionFactory found at null
    08/08/12 10:25:38 Oracle Containers for J2EE 11g (11.1.1.0.0) initialized.
    Obviously oc4j is installing, but these error messages are certainly a problem (for example, I can't successfully deploy applications).
    When I used the previous version of oc4j none of these errors surfaced. I also have tried installing this new version in a new, clean directory, and still get the same error messages.
    Please help,
    John

    Thank you for your quick response.
    I hope that you are right, that these errors don't cause any other problems down the line, but I still have a problem trying to deploy applications.
    For example, I tried to deploy mapviewer, using the following syntax --
    java -jar admin_client.jar deployer:oc4j:localhost fmwadmin <admin_pwd>
    -deploy
    -file <path-to-ear-file>
    -deploymentName <name>
    -bindAllWebApps
    -- and recieved the following errors, which I didn't get before when I was using the previous version of oc4j (Oracle Containers for J2EE 10g [10.1.3.1]):
    08/08/13 08:49:30 WARNING: web: Servlet error
    java.lang.ClassCastException: com.sun.faces.application.ApplicationAssociate
    at com.sun.faces.application.ApplicationAssociate.getInstance(ApplicationAssociate.java:180)
    at com.sun.faces.application.WebappLifecycleListener.getAssociate(WebappLifecycleListener.java:289)
    at com.sun.faces.application.WebappLifecycleListener.handleAttributeEvent(WebappLifecycleListener.java:225)
    at com.sun.faces.application.WebappLifecycleListener.requestDestroyed(WebappLifecycleListener.java:78)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:743)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:334)
    at com.evermind.server.http.HttpRequestHandler.doDispatchRequest(HttpRequestHandler.java:942)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:843)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:658)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:626)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:417)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:163)
    at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:237)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:877)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
    at java.lang.Thread.run(Thread.java:595)
    Do you have any idea why I may be getting these error messages?
    Thank you for your time and assistance!
    John

  • Adding patch jar file while starting Managed Server through Node Manager

    Hi,
    I am using Weblogic Express 10.0 on Linux env, Jrockit JVM.
    I have a patch jar file from BEA, I added it to Weblogic start script, when I start the Managed server by using startManagedWeblogic.sh script, I can see that patch jar file is added to classpath when I grep for Java process.(ps -ef | grep -i java).
    But when I start the Managed server through NodeManager and grep for java process, I dont see the patch jar file added to classpath of Managed server process which is started.
    Can someone let me know if I have to add the patch jar file somewhere else along with Weblogic start script if starting Managed server through Node Manager?
    Weblogic Consultant

    Thanks for your response.
    I found another way to do this.
    Edit nodemanager.properties file and set StartScriptEnabled=true (By default it is false), and then restart the Node Manager process.
    Enabling this setting to true will enable the NodeManager process to use startManagedWeblogic.sh script while starting the managed server, all the added jar files, memory settings will be taken from start script of Weblogic
    Weblogic Consultant

  • Linking external jar when starting java -jar problem

    Good day!
    A have a little program:
    import org.apache.log4j.Logger;
    public class CMDClient {
         static Logger log;
         public static void main(String args[]) throws Exception {
              log.info("test");
              System.exit(1);
    }I created a test.jar file, containing only this test class. When I start it by java -jar test.jar it cannot find linked (through import) Log4j library. Is there a way to link external jar to "jared" application?
    Good day!
    A have a little program:
    import org.apache.log4j.Logger;
    public class CMDClient {
         static Logger log;
         public static void main(String args[]) throws Exception {
              log.info("test");
              System.exit(1);
    I created a test.jar file, containing only this test class. When I start it by java -jar test.jar it cannot find linked (through import) Log4j library. Is there a way to link external jar to "jared" application?
    Good day!
    A have a little program:
    import org.apache.log4j.Logger;
    public class CMDClient {
         static Logger log;
         public static void main(String args[]) throws Exception {
              log.info("test");
              System.exit(1);
    I created a test.jar file, containing only this test class. When I start it by java -jar test.jar it cannot find linked (through import) Log4j library. Is there a way to link external jar to "jared" application?
    Error was: java.lang.NoClassDefFoundError

    There's a Class-Path attribute in the manifest.

  • How can i execute a .jar or .jad through  java?

    I want to execute a .jar like i do in SE using the class RunTime in ME does anybody know how can i do it? There is no method exec in MIDP Runtime API

    I have a MIDlet that receives a jar file from another PDA using DatragramConection and FileConnection. It's working well. When i'm running my application i'll send the jar file to another aplication and this application should receive, execute and return the result. For example, if i have a simple program that prints Hello World. I'll send the program the other PDA will execute and then return a String. I have to call the jr file through java because my MIDlet wil be already running.
    Could you understand my problem?

  • Opening a java jar file through a labview program

    Hello,
    I need to open a java jar file in labview........this jar file is a GUI with multiple frames and has buttons on each frame help navigate through between frames....i just require the program to open it and close it based on some signals so then i won't have to do it manually

    LabVIEW doesn't have any control over what happens in a system exec, as you give the control to the system. You can, however, check the process list through .NET commands and kill the process (You should be able to stop it through "taskkill /F /im java.exe"). Not the prettiest solution, but should work.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Force jar to run through java.exe not javaw.exe

    Hi,I am programming using eclipse 3.5.1 when i try to export my project as a single jar file it always runs through javaw.exe
    even if its a console app the problem is that sometimes i want it to run through java.exe without having to write the annoying batch file (java -jar "appname.jar") which will only probably run under windows, is there a way around this that would force the jar file to run automatically in console mode?

    803038 wrote:
    Hi,I am programming using eclipse 3.5.1 when i try to export my project as a single jar file it always runs through javaw.exe
    even if its a console app the problem is that sometimes i want it to run through java.exe without having to write the annoying batch file (java -jar "appname.jar") which will only probably run under windows, is there a way around this that would force the jar file to run automatically in console mode?Windows, not java, has file associations which specify what happens to certain files when someone double clicks on it.
    You have one extension which you want to run two different ways. That of course isn't possible.
    You could write a wrapper that spawns a console via Runtime.exec. Then your console apps would be wrapped in that.

  • Is ist possible to define heap size when start with java -jar

    Hi,
    I start my application as executable jar. How can I set the heapsize when double clicking myapp.jar ? With java -Xmx512m -jar myapp.jar it should go. But can I specify this when double clicking the myapp.jar ?
    Thanks
    Oli

    For all jars it is not acceptable I think.... the value as entry in the manifest.mf could be nice... :(

Maybe you are looking for