*
The moose likes JBoss/WildFly and the fly likes Configure Jboss in Ant??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Configure Jboss in Ant???" Watch "Configure Jboss in Ant???" New topic
Author

Configure Jboss in Ant???

Jano Balakrishnan
Greenhorn

Joined: Sep 01, 2008
Posts: 27
Hi,
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.

Here is my build.xml



Please help me to find the solution.
Balagopal Kannampallil
Ranch Hand

Joined: Oct 18, 2004
Posts: 136

*Is the war file getting copied into default/deploy folder of JBoss?
* If its getting copied successful, try opening the war file manually and see if its giving some errors.


SCJP 5.0 and now fighting with ExtJS
Jano Balakrishnan
Greenhorn

Joined: Sep 01, 2008
Posts: 27
I can manually extract the war file and see the project source as well as class files.The problem happens when i am running jboss.The error it points to is (Can you check for the location in Bold letters)
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?
But i have my war file created in default folder(/jboss/server/default/deploy/symbiounmail.war)
I donot know where i am going wrong.Can anyone help to get a solution for this?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

This is strictly a JBoss AS question, moved to that forum.


JBoss In Action
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

This exception:

# 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?

means that you started JBoss AS as:

./run.sh -c symbiounmail

but there is no such configuration as symbiounmail.

According to the ant script, you deployer you app to jboss_home/server/default/deploy. Therefore you should run it as simply:

./run.sh
Jano Balakrishnan
Greenhorn

Joined: Sep 01, 2008
Posts: 27
Thanks Peter.You are right.Now i face some difficulty.I am using ./run.sh command to start my jboss.I am ending with an error.


I was browsing to get a solution ,but i couldnot.Can you please help me??
Javid Jamae
Author
Ranch Hand

Joined: May 14, 2008
Posts: 198
It looks like you copied the server/default/conf directory under server/default/deploy/symbiounmail/conf. So perhaps it is trying to deploy the jboss-service.xml file twice.

What type of archive are you trying to deploy into your server/default/deploy directory? Could you outline the contents of the archive and tell us a little bit about what you're trying to accomplish?


Author: JBoss in Action, javidjamae.com, @javidjamae on Twitter
Jano Balakrishnan
Greenhorn

Joined: Sep 01, 2008
Posts: 27
My path where i am deploying is /home/jano/Softwares/jboss-4.0.4.GA/server/default/deploy.
Inside this deploy folder, i am creating the symbiounmail.war file.When i extract that,i could see the WEB-INF folder,conf folder,Hibernate folder etc..This conf folder also has a jboss-service.xml file.As you say,i think the jboss-service.xml file in server/default/deploy/symbiounmail/conf folder and server/default/conf directory are conflicting.What should i do to make jboss error free and run successfully?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

Post the results of the following commands:

ls -al /home/jano/Softwares/jboss-4.0.4.GA/server/default/deploy

ls -al /home/jano/Softwares/jboss-4.0.4.GA/server
Jano Balakrishnan
Greenhorn

Joined: Sep 01, 2008
Posts: 27
Hi Peter,
I have posted the reply for the commands..

jano@jano-desktop:~$ ls -al /home/jano/Softwares/jboss-4.0.4.GA/server/default/deploy
total 6000
drwxr-xr-x 12 jano jano 4096 2009-02-03 15:20 .
drwxr-xr-x 9 jano jano 4096 2008-09-08 18:58 ..
-rw-r--r-- 1 jano jano 408 2006-05-15 10:02 bsh-deployer.xml
-rw-r--r-- 1 jano jano 2067 2006-05-15 10:02 cache-invalidation-service.xml
drwx------ 4 jano jano 4096 2008-10-22 17:01 careertales-1.0-SNAPSHOT
-rw-r--r-- 1 jano jano 2421 2008-10-22 17:01 careertales-1.0-SNAPSHOT.jar
-rw-r--r-- 1 jano jano 1925 2006-05-15 10:02 client-deployer-service.xml
-rw-r--r-- 1 jano jano 747 2006-05-15 10:02 ear-deployer.xml
-rw-r--r-- 1 jano jano 11777 2006-05-15 10:02 ejb-deployer.xml
-rw-r--r-- 1 jano jano 5069 2006-05-15 10:02 hsqldb-ds.xml
drwxr-xr-x 4 jano jano 4096 2006-05-15 10:02 http-invoker.sar
drwxr-xr-x 3 jano jano 4096 2006-05-15 10:03 jboss-aop.deployer
drwxr-xr-x 3 jano jano 4096 2006-05-15 10:03 jboss-bean.deployer
-rw-r--r-- 1 jano jano 6540 2006-05-15 10:03 jboss-ha-local-jdbc.rar
-rw-r--r-- 1 jano jano 8796 2006-05-15 10:03 jboss-ha-xa-jdbc.rar
-rw-r--r-- 1 jano jano 3076 2006-05-15 10:02 jbossjca-service.xml
-rw-r--r-- 1 jano jano 11893 2006-05-15 10:03 jboss-local-jdbc.rar
drwxr-xr-x 6 jano jano 4096 2006-05-15 10:03 jbossweb-tomcat55.sar
drwxr-xr-x 3 jano jano 4096 2006-05-15 10:03 jbossws14.sar
-rw-r--r-- 1 jano jano 15015 2006-05-15 10:03 jboss-xa-jdbc.rar
drwxr-xr-x 3 jano jano 4096 2006-05-15 10:03 jms
drwxr-xr-x 6 jano jano 4096 2006-05-15 10:03 jmx-console.war
-rw-r--r-- 1 jano jano 5764 2006-05-15 10:02 jmx-invoker-service.xml
-rw-r--r-- 1 jano jano 878 2006-05-15 10:02 jsr88-service.xml
drwx------ 9 jano jano 4096 2009-02-03 15:48 symbiounmail // this is the extracted folder of the war file i am creating on deployment
-rw-r--r-- 1 jano jano 5910680 2009-02-03 15:20 symbiounmail.war // this is the war file i am creating on deployment
-rw-r--r-- 1 jano jano 11865 2006-05-15 10:03 mail-ra.rar
-rw-r--r-- 1 jano jano 1645 2006-05-15 10:02 mail-service.xml
drwxr-xr-x 3 jano jano 4096 2006-05-15 10:02 management
-rw-r--r-- 1 jano jano 5305 2006-05-15 10:02 monitoring-service.xml
-rw-r--r-- 1 jano jano 1850 2006-05-15 10:02 properties-service.xml
-rw-r--r-- 1 jano jano 4203 2006-05-15 10:02 schedule-manager-service.xml
-rw-r--r-- 1 jano jano 2217 2006-05-15 10:02 scheduler-service.xml
-rw-r--r-- 1 jano jano 198 2006-05-15 10:02 sqlexception-service.xml
-rw-r--r-- 1 jano jano 12436 2006-05-15 10:03 uuid-key-generator.sar
jano@jano-desktop:~$

jano@jano-desktop:~$ ls -al /home/jano/Softwares/jboss-4.0.4.GA/server
total 32
drwxr-xr-x 8 jano jano 4096 2009-02-02 14:45 .
drwxr-xr-x 7 jano jano 4096 2006-05-15 10:13 ..
drwxr-xr-x 3 jano jano 4096 2008-09-19 11:56 ablechair
drwxr-xr-x 7 jano jano 4096 2006-05-15 10:01 all
drwxr-xr-x 4 jano jano 4096 2009-01-29 16:16 automatedtest
drwxr-xr-x 9 jano jano 4096 2008-09-08 19:10 careertales
drwxr-xr-x 9 jano jano 4096 2008-09-08 18:58 default
drwxr-xr-x 5 jano jano 4096 2006-05-15 10:02 minimal
jano@jano-desktop:~$

Please help me to find the solution........
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

Get rid of the symbiounmail directory within the deploy directory. That is probably confusing the situation.

If you really want to deploy your app exploded, see this. Note that the exploded directory must be named symbiounmail.war, thus you cannot have both the WAR file and the exploded directory in the deploy directory at the same time.
Jano Balakrishnan
Greenhorn

Joined: Sep 01, 2008
Posts: 27
Peter,
Can you look at the following code
jano@jano-desktop:~$ ls -al /home/jano/Softwares/jboss-4.0.4.GA/server/default/deploy
total 5996
drwxr-xr-x 11 jano jano 4096 2009-02-05 12:10 .
drwxr-xr-x 9 jano jano 4096 2008-09-08 18:58 ..
-rw-r--r-- 1 jano jano 408 2006-05-15 10:02 bsh-deployer.xml
-rw-r--r-- 1 jano jano 2067 2006-05-15 10:02 cache-invalidation-service.xml
drwx------ 4 jano jano 4096 2008-10-22 17:01 careertales-1.0-SNAPSHOT
-rw-r--r-- 1 jano jano 2421 2008-10-22 17:01 careertales-1.0-SNAPSHOT.jar
-rw-r--r-- 1 jano jano 1925 2006-05-15 10:02 client-deployer-service.xml
-rw-r--r-- 1 jano jano 747 2006-05-15 10:02 ear-deployer.xml
-rw-r--r-- 1 jano jano 11777 2006-05-15 10:02 ejb-deployer.xml
-rw-r--r-- 1 jano jano 5069 2006-05-15 10:02 hsqldb-ds.xml
drwxr-xr-x 4 jano jano 4096 2006-05-15 10:02 http-invoker.sar
drwxr-xr-x 3 jano jano 4096 2006-05-15 10:03 jboss-aop.deployer
drwxr-xr-x 3 jano jano 4096 2006-05-15 10:03 jboss-bean.deployer
-rw-r--r-- 1 jano jano 6540 2006-05-15 10:03 jboss-ha-local-jdbc.rar
-rw-r--r-- 1 jano jano 8796 2006-05-15 10:03 jboss-ha-xa-jdbc.rar
-rw-r--r-- 1 jano jano 3076 2006-05-15 10:02 jbossjca-service.xml
-rw-r--r-- 1 jano jano 11893 2006-05-15 10:03 jboss-local-jdbc.rar
drwxr-xr-x 6 jano jano 4096 2006-05-15 10:03 jbossweb-tomcat55.sar
drwxr-xr-x 3 jano jano 4096 2006-05-15 10:03 jbossws14.sar
-rw-r--r-- 1 jano jano 15015 2006-05-15 10:03 jboss-xa-jdbc.rar
drwxr-xr-x 3 jano jano 4096 2006-05-15 10:03 jms
drwxr-xr-x 6 jano jano 4096 2006-05-15 10:03 jmx-console.war
-rw-r--r-- 1 jano jano 5764 2006-05-15 10:02 jmx-invoker-service.xml
-rw-r--r-- 1 jano jano 878 2006-05-15 10:02 jsr88-service.xml
-rw-r--r-- 1 jano jano 5910680 2009-02-03 15:20 symbiounmail.war
-rw-r--r-- 1 jano jano 11865 2006-05-15 10:03 mail-ra.rar
-rw-r--r-- 1 jano jano 1645 2006-05-15 10:02 mail-service.xml
drwxr-xr-x 3 jano jano 4096 2006-05-15 10:02 management
-rw-r--r-- 1 jano jano 5305 2006-05-15 10:02 monitoring-service.xml
-rw-r--r-- 1 jano jano 1850 2006-05-15 10:02 properties-service.xml
-rw-r--r-- 1 jano jano 4203 2006-05-15 10:02 schedule-manager-service.xml
-rw-r--r-- 1 jano jano 2217 2006-05-15 10:02 scheduler-service.xml
-rw-r--r-- 1 jano jano 198 2006-05-15 10:02 sqlexception-service.xml
-rw-r--r-- 1 jano jano 12436 2006-05-15 10:03 uuid-key-generator.sar
jano@jano-desktop:~$

And also,i only will manually extract symbiounmail.war file to check whether all the class files are created.I am new to use Jboss..Can you be little more specific in detail...You mean to say that instead of creating a war file,i should create a folder like symbiounmail.war [i saw the link you gave me..and saw the sample deploy/jmx-console.war]Even i tried in that way, i am getting an error..

Can you please help me?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

,i only will manually extract symbiounmail.war file to check whether all the class files are created


This answers my question as to why the symbiounmail directory appeared, so ignore the link on exploded deployment. And if you need to extract the WAR file somewhere, do it somewhere other than the deploy directory because JBoss AS will attempt to deploy anything in the deploy directory. Which isp robably why you were getting errors.

With only the symbiounmail.war file in the deploy directory, does it work?

The best thing to do would be stop JBoss AS, move the symbiounmail.war file out of the deploy directory, start JBoss AS and once the startup is finished (wait for the "started in xxx seconds" message), and only if there are no errors on startup then move the symbiounmail.war file back into the deploy directory.
Jano Balakrishnan
Greenhorn

Joined: Sep 01, 2008
Posts: 27
Hi,
Now i have removed symbiounmail.war file from default/deploy folder.I have placed symbiuonmail.war file inside/home/jano/Softwares/jboss-4.0.4.GA/server/symbiounmail/deploy folder and then started JBOSS.I am getting the following error..

How should i fix this issue??
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10102
    
165

Is this a clean installation of JBoss? Or did you change/remove anything?


[My Blog] [JavaRanch Journal]
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5827
    
    7

Based on this output you have removed the deployers that deploy WAR and RAR files.

I suggest that you download JBoss AS 4.0.4 again and unzip it to some other location and try running that without any changes.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Configure Jboss in Ant???