File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Vivek Puthiyonnan
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .....

 
Fatih Keles
Ranch Hand
Posts: 182
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic