This week's book giveaway is in the Web Services forum.
We're giving away four copies of Microservices in Action and have Morgan Bruce & Paulo A. Pereira on-line!
See this thread for details.
Win a copy of Microservices in Action this week in the Web Services forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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

 
Greenhorn
Posts: 18
  • 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 .....

 
Ranch Hand
Posts: 182
  • 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
  • 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 ?
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you should edit or remove xmlns(xml namespace). For example this was my first configuration which faced error:
    <!DOCTYPE orion-application PUBLIC "-//Evermind//DTD J2EE Application runtime 1.2//EN" "http://xmlns.oracle.com/ias/dtds/orion-application.dtd">
and I changed it to this and the problem was solved:
   <!DOCTYPE orion-application PUBLIC "-//Evermind//DTD J2EE Application runtime 1.2//EN">

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!