facebook

Problems deploying to Oracle 9iAS [Closed]

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

    I’m trying to deploy the ‘HelloWorld’ sample application (created via the tutorial you provide) to an Oracle 9iAS (oc4j) standalone server. I can start and stop the server without an issue, and when I run the deploy, I can see that the code has been moved to a ‘application-autodeploy’ directory under the ‘home’ directory on the 9iAS server. However, it doesn’t seem to be updating the 9iAS config files, and the module isn’t recognized by the server.

    I’m wondering if this isn’t working because the 9iAS server is expecting a package archive rather than an exploded one? I can’t select the package archive option, will that be available in the GA release on 7/15?

    Any other hints on this would be appreciated. Cool tool! If I can get the deployment piece working I’ll be signing up for sure!

    Steve

    #196718

    Scott Anderson
    Participant

    Steve,

    I’m wondering if this isn’t working because the 9iAS server is expecting a package archive rather than an exploded one?

    You are exactly correct. Oracle 9iAS and Orion 1.5.x upon which it is based do not understand exploded deployments. If you’d like to work with a very Oracle-like server that does, Orion 2.0.2 has been released and it does understand exploded deployments as shown in the tutorial. In the GA release, we’ll turn that option off for servers that don’t support it to reduce the confusion.

    I can’t select the package archive option, will that be available in the GA release on 7/15?

    Yes, it certainly will.

    If I can get the deployment piece working I’ll be signing up for sure!

    Orion 2.0.2 is your best bet until 7/15.

    –Scott
    MyEclipse Support

    #196736

    Wayne Kidd
    Member

    I am working with 9iAS, but I had to do a couple of things to make it work. 1). I had to modify global-web-application.xml to specify my jsp compiler 2). I had to modify http-web-site.xml to describe my webapp. 3). I had to modify server.xml to specify my webapp. 4). I had to create a application.xml in META-INF from the top of my project and have it describe a module of type web.

    After I did that stuff, deploy exploded works just fine. I can debug from within eclipse and everything else. I was able to figure most of this out from a pdf on otn.oracle.com that talks about OC4J Standalone.

    Wayne

    #196737

    Scott Anderson
    Participant

    Wayne,

    Nice work! So, since manual intervention is possible to get exploded deployment to work on Oracle 9i (and I’d assume Orion) would you prefer that we don’t disable that selection for those two connectors in the GA release?

    –Scott
    MyEclipse Support

    #196742

    Here’s another way to get it to work: Modify the server.xml file in the 9iAS config directory to include the following line:

    <application name=”TestWeb” path=”../../home/application-autodeploy/TestWeb”/>

    Note that TestWeb is an “Enterprise Application Project” that includes the HelloWorld web project module. The TestWeb project doesn’t actually include anything else, but is there to generate the appropriate application.xml file. Anyway, now when I deploy the TestWeb project (not the HelloWorld one) and start the server, 9iAS automatically detects that an app needs to be deployed and deploys it, and it works unpacked.

    Thanks to Wayne who said it could be done by playing with the config files. I was playing with them when I discovered that this worked – I almost fell out of my chair in surprise.

    Oh, for some reason the .jsp files wouldn’t compile when the server was started under jdk1.4, I ran it with a jdk from my oracle install (1.3.1 I think) to get it to work.

    Steve

    #196743

    Wayne Kidd
    Member

    I would definitely prefer that you leave that part of things workings as they are currently working. I am counting on it. If you disable I will have to forego upgrade.

    #196744

    Wayne Kidd
    Member

    Steve, If you add to global-web-application.xml

    <!– Allow 1.4.1 page compile –>
    <init-param>
    <param-name>javaccmd</param-name>
    <param-value>”/j2sdk1.4.1_02/bin/javac”</param-value>
    </init-param>

    And to server.xml before the end

    <!– Allow 1.4 jsp compiles –>
    <compiler executable=”javac” classpath=”/j2sdk1.4.1_02/jre/lib/rt.jar” />

    You can use the modern compiler. This may save you some trouble down the line.

    Wayne

    #196745

    Wayne Kidd
    Member

    The prior post should have mentioned that the global stuff is init parms for the jsp servlet.

    #196746

    Scott Anderson
    Participant

    I would definitely prefer that you leave that part of things workings as they are

    Good enough for me. Consider it done; it stays as is. How’s that for user-directed development. 🙂

    –Scott
    MyEclipse Support

    #196747

    Wayne Kidd
    Member

    Thanks Steve

    #196749

    Scott Anderson
    Participant

    Thanks Steve

    It’s “Scott”, but you’re welcome anyway. 😉

    –Scott
    MyEclipse Support

    #196776

    Thanks for the help guys! I hope the above info will make it into the user documentation somewhere.

    Steve

    #196777

    Scott Anderson
    Participant

    I hope the above info will make it into the user documentation somewhere.

    That would be great, huh? We’ll certainly try. 🙂

    –Scott
    MyEclipse Support

    #197573

    drewmca
    Member

    I can get MyEclipse to deploy exploded to 9ias fine but I’m having a problem with deployment detection. If I make changes to my files in the project, MyEclipse is supposed to notice and mark the deployment as out of synch, right? Then, if I redeploy, I would imagine that only the files that change would be redeployed. Unfortunately, after making a local change, there’s no indication of it in the deployment box, and when I redeploy the whole thing redeploys. The only advantage I get is that I don’t have to wait for things to get archived first.

    Am I missing something or is MyEclipse supposed to detect incremental changes?

    #197579

    Scott Anderson
    Participant

    Am I missing something or is MyEclipse supposed to detect incremental changes?

    When you deploy in an exploded configuration MyEclipse will detect all incremental changes and copy them to your deployment area. That’s why your project won’t show that it’s out of sync; it isn’t. Whether or not the changes are picked up by the application server is application server specific. JSP’s seem to be universally picked up, servlets much less so. Some servers have mechanisms for asking them to redeploy projects, some don’t. Unfortunately, I don’t remember if Oracle does or not.

    In any case, deployment sychronization is dependent on the preference setting Window > Preferences > Workbench > Perform build automatically on resource modification. Please make sure that this setting is checked. To verify if the deployment changes are syncing, make a change to a project you deployed as an exploded archive and see if the file was copied to the appropriate deployment directory, based on the timestamp / contents.

    –Scott
    MyEclipse Support

Viewing 15 posts - 1 through 15 (of 29 total)
Reply To: Problems deploying to Oracle 9iAS [Closed]

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