-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with web.xml that need to be filtered #58
Comments
Hi Do you provide your code or full pom.xml please? |
Here is a minimum project that reproduce the problem. |
Hello Frederic (J'avais pas vu que c'était toi, Lorraine Jug power :) ) I think maven-war-plugin should be run before jspc, and then jspc must take elements in target folder to have filtered elements. So the maven configuration should be like that (in efluid project we do things like that)
I hope this is good for you |
Salut Thomas, j'avais pas vu non plus, le monde est petit the web.xml is now generated but at the source of /target and is not included in the war. |
Not included in the war? You have it at both places no ? |
after running mvn package I've this result So I need to figure out how to "replace" the web.xml in my war with the jspc updated one |
Can you give me entire pom.xml and entire log please? |
poc.zip |
Don't you miss previous configuration of maven war plugin in this new version of pom.xml ?
|
indeed, but I had removed the filter section to see if it was the problem. If the pom include webResources it's the same result (web.xml created at /target and the web.xml in .war is the unmodified one) |
JSPC does not change the war archive, so if you have a problem it's with maven war plugin Look at this pom file, that I have taken from your version last time, it works fine I think
|
I'm in holliday but I'll give a try to your solution asap. Thanks for all your help |
Hi,
I'm trying to use jspc but I can't figure out how to make it work due to an error during web.xml parsing.
My web.xml need to be filtered, it's done in maven-war-plugin. One of the field that need to be parsed is the session-timeout.
When I try to use jspc, I got an error as the web.xml is parsed and my session timeout "${session-config.session-timeout}", so I got a NumberformatException.
I try to execute it during package phase using the web.xml in /target but it didn't work.
If someone can help, it will be great.
Here is my conf of jspc in case:
io.leonard.maven.plugins
jspc-maven-plugin
3.2.0
jspc
compile
package
${basedir}/target/simuweb-web/WEB-INF/web.xml
The text was updated successfully, but these errors were encountered: