pre-compilation JSP avec WebLogic 10
Bonjour,
je souhaite pouvoir pré-compiler mes jsp avant de mettre le war en déploiement.
je travail avec Maven et j'utilise ce plugin pour pré-compiler que je configure dans mon pom.xml :
pom.xml :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
| <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>weblogic-maven-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>appc</goal>
</goals>
<inherited>false</inherited>
<configuration>
<verbose>true</verbose>
<debug>true</debug>
<projectPackaging>war</projectPackaging>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>weblogic</groupId>
<artifactId>weblogic</artifactId>
<version>10.0mp1</version>
</dependency>
<dependency>
<groupId>jdk</groupId>
<artifactId>tools</artifactId>
<version>1.5.0_11</version>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>weblogic</artifactId>
<version>10.0mp1</version>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>javelin</artifactId>
<version>10.0mp1</version>
</dependency>
<dependency>
<groupId>weblogic</groupId>
<artifactId>wlw-langx</artifactId>
<version>10.0mp1</version>
</dependency>
</dependencies>
</plugin> |
au niveau de mon web.xml j'ai ceci :
Code:
1 2 3 4 5 6 7 8 9 10 11 12
|
<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/tld/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://displaytag.sf.net</taglib-uri>
<taglib-location>/WEB-INF/tld/displaytag.tld</taglib-location>
</taglib>
.....
<jsp-config> |
au moment où j'effectue mon package, j'ai une erreur qui se produit.
voici la stacktrace :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
[jspc] Overriding default descriptor option 'keepgenerated' with value specified on command-line 'true'
[jspc] -webapp specified, searching . for JSPs
[jspc] Compiling /WEB-INF/jsp/#####.jsp
[jspc] Compiling /WEB-INF/jsp/#####.jsp
[jspc] Compiling /WEB-INF/jsp/#####.jsp
[jspc] Compiling /WEB-INF/jsp/#####.jsp
...
There are 1 nested errors:
weblogic.utils.compiler.ToolFailureException: jspc failed with errors :weblogic.servlet.jsp.CompilationException: #####.jsp:4:1: Inconvertible types. Found javax.servlet.jsp.tagext.JspTag, required javax.servlet.jsp.tagext.Tag.
<div class="globalError">
^------------------------
<h2>An error occurred</h2>
---------------------------------^
error.jsp:6:3: Type weblogic.servlet.jsp.DependencyInjectionHelper contains no methods named createInjectedTagHandler.
<bean:message bundle="######" key="${instruction.errorLabel}"/>
^----------^
error.jsp:6:3: Inconvertible types. Found javax.servlet.jsp.tagext.JspTag, required org.apache.struts.taglib.bean.MessageTag.
<bean:message bundle="######" key="${instruction.errorLabel}"/>
^----------^
error.jsp:6:68: No match was found for method _releaseTags(org.apache.struts.taglib.bean.MessageTag) in type jsp_servlet._web_45_inf._jsp._common.__error.
<bean:message bundle="######" key="${instruction.errorLabel}"/>
.... |
Quelqu'un saurait il ce qu'il faut changer pour que cela fonctionne ?
je précise que lorsque les JSPs compilent au moment de leur première exécution sur le server, il n'y a pas d'erreur. Elles sont correctes.
Merci beaucoup pour votre aide. ;)