maven-war-plugin not filtering on local -


i've been trying use maven-war-plugin filter web.xml profile defined properties, , made work on deploying not on local server (apache tomcat 7.0.65).

i have on web.xml

<env-entry>     <env-entry-name>variablename</env-entry-name>     <env-entry-value>${property.variablename}</env-entry-value>     <env-entry-type>java.lang.string</env-entry-type> </env-entry> 

this on pom.xml

<property.variablename>this variable</property.variablename> 

and on code:

initialcontext init = new initialcontext(); string variable = (string)init.lookup("java:comp/env/variablename"); 

the fact that... on generated web.xml (target/...web.xml), variable filtered new value, deploying on local when try print 'variable' value logs ${property.variablename}

any idea how fix this?

thanks in advance , regards,

i made work. seemed related deployment assembly not recognizing folders or that.

the following post helped me find it: maven: how fill variable in web.xml file


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -