facebook

MyEclipse and Oracle AS 10g 9.0.4

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #241282 Reply

    dlialios
    Member

    Hello.

    I have searched most of the threads here but I was unable to find a solution to my problem, which is that I can not start or stop or (properly) deploy my projects to Oracle AS 10g 9.0.4 using MyEclipse.

    I have a clean install of Eclipse 3.1.1 with MyEclipse 4.0.3. I also have installed the Oracle Application Server 10g 9.0.4 (from the CDs). JDK is 1.4.2-b28

    I have added the Oracle server under Preferences in My Eclipse, using the JDK. I have also modified my server.xml file for autodeployment as I have read in other threads here.
    I have created both a Web Project and an Enterprise Project and I am able to deploy them to the server using MyEclipse as Packaged archives. They are deployed to the auto-deploy directory and the Oracle server is able to autodeploy them (but only when I start him outside of MyEclipse).
    But this is it, there’s nothing more I can do.

    I can not start or stop the server from within MyEclipse.
    If I try to start the server (while it is not running) I get this:

    
    05/11/11 12:57:51 Error creating the ORB : 
    05/11/11 12:57:51 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0) initialized
    05/11/11 12:57:51 Error installing applications: Unknown assembly root-tag attribute: xmlns
    05/11/11 12:57:51 Auto-unpacking C:\oracle\OraHome904\j2ee\home\application-autodeploy\TP6.ear... done.
    05/11/11 12:57:55 Error installing applications: Unknown assembly root-tag attribute: xmlns
    

    (sometimes I only get the first two or three lines)

    It stays there forever, the system does not freeze, but the server is not started.
    My application is expanded in the application-autodeploy directory but is not added in the server
    If I try to shut the server down afterwards, I get a ’05/11/11 12:59:55 Shutting down…’ but nothing more.

    If I start the server outside of MyEclipse and then try to start it FROM MyEclipse I get:

    
    05/11/11 13:01:55 Error starting HTTP-Server: Address already in use: JVM_Bind
    05/11/11 13:01:56 05/11/11 13:01:56 Error installing applications: Unknown assembly root-tag attribute: xmlns
    Oracle Application Server Containers for J2EE 10g (9.0.4.0.0) initialized
    

    which seems kind of normal considering it is already running.

    I would really appreciate some feedback and help on this. Am I doing somthing completely wrong? I have searched literally all the threads in the forums and I have tried all solutions that had something to do (even remotely) with Oracle AS, but to no avail.
    I have also read the tutorial on how to user servers and server connectors etc, but it was focused on Tomcat which was something I could do and works flawlessly anyway.

    Can someone point me to the exact procedure I should follow for 9.0.4, as there are threads covering more recent releases with great detail, but I couldn’t find anything for 9.0.4 that would be helpful.

    Thank you in advance
    Dennis

    #241325

    Riyad Kalla
    Member

    Dennis,

    05/11/11 12:57:55 Error installing applications: Unknown assembly root-tag attribute: xmlns

    You are trying to deploy a J2EE 1.4 application to Oracle 10g 9.0 which only supports the J2EE 1.3 spec, so when it goes to parse the descriptors, it’s blowing up because they are usign the 1.4 XML Schema, not the 1.3 DTD it expects.

    #241399

    dlialios
    Member

    Hey thanks for the answer.

    Well, I deleted everything and started from scratch with a 1.3 Web Project with a sample jsp page (named TP11) and an enterprise project to contain it (TP12). The Oracle server is stopped.
    When I deploy the TP12 project as a packaged archive, I have an .ear file in my application-autodeploy directory.
    When I start the server from MyEclipse I get this in the console:

    
    05/11/14 12:39:58 Error creating the ORB : 
    05/11/14 12:39:58 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0) initialized
    05/11/14 12:39:58 Auto-unpacking C:\oracle\OraHome904\j2ee\home\application-autodeploy\TP12.ear... done.
    05/11/14 12:39:58 Auto-unpacking C:\oracle\OraHome904\j2ee\home\application-autodeploy\TP12\TP11.war... done.
    05/11/14 12:39:58 Auto-deploying TP12 (New server version detected)...
    05/11/14 12:39:58 ApplicationServer: appName = BC4J
    05/11/14 12:39:58 ApplicationServer: appName = BC4JManager
    05/11/14 12:39:58 ApplicationServer: appName = IsWebCacheWorking
    05/11/14 12:39:58 Auto-deploying file:/C:/oracle/OraHome904/j2ee/home/application-autodeploy/TP12/TP11/ (New server version detected)...
    05/11/14 12:39:58 Installed TP12...
    05/11/14 12:39:58 Auto-binding web-app 'TP11' to web-site 'OracleAS Java Web Site' at '/TP11'...
    

    and I now have an expanded TP12 (and TP11) in the application-autodeploy directory. The TP11 contains my jsp page.
    I also have a TP12 directory in the application-deployments directory whose TP11 subdirectory contains only the orion-web.xml file.
    The server has not been started however and I can not access any pages in any ports. If I go to the administration pages (localhost:1810) i can see that the TP12 application IS in the deployed applications.

    If I now start the server (not from MyEclipse) the server is started OK, but I still can’t access my page.
    If I redeploy from MyEclipse I get:

    
    05/11/14 12:54:12 Auto-unpacking C:\oracle\OraHome904\j2ee\home\application-autodeploy\TP12.ear... done.
    05/11/14 12:54:12 Auto-unpacking C:\oracle\OraHome904\j2ee\home\application-autodeploy\TP12\TP11.war... done.
    05/11/14 12:54:12 Auto-deploying TP12 (Assembly had been updated)...
    05/11/14 12:54:12 Auto-deploying file:/C:/oracle/OraHome904/j2ee/home/application-autodeploy/TP12/TP11/ (Assembly had been updated)...
    

    but nothing changes.

    Only when I redeploy from the administration pages (not from MyEclipse) using the .ear file created, then I get to make everything work ok, but this is not what I wanted.

    Any help would be greatly appreciated.

    #241413

    Riyad Kalla
    Member

    What did you want?

    #241417

    dlialios
    Member

    The impression I got by using MyEclipse with Tomcat and by reading the threads and set-up procedures for Oracle 10, was that I would be able to deploy (or redeploy) my application, or generally have some interaction with the server from within MyEclipse.

    #241436

    Riyad Kalla
    Member

    You have this level of integration with *all* the app servers, even Oracle. The part that is likely causing a hickup for you is that you are needing to login to the admin console and deploy the EAR from within Oracle, where as in Tomcat/JBoss there is a setting to automatically deploy newly found web or enterprise modules.

    I don’t know if Oracle supports this, if it doesn’t then the steps you are taking are necessary (the deploy step IN the app server is when all the EJB stubs and such are generated). What you can do however is after deploying your app into Oracle, shut it down, then go back to myeclipse and remove your deployment and then re-create it using an Exploded deployment. This will cause changes to be immediately moved out the server, then it is up to the server to reload them or the VM can hotsync the changes if they aren’t too big.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: MyEclipse and Oracle AS 10g 9.0.4

You must be logged in to post in the forum log in