wood burning stoves
The moose likes JBoss/WildFly and the fly likes ANT script for deployment of ear file in JBOSS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "ANT script for deployment of ear file in JBOSS" Watch "ANT script for deployment of ear file in JBOSS" New topic

ANT script for deployment of ear file in JBOSS


Joined: Mar 30, 2007
Posts: 15
I am new to JBOSS Can anybody guide me to do a sample deployment of ear file in JBOSS server.

Thanks in advance!!.

Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

JBoss is easy. Assuming you have a spec. compliant EAR file you just copy it into the deploy directory of your server.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch

Joined: Mar 30, 2007
Posts: 15
Actually i tried with war deployment but i started ear deployment. I am getting the following exception after JBOSS picks the ear file.

2008-04-18 11:34:05,609 DEBUG [org.jboss.deployment.MainDeployer] new manifest entry for sdi at sdmi.ear entry is ./kxml-11.jar
2008-04-18 11:34:05,609 DEBUG [org.jboss.deployment.MainDeployer] The manifest entry in file:/D:/Ajay-share/JBoss/server/default/deploy/sdmi.ear references URL file:/D:/Ajay-share/JBoss/server/default/deploy/kxml-11.jar which could not be opened, entry ignored
org.jboss.deployment.DeploymentException: url file:/D:/Ajay-share/JBoss/server/default/deploy/kxml-11.jar could not be opened, does it exist?
at org.jboss.deployment.DeploymentInfo.<init>(DeploymentInfo.java:214)
at org.jboss.deployment.MainDeployer.parseManifestLibraries(MainDeployer.java:1137)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:884)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659

Please help me over this.

Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

How did you create the ear/jar file? Can you post the ant task that you used? Also, what does the following command output:

[My Blog] [JavaRanch Journal]

Joined: Mar 30, 2007
Posts: 15
thank you i could able resolve it.

I agree. Here's the link: http://aspose.com/file-tools
subject: ANT script for deployment of ear file in JBOSS
It's not a secret anymore!