[jboss-user] [Tomcat Integration] - Re: JSP pre compilation vs. JBoss 5
pkx
do-not-reply at jboss.com
Thu Sep 17 03:49:38 EDT 2009
Thanks for your reply.
I could solve the problem when I use the Jsp compiler embedded in the jbossweb.jar instead of using the jasper.jar used by the jsp-compiler-tomcat.jar. Below you can find a snippet of pom.xml, to compile the JSPs successfully with the jspc-maven-plugin:
| <plugin>
| <groupId>org.codehaus.mojo.jspc</groupId>
| <artifactId>jspc-maven-plugin</artifactId>
| <version>2.0-alpha-3</version>
| <executions>
| <execution>
| <id>jsp-compile</id>
| <goals> <goal>compile</goal></goals>
| </execution>
| </executions>
| <configuration>
| <!-- jspc configuration -->
|
| </configuration>
| <dependencies>
| <dependency>
| <groupId>org.codehaus.mojo.jspc</groupId>
| <artifactId>jspc-compiler-tomcat6</artifactId>
| <version>2.0-alpha-3</version>
| <scope>runtime</scope>
| <!-- exclude tomcat6 jsp compiler-->
| <exclusions>
| <exclusion>
| <groupId>org.apache.tomcat</groupId>
| <artifactId>jasper</artifactId>
| </exclusion>
| <exclusion>
| <groupId>org.apache.tomcat</groupId>
| <artifactId>jasper-jdt</artifactId>
| </exclusion>
| </exclusions>
| </dependency>
| <!-- Add jboss jsp compiler dependencies-->
| <dependency>
| <groupId>jboss.web</groupId>
| <artifactId>jbossweb</artifactId>
| <version>2.1.4.GA</version>
| <scope>provided</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.logging</groupId>
| <artifactId>jboss-logging-spi</artifactId>
| <version>2.1.0.GA</version>
| <scope>provided</scope>
| </dependency>
| <dependency>
| <groupId>javax.servlet</groupId>
| <artifactId>servlet-api</artifactId>
| <version>2.5</version>
| <scope>provided</scope>
| </dependency>
| <dependency>
| <groupId>javax.servlet.jsp</groupId>
| <artifactId>jsp-api</artifactId>
| <version>2.1</version>
| <scope>provided</scope>
| </dependency>
| </dependencies>
| </plugin>
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4255663#4255663
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4255663
More information about the jboss-user
mailing list