Configure Jboss in Ant???

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Configure Jboss in Ant???

Jan K
 I have posted my build.xml file.Its building successfully.I have my project structure(a war file) deployed in Jboss(/default/deploy folder).When i run Jboss,I am getting thee following error.

 Java VM: Java HotSpot(TM) Server VM 1.5.0_15-b04,Sun Microsystems Inc.  
 13:06:04,954 INFO  [ServerInfo] OS-System: Linux 2.6.24-22-generic,i386  
 13:06:05,395 INFO  [Server] Core system initialized  
 Failed to boot JBoss:  
 org.jboss.deployment.DeploymentException: url file:/home/jano/Softwares/jboss-4.0.4.GA/server/symbiounmail/conf/jboss-service.xml could not be opened, does it exist?
 
         at org.jboss.deployment.DeploymentInfo.<init>(DeploymentInfo.java:211)  
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:770)  
         at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)  
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)  
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  
        at java.lang.reflect.Method.invoke(Method.java:585)  
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)  
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)  
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)  
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)  
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)  
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)  
         at $Proxy5.deploy(Unknown Source)  
         at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)  
         at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)  
         at org.jboss.Main.boot(Main.java:200)  
        at org.jboss.Main$1.run(Main.java:464)  
       at java.lang.Thread.run(Thread.java:595)  
 13:06:05,533 INFO  [Server] Runtime shutdown hook called, forceHalt: true  
 13:06:05,533 INFO  [Server] JBoss SHUTDOWN: Undeploying all packages  
 13:06:05,541 INFO  [Server] Shutdown complete  
 Shutdown complete  

 Here is my build.xml

<?xml version="1.0" encoding="UTF-8"?>  
 <project name="symbiounmail" default="deploy"> 
     
    <property name="local.location" value="/home/jano/SymMail"/> 
     <property name="webinf" value="${local.location}/src/web/WEB-INF"/> 
     <property name="lib" value="/home/jano/SymMail/src/web/WEB-INF/lib"></property> 
     <property name="classes" value="/home/jano/SymMail/src/web/WEB-INF/classes"/> 
     <property name="jboss.home" value="/home/jano/Softwares/jboss-4.0.4.GA"/> 
    <property name="jboss.deploy.dir" value="/home/jano/Softwares/jboss-4.0.4.GA/server/default/deploy"></property> 
     <property name="warfile" value="symbiounmail.war"></property> 
     <property name="src" value="${local.location}/src"/>         
     <property name="web.xml" value="/home/jano/SymMail/src/web/WEB-INF/web.xml"/> 
     <property name="deploy.dir" value="${local.location}/deploy"/> 
           
     <path id="compilepath"> 
         <fileset dir="${lib}"></fileset> 
     </path> 
       
     <target name="package"> 
    <javac srcdir="${src}" destdir="${classes}"  
                listfiles="true" debug="true"  verbose="true"> 
                <classpath refid="compilepath"/> 
     </javac> 
           
         <war warfile="${warfile}" webxml="${web.xml}"> 
             <webinf dir="${local.location}"> 
                 <include name="**/*web*.xml"/> 
             </webinf> 
             <lib dir="${lib}"> 
                 <include name="*.jar"/> 
                   
             </lib> 
               
               
            <fileset dir="${src}"/>         
             <classes dir="${classes}" includes="**/*.class"></classes>   
       
         </war> 
         
     </target> 
       
 
     <target name="deploy" depends="clean,package"> 
        <copy file="${warfile}" todir="${jboss.deploy.dir}" overwrite="true"></copy> 
     </target> 
           
     <target name="clean"> 
         <delete dir="${classes}"> 
             <filename name="*.class"/> 
         </delete> 
           
        <delete> 
            <fileset dir="${jboss.deploy.dir}" includes="${warfile}"/> 
         </delete> 
     </target> 
   
 </project>   

Please help me to find the solution.