This content has been marked as final.
Show 2 replies
-
1. Re: JSP pre compilation vs. JBoss 5
jfclere Sep 16, 2009 2:22 AM (in response to pkx)The annotations are processed a different way in JBoss Web you can't use the tomcat6 plugin.
I don't think that there is a plugin for JBoss Web, you should use JspC and ant.
See http://labs.jboss.com/file-access/default/members/jbossweb/freezone/docs/latest/jasper-howto.html for more details. -
2. Re: JSP pre compilation vs. JBoss 5
pkx Sep 17, 2009 3:49 AM (in response to pkx)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>