MyEclipse Forums
This thread has been locked & this forum has been archived.
Please post new topics to Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
View previous topic Printable version Log in to check your private messages View next topic
Author Message
bradm
Post subject:   PostPosted: Aug 06, 2005 - 03:09 AM
Veteran Member
Veteran Member


Joined: Nov 24, 2003
Posts: 106

I did change the port (because I use 8888 for Tomcat), but since the default page for oc4j comes up fine when I browse to localhost:9999 I'm confident that something else is wrong.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
ctrapani
Post subject:   PostPosted: Aug 10, 2005 - 10:29 PM
Registered Member
Registered Member


Joined: Aug 01, 2005
Posts: 4

Hi all,

For what it's worth, I also have struggled with deploying to OC4J standalone 10.1.2, but stumbled on success just now. There are two additional things beyond what is documented in this thread that I did to my OC4J installation to make things work on my Win2K machine:

1) Certain OC4J config files in [OC4J_INSTALL]\j2ee\home\config\ were Read Only!! I took that attribute off all my config files.

2) After multiple failed attempts to deploy where console indicated success but I got 404 not found in browser, I resorted to running Oracle's admin.jar utility to deploy the EAR and then bind it to the http-web-site (default) web site. Here is a sample of those commands:

From the [OC4J_INSTALL]\j2ee\home directory

java -jar admin.jar ormi://localhost:23791 admin [your_admin_pass] -deploy -file [ear_file_name.ear] -deployName [appName]

java -jar admin.jar ormi://localhost:23791 admin [your_admin_pass] -bindWebApp [appName] [WARfileNameWithoutTheWar] http-web-site [contextWithoutTheLeadingSlash]

That worked, so I undeployed the app using the admin.jar (which also unbound the app from the web site).:

java -jar admin.jar ormi://localhost:23791 admin [your_admin_pass] -undeploy [appName]

Then ... magic, the MyEclipse deployment works like a charm. I'm not really sure what the deal is. I feel a bit like a plumber with plunger, but I'm used to that working with Oracle App server. Of course, Tomcat worked fine first time. I bet other app servers work first time too.

I'm very happy with MyEclipse so far and can't say enough good about the great documentation and features that I've found so far, especially compared with Eclipse WTP (still too churning for me). Keep up the great work folks!!

Carl
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Aug 11, 2005 - 07:16 AM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23818

Carl,
We really appreciate you posting these details for other users, these forums are truely a boom for anyone trying to work with J2EE development, not just using MyEclipse.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
developerwiz
Post subject:   PostPosted: Aug 15, 2005 - 08:09 PM
Registered Member
Registered Member


Joined: Aug 15, 2005
Posts: 11

support-scott wrote:
One thing we haven't covered is what port you're trying to access to see the server. See (http://www.johntopley.com/kb/oracle/0025.html) which shows the default port is 8888. So, try http://localhost:8888/...
Hello:
I am trying to repeat the process.
While deployng the EAR file I am getting the following in the OC4J console:
05/08/15 15:07:01 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0) initialized
05/08/15 15:07:26 Auto-unpacking D:\tools\OracleAS\oc4j_extended\j2ee\home\application-autodeploy\HelloWorldEAR.ear... 05/08/15 15:07:27 Error installing applications: Unknown assembly root-tag attribute: xmlns
done.

05/08/15 15:07:31 Error installing applications: Unknown assembly root-tag attribute: xmlns

Any ideas?
THanks
 
 View user's profile Send private message  
Reply with quote Back to top
developerwiz
Post subject:   PostPosted: Aug 15, 2005 - 08:15 PM
Registered Member
Registered Member


Joined: Aug 15, 2005
Posts: 11

developerwiz wrote:
support-scott wrote:
One thing we haven't covered is what port you're trying to access to see the server. See (http://www.johntopley.com/kb/oracle/0025.html) which shows the default port is 8888. So, try http://localhost:8888/...
Hello:
I am trying to repeat the process.
While deployng the EAR file I am getting the following in the OC4J console:
05/08/15 15:07:01 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0) initialized
05/08/15 15:07:26 Auto-unpacking D:\tools\OracleAS\oc4j_extended\j2ee\home\application-autodeploy\HelloWorldEAR.ear... 05/08/15 15:07:27 Error installing applications: Unknown assembly root-tag attribute: xmlns
done.

05/08/15 15:07:31 Error installing applications: Unknown assembly root-tag attribute: xmlns

Any ideas?
THanks
Never mind, silly me - had wrong J2EE level...
 
 View user's profile Send private message  
Reply with quote Back to top
bgblanch
Post subject: Deploying to OC4J and Oracle Portal  PostPosted: Sep 13, 2005 - 05:14 PM
Registered Member
Registered Member


Joined: Aug 31, 2005
Posts: 12

I am writing this to hopefully help out some people trying to use Eclipse/MyEclipse with Oracle Portal. I spent about a day gathering information and playing around with the .xml files trying to get it to work. After requesting help from MyEclipse Support (thank you Scott), I was able to get it up and running. So, to save you some time, here is what you need to do.

First, set up the OC4J server. To do this, go to Window > Preferences. Click the + next to MyEclipse, the the + next to Application Servers. Click on Oracle 9i/AS. Click on the radion button next to Enable (yup, to enable the server). Next to Oracle AS Home Directory, Browse to the j2ee/home directory of your installation (C:\JDev1012\j2ee\home for me), and set the Host:ORMI Port to localhost:23791. Click the + next to Oracle 9i/AS and then on JDK. Make sure that you have added a proper J2SDK (J2SDK1.4.2 for me). Click OK and you're done.

In order to deploy a web application from Eclipse 3.1 and MyEclipse 4.0, you have to use the J2EE 1.3 Specification Level when creating the web application. Once you've got your web app completed, create a new Enterprise Application Project (again using the J2EE 1.3 Specification Level). Uncheck the "Define EJB Project Modules" under Creation Tasks (I found this advice in the forums and it works), click next. Under Web Project Modules, select any applicable Web Module Projects (the web app you created previously), click next, then finish. Make sure that you have the Oracle AS setup correctly. Deploy the web app you created to the OC4J (this will create a .war file). Then deploy the Enterprise Application Project to the OC4J server (this will create the .ear file).

To deploy your .ear file to the Oracle Portal, log into the middle tier and find a suitable OC4J container (I would recommend against the default OC4J as your code will get wiped out when you do any patches). If you don't have any suitable OC4J containers, create one and then click on the name/link. Click on Applications, then the Deploy EAR File button. Browse to your .ear file (mine was in C:\JDev1012\j2ee\home\application-autodeploy), give it a name and then deploy it.

NOTE: You may have to do some other futsing around to get the deployment correct, if this doesn't work for you, explore the rest of the thread as I may have missed a step or you may have something set up different than I did.

Specs:
M$ Windows XP
Eclipse 3.1
MyEclipse 4.0
Oracle JDeveloper 10.1.2
(for the OC4J server - you can also download just the OC4J server from Oracle)
Oracle Portal 10g/Application Server 10.1.2
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Sep 13, 2005 - 05:24 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23818

Thank you very much bqblanch for posting and making this thread valuable to everyone that may be running into similar problems.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
gooshy1
Post subject:   PostPosted: Feb 22, 2006 - 04:22 PM



Joined: Feb 22, 2006
Posts: 4

What operating system and version are you running? - Windows XP SP2
What Eclipse version and build id are you using? - Version: 3.1.1
- Was Eclipse freshly installed for MyEclipse? Yes
- Are any other external plugins installed? - No
- How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.* - 14
What MyEclipse version are you using? - 4.1.0 GA
What JDK version are you using to run Eclipse? - build 1.4.2_08-b03
What JDK version are you using to launch your application server? build 1.4.2_08-b03
What application server are you using? OC4J 10.1.2.0.2
Are there any exceptions in the Eclipse log file? No.

Having followed the instructions on this thread for setting up oc4j I have encountered the following error when accessing the initial page of the app. I get the following error message in the console window:

06/02/22 16:05:10 Oracle Application Server Containers for J2EE 10g (10.1.2.0.2) initialized
06/02/22 16:05:49 Auto-unpacking C:\Serversg_extended1012\j2ee\home\application-autodeploy\anpr2.ear... done.
06/02/22 16:05:51 Auto-unpacking C:\Serversg_extended1012\j2ee\home\application-autodeploy\anpr2\anpr.war... done.
06/02/22 16:06:13 Auto-deploying anpr2 (Assembly had been updated)...
06/02/22 16:06:13 Auto-deploying anpr (Assembly had been updated)...
06/02/22 16:06:47 Error: null
06/02/22 16:06:47 Errors parsing jar:file:/C:/Servers/10g_extended1012/j2ee/home/application-autodeploy/anpr2/anpr/WEB-INF/lib/standard.jar!/META-INF/fn.tld
06/02/22 16:06:47 Error: null
06/02/22 16:06:47 Errors parsing jar:file:/C:/Servers/10g_extended1012/j2ee/home/application-autodeploy/anpr2/anpr/WEB-INF/lib/standard.jar!/META-INF/permittedTaglibs.tld
06/02/22 16:06:47 Error: null
06/02/22 16:06:47 Errors parsing jar:file:/C:/Servers/10g_extended1012/j2ee/home/application-autodeploy/anpr2/anpr/WEB-INF/lib/standard.jar!/META-INF/scriptfree.tld


The application works fine when deploying from an ant script that I have. I have not seen this error before and I dont think that its a problem with my code.

Any help is appreciated.

Thanks
Scott.
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Feb 22, 2006 - 05:22 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23818

Scott, go into the C:/Servers/10g_extended1012/j2ee/home/application-autodeploy/anpr2/anpr/WEB-INF/lib directory and open the standard.jar file with a zip utility like WINZIP, then go into the META-INF directory, do you see fn.tld, permittedTaglibs.tld and scriptfree.tld?

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
gooshy1
Post subject:   PostPosted: Feb 23, 2006 - 09:04 AM



Joined: Feb 22, 2006
Posts: 4

support-rkalla wrote:
Scott, go into the C:/Servers/10g_extended1012/j2ee/home/application-autodeploy/anpr2/anpr/WEB-INF/lib directory and open the standard.jar file with a zip utility like WINZIP, then go into the META-INF directory, do you see fn.tld, permittedTaglibs.tld and scriptfree.tld?


Yes they are present.
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Feb 23, 2006 - 01:05 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23818

Odd. Try shutting down the app server, removing your deployment, rebuilding your projects then recreating the deployment THEN restarting the server. Same thing?

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
gooshy1
Post subject:   PostPosted: Feb 23, 2006 - 01:24 PM



Joined: Feb 22, 2006
Posts: 4

support-rkalla wrote:
Odd. Try shutting down the app server, removing your deployment, rebuilding your projects then recreating the deployment THEN restarting the server. Same thing?


Yes the same thing happened.
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Feb 23, 2006 - 01:55 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23818

Would you be able to upgrade to 10.1.3 rc3 here: http://www.oracle.com/technology/tech/java/oc4j/1013/index.html

and see if the problem persists?

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
gooshy1
Post subject:   PostPosted: Feb 23, 2006 - 02:22 PM



Joined: Feb 22, 2006
Posts: 4

support-rkalla wrote:
Would you be able to upgrade to 10.1.3 rc3 here: http://www.oracle.com/technology/tech/java/oc4j/1013/index.html

and see if the problem persists?


I'll give it a go and see what happens, however our deployment environment is set in stone at the moment.
 
 View user's profile Send private message  
Reply with quote Back to top
jimsong
Post subject:   PostPosted: Apr 10, 2006 - 11:10 PM
Registered Member
Registered Member


Joined: Apr 10, 2006
Posts: 1

I am doing a deploy packaged archive from my Enterprise Application project as suggested. It hangs at creating the war file.

The same web app deploys to Tomcat in seconds with no problem.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
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.
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits