Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
mheir
Post subject:   PostPosted: May 18, 2005 - 05:25 PM



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
Post subject:   PostPosted: May 18, 2005 - 05:51 PM



Joined: May 18, 2005
Posts: 2

Also, 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
 
 View user's profile Send private message  
Reply with quote Back to top
dshitzu1
Post subject:   PostPosted: Nov 16, 2006 - 07:04 PM



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
Post subject:   PostPosted: Nov 16, 2006 - 07:34 PM
Moderator
Moderator


Joined: Jan 06, 2004
Posts: 23307

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
Post subject:   PostPosted: Nov 16, 2006 - 07:44 PM



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
Post subject:   PostPosted: Nov 16, 2006 - 08:01 PM
Moderator
Moderator


Joined: Jan 06, 2004
Posts: 23307

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
Post subject:   PostPosted: Nov 16, 2006 - 11:41 PM



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
Post subject:   PostPosted: Nov 17, 2006 - 01:59 AM
Moderator
Moderator


Joined: Jan 06, 2004
Posts: 23307

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
Post subject:   PostPosted: Nov 17, 2006 - 04:59 PM



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
Post subject:   PostPosted: Nov 17, 2006 - 05:05 PM
Moderator
Moderator


Joined: Jan 06, 2004
Posts: 23307

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
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits