This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes moved from jboss-4.0.3 to jboss-5.1.0 where do I put my war files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "moved from jboss-4.0.3 to jboss-5.1.0 where do I put my war files" Watch "moved from jboss-4.0.3 to jboss-5.1.0 where do I put my war files" New topic
Author

moved from jboss-4.0.3 to jboss-5.1.0 where do I put my war files

Mark Tobin
Ranch Hand

Joined: May 05, 2010
Posts: 37
In JBoss-4.03 it was easy to deploy a war file

All you did was drop it into C:\jboss\server\default\deploy\jboss-web.deployer

looked at jboss-5.1.0

C:\jboss-5.1.0\server\default\deployers\jbossweb.deployer dropped my war file in there falls over
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

WAR files always went into the "deploy" directory (C:\jboss\server\default\deploy\ or C:\jboss-5.1.0\server\default\deploy on your PC). I'm not sure why you placed anything in jboss-web.deployer.


JBoss In Action
Mark Tobin
Ranch Hand

Joined: May 05, 2010
Posts: 37
Thanks again Peter lol I put it in jboss-web.deployer because it was called jboss-web.deployer and I thought that was where you put the war files.
I only started using Jboss this week. And are JBoss guy is on holiday we always before deployer ears but this time I need to deploy a war file.

I am a spring tomcat guy.

Thanks again, that may solve a number of other problems.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9915
    
158

Mark Tobin wrote:Thanks again Peter lol I put it in jboss-web.deployer because it was called jboss-web.deployer and I thought that was where you put the war files.



The jboss-web.deployer folder containers the deployers which are responsible for deploying .war files. So like Peter said, you shouldn't be changing or adding anything in there (unless you want to configure the deployer).

[My Blog] [JavaRanch Journal]
Mark Tobin
Ranch Hand

Joined: May 05, 2010
Posts: 37
I put my war file in C:\jboss-5.1.0\server\default\deploy as suggested started Jboss and got a exception

org.jboss.deployers.spi.DeploymentException: Error creating managed object for v
fszip:/C:/jboss-5.1.0/server/default/deploy/provisioning.war/
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)

Full Exception



Caused by



I was able to deply this war file to JBoss-4.0.3 I am only upgrading since JBoss-4.0.3 does not seem to handle annotations @Resource and I was told 5.1.0 will.
Mark Tobin
Ranch Hand

Joined: May 05, 2010
Posts: 37
sorry posted the exception twice the caused by is

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9915
    
158

Can you post the contents of your web.xml? At this point, I am mainly interested in its xsd/dtd declaration.
Mark Tobin
Ranch Hand

Joined: May 05, 2010
Posts: 37
my web.xml

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: moved from jboss-4.0.3 to jboss-5.1.0 where do I put my war files
 
Similar Threads
sorry what i posted i wrong in jboss
Problem not loading a properties file
How to deploy GWT web application in JBoss?
Error while redeploying application to JBoss
Purpose of different "lib" in JBoss 5