I'm getting the following error while trying to deploy my app in 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
The spring jars are in the lib directory of my webapplication.
I'm using:
Spring 3.1.3
Glassfish 3.1.1 (started using the Maven embedded pluging)
Any ideas?
I stumbled onto the answer here
Basically you need this in 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>