I'm not sure about the solution to your problem, but you may
want to try
using the Jetty jspc plugin, rather than the Codehaus
one...
http://www.
mortbay.org/jspc-maven-plugin/
mljv planwerk6.de wrote:
> hi,
>
> i have a difficult problem with precompiling jsp with
jspc-maven-plugin
> (v1.4.6)
>
> i get this error:
> [INFO] [jspc:compile {execution: jspc}]
> java.lang.NumberFormatException: For input string:
"$"
>
java.lang.NumberFormatException.forInputString(NumberFormatE
xception.java:48)
> at
java.lang.Integer.parseInt(Integer.java:447)
> at java.lang.Integer.valueOf(Integer.java:553)
> [...]
>
>
> this is my jspc pom snippet
>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
>
<artifactId>jspc-maven-plugin</artifactId>
> <configuration>
> <source>1.5</source>
> <target>1.5</target>
> <javaEncoding>UTF-8</javaEncoding>
> </configuration>
> <executions>
> <execution>
> <id>jspc</id>
> <goals>
> <goal>compile</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> [...]
> <dependency>
> <groupId>javax.servlet</groupId>
> <artifactId>servlet-api</artifactId>
> <version>2.5</version>
> </dependency>
> <dependency>
> <groupId>javax.servlet</groupId>
> <artifactId>jstl</artifactId>
> <version>1.1.2</version>
> </dependency>
> <dependency>
> <groupId>taglibs</groupId>
> <artifactId>standard</artifactId>
> <version>1.1.2</version>
> </dependency>
>
> this is my jsp file
>
> <?xml version="1.0"
encoding="UTF-8" ?>
> <jsp:root xmlns="http://www.w3.org/
1999/xhtml"
> xmlns:jsp="http://java.sun.co
m/JSP/Page"
> xmlns:c="http://java.s
un.com/jsp/jstl/core" version="2.0">
>
> <jsp:directive.page
contentType="text/html;charset=utf-8" />
>
> <c:forEach var="i" begin="1"
end="$">
> <c:out value="$" />
> </c:forEach>
>
> </jsp:root>
>
> To track down the error i created a second project with
this pom.xml
> (complete) and just this jsp file in src/main/webapp
and a minimal web.xml
> and everything works even without
>
> <?xml version="1.0"
encoding="UTF-8"?>
> <project>
> <modelVersion>4.0.0</modelVersion>
> <groupId>jspc</groupId>
> <artifactId>jspc</artifactId>
> <packaging>war</packaging>
> <version>0.0.1</version>
> <description></description>
> <build>
> <plugins>
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
>
<artifactId>jspc-maven-plugin</artifactId>
> <executions>
> <execution>
> <id>jspc</id>
> <goals>
> <goal>compile</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
> </project>
>
> if i add dependencies to this pom it doesnt work
anymore:
>
> <dependencies>
> <dependency>
> <groupId>javax.servlet</groupId>
> <artifactId>servlet-api</artifactId>
> <version>2.5</version>
> </dependency>
> <dependency>
> <groupId>javax.servlet</groupId>
> <artifactId>jstl</artifactId>
> <version>1.1.2</version>
> </dependency>
> <dependency>
> <groupId>taglibs</groupId>
> <artifactId>standard</artifactId>
> <version>1.1.2</version>
> </dependency>
> </dependencies>
>
> i guess my understanding of jspc is entirly wrong. Can
someone help me
> explaining what went wrong and how to fix it?
>
> kind regards,
> janning
>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: users-unsubscribe maven.apache.org
> For additional commands, e-mail: users-help maven.apache.org
>
>
------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribe maven.apache.org
For additional commands, e-mail: users-help maven.apache.org
|