Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ANT script for deployment of ear file in JBOSS

 
Ajay
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JBoss is easy. Assuming you have a spec. compliant EAR file you just copy it into the deploy directory of your server.
 
Ajay
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How did you create the ear/jar file? Can you post the ant task that you used? Also, what does the following command output:

 
Ajay
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you i could able resolve it.

-Siva.
SCJP1.4.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic