Note that there are some explanatory texts on larger screens.

plurals
  1. POWEB-INF/lib folder disappears when deploying on JBoss with Eclipse
    primarykey
    data
    text
    <p>I am trying to deploy a simple Seam 3 application on JBoss 7.1.1. The project uses Maven but is also a Dynamic web project so it can be run directly on my configured JBoss server. I am using Eclipse Juno for Java EE. </p> <p>The project structure is: </p> <ul> <li>src/main/java</li> <li>src/main/resources</li> <li>src/main/webapp</li> <li>src/test/java</li> <li>src/test/resources</li> <li>target</li> <li>pom.xml</li> </ul> <p>The thing is, after I do a mvn:clean, mvn:package -> all the contents of the src/main/webapp/WEB-INF are copied to the "target/project/WEB-INF" folder. Also, there is a "lib" folder under WEB-INF as normal. The same contents appear in the project.war archive.</p> <p>But, after doing a "Run as..run on server" or a "Full publish" if the server is running, the whole WEB-INF/lib folder disappears from the war! I checked the exploded war in the JBoss deployments folder and everything is there, except for this folder..</p> <p>If I try copying it manually, it works, but I want to have the possibility to debug and that's why I want to use the Eclipse approach.</p> <p>Any ideas of what is going on?</p> <p>Find below the pom.xml that I am using:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt; &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt; &lt;groupId&gt;test.project&lt;/groupId&gt; &lt;artifactId&gt;test&lt;/artifactId&gt; &lt;packaging&gt;war&lt;/packaging&gt; &lt;version&gt;alpha&lt;/version&gt; &lt;name&gt;test&lt;/name&gt; &lt;properties&gt; &lt;seam.version&gt;3.1.0.Final&lt;/seam.version&gt; &lt;drools.version&gt;5.4.0.Final&lt;/drools.version&gt; &lt;jpamodelgen.version&gt;1.1.1.Final&lt;/jpamodelgen.version&gt; &lt;primefaces.version&gt;3.3&lt;/primefaces.version&gt; &lt;arquillian.version&gt;1.0.1.Final&lt;/arquillian.version&gt; &lt;junit.version&gt;4.8.1&lt;/junit.version&gt; &lt;/properties&gt; &lt;dependencyManagement&gt; &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;org.jboss.seam&lt;/groupId&gt; &lt;artifactId&gt;seam-bom&lt;/artifactId&gt; &lt;version&gt;${seam.version}&lt;/version&gt; &lt;scope&gt;import&lt;/scope&gt; &lt;type&gt;pom&lt;/type&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.jboss.arquillian&lt;/groupId&gt; &lt;artifactId&gt;arquillian-bom&lt;/artifactId&gt; &lt;version&gt;${arquillian.version}&lt;/version&gt; &lt;scope&gt;import&lt;/scope&gt; &lt;type&gt;pom&lt;/type&gt; &lt;/dependency&gt; &lt;/dependencies&gt; &lt;/dependencyManagement&gt; &lt;dependencies&gt; &lt;!-- Commons --&gt; &lt;dependency&gt; &lt;groupId&gt;commons-lang&lt;/groupId&gt; &lt;artifactId&gt;commons-lang&lt;/artifactId&gt; &lt;version&gt;2.6&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;commons-dbcp&lt;/groupId&gt; &lt;artifactId&gt;commons-dbcp&lt;/artifactId&gt; &lt;version&gt;1.3&lt;/version&gt; &lt;/dependency&gt; &lt;!-- Java EE 6.0 --&gt; &lt;dependency&gt; &lt;groupId&gt;org.apache.openejb&lt;/groupId&gt; &lt;artifactId&gt;javaee-api&lt;/artifactId&gt; &lt;version&gt;6.0-4&lt;/version&gt; &lt;/dependency&gt; &lt;!-- Seam International --&gt; &lt;dependency&gt; &lt;groupId&gt;org.jboss.seam.international&lt;/groupId&gt; &lt;artifactId&gt;seam-international&lt;/artifactId&gt; &lt;!-- &lt;scope&gt;runtime&lt;/scope&gt;--&gt; &lt;/dependency&gt; &lt;!-- Seam Mail --&gt; &lt;dependency&gt; &lt;groupId&gt;org.jboss.seam.mail&lt;/groupId&gt; &lt;artifactId&gt;seam-mail&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;!-- Seam Security --&gt; &lt;dependency&gt; &lt;groupId&gt;org.drools&lt;/groupId&gt; &lt;artifactId&gt;drools-core&lt;/artifactId&gt; &lt;version&gt;${drools.version}&lt;/version&gt;&lt;!--$NO-MVN-MAN-VER$--&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.drools&lt;/groupId&gt; &lt;artifactId&gt;drools-compiler&lt;/artifactId&gt; &lt;version&gt;${drools.version}&lt;/version&gt;&lt;!--$NO-MVN-MAN-VER$--&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.jboss.seam.security&lt;/groupId&gt; &lt;artifactId&gt;seam-security&lt;/artifactId&gt; &lt;scope&gt;compile&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.jboss.seam.persistence&lt;/groupId&gt; &lt;artifactId&gt;seam-persistence&lt;/artifactId&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.jboss.seam.transaction&lt;/groupId&gt; &lt;artifactId&gt;seam-transaction&lt;/artifactId&gt; &lt;/dependency&gt; &lt;!-- Seam Faces required for messages support --&gt; &lt;dependency&gt; &lt;groupId&gt;org.jboss.seam.faces&lt;/groupId&gt; &lt;artifactId&gt;seam-faces&lt;/artifactId&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.jboss.seam.faces&lt;/groupId&gt; &lt;artifactId&gt;seam-faces-api&lt;/artifactId&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;joda-time&lt;/groupId&gt; &lt;artifactId&gt;joda-time&lt;/artifactId&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.jboss.solder&lt;/groupId&gt; &lt;artifactId&gt;solder-impl&lt;/artifactId&gt; &lt;/dependency&gt; &lt;!-- CDI (JSR-299) --&gt; &lt;dependency&gt; &lt;groupId&gt;javax.enterprise&lt;/groupId&gt; &lt;artifactId&gt;cdi-api&lt;/artifactId&gt; &lt;scope&gt;provided&lt;/scope&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.hibernate.javax.persistence&lt;/groupId&gt; &lt;artifactId&gt;hibernate-jpa-2.0-api&lt;/artifactId&gt; &lt;scope&gt;provided&lt;/scope&gt; &lt;/dependency&gt; &lt;!-- Bean Validation (JSR-303) --&gt; &lt;dependency&gt; &lt;groupId&gt;javax.validation&lt;/groupId&gt; &lt;artifactId&gt;validation-api&lt;/artifactId&gt; &lt;scope&gt;provided&lt;/scope&gt; &lt;/dependency&gt; &lt;!-- Bean Validation Implementation --&gt; &lt;!-- Provides portable constraints such as @NotEmpty, @Email and @Url --&gt; &lt;!-- Hibernate Validator is the only JSR-303 implementation at the moment, so we can assume it's provided --&gt; &lt;dependency&gt; &lt;groupId&gt;org.hibernate&lt;/groupId&gt; &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt; &lt;version&gt;4.0.0.GA&lt;/version&gt; &lt;scope&gt;provided&lt;/scope&gt; &lt;/dependency&gt; &lt;!-- JSF --&gt; &lt;dependency&gt; &lt;groupId&gt;org.jboss.spec.javax.faces&lt;/groupId&gt; &lt;artifactId&gt;jboss-jsf-api_2.0_spec&lt;/artifactId&gt; &lt;scope&gt;provided&lt;/scope&gt; &lt;/dependency&gt; &lt;!-- Pretty faces --&gt; &lt;!--&lt;dependency&gt; &lt;groupId&gt;com.ocpsoft&lt;/groupId&gt; &lt;artifactId&gt;ocpsoft-pretty-time&lt;/artifactId&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;com.ocpsoft&lt;/groupId&gt; &lt;artifactId&gt;prettyfaces-jsf2&lt;/artifactId&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;commons-digester&lt;/groupId&gt; &lt;artifactId&gt;commons-digester&lt;/artifactId&gt; &lt;version&gt;2.1&lt;/version&gt; &lt;/dependency&gt;--&gt; &lt;!-- Prime faces --&gt; &lt;dependency&gt; &lt;groupId&gt;org.primefaces&lt;/groupId&gt; &lt;artifactId&gt;primefaces&lt;/artifactId&gt; &lt;version&gt;3.3&lt;/version&gt; &lt;/dependency&gt; &lt;!-- Dependencies used in testing --&gt; &lt;dependency&gt; &lt;groupId&gt;junit&lt;/groupId&gt; &lt;artifactId&gt;junit&lt;/artifactId&gt; &lt;version&gt;${junit.version}&lt;/version&gt; &lt;scope&gt;test&lt;/scope&gt; &lt;/dependency&gt; &lt;/dependencies&gt; &lt;build&gt; &lt;defaultGoal&gt;package&lt;/defaultGoal&gt; &lt;finalName&gt;vms&lt;/finalName&gt; &lt;pluginManagement&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-eclipse-plugin&lt;/artifactId&gt; &lt;configuration&gt; &lt;classpathContainers&gt; &lt;classpathContainer&gt;org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5&lt;/classpathContainer&gt; &lt;/classpathContainers&gt; &lt;/configuration&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-ejb-plugin&lt;/artifactId&gt; &lt;configuration&gt; &lt;ejbVersion&gt;3.0&lt;/ejbVersion&gt; &lt;/configuration&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/pluginManagement&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt; &lt;version&gt;2.3.2&lt;/version&gt; &lt;configuration&gt; &lt;!-- activate only when you need to generate the metamodel --&gt; &lt;!-- &lt;compilerArgument&gt;-proc:none&lt;/compilerArgument&gt; --&gt; &lt;/configuration&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;artifactId&gt;maven-eclipse-plugin&lt;/artifactId&gt; &lt;version&gt;2.8&lt;/version&gt; &lt;configuration&gt; &lt;additionalBuildcommands&gt; &lt;!-- annoyingly creates a bin directory &lt;buildCommand&gt; &lt;name&gt;org.eclipse.wst.jsdt.core.javascriptValidator&lt;/name&gt; &lt;/buildCommand&gt; --&gt; &lt;buildCommand&gt; &lt;name&gt;org.jboss.tools.common.verification.verifybuilder&lt;/name&gt; &lt;/buildCommand&gt; &lt;/additionalBuildcommands&gt; &lt;additionalConfig&gt; &lt;file&gt; &lt;name&gt;.settings/org.maven.ide.eclipse.prefs&lt;/name&gt; &lt;content&gt;eclipse.preferences.version=1 fullBuildGoals=process-test-resources includeModules=false resolveWorkspaceProjects=true resourceFilterGoals=process-resources resources\:testResources skipCompilerPlugin=true version=1&lt;/content&gt; &lt;/file&gt; &lt;/additionalConfig&gt; &lt;additionalProjectFacets&gt; &lt;jst.jsf&gt;2.0&lt;/jst.jsf&gt; &lt;/additionalProjectFacets&gt; &lt;additionalProjectnatures&gt; &lt;projectnature&gt;org.eclipse.wst.jsdt.core.jsNature&lt;/projectnature&gt; &lt;projectnature&gt;org.jboss.tools.jsf.jsfnature&lt;/projectnature&gt; &lt;/additionalProjectnatures&gt; &lt;wtpdefaultserver&gt;JBossAS&lt;/wtpdefaultserver&gt; &lt;wtpversion&gt;2.0&lt;/wtpversion&gt; &lt;!-- &lt;downloadSources&gt;true&lt;/downloadSources&gt; &lt;downloadJavadocs&gt;true&lt;/downloadJavadocs&gt; --&gt; &lt;/configuration&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt; &lt;version&gt;2.12&lt;/version&gt; &lt;configuration&gt; &lt;skip&gt;true&lt;/skip&gt; &lt;/configuration&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/build&gt; &lt;profiles&gt; &lt;profile&gt; &lt;id&gt;distribution&lt;/id&gt; &lt;activation&gt; &lt;property&gt; &lt;name&gt;release&lt;/name&gt; &lt;/property&gt; &lt;/activation&gt; &lt;build&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/build&gt; &lt;/profile&gt; &lt;profile&gt; &lt;id&gt;jboss-public-repository&lt;/id&gt; &lt;activation&gt; &lt;property&gt; &lt;name&gt;jboss-public-repository&lt;/name&gt; &lt;value&gt;!false&lt;/value&gt; &lt;/property&gt; &lt;/activation&gt; &lt;repositories&gt; &lt;repository&gt; &lt;id&gt;jboss-public-repository-group&lt;/id&gt; &lt;name&gt;JBoss Public Maven Repository Group&lt;/name&gt; &lt;url&gt;http://repository.jboss.org/nexus/content/groups/public&lt;/url&gt; &lt;releases&gt; &lt;enabled&gt;true&lt;/enabled&gt; &lt;updatePolicy&gt;never&lt;/updatePolicy&gt; &lt;/releases&gt; &lt;snapshots&gt; &lt;enabled&gt;false&lt;/enabled&gt; &lt;updatePolicy&gt;never&lt;/updatePolicy&gt; &lt;/snapshots&gt; &lt;/repository&gt; &lt;repository&gt; &lt;id&gt;prime-repo&lt;/id&gt; &lt;name&gt;Prime Repo&lt;/name&gt; &lt;url&gt;http://repository.primefaces.org&lt;/url&gt; &lt;/repository&gt; &lt;/repositories&gt; &lt;pluginRepositories&gt; &lt;pluginRepository&gt; &lt;id&gt;jboss-public-repository-group&lt;/id&gt; &lt;name&gt;JBoss Public Maven Repository Group&lt;/name&gt; &lt;url&gt;http://repository.jboss.org/nexus/content/groups/public&lt;/url&gt; &lt;releases&gt; &lt;enabled&gt;true&lt;/enabled&gt; &lt;updatePolicy&gt;never&lt;/updatePolicy&gt; &lt;/releases&gt; &lt;snapshots&gt; &lt;enabled&gt;false&lt;/enabled&gt; &lt;updatePolicy&gt;never&lt;/updatePolicy&gt; &lt;/snapshots&gt; &lt;/pluginRepository&gt; &lt;/pluginRepositories&gt; &lt;/profile&gt; &lt;profile&gt; &lt;id&gt;jbossas7&lt;/id&gt; &lt;activation&gt; &lt;activeByDefault&gt;true&lt;/activeByDefault&gt; &lt;property&gt; &lt;name&gt;arquillian&lt;/name&gt; &lt;value&gt;jbossas-managed-7&lt;/value&gt; &lt;/property&gt; &lt;/activation&gt; &lt;build&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt; &lt;configuration&gt; &lt;webResources&gt; &lt;resource&gt; &lt;directory&gt;src/main/resources&lt;/directory&gt; &lt;/resource&gt; &lt;/webResources&gt; &lt;/configuration&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/build&gt; &lt;/profile&gt; &lt;!-- Functional test profiles --&gt; &lt;profile&gt; &lt;id&gt;ftest&lt;/id&gt; &lt;activation&gt; &lt;property&gt; &lt;name&gt;arquillian&lt;/name&gt; &lt;/property&gt; &lt;/activation&gt; &lt;build&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-failsafe-plugin&lt;/artifactId&gt; &lt;configuration&gt; &lt;includes&gt; &lt;include&gt;**/ftest/*Test.java&lt;/include&gt; &lt;/includes&gt; &lt;/configuration&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;integration-test&lt;/id&gt; &lt;phase&gt;integration-test&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;integration-test&lt;/goal&gt; &lt;/goals&gt; &lt;/execution&gt; &lt;execution&gt; &lt;id&gt;verify&lt;/id&gt; &lt;phase&gt;verify&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;verify&lt;/goal&gt; &lt;/goals&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/build&gt; &lt;/profile&gt; &lt;/profiles&gt; </code></pre> <p></p> <p><strong>Edit</strong>: I have also tried the JBoss 7 plugin (<a href="http://docs.jboss.org/jbossas/7/plugins/maven/latest/" rel="nofollow">from here</a>) and now I can do a mvn:jboss-as:deploy. But, with no better results..WEB-INF/lib is still empty.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload