03-07-2007 10:59 PM
08-16-2007 01:03 PM
Actually, this method works has been tested only with Alfresco 2.0 CE. I will try an upgrade on Alfresco 2.1 ASAP.
If you send me the version of glassfish you wanted to used, I can test it.
08-20-2007 10:06 PM
03-09-2008 11:38 AM
Yes that's what I thought too. But note that the source code looks like:140 private class _EntityResolver implements EntityResolver
141 {
142 public InputSource resolveEntity(String publicId, String systemId) throws IOException
143 {
144 if (systemId == null)
145 {
146 throw new UnsupportedOperationException("systemId must not be null");
147 }
148
149 if (systemId.equals(WebXmlParser.WEB_APP_2_2_SYSTEM_ID) ||
150 systemId.equals(WebXmlParser.WEB_APP_2_2_J2EE_SYSTEM_ID))
151 {
152 //Load DTD from servlet.jar
153 return createClassloaderInputSource(publicId, WebXmlParser.WEB_APP_2_2_RESOURCE);
154 }
155 else if (systemId.equals(WebXmlParser.WEB_APP_2_3_SYSTEM_ID))
156 {
157 //Load DTD from servlet.jar
158 return createClassloaderInputSource(publicId, WebXmlParser.WEB_APP_2_3_RESOURCE);
159 }
160 else
161 {
162 //Load additional entities from web context
163 return createContextInputSource(publicId, systemId);
164 }
whith the following constants:54 private static final String WEB_APP_2_2_J2EE_SYSTEM_ID = "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";
55 private static final String WEB_APP_2_2_SYSTEM_ID = "http://java.sun.com/dtd/web-app_2_2.dtd";
56 private static final String WEB_APP_2_2_RESOURCE = "javax/servlet/resources/web-app_2_2.dtd";
57
58 private static final String WEB_APP_2_3_SYSTEM_ID = "http://java.sun.com/dtd/web-app_2_3.dtd";
59 private static final String WEB_APP_2_3_RESOURCE = "javax/servlet/resources/web-app_2_3.dtd";
So I really do not understand…. But it seems that it is a Glassfish issue.
It seems to work by simply deleting the DOCTYPE declaration (!!??!!), so keep going on…
05-07-2008 03:38 AM
10-05-2008 03:29 AM
<?xml version="1.0" encoding="UTF-8"?>
<!–
Copyright 2004-2005 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
–>
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.1 Servlet 2.4//EN" "http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-1.dtd">
<sun-web-app>
<class-loader delegate="false"/>
<property name="useMyFaces" value="true"/>
</sun-web-app>
<web-app version="2.3">
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.3">
….
<!– Listeners –>
<listener>
<listener-class>
org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
….
10-05-2008 03:32 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.