aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
Author

ANT script for deployment of ear file in JBOSS

Ajay
Greenhorn

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!!.

-Siva
Paul Sturrock
Bartender

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
Ajay
Greenhorn

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.

Thanks,
Siva.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9317
    
109

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]
Ajay
Greenhorn

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

-Siva.
SCJP1.4.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ANT script for deployment of ear file in JBOSS
 
Similar Threads
Error in Deployment
Jboss Configuration Property
SAR Deployment
Explode ear file upon deployemnt
Deploying Ear in tomcat