facebook

Cannon Deploy to Oracle 9iAS oc4j 9.0.3

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #199361 Reply

    kyndalwil
    Member

    I am Eclipse 3M3 and Workbench 3.6.2 with Oracle 9iAS J2EE Container. I point the workbench configuration tool to /oc4j9.0.3/j2ee/home. When I create a enterprise application and attempt to specify Oracle 9iAS as my application server for deployment, the workbench attempts to deploy the application to D:\eclipse\oc4j903\j2ee\home\application-autodeploy\myapp. The directory \application-autodeploy does not exist under the oc4j home directory and the workbench shows a big red “O” next to the server name. I believe it should be deployed under the /applications directory within /j2ee/home. Could someone help me/or point me in tthe right direction to get this to work.

    #199363

    Scott Anderson
    Participant

    For autodeployment to work with Oracle, you need to modify your server.xml file to enable it as it is not the default. Place something like the following in it:

    
    <application-server application-directory="../applications"
     application-auto-deploy-directory="../application-autodeploy"
     deployment-directory="../application-deployments"
     connector-directory="../connectors"
    >
    

    Once you create the application-autodeploy directory, hot deployment in Oracle 9iAS should be fine. Sorry for the confusion.

    –Scott
    MyEclipse Support

    #199366

    kyndalwil
    Member

    I should have proof read that previous post but I am glad you could understand well enough to help me.

    Thanks again!

    #199368

    kyndalwil
    Member

    Not really sure what I am doing wrong.

    #199388

    Scott Anderson
    Participant

    Are you still having problems? What specifically are you seeing? One thing I forgot to mention in my previous post is that Oracle 9iAS does NOT support exploded deployment so if you’ve chosen this deployment model, it won’t work. You’ll have to specify archive deployment in order to use Oracle. But remember, once your application is running as an archive, you can update the Java code (if using JDK 1.4.1+), but to see your JSP changes you’ll have to redeploy your application.

    If you have a bit of choice as to what you develop on, you might switch to JBoss to take advantage of exploded deployment.

    –Scott
    MyEclipse Support

    #256347

    tvan
    Member

    Hi Scott,
    Where the code

    <application-server application-directory=”../applications”
    application-auto-deploy-directory=”../application-autodeploy”
    deployment-directory=”../application-deployments”
    connector-directory=”../connectors”
    >

    should be placed in the server.xml?
    I use oc4j_extended_101300 (version 10g (10.1.3)). The server does not validate the above code and I can not deploy my appli to oc4j. Why Myeclipse does not deploy appli directly to j2ee\home\applications? This will be simpler as with Tomcat or JBoss.
    Anyway, please let me know it is possible and how to deploy appli to oc4j. Thanks.

    Thanks.
    Tvan

    #256387

    Scott Anderson
    Participant

    Where the code should be placed in the server.xml?

    All the code is already in there at the top of the file except:
    application-auto-deploy-directory=”../application-autodeploy”
    Simply adding that line where shown will enable automatic deployment.

    Why Myeclipse does not deploy appli directly to j2ee\home\applications?

    Because that’w where deployed applications are placed. Placing an application there will not cause it to be automatically deployed. That’s what the change to server.xml does.

    #257232

    tvan
    Member

    Hi,
    I did exactly as you proposed for the server.xml. I deployed then my hello application and I saw hello.war in oc4j\j2ee\home\application-autodeploy\. I started the server and typed http://localhost:8888/hello. I have just got :”404 Not Found Resource /hello not found on this server”.
    I think that Oracle server does not detect hello application.???
    Thank you in advance for any help
    Tvan

    #258158

    It is realy work after I follwoing your suggestion.Thanks support-scott’s help.

    I use myeclipse 5.0 ,
    OC4j ,10.1.3.0.0

    #276191

    amir55
    Participant

    This message has not been recovered.

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Cannon Deploy to Oracle 9iAS oc4j 9.0.3

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