This thread has been locked & this forum has been archived.
Please post new topics to Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Author Message
mheir



Joined: May 18, 2005
Posts: 2

All,

OC4J *does* support expanded deployment directories. Please see this article by Oracle's Debu Panda:

http://radio.weblogs.com/0135826/2004/05/17.html#a30
 
 View user's profile Send private message  
Reply with quote Back to top
mheir



Joined: May 18, 2005
Posts: 2

 
 View user's profile Send private message  
Reply with quote Back to top
dshitzu1



Joined: Nov 15, 2006
Posts: 8

Is there an example ANYWHERE that shows how to create WebApplication in MyEclipse 5 and deploy it to OC4J 10.1.2??
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23818

dshitzu1,
There is no document that covers specific deployment to OC4J, the steps of:

1) Creating web application
2) Creating deployment
3) Running application

are 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?

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
dshitzu1



Joined: Nov 15, 2006
Posts: 8

Thanks 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.
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23818

Well 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)

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
dshitzu1



Joined: Nov 15, 2006
Posts: 8

Riyad,
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-INF

The 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!
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23818

Normally 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)

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
dshitzu1



Joined: Nov 15, 2006
Posts: 8

Riyad,
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?
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23818

I 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.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
badgerduke
Veteran Member
Veteran Member


Joined: Sep 29, 2004
Posts: 6

Hello:

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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-rkalla
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23818

Eric,

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.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
All times are GMT - 6 Hours
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Goto page Previous  1, 2
® 2014 - Genuitec, LLC.