Jackass03
asked on
Manually Deploying an EAR File
Hi
I'm having a few probs deploying my ear file.
I log onto my 10gAS and the ftp my ear file across doing the following:
dcmctl deployApplication -f web.ear -a Web -co Web
Where 'Web' is my oc4J instance name and 'web.ear' is my EAR file.
The result from trying to deploy is:
----
ADMN-300009
Cannot get xml document by parsing META-INF/application.xml: Jar file: /data/oracle/product/10gAS /j2ee/Web/ applicatio ns/web.ear is missing its standard xml descriptor located at META-INF/application.xml
Resolution:
oracle.ias.sysmgmt.deploym ent.j2ee.e xception.J 2eeDeploym entExcepti on: Cannot get xml document by parsing META-INF/application.xml: Jar file: /data/oracle/product/10gAS /j2ee/Web/ applicatio ns/web.ear is missing its standard xml descriptor located at META-INF/application.xml
Resolution:
Resolution:
at oracle.ias.sysmgmt.deploym ent.j2ee.f ile.EarFil e.init(Unk nown Source)
at oracle.ias.sysmgmt.deploym ent.j2ee.f ile.EarFil e.<init>(U nknown Source)
at oracle.ias.sysmgmt.deploym ent.j2ee.f ile.EarFil e.<init>(U nknown Source)
at oracle.ias.sysmgmt.deploym ent.j2ee.c onsole.Ear DeployerIm pl.<init>( Unknown Source)
at oracle.ias.sysmgmt.deploym ent.j2ee.c onsole.J2e eDeploymen tImpl.getE arDeployer (Unknown Source)
at oracle.ias.sysmgmt.deploym ent.j2ee.c onsole.J2e eDeploymen tImpl.getE arDeployer (Unknown Source)
at oracle.ias.sysmgmt.cmdline .DcmCmdLin e.deployAp p(Unknown Source)
at oracle.ias.sysmgmt.cmdline .DcmCmdLin e.execute( Unknown Source)
at oracle.ias.sysmgmt.cmdline .DcmCmdLin e.main(Unk nown Source)
----
My EAR (web.ear) is like the following:
web.ear
----META-INF
--------application.xml
----web.war
My application.xml is the following:
----
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
"http://java.sun.com/dtd/application_1_3.dtd">
<application id="Application_ID">
<display-name>Web</display -name>
<description>Web</descript ion>
<module id="WebModule_1">
<web>
<web-uri>web.war</web-uri>
<context-root>/Web</contex t-root>
</web>
</module>
</application>
---
Any ideas what i'm doing wrong?
Ta
I'm having a few probs deploying my ear file.
I log onto my 10gAS and the ftp my ear file across doing the following:
dcmctl deployApplication -f web.ear -a Web -co Web
Where 'Web' is my oc4J instance name and 'web.ear' is my EAR file.
The result from trying to deploy is:
----
ADMN-300009
Cannot get xml document by parsing META-INF/application.xml: Jar file: /data/oracle/product/10gAS
Resolution:
oracle.ias.sysmgmt.deploym
Resolution:
Resolution:
at oracle.ias.sysmgmt.deploym
at oracle.ias.sysmgmt.deploym
at oracle.ias.sysmgmt.deploym
at oracle.ias.sysmgmt.deploym
at oracle.ias.sysmgmt.deploym
at oracle.ias.sysmgmt.deploym
at oracle.ias.sysmgmt.cmdline
at oracle.ias.sysmgmt.cmdline
at oracle.ias.sysmgmt.cmdline
----
My EAR (web.ear) is like the following:
web.ear
----META-INF
--------application.xml
----web.war
My application.xml is the following:
----
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
"http://java.sun.com/dtd/application_1_3.dtd">
<application id="Application_ID">
<display-name>Web</display
<description>Web</descript
<module id="WebModule_1">
<web>
<web-uri>web.war</web-uri>
<context-root>/Web</contex
</web>
</module>
</application>
---
Any ideas what i'm doing wrong?
Ta
please specify the ear full path in ur dcmctl command
ASKER
Hi - Thx for the reply.
I ftp the .ear file to:
/data/oracle/product/10gAS /j2ee/Web/ applicatio ns/
My OC4J instance is named 'Web'.
Any ideas?
I ftp the .ear file to:
/data/oracle/product/10gAS
My OC4J instance is named 'Web'.
Any ideas?
yes try this:
dcmctl deployApplication -f data/oracle/product/10gAS/ j2ee/Web/a pplication s/
web.ear -a Web -co Web
dcmctl deployApplication -f data/oracle/product/10gAS/
web.ear -a Web -co Web
ASKER
Hi
Just tried that and got a different error (is this to do with the .ear being 260mb?)
----
$ dcmctl deployApplication -f data/oracle/product/10gAS/ j2ee/Web/a pplication s/web.ear -a Web -co Web
ADMN-300074
Specified file /data/oracle/product/10gAS /j2ee/Web/ applicatio ns/data/or acle/produ ct/10gAS/j 2ee/Web/ap plications /web.ear is not accessible
oracle.ias.sysmgmt.deploym ent.j2ee.e xception.J 2eeDeploym entExcepti on: Specified file /data/oracle/product/10gAS /j2ee/Web/ applicatio ns/data/or acle/produ ct/10gAS/j 2ee/Web/ap plications /web.ear is not accessible
Resolution:
at oracle.ias.sysmgmt.deploym ent.j2ee.f ile.J2eeFi le.<init>( Unknown Source)
at oracle.ias.sysmgmt.deploym ent.j2ee.f ile.J2eeFi le.<init>( Unknown Source)
at oracle.ias.sysmgmt.deploym ent.j2ee.f ile.EarFil e.<init>(U nknown Source)
at oracle.ias.sysmgmt.deploym ent.j2ee.f ile.EarFil e.<init>(U nknown Source)
at oracle.ias.sysmgmt.deploym ent.j2ee.c onsole.Ear DeployerIm pl.<init>( Unknown Source)
at oracle.ias.sysmgmt.deploym ent.j2ee.c onsole.J2e eDeploymen tImpl.getE arDeployer (Unknown Source)
at oracle.ias.sysmgmt.deploym ent.j2ee.c onsole.J2e eDeploymen tImpl.getE arDeployer (Unknown Source)
at oracle.ias.sysmgmt.cmdline .DcmCmdLin e.deployAp p(Unknown Source)
at oracle.ias.sysmgmt.cmdline .DcmCmdLin e.execute( Unknown Source)
at oracle.ias.sysmgmt.cmdline .DcmCmdLin e.main(Unk nown Source)
$
----
It looks like its trying to find the ear in -
" /data/oracle/product/10gAS /j2ee/Web/ applicatio ns/data/or acle/produ ct/10gAS/j 2ee/Web/ap plications /web.ear"
But when i do:
dcmctl deployApplication -f web.ear -a Web -co Web
I get the error as stated earlier........ is there something up with my application.xml? do i need a manifest.mf?
Just tried that and got a different error (is this to do with the .ear being 260mb?)
----
$ dcmctl deployApplication -f data/oracle/product/10gAS/
ADMN-300074
Specified file /data/oracle/product/10gAS
oracle.ias.sysmgmt.deploym
Resolution:
at oracle.ias.sysmgmt.deploym
at oracle.ias.sysmgmt.deploym
at oracle.ias.sysmgmt.deploym
at oracle.ias.sysmgmt.deploym
at oracle.ias.sysmgmt.deploym
at oracle.ias.sysmgmt.deploym
at oracle.ias.sysmgmt.deploym
at oracle.ias.sysmgmt.cmdline
at oracle.ias.sysmgmt.cmdline
at oracle.ias.sysmgmt.cmdline
$
----
It looks like its trying to find the ear in -
" /data/oracle/product/10gAS
But when i do:
dcmctl deployApplication -f web.ear -a Web -co Web
I get the error as stated earlier........ is there something up with my application.xml? do i need a manifest.mf?
ur application.xml web module war uri is mismatching with the WAR file name and location inside the EAR, i need ur application.xml contents and the directory structure of ur EAR
ASKER
Here is the contents of my application.xml:
----
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
"http://java.sun.com/dtd/application_1_3.dtd">
<application id="Application_ID">
<display-name>Web</display -name>
<description>Web</descript ion>
<module id="WebModule_1">
<web>
<web-uri>web.war</web-uri>
<context-root>/Web</contex t-root>
</web>
</module>
</application>
---
My EAR file structure is as follows:
META-INF (dir)
----application.xml
web.war
----
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
"http://java.sun.com/dtd/application_1_3.dtd">
<application id="Application_ID">
<display-name>Web</display
<description>Web</descript
<module id="WebModule_1">
<web>
<web-uri>web.war</web-uri>
<context-root>/Web</contex
</web>
</module>
</application>
---
My EAR file structure is as follows:
META-INF (dir)
----application.xml
web.war
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
also make sure u r doing this deployment with the proper user that have full access to this directory:
/data/oracle/product/10gAS /j2ee/Web/ applicatio ns
and ur command should be:
dcmctl deployApplication -f /data/oracle/product/10gAS /j2ee/Web/ applicatio ns/web.ear -a Web -co Web
u forgot the / before data
/data/oracle/product/10gAS
and ur command should be:
dcmctl deployApplication -f /data/oracle/product/10gAS
u forgot the / before data
ASKER
Still getting the error as before:
----
bash-2.05$ dcmctl deployApplication -f /data/oracle/product/10gAS /j2ee/Web/ a
pplications/web.ear -a Web -co Web
ADMN-300009
Cannot get xml document by parsing META-INF/application.xml: Jar file: /data/ora
cle/product/10gAS/j2ee/Web /applicati ons/web.ea r is missing its standard
xml descriptor located at META-INF/application.xml
Resolution:
oracle.ias.sysmgmt.deploym ent.j2ee.e xception.J 2eeDeploym entExcepti on: Cannot get
xml document by parsing META-INF/application.xml: Jar file: /data/oracle/produc
t/10gAS/j2ee/Website/appli cations/we bsite.ear is missing its standard xml descri
ptor located at META-INF/application.xml
Resolution:
Resolution:
at oracle.ias.sysmgmt.deploym ent.j2ee.f ile.EarFil e.init(Unk nown Source)
at oracle.ias.sysmgmt.deploym ent.j2ee.f ile.EarFil e.<init>(U nknown Source
)
at oracle.ias.sysmgmt.deploym ent.j2ee.f ile.EarFil e.<init>(U nknown Source
)
at oracle.ias.sysmgmt.deploym ent.j2ee.c onsole.Ear DeployerIm pl.<init>( Unk
nown Source)
at oracle.ias.sysmgmt.deploym ent.j2ee.c onsole.J2e eDeploymen tImpl.getE arD
eployer(Unknown Source)
at oracle.ias.sysmgmt.deploym ent.j2ee.c onsole.J2e eDeploymen tImpl.getE arD
eployer(Unknown Source)
at oracle.ias.sysmgmt.cmdline .DcmCmdLin e.deployAp p(Unknown Source)
at oracle.ias.sysmgmt.cmdline .DcmCmdLin e.execute( Unknown Source)
at oracle.ias.sysmgmt.cmdline .DcmCmdLin e.main(Unk nown Source)
bash-2.05$
----
just checked that 'application.xml' was spelt correctly and it was....
----
bash-2.05$ dcmctl deployApplication -f /data/oracle/product/10gAS
pplications/web.ear -a Web -co Web
ADMN-300009
Cannot get xml document by parsing META-INF/application.xml: Jar file: /data/ora
cle/product/10gAS/j2ee/Web
xml descriptor located at META-INF/application.xml
Resolution:
oracle.ias.sysmgmt.deploym
xml document by parsing META-INF/application.xml: Jar file: /data/oracle/produc
t/10gAS/j2ee/Website/appli
ptor located at META-INF/application.xml
Resolution:
Resolution:
at oracle.ias.sysmgmt.deploym
at oracle.ias.sysmgmt.deploym
)
at oracle.ias.sysmgmt.deploym
)
at oracle.ias.sysmgmt.deploym
nown Source)
at oracle.ias.sysmgmt.deploym
eployer(Unknown Source)
at oracle.ias.sysmgmt.deploym
eployer(Unknown Source)
at oracle.ias.sysmgmt.cmdline
at oracle.ias.sysmgmt.cmdline
at oracle.ias.sysmgmt.cmdline
bash-2.05$
----
just checked that 'application.xml' was spelt correctly and it was....
do u modifed application.xml as I told u in my before last comment?
ASKER
oooops - didn't see that - will repackage and ftp over again (may be a little while)
Thanks for the help :)
Thanks for the help :)
ASKER
ok - just tried to deploy and get this msg!
bash-2.05$ dcmctl deployApplication -f /data/oracle/product/10gAS /j2ee/Web/ applicatio ns/web.ear -a Web -co Web
ADMN-705003
The evaluate phase failed. The Adapter used in the evaluate may have thrown an exception.
Base Exception:
java.lang.OutOfMemoryError :null
Check the related Adapter evaluate logic and base exception in the log file.
java.lang.OutOfMemoryError
at com.evermind.server.rmi.RM IConnectio n.EXCEPTIO N_ORIGINAT ES_FROM_TH E_REMOTE_S ERVER(RMIC onnection. java:1520)
at com.evermind.server.rmi.RM IConnectio n.invokeMe thod(RMICo nnection.j ava:1473)
at com.evermind.server.rmi.Re moteInvoca tionHandle r.invoke(R emoteInvoc ationHandl er.java:55 )
at com.evermind.server.rmi.Re coverableR emoteInvoc ationHandl er.invoke( Recoverabl eRemoteInv ocationHan dler.java: 22)
at __Proxy0.deploy(Unknown Source)
at oracle.ias.sysmgmt.deploym ent.j2ee.r untime.Loc alDeploy.d eployOnSin gleInstanc e(Unknown Source)
at oracle.ias.sysmgmt.deploym ent.j2ee.r untime.Loc alDeploy.d oExecute(U nknown Source)
at oracle.ias.sysmgmt.deploym ent.j2ee.r untime.Run timeIf.exe cute(Unkno wn Source)
at oracle.ias.sysmgmt.deploym ent.j2ee.a dapter.Dep loymentAda pter.doEva luateDeplo y(Unknown Source)
at oracle.ias.sysmgmt.deploym ent.j2ee.a dapter.Dep loymentAda pter.evalu ate(Unknow n Source)
at oracle.ias.sysmgmt.task.Ta skMaster.s ync_evalua te(Unknown Source)
at oracle.ias.sysmgmt.task.Ta skMaster.i nternal_ev aluate(Unk nown Source)
at oracle.ias.sysmgmt.task.Re moteEvalua te.execCom mand(Unkno wn Source)
at oracle.ias.sysmgmt.task.Da emonWorker .run(Unkno wn Source)
bash-2.05$
Out of memory! - any ideas on this one?
bash-2.05$ dcmctl deployApplication -f /data/oracle/product/10gAS
ADMN-705003
The evaluate phase failed. The Adapter used in the evaluate may have thrown an exception.
Base Exception:
java.lang.OutOfMemoryError
Check the related Adapter evaluate logic and base exception in the log file.
java.lang.OutOfMemoryError
at com.evermind.server.rmi.RM
at com.evermind.server.rmi.RM
at com.evermind.server.rmi.Re
at com.evermind.server.rmi.Re
at __Proxy0.deploy(Unknown Source)
at oracle.ias.sysmgmt.deploym
at oracle.ias.sysmgmt.deploym
at oracle.ias.sysmgmt.deploym
at oracle.ias.sysmgmt.deploym
at oracle.ias.sysmgmt.deploym
at oracle.ias.sysmgmt.task.Ta
at oracle.ias.sysmgmt.task.Ta
at oracle.ias.sysmgmt.task.Re
at oracle.ias.sysmgmt.task.Da
bash-2.05$
Out of memory! - any ideas on this one?
restart :-(
ASKER
Sorted :)
The heap size of the JVM needed increasing :)
Cheers petmagdy!
The heap size of the JVM needed increasing :)
Cheers petmagdy!