I have a problem doing an inplace tomcat deploy with the tomcat-maven-plugin.
If I use the src/main/webapp/WEB-INF/web.xml location for my web.xml the
jspc plugin adds on the the end of the file on every execution, making
redundant entries. Also, I really don't want to check the modified web.xml
into my scm. However, when I try to declare an inputWebXml like the
following I get an error related to the taglibs I have declared. The
default location works fine with the exception of the redundant file mod and
scm problem noted ...
<plugin>
<groupId>org.codehaus.mojo.jspc</groupId>
<artifactId>jspc-maven-plugin</artifactId>
<version>${jspc.version}</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<source>1.5</source>
<target>1.5</target>
<inputWebXml>${basedir}/src/main/resources/WEB-INF/web.xml</inputWebXml>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.mojo.jspc</groupId>
<artifactId>jspc-compiler-tomcat5</artifactId>
<version>${jspc.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.4.1</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl104-over-slf4j</artifactId>
<version>1.4.1</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webXml>${basedir}/target/jspweb.xml</webXml>
</configuration>
</plugin>
org.apache.jasper.JasperException: File "/ess" not found
at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:114)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:159)
at
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:423)
where web.xml has ...
<taglib>
<taglib-uri>/ess</taglib-uri>
<taglib-location>/WEB-INF/ess.tld</taglib-location>
</taglib>
I agree that "/ess" is probably a bad URI to choose, but it is already
embedded in many jsps.
I'm not sure why trying to use inputWebXml makes this break.
Thoughts?
-Steve Maring
--
View this message in context:
http://www.nabble.com/taglib-uri-problem-using-inputwebxml-with-jspc-maven-plugin-tp24192485p24192485.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]