- This topic has 14 replies, 4 voices, and was last updated 18 years, 12 months ago by subu_manian.
-
AuthorPosts
-
Kevin RossMemberWe haven’t had much luck using MyEclipse with oc4j. Seeing that the new version (10.1.3) has improvements along the lines of deployment standards etc, I was excited to give it a try.
java.util.zip.ZipException: The system cannot find the file specified
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:112)
at java.util.jar.JarFile.<init>(JarFile.java:127)
at java.util.jar.JarFile.<init>(JarFile.java:65)
Exception in thread “main”Version: 3.1.0
Build id: I20050401-1645
MyEclipse: 3.8.4+Qf2-BetaFor3.1M6I’ve been nothing short of disappointed with the ‘application server’ integration component, and it doesn’t appear as if I can hack around in the plugin to get things working as the jar is sealed.
Is there a light at the end of this tunnel? I don’t feel 100% positive that MyEclipse should be advertising this type of integration, when many people seem to be having serious problems.
I’ll be glad to help in anyway I can, my goal is not to bash MyEclipse, just to get productive with it. My team has subscribed for more than a year, and we have yet to utilize it for what it was originally purchased.
Scott AndersonParticipantI went back to test our OC4J support with the version specified by following these steps:
1) Downloaded OC4J 10.1.3 from this link: http://www.oracle.com/technology/software/htdocs/eaplic.html?http://download.oracle.com/otn/java/oc4j/1013/preview/oc4j_extended.zip
2) Unzipped to c:\dev\appservers\oc4j_10.1.3
3) Started MyEclipse 3.8.4 on Eclipse 3.0.2
4) Navigated to Window > Preferences > MyEclipse > Application Servers > Oracle 9i/AS
5) Enabled the connector and set the Oracle AS Home Directory to: C:\dev\appservers\oc4j_10.1.3\j2ee\home
6) Set the JDK to be an installation of JDK 1.4.2_08 located at c:\j2sdk1.4.2_08
7) Selected OK to save
8) Clicked on the MyEclipse Server toolbar item and selected Oracle 9i/AS > Start
9) The server started perfectly with the following console output05/05/06 20:09:29 Auto-unpacking C:\dev\appservers\oc4j_10.1.3\j2ee\home\applications\dms0.war... done. 05/05/06 20:09:29 Auto-unpacking C:\dev\appservers\oc4j_10.1.3\j2ee\home\applications\admin_web.war... done. 05/05/06 20:09:29 Auto-unpacking C:\dev\appservers\oc4j_10.1.3\j2ee\home\connectors\OracleASjms\OracleASjms.rar... done. 05/05/06 20:09:30 Auto-unpacking C:\dev\appservers\oc4j_10.1.3\j2ee\home\connectors\datasources\datasources.rar... done. 05/05/06 20:09:31 Auto-unpacking C:\dev\appservers\oc4j_10.1.3\j2ee\home\applications\ascontrol.ear... done. 05/05/06 20:09:37 Auto-unpacking C:\dev\appservers\oc4j_10.1.3\j2ee\home\applications\ascontrol\ascontrol.war... done. 05/05/06 20:09:53 Copying default deployment descriptor from archive at C:\dev\appservers\oc4j_10.1.3\j2ee\home\applications\ascontrol/META-INF/orion-application.xml to deployment directory C:\dev\appservers\oc4j_10.1.3\j2ee\home\application-deployments\ascontrol... 05/05/06 20:10:01 Copying default deployment descriptor from archive at C:\dev\appservers\oc4j_10.1.3\j2ee\home\connectors\datasources\datasources/META-INF/oc4j-ra.xml to deployment directory C:\dev\appservers\oc4j_10.1.3\j2ee\home\application-deployments\default\datasources... 05/05/06 20:10:01 Copying default deployment descriptor from archive at C:\dev\appservers\oc4j_10.1.3\j2ee\home\connectors\OracleASjms\OracleASjms/META-INF/oc4j-ra.xml to deployment directory C:\dev\appservers\oc4j_10.1.3\j2ee\home\application-deployments\default\OracleASjms... 05/05/06 20:10:07 Copying default deployment descriptor from archive at C:\dev\appservers\oc4j_10.1.3\j2ee\home\applications\admin_ejb.jar/META-INF/orion-ejb-jar.xml to deployment directory C:\dev\appservers\oc4j_10.1.3\j2ee\home\application-deployments\default\admin_ejb.jar... 05/05/06 20:10:07 Auto-deploying - ../../home/applications/admin_ejb.jar (orion-ejb-jar.xml had been updated since the previous deployment)... 05/05/06 20:10:09 Auto-deploying - compiling and loading... Note: Some input files use or override a deprecated API. Note: Recompile with -deprecation for details. 05/05/06 20:12:54 done. May 6, 2005 8:13:18 PM com.evermind.server.ejb.EJBPackageDeployment isIIOPConfigured INFO: Beans associated with application default will not be available via RMI/IIOP: GenerateIIOP system property=false, enableIIOP application setting=false, server.xml configured for IIOP=false May 6, 2005 8:13:18 PM com.evermind.server.ejb.EJBPackageDeployment isIIOPConfigured INFO: Beans associated with application default will not be available via RMI/IIOP: GenerateIIOP system property=false, enableIIOP application setting=false, server.xml configured for IIOP=false 05/05/06 20:13:19 done. 05/05/06 20:13:19 done. 05/05/06 20:13:19 Copying default deployment descriptor from archive at C:\dev\appservers\oc4j_10.1.3\j2ee\home\applications\admin_web/WEB-INF/orion-web.xml to deployment directory C:\dev\appservers\oc4j_10.1.3\j2ee\home\application-deployments\default\admin_web... 05/05/06 20:13:19 Copying default deployment descriptor from archive at C:\dev\appservers\oc4j_10.1.3\j2ee\home\connectors\datasources\datasources/META-INF/oc4j-ra.xml to deployment directory C:\dev\appservers\oc4j_10.1.3\j2ee\home\application-deployments\ascontrol\datasources... 05/05/06 20:13:19 done. 05/05/06 20:13:48 Oracle Containers for J2EE 10g (10.1.3.0.0) - Developer Preview 3 initialized
I then clicked on the internal browser toolbar button and navigated to:
http://localhost:8888/
which displayed the default oc4j startup page, as expected.Since it worked for me precisely as we advertise, can you determine where your steps deviated from the above?
Kevin RossMemberSo far it looks like user error. I didn’t follow those steps, but I will on Monday and reply back.
The instructions you list here, are they in the docs? I followed a help link posted elsewhere that didn’t have any of the detail you have here. I certainly admit that I could have missed it, but perhaps examples would enhance the docs…?
I’ll let you know asap.
Scott AndersonParticipantThe instructions you list here, are they in the docs?
The basics of setting up a connector are all in the Application Server Connector Quickstart that is one of several in the Documentation section here:
http://myeclipseide.com/ContentExpress-display-ceid-67.html and in the MyEclipse Application Developer Guide in the software at Help > Help Contents
Kevin RossMemberI have verified that your instructions here do work!
I previously found the link you posted, which led me to believe it didn’t work. Additionally, the error message was horrible. I would suggest you give users more information, or allow us to help others with a wiki site referenced in the documentation. I wouldn’t be so bold as to claim it didn’t work before following the instructions.
So in a sense, poor docs can’t be attributed to user error, but a bad perspective on a working product. At the same time, it’s not reasonable to ask MyEclipse to document every combination. I really do feel that empowering the user community a little more through a wiki will be the best for everyone.
Kevin RossMemberFor example, now that I’ve followed the instructions and i can start the server, I cannot stop it using the control, and it abandons a JVM.
Could not connect to the remote server. Please check if the server is down or the client is using invalid host, ORMI port or password to connect.
Error: Invalid password for default (jazn.com/admin)
Error: Unable to look up server administrator (java:comp/ServerAdministrator): java:comp/ServerAdministrator not foundIt would be great if someone has already run across this and provided further detailed setup information…
Kevin RossMemberBTW – I’m not a whiner. I’ll be glad to submit instructions after I have ironed them out for OC4J. Just tell me where I can submit them.
Scott AndersonParticipantI really do feel that empowering the user community a little more through a wiki will be the best for everyone.
You already have the equivalent – a forum system with 10’s of thousands of searchable posts. For things you’d like to contribute, simply start a thread in the Documentation forum
It would be great if someone has already run across this and provided further detailed setup information…
Although this error message is new with this release, it is saying you’re not providing the correct admin password in the shutdown command. Please note the connector has a location to enter the admin password. If you didn’t set one, the default is ‘welcome’, which I found in my first Google search here: http://www.oracle.com/technology/tech/java/oc4j/1013/howtos/how-to-web-servlet-intro/doc/how-to-web-servlet-intro.html
I’ll be glad to submit instructions after I have ironed them out for OC4J. Just tell me where I can submit them.
That should give you everything you need as the server will now shutdown once the proper password is added. If you’d like to do a writeup and post explicit instructions, the Documentation forum is the right spot. Once posted, one of the admins will mark the thread sticky so it’ll hang around. Thanks for the contribution in advance.
GurinderMemberI’ve followed instructions as laid out on the following thread:
http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-7098-highlight-oc4j+setup.html
I can run OC4J no problem. I can deploy as a packaged archive
however my application does not run. It runs under tomcat.Under Oracle9ias plugin, i don’t get a whole lot of output. All i see is
“05/06/03 16:00:11 Oracle Application Server Containers for J2EE 10g (10.1.2.0.0) initialized”
When i test the app i get page cannot be found. Not sure whats going on.
I can see oc4j home page at http://localhost:8888/ and i can run the servlet/jsp samples.
Help
Gurinder
GurinderMemberSorry i mentioned oc4j 10.1.2
I’ve installed 10.1.3 and i still cannot access the application when deployed as a packaged archive. I get page cannot be found.
Also i don’t see the app deployed or expanded under applications or application-deployments directory under $ORACLE_HOMe/j2ee/home
As stated earlier i’ve also added in
application-auto-deploy-directory=”../application-autodeploy”
into server.xml
I can get the console up and also access oc4j manager console.
Help!
Gurinder
GurinderMemberThis is message on the system console when the server is first started up through MyEclipse menu.
7-Jun-2005 2:12:03 PM com.evermind.server.ejb.EJBPackageDeployment isIIOPConfigured
INFO: Beans associated with application default will not be available via RMI/IIOP: GenerateIIOP system property=false, enableIIOP application setting=false, server.xml configured for IIOP=false
7-Jun-2005 2:12:03 PM com.evermind.server.ejb.EJBPackageDeployment isIIOPConfigured
INFO: Beans associated with application default will not be available via RMI/IIOP: GenerateIIOP system property=false, enableIIOP application setting=false, server.xml configured for IIOP=false
05/06/07 14:12:03 done.
05/06/07 14:12:04 done.
05/06/07 14:12:11 Oracle Containers for J2EE 10g (10.1.3.0.0) – Developer Preview 3 initializedWhat does the messages in the info log represent. ?
I’ve still had no luck deploying to OC4J instance.
Gurinder
GurinderMemberI’ve managed to get this running. OC4J likes EAR’s.
I also had to update my datasources.xml
Now Oracle 10.1.3 is still a preview version and has lots of bugs in it.
Does MyEclipse have support for version 9.0.4 or 10.1.2 ?
My eclipse version is 3.0.2 and myeclipse version 3.8.4
Any help would be a appreciated, this is the last issue i have before migrating from JDeveloper over to Eclipse!!
Cheers
Gurinder
subu_manianMemberHi,
The Steps related to configuration and starting OC4J with MyEclipse was of great help but I am facing a couple of problems after performing these steps.
I am not getting the entire set of messages after starting the server however, I am getting the message Stating the J2EE Containers for OC4J is Initialized and while stopping the server, it is throwing exception as follows
Error: javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: Invalid username/password for default (admin); nested exception is:
javax.naming.AuthenticationException: Invalid username/password for default (admin)Upon subsequent attempt to start the server, the containers are initialized after a crash recovery.
Can somebody help me out on this .
Thanks and Regards
Manian
Scott AndersonParticipantManian,
From the error it looks like you’ve entered the wrong password for the admin user in the MyEclipse server connector preference page.
subu_manianMemberScott,
Thanks for the reply, The mistake was fundamentally what you had mentioned in your previous post as in the princilpals.xml, the user was deactivated. That problem is now solved, but, when i try to run my application, I am getting 404 error. My Configurations are as follows:
server.xml is configured as follows
<application name=”Sample” path=”C:\OC4J\j2ee\home\application-autodeploy\Sample.ear” auto-start=”true” />
application.xml configuration looks like this
<application>
<display-name>Sample</display-name>
<module id=”myeclipse.1132980987870″>
<web>
<web-uri>SampleWeb1.war</web-uri>
<context-root>/SampleWeb1</context-root>
</web>
</module>
</application>and my http-web-site.xml is as follows
<web-app application=”Sample” name=”/SampleWeb1″ root=”/Sample”>
My War and EAR files are Sample.EAR and SampleWeb1.WAR and is deployed in the application-autodeploy folder.
I am not getting where exactly ‘am going wrong. It would be great if you can help me out on this.
Thanks and Regards
Manian -
AuthorPosts