This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Oracle/OAS and the fly likes Help needed in .EAR deployment on Oracle Application Server 10g Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "Help needed in .EAR deployment on Oracle Application Server 10g" Watch "Help needed in .EAR deployment on Oracle Application Server 10g" New topic
Author

Help needed in .EAR deployment on Oracle Application Server 10g

Vivek Puthiyonnan
Greenhorn

Joined: Jan 26, 2005
Posts: 18
Hi ,

I have developed a web application(.ear) using Sun J2EE Application Server. The application is working perfectly in Sun J2EE Application Server. The application have JSPs, Servlets, Java Beans & EJBs. I want to deploy the application on Oracle Application Server 10g. I have created the necessary Data-Sources & JNDIs. But while deploying the .ear file i'm getting the following error :

Deployment failed: Nested exception
Resolution:

Base Exception:
java.rmi.RemoteException
deploy failed!: ; nested exception is:

oracle.oc4j.admin.internal.DeployerException: Unknown assembly root-tag attribute: xmlns. deploy failed!: ; nested exception is:


oracle.oc4j.admin.internal.DeployerException: Unknown assembly root-tag attribute: xmlns




Should I make any changes in the .ear file for deploying in Oracle Application Server 10g ?
I am using Oracle Enterprise Manager 10g Application Server Control for deploying the .ear file.


Please suggest me a way forward .....


Vivek P
Fatih Keles
Ranch Hand

Joined: Sep 01, 2005
Posts: 182
Some xml file in your ear file has an un-recognized xmlns attribute in it. You may need to remove these attributes.
What is the version of Oracle Application Server 10g? If it is below 10.1.3 then your code and deployment scripts should have to be compatible with J2EE 1.4.

Regards,

Fatih.
Vivek Puthiyonnan
Greenhorn

Joined: Jan 26, 2005
Posts: 18
Thanks for replying ...


I am trying to deploy on Oracle Application Server 10g Version 10.1.2.0.2.

My application.xml reads as

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
<description>Application description</description>
<display-name>iRecruit</display-name>
<module>
<ejb>ejb-jar-ic.jar</ejb>
</module>
<module>
<web>
<web-uri>war-ic.war</web-uri>
<context-root>/iRecruit</context-root>
</web>
</module>
</application>





My web.xml starts as :

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">





My ejb-jar.xml starts as :

<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.1" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">



Should i make any changes in the XMLs ?
 
jQuery in Action, 2nd edition
 
subject: Help needed in .EAR deployment on Oracle Application Server 10g