File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Mark Tobin
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mark Tobin
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Mark Tobin
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry posted the exception twice the caused by is

 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my web.xml

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic