[ 
https://issues.apache.org/jira/browse/MTOMCAT-246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13815966#comment-13815966
 ] 

Ondrej Burkert edited comment on MTOMCAT-246 at 11/7/13 1:46 PM:
-----------------------------------------------------------------

Sample simple project.

It gets deployed correctly when the sample-env.properties is placed in the lib 
folder of a standalone Tomcat. When deployed using tomcat7-maven-plugin and :   
                         
<additionalClasspathDirs>src/main/resources</additionalClasspathDirs>

It cannot find the property file, hence deployment fails.

Though I may have misunderstood the usage - I find examples on the web page 
rather basic and lacking as they don't mention usage of webapps element and 
dependencies neither. It would be great to improve that section and put a 
direct link to documentation on the plugin homepage (I found it after quite 
some digging:))


was (Author: ondrej.burkert):
Sample simple project.

It gets deployed correctly when the sample-env.properties is placed in the lib 
folder of a standalone Tomcat. When deployed using tomcat7-maven-plugin and :   
                         
<additionalClasspathDirs>src/main/resources</additionalClasspathDirs>

It cannot find the property file, hence deployment fails.

Though I may have misunderstood the usage - I find examples on the web page 
rather basic and lacking as they don't mention usage of webapps element and 
dependencies neither.

> Allow for adding dirs/files to webapp classpath
> -----------------------------------------------
>
>                 Key: MTOMCAT-246
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-246
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Improvement
>          Components: tomcat7
>            Reporter: Ondrej Burkert
>            Assignee: Olivier Lamy (*$^¨%`£)
>         Attachments: sample.zip
>
>
> We have projects developed using Spring. Every project has a set of 
> configuration files (usually just logback configuration XML and a property 
> file). They are placed on the classpath and loaded from there by Spring app 
> context.
> I don't see any way to put these on the classpath with current (we try 2.1 at 
> the moment) version of the plugin. Adding it using the 
> additionalClasspathDirs does not work as that is apparently Tomcat's not 
> application's classpath. It fails with FileNotFound exception. We place these 
> in the tomcat/lib folder for regular deployments.
> Any workaround or preferably solution for the problem would be highly 
> appreciated. There are couple unanswered questions in this direction on 
> stackoverflow as well. 
> (http://stackoverflow.com/questions/18862237/tomcat7-maven-plugin-couldnt-locate-the-property-file-on-classpath,
>  
> http://stackoverflow.com/questions/17962524/extending-classpath-and-tomcat-plugin)



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to