Hello Mario, thanks, I did find the same. But I restricted it to the *.xml files and to the subfolder META-INF. I do not know if we need more than this. It worked for me, but I did not do much testing now. I added a PATCH to the ticket. If you did open a JIRA ticket, please link the both tickets.
<resource> <directory>../container/spring/src/main/resources/META-INF</directory> <targetPath>WEB-INF/conf/META-INF</targetPath> <includes> <include>**/*.xml</include> </includes> </resource> Thanks for the hint, Bernd Waibel -----Ursprüngliche Nachricht----- Von: Mario (JIRA) [mailto:server-dev@james.apache.org] Gesendet: Mittwoch, 29. Oktober 2014 14:53 An: server-dev@james.apache.org Betreff: [jira] [Commented] (JAMES-1562) [PATCH] Deploying in Tomcat, missing spring-server.xml [ https://issues.apache.org/jira/browse/JAMES-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14188355#comment-14188355 ] Mario commented on JAMES-1562: ------------------------------- Hi i head the same problem on the trunk fixd by adding this to the pom File => maven-war-plugin <resource> <directory>../container/spring/src/main/resources</directory> <!-- override the destination directory for this resource --> <targetPath>WEB-INF/conf/</targetPath> </resource> > [PATCH] Deploying in Tomcat, missing spring-server.xml > ------------------------------------------------------ > > Key: JAMES-1562 > URL: https://issues.apache.org/jira/browse/JAMES-1562 > Project: James Server > Issue Type: Improvement > Components: Build System > Affects Versions: Trunk, 3.0.0-beta5 > Environment: Apache Maven 3.2.1 > (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T18:37:52+01:00) > Maven home: C:\eclipse_luna\apache_james_3\james-server\EMBEDDED > Java version: 1.6.0_45, vendor: Sun Microsystems Inc. > Java home: C:\Program Files\Java\jdk1.6.0_45\jre Default locale: > de_DE, platform encoding: Cp1252 OS name: "windows 8", version: "6.2", > arch: "amd64", family: "windows" > Reporter: Bernd Waibel > Priority: Blocker > Labels: maven, patch > Fix For: Trunk, 3.0.0-beta5 > > Original Estimate: 10m > Remaining Estimate: 10m > > When deploying the WAR file inside tomcat7 (windows), i get an error that the > "spring-server.xml" file could not be read, cause it is missing. > I suppose that it just is not deployed by the build process. > I suppose we need to copy all xml files from: > /james-server/container/spring/target/classes/META-INF/ > to: > /james-server/app/target/james-server-app-3.0.0-beta5-SNAPSHOT/WEB-INF > /conf/META-INF/ > Is that right? > If i change the pom.xml to do that, the war will get deployed, and tomcat > starts the james app. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org