• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Configure Jboss in Ant???

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 136
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
*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.
 
Jano Balakrishnan
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is strictly a JBoss AS question, moved to that forum.
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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??
 
Author
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Jano Balakrishnan
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

,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
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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??
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is this a clean installation of JBoss? Or did you change/remove anything?
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 am not a spy. Definitely. Definitely not a spy. Not me. No way. But this tiny ad ...
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic