Weblogic 12c ear 部署
Weblogic 12c ear deployment
我在 Tomcat 服务器上有一堆 war 文件 运行。我把这些文件打包成一个ear,我想部署在Weblogic 12c Server上。当我进行部署时,Weblogic 似乎尝试预编译包中包含的所有 jsp。它给了我以下错误:
Failure while precompiling JSPs: weblogic.servlet.jsp.CompilationException:xxx.jsp:279:86: This attribute is not recognized.
<fmt:formatDate pattern="dd/MM/yyyy" value="${xxx}" placeholder="${dateformat}"/></td>
^---------^
我猜 jstl 库有问题。我遵循了本指南 https://docs.oracle.com/cd/E24329_01/web.1211/e21049/configurejsfandjtsl.htm#WBAPP197,发现我使用的 Weblogic 版本应该原生支持 Jstl。
<fmt:formatDate>
标签无效。标签中没有 placeholder
。 placeholder
属性应该在 input
标签中。您的页面应该是这样的:
<fmt:formatDate pattern="dd/MM/yyyy" value="${xxx}" var="formattedDate" />
<input placeholder="${formattedDate}"/>
JSTL
库没有问题,而是您的代码有问题。您可能没有在 Tomcat 下看到这个,因为您没有在那里预编译文件并且没有导航到相关页面。
我在 Tomcat 服务器上有一堆 war 文件 运行。我把这些文件打包成一个ear,我想部署在Weblogic 12c Server上。当我进行部署时,Weblogic 似乎尝试预编译包中包含的所有 jsp。它给了我以下错误:
Failure while precompiling JSPs: weblogic.servlet.jsp.CompilationException:xxx.jsp:279:86: This attribute is not recognized.
<fmt:formatDate pattern="dd/MM/yyyy" value="${xxx}" placeholder="${dateformat}"/></td>
^---------^
我猜 jstl 库有问题。我遵循了本指南 https://docs.oracle.com/cd/E24329_01/web.1211/e21049/configurejsfandjtsl.htm#WBAPP197,发现我使用的 Weblogic 版本应该原生支持 Jstl。
<fmt:formatDate>
标签无效。标签中没有 placeholder
。 placeholder
属性应该在 input
标签中。您的页面应该是这样的:
<fmt:formatDate pattern="dd/MM/yyyy" value="${xxx}" var="formattedDate" />
<input placeholder="${formattedDate}"/>
JSTL
库没有问题,而是您的代码有问题。您可能没有在 Tomcat 下看到这个,因为您没有在那里预编译文件并且没有导航到相关页面。