Hi There, I am using maven build for a weblogic portal project. We want to include the JSP pre-compilation in the build process and here is the plugin that I am using for maven.
I am getting following error:
java.lang.IllegalStateException: No Java compiler available
at
org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:224)
however jasper-compiler is in the repository (5.5.15) and it is included as
dependency as well.
I wonder if you could help with:
A_ is this plugin is good to be used with JSP running under WLP server
B_ Is it the correct plugin to be used for JSP precompile (What version?)
C_ Any idea about missing library (though I do see the compiler class in the
classpath!) ?
Best Regards,
_mehran
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jspc-maven-plugin</artifactId>
<version>1.4.6</version>
<executions>
<execution>
<id>jspc</id>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<source>1.5</source>
<target>1.5</target>
<verbose>true</verbose>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging-api</artifactId>
<version>1.0.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.7.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jsp-api</artifactId>
<version>2.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>tomcat</groupId>
<artifactId>jasper-compiler</artifactId>
<version>5.5.15</version>
</dependency>
<dependency>
<groupId>tomcat</groupId>
<artifactId>jasper-compiler-jdt</artifactId>
<version>5.5.15</version>
</dependency>
</dependencies>
</plugin>
