- This topic has 28 replies, 7 voices, and was last updated 19 years, 10 months ago by
jkurtz_wa.
-
AuthorPosts
-
Steve OgryzekMemberI’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
July 9, 2003 at 9:26 am #196718
Scott AndersonParticipantSteve,
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 SupportJuly 9, 2003 at 2:05 pm #196736
Wayne KiddMemberI 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
July 9, 2003 at 3:39 pm #196737
Scott AndersonParticipantWayne,
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 SupportJuly 9, 2003 at 4:44 pm #196742
Steve OgryzekMemberHere’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
July 9, 2003 at 5:38 pm #196743
Wayne KiddMemberI 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.
July 9, 2003 at 5:44 pm #196744
Wayne KiddMemberSteve, 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
July 9, 2003 at 5:46 pm #196745
Wayne KiddMemberThe prior post should have mentioned that the global stuff is init parms for the jsp servlet.
July 9, 2003 at 5:47 pm #196746
Scott AndersonParticipantI 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 SupportJuly 9, 2003 at 5:48 pm #196747
Wayne KiddMemberThanks Steve
July 9, 2003 at 5:54 pm #196749
Scott AndersonParticipantThanks Steve
It’s “Scott”, but you’re welcome anyway. 😉
–Scott
MyEclipse SupportJuly 10, 2003 at 12:34 pm #196776
Steve OgryzekMemberThanks for the help guys! I hope the above info will make it into the user documentation somewhere.
Steve
July 10, 2003 at 12:46 pm #196777
Scott AndersonParticipantI hope the above info will make it into the user documentation somewhere.
That would be great, huh? We’ll certainly try. 🙂
–Scott
MyEclipse SupportAugust 5, 2003 at 10:01 pm #197573
drewmcaMemberI 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?
August 5, 2003 at 10:40 pm #197579
Scott AndersonParticipantAm 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 -
AuthorPosts