Hi all,
I tried to deploy OpenLaszlo 4.1 in Glassfish and got a web.xml
validation error. I tried to verify the WAR with the Glassfish
verifier tool and got the error message
Error Name : Could not verify successfully.
Error Description : java.io.IOException
at
com.sun.enterprise.tools.verifier.VerificationHandler.initStandalone(VerificationHandler.java:227)
at
com.sun.enterprise.tools.verifier.VerificationHandler.<init>(VerificationHandler.java:109)
at com.sun.enterprise.tools.verifier.Verifier.verify(Verifier.java:140)
at com.sun.enterprise.tools.verifier.Verifier.main(Verifier.java:114)
Caused by: org.xml.sax.SAXParseException: Element type "filter" must
be declared.
at
com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:304)
at
com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:226)
at
com.sun.enterprise.deployment.archivist.Archivist.readStandardDeploymentDescriptor(Archivist.java:480)
at
com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:305)
at
com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:213)
at
com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:763)
at
com.sun.enterprise.tools.verifier.VerificationHandler.createApplicationDescriptor0(VerificationHandler.java:464)
at
com.sun.enterprise.tools.verifier.VerificationHandler.createApplicationDescriptor(VerificationHandler.java:265)
at
com.sun.enterprise.tools.verifier.VerificationHandler.initStandalone(VerificationHandler.java:216)
... 3 more
The LZProject app adds servlet filters to the web.xml file. Servlet
filters are only supported from Web App 2.3 on, but the doctype used
for OL 4.1 is 2.2:
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
If you want to include the LzProject servlet filters in OL you have to
switch to 2.3:
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
I filed a JIRA bug: http://www.openlaszlo.org/jira/browse/LPP-6648
- Raju