facebook

Deploy OC4J application on MyEclipse 8.6

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #313205 Reply

    xdqian
    Member

    Objective: Try to setup debug environment on OC4J and MyEclipse
    Environment: MyEclipse 8.6, OC4J 10.1.3.4.
    I have read the following posts:

    http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-8261.html
    https://www.genuitec.com/forums/topic/deployment-with-oc4j-closed/#post-229544&highlight=#34647

    I did the following steps.
    1. Create Enterprise Application Project “HELLO”
    2. Change the server.xml, add
    application-auto-deploy-directory=”../application-autodeploy”
    and
    <application name=”HELLO” path=”C:\oc4j_home\j2ee\home\application-
    autodeploy\HELLO.ear” auto-start=”true” />
    3. Deploy the HELLO.ear as a package.
    4. when I try to access using the url: http://localhost:8888/HELLO/HELLOWeb/index.jsp
    I got “404 Not Found” . On the server log, It shows ” J2EE JSP-0008 Unable to dispatch
    JSP Page : Exception:java.io.FileNotFoundException: C:\oc4j_home\j2ee\home\default-
    web-app\HELLO\HELLOWeb\index.jsp”
    It accessed to the directory “default-web-app”, not the “application-autodeploy”, which
    has been deployed.
    5. If I copy the HELLO directory from application-autodeploy directory to default-web-app
    directory. it works.

    Please help me what I should do next. Thanks a lot !

    #313215 Reply

    support-swapna
    Moderator

    dqian,

    If I copy the HELLO directory from application-autodeploy directory to default-web-app
    directory. it works

    Looks like you are all set. Do you want to change your deployment directory?Can you tell me what exactly do you need support for?

    #313221 Reply

    xdqian
    Member

    Hi

    Thank you for your response.
    The problem is on Step 4. I try to set up the debug environment. I can’t keep copying the directory for every change. It should directly access to the deployment directory. The direct question is:

    when the url: http://localhost:8888/HELLO/HELLOWeb/index.jsp is clicked, It should access to
    the directory “application-autodeploy” where the ear file is deployed, not the directory “default-web-app”. How can configure to change the access directory ?

    Thank you for your help !

    #313264 Reply

    support-swapna
    Moderator

    dqian,

    I am unable to replicate it at my end.
    Can you paste your server.xml here?

    #313275 Reply

    xdqian
    Member

    Hi Swapna,

    Thank you for your help.

    Here is the server.xml:

    <?xml version=”1.0″?>

    <application-server xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; xsi:noNamespaceSchemaLocation=”http://xmlns.oracle.com/oracleas/schema/application-server-10_1.xsd&#8221; application-directory=”../applications”
    check-for-updates=”adminClientOnly”
    application-auto-deploy-directory=”../application-autodeploy”
    deployment-directory=”../application-deployments”
    connector-directory=”../connectors”
    schema-major-version=”10″ schema-minor-version=”0″ >
    <shared-library name=”global.libraries” version=”1.0″ library-compatible=”true”>
    <code-source path=”../applib”/>
    </shared-library>
    <shared-library name=”global.tag.libraries” version=”1.0″ library-compatible=”true”>
    <code-source path=”../../home/jsp/lib/taglib/”/>
    <code-source path=”../../../j2ee/home/jsp/lib/taglib/”/>
    <code-source path=”../../../lib/dsv2.jar”/>
    <import-shared-library name=”oracle.xml”/>
    <import-shared-library name=”oracle.jdbc”/>
    <import-shared-library name=”oracle.cache”/>
    <import-shared-library name=”soap”/>
    </shared-library>
    <shared-library name=”oracle.persistence” version=”1.0″ library-compatible=”true”>
    <code-source path=”../../../toplink/jlib/toplink-essentials.jar”/>
    <import-shared-library name=”oracle.jdbc”/>
    </shared-library>
    <rmi-config path=”./rmi.xml” />
    <jms-config path=”./jms.xml” />
    <javacache-config path=”../../../javacache/admin/javacache.xml” />
    <j2ee-logging-config path=”./j2ee-logging.xml” />
    <log>
    <file path=”../log/server.log” />
    </log>
    <java-compiler name=”javac” in-process=”false” options=”-J-Xmx1024m -encoding UTF8″ extdirs=”C:\tools\Java\jdk1.6.0_07\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext” />
    <global-application name=”default” path=”application.xml” parent=”system” start=”true” />
    <application name=”javasso” path=”../../home/applications/javasso.ear” parent=”default” start=”false” />
    <application name=”ascontrol” path=”../../home/applications/ascontrol.ear” parent=”system” start=”true” />
    <application name=”HELLO” path=”C:\tools\OC4J-10.1.3.4\j2ee\home\application-autodeploy\HELLO.ear” start=”true” />
    <global-web-app-config path=”global-web-application.xml” />
    <transaction-manager-config path=”transaction-manager.xml” />
    <web-site default=”true” path=”./default-web-site.xml” />
    <cluster id=”88244727122054″ />
    </application-server>

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Deploy OC4J application on MyEclipse 8.6

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