尝试在Glasfish 3.1中部署我的应用程序时出现以下错误
org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP
PWC6197: An error occurred at line: 16 in the jsp file: /WEB-INF/jsp/signup/signup.jsp
PWC6199: Generated servlet error:
string:///signup_jsp.java:233: package org.springframework.web.servlet.tags.form does not exist
spring jar位于我的webapplication的lib目录中。
我正在使用: 春季3.1.3 Glassfish 3.1.1(使用Maven嵌入式插件开始)
有什么想法吗?
答案 0 :(得分:0)
我偶然发现了答案here
基本上你需要在glassfish-web.xml中使用它:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
<glassfish-web-app error-url="">
<class-loader delegate="true"/>
<jsp-config>
<property name="keepgenerated" value="true">
<description>Keep a copy of the generated servlet class' java code.</description>
</property>
<property name="compilerSourceVM" value="7"/>
<property name="compilerTargetVM" value="7"/>
</jsp-config>
</glassfish-web-app>