- This topic has 26 replies, 8 voices, and was last updated 15 years, 11 months ago by Riyad Kalla.
-
AuthorPosts
-
mheirMemberAll,
OC4J *does* support expanded deployment directories. Please see this article by Oracle’s Debu Panda:
mheirMemberAlso, for more information, please see:
http://www.oracle.com/technology/docs/tech/java/oc4j/htdocs/getstart.htm#1023376
http://forums.oracle.com/forums/thread.jsp?forum=46&thread=290372&message=903299
dshitzu1MemberIs there an example ANYWHERE that shows how to create WebApplication in MyEclipse 5 and deploy it to OC4J 10.1.2??
Riyad KallaMemberdshitzu1,
There is no document that covers specific deployment to OC4J, the steps of:1) Creating web application
2) Creating deployment
3) Running applicationare all exactly the same for all the app servers. The only different is that you need to setup the Oracle connector to launch OC4J. Other than that, all the other documentation is identical across all the app servers (you use the same deployment tool, same run/stop/restart tool, and so on).
Is there a specific problem you have been having setting up OC4J?
dshitzu1MemberThanks for all of your help. I believe the problem is with OC4J v.10.1.2 . I think creating a build.xml file may be the way to go since there are no examples of deploying to this particular version of the app server from MyEclipse 5.0 and nothing I’ve tried over the last 2 days works.
Riyad KallaMemberWell I haven’t really helped much yet… can you tell me exactly the problems you are having with deployment? There are only two ways to deploy, packaged (WAR) or exploded (just a direct copy of your WebRoot over). We had some JSP-debugging questions earlier on in the year so I played with 10.1.3 to make sure I could get it working and didn’t have any problems with the out of the box copy, but I didn’t happen to spend time with 10.1.2, so I wonder what the problem might be.
Is it a startup problem maybe? (errors during app server startup)
dshitzu1MemberRiyad,
I’ve created a build.xml file that deploys to OC4J v.10.1.2 without complaint. The ear file is exploded and the directory structure appears to be correct. HOWEVER (and I don’t know if anyone here can help with this), the browser URL continually comes up with a 404 message.
Here are my entries in the revelant OC4J config. files:
server.xml = <application name=”CMS” path=”../applications/CMS.ear” auto-start=”true” />
http-web-site.xml = <application name=”CMS” path=”../applications/CMS.ear” auto-start=”true” />The directory structure for the application is:
C:\oc4j\j2ee\home\applications (root)
\CMS
..\CMS-web
CMS-web\index.html
CMS-web\doc
CMS-web\META-INF
CMS-web\WEB-INF
CMS\META-INFThe URLs I’ve tried are:
localhost:8888\CMS\
localhost:8888\CMS-web\
etc. etc.
All return 404 not found….There are welcome files defined in the web.xml file. I’m at a loss but maybe it will be better tomorrow.
Thanks!
Riyad KallaMemberNormally most Java app servers run on 8080, did you setup OC4J to run on 8888? (Or does it by default? I’m not terribly familiar with it)
dshitzu1MemberRiyad,
I got it – the port was not used. On another note, I’ve imported 2 projects into MyEclipse 5.0 . There are only source files – no compiled classes. I cannot get the ‘build’ or ‘build all’ or ‘build automatically’ to work on these apps. What do I need to set to get these items to work like they work with projects I create?
Riyad KallaMemberI need more information as to what “cannot get it to work” means… are there compilation errors?If you have build path errors in the problem view, what do they say? If you imported these projects from an older install, you might have an older JRE referenced on your build path, that no longer exists in this new install or something like that which will stop the entire project from building.
badgerdukeMemberHello:
I am following all the helpful exceptions but I’m using a Maven (with MyEclipse 7.0) project. if I set my pom.xml to produce an EAR file, will MyEclipse deploy an EAR to OC4J?
Thanks
Eric
Riyad KallaMemberEric,
If you use the MyEclipse deployment tool on an enterprise application project, yes it will create an EAR. If you are creating an EAR with Maven, you will have to manually deploy that — MyEclipse’s deployment tool doesn’t pay attention to Maven artifacts, it generates it’s own based on the J2EE spec.
-
AuthorPosts