This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 5823
    
    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: 10066
    
163

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: 10066
    
163

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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: moved from jboss-4.0.3 to jboss-5.1.0 where do I put my war files