guilhermecgs
guilhermecgs

Reputation: 3061

Deploy war to JBOSS

I tried to deploy a Vaadin hello world application in JBOSS. The application is as simple as it can be. My development environment is eclipse for java EE + tomcat

    java.lang.RuntimeException: Error configuring property: includeWebInfInClasspath for WarClassLoaderDeployer
    at org.jboss.kernel.plugins.dependency.ConfigureAction.dispatchSetProperty(ConfigureAction.java:112)
    at org.jboss.kernel.plugins.dependency.ConfigureAction.setAttributes(ConfigureAction.java:85)
    (...)
    Caused by: java.lang.IllegalArgumentException: No such property includeWebInfInClasspath for bean org.jboss.web.tomcat.service.deployers.WarClassLoaderDeployer available [java2ClassLoadingCompliance, parentFirst, requiredInputs, filteredPackages, allInputs, deploymentRegistry, class, stage, wantComponents, componentsOnly, input, inputs, relativeOrder, output, useUnitName, outputs, topLevelOnly]

I have tried to google this error with no success.

Does anyone have any clues? Is it a web server configuration or my *.war is missing something?

EDIT:

This error occur when I start the server after placing my *.war in the folder. My JBOSS version is 5

Upvotes: 0

Views: 244

Answers (1)

Alexis Hassler
Alexis Hassler

Reputation: 751

I guess, you're using an old JBoss 5.

The WarClassLoaderDeployer is configured in the file server/default/deployers/jbossweb.deployer/META-INF/war-deployers-jboss-beans.xml. (The 'default' directory should be changed to whatever you passed as -c parameter) Open the file, find the WarClassLoaderDeployer bean and drop the line defining the property with name includeWebInfInClasspath.

Upvotes: 1

Related Questions