Weblogic jsp page compilation error, Weblogic jsp compilation exception

Weblogic jsp page compilation error, Weblogic jsp compilation exception

 

========================

Sweet Potato YaoJanuary 29, 2018

http://fanshuyao.iteye.com/

 

1. Problem description:

After deploying the project to Weblogic and starting, the jsp page compiles incorrectly, and the prompt is as follows:

weblogic.servlet.jsp.CompilationException:Failed to complile :JSP/xxx.jsp: Type mismatch: cannot convert from tag to jspTag


at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java:162)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:256)
at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:216)

 

Second, the solution:

This problem occurs, mainly because of the weblogic.jar conflict:

A big reason is that weblogic.jar is duplicated, that is, there is this Jar package in the project, and then the deployment environment also has this Jar package, causing conflicts.

The solution is to deploy the past code Lib directory does not need to have weblogic.jar, it is only used at compile time.

 

One of my methods is to add weblogic.jar to the compilation configuration of jre, so that when deploying or exporting the war package, weblogic.jar will not be put in together, which solves the conflict problem.

 

========================

Sweet Potato YaoJanuary 29, 2018

http://fanshuyao.iteye.com/

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326302170&siteId=291194637