facebook

Configuring OC4J with myeclipse

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #250199 Reply

    Hi,
    I am trying to configure Oracle’s AS 10.2 to deploy and run my applications using myeclipse.
    I was having hard time with it. Can you point me to any documentation on how to configure, deploy and run the application under oracle AS.

    Thanks
    Sreenivas

    #250229 Reply

    Riyad Kalla
    Member

    Sreenivas,
    Please be more specific. What kinds of problem? Did you deploy your EAR as a packaged archive, then login to the Oracle admin console and “install” or “deploy” the EAR?

    #250454 Reply

    Hi Riyad,
    I configured the Oracle AS from myeclipse server configurations. I deployed the application as a package from eclipse using add/remove deployments option, it copied the .war file under c:/oc4j/j2ee/home/application-autodeploy folder.
    I started the server using run as opiton, the .war file is automatically exploded into a dir under the same folder.
    I opend the browser and typed the URL, it gives me file cannot be found page.
    my server.xml is as below:

    <?xml version=”1.0″ standalone=”yes”?>
    <!DOCTYPE application-server PUBLIC “Orion Application Server Config” “http://xmlns.oracle.com/ias/dtds/application-server-9_04.dtd”&gt;
    <application-server application-directory=”../applications” application-auto-deploy-directory=”../application-autodeploy” deployment-directory=”../application-deployments” connector-directory=”../connectors”>
    <rmi-config path=”./rmi.xml”/>
    <!– JMS-server config link, uncomment to activate the JMS service –>
    <jms-config path=”./jms.xml”/>
    <j2ee-logging-config path=”./j2ee-logging.xml” />
    <log>
    <file path=”../log/server.log”/>
    </log>
    <global-application name=”default” path=”application.xml”/>
    <global-web-app-config path=”global-web-application.xml”/>
    <!– <web-site path=”./secure-web-site.xml” /> –>
    <web-site path=”./http-web-site.xml”/>
    <!– Uncomment the following, to deploy these apps.
    <application name=”callerInfo” path=”../jazn/demo/callerInfo/callerInfo.ear” />
    <application name=”ssoInfo” path=”../jazn/demo/ssoInfo/build/ssoInfo.ear” />
    <application name=”ejbsamples” path=”../demo/ejb” />
    <application name=”news” path=”../applications/news.ear” />
    <application name=”logger”
    path=”../demo/messagelogger.ear” />
    <application name=”petstore”
    path=”../applications/estore-patched.ear” />
    <application name=”ws_example” path=”../demo/web_services/java_services/ws_example.ear” />
    <application name=”ojspdemos” path=”../demo/ojspdemos.ear” />
    –>
    <!– Compiler, activate this to specify an alternative compiler such
    as jikes for EJB/JSP compiling. –>
    <!– <compiler executable=”jikes” classpath=”/myjdkdir/jre/lib/rt.jar” /> –>
    <java-compiler name=”javac” bindir=”C:\\jdev10.1.2\\jdk\\bin” />

    <application name=”eSubmittal” path=”../application-autodeploy/eSubmittal”/>

    </application-server>

    I have application.xml under my application directory as below:
    <?xml version=”1.0″?>
    <!DOCTYPE application PUBLIC “-//Sun Microsystems, Inc.//DTD J2EE Application
    1.2//EN” “http://java.sun.com/j2ee/dtds/application_1_2.dtd”&gt;
    <application>
    <display-name>eSubmittal</display-name>
    <module id=”myeclipse.1081260834687″>
    <web>
    <web-uri>/</web-uri>
    <context-root>/eSubmittal</context-root>
    </web>
    </module>

    </application>

    Please help me with this..

    Thanks
    Sreenivas

    #250462 Reply

    Riyad Kalla
    Member

    Sreenivas,
    I can’t help you with your Oracle setup so the server.xml file is unnecessary. I would suggest you login to Oracle’s admin console and verify that your application is infact “Deployed” so your app server can see it and is hosting it.

    If you are not developing EJBs, I also suggest using an easier/smaller server like Tomcat for development.

    #250484 Reply

    never mind..i found the solution.

    #250486 Reply

    Riyad Kalla
    Member

    Would you mind posting what you did for other users using Oracle?

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Configuring OC4J with myeclipse

You must be logged in to post in the forum log in