voyent
Parts of icefaces don't run in Safari, Konquerer without specifying port (async modus)  XML
Forum Index -> General Help
Author Message
qpid

Joined: 09/Nov/2007 00:00:00
Messages: 21
Offline


Hello forum users and icefaces team,

in the Mac Safari and KDE Konqeuer browser we have critical problems, if the url is specified without the port number. The page is shown correctly. But no user actions will received by the server side. For example the RowSelector and tab changing are not working.

This behavior only happens in asynchronous modus. If you specifie the port in the url (port 80) it runs as expected.

http://domainname.com/main.iface (won't run)
http://domainname.com:80/main.iface (runs as expected)

Configuration, used components and versions:
Linux 2.6.24-etchnhalf.1-amd64 x86_64 GNU/Linux
Apache Tomcat 6.0.18
Apache ActiveMQ 5.1.0
IceFaces 1.7.1
AHS (from IceFaces 1.7.1 package)

Code:
 <?xml version="1.0" encoding="UTF-8"?>
 <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 	xmlns="http://java.sun.com/xml/ns/j2ee"
 	xmlns:javaee="http://java.sun.com/xml/ns/javaee"
 	xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
 	xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_3.xsd"
 	id="WebApp_ID">
 	<servlet>
 		<servlet-name>Faces Servlet</servlet-name>
 		<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
 		<load-on-startup>1</load-on-startup>
 	</servlet>
 	<servlet>
 		<servlet-name>Persistent Faces Servlet</servlet-name>
 		<servlet-class>
 			com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet
 		</servlet-class>
 		<load-on-startup>1</load-on-startup>
 	</servlet>
 	<servlet>
 		<servlet-name>Blocking Servlet</servlet-name>
 		<servlet-class>
 			com.icesoft.faces.webapp.xmlhttp.BlockingServlet
 		</servlet-class>
 		<load-on-startup>1</load-on-startup>
 	</servlet>
 	<servlet>
 		<servlet-name>uploadServlet</servlet-name>
 		<servlet-class>
 			com.icesoft.faces.component.inputfile.FileUploadServlet
 		</servlet-class>
 		<load-on-startup>1</load-on-startup>
 	</servlet>
 
 	<servlet>
 		<servlet-name>Tomcat Push Servlet</servlet-name>
 		<servlet-class>
 			com.icesoft.faces.webapp.http.servlet.TomcatPushServlet
 		</servlet-class>
 		<load-on-startup>1</load-on-startup>
 	</servlet>
 
 	<!-- ::::::::::::::::: -->
 	<!-- Extension mapping -->
 	<!-- ::::::::::::::::: -->
 
 	<servlet-mapping>
 		<servlet-name>uploadServlet</servlet-name>
 		<url-pattern>/uploadHtml</url-pattern>
 	</servlet-mapping>
 	<servlet-mapping>
 		<servlet-name>Persistent Faces Servlet</servlet-name>
 		<url-pattern>*.iface</url-pattern>
 	</servlet-mapping>
 	<servlet-mapping>
 		<servlet-name>Persistent Faces Servlet</servlet-name>
 		<url-pattern>/xmlhttp/*</url-pattern>
 	</servlet-mapping>
 	<servlet-mapping>
 		<servlet-name>Blocking Servlet</servlet-name>
 		<url-pattern>/block/*</url-pattern>
 	</servlet-mapping>
 	<welcome-file-list>
 		<welcome-file>index.jspx</welcome-file>
 	</welcome-file-list>
 	<security-constraint>
 		<web-resource-collection>
 			<web-resource-name>Secure area</web-resource-name>
 			<description>Secured Pages</description>
 			<url-pattern>/index.jspx</url-pattern>
 			<url-pattern>*.iface</url-pattern>
 			<http-method>POST</http-method>
 			<http-method>GET</http-method>
 		</web-resource-collection>
 		<auth-constraint>
 			<description>Existing Roles</description>
 			<role-name>user</role-name>
 			<role-name>administrator</role-name>
 		</auth-constraint>
 	</security-constraint>
 	<login-config>
 		<auth-method>FORM</auth-method>
 		<form-login-config>
 			<form-login-page>/loginpage.iface</form-login-page>
 			<form-error-page>/loginError.iface</form-error-page>
 		</form-login-config>
 	</login-config>
 	<security-role>
 		<description>The standard user role</description>
 		<role-name>user</role-name>
 	</security-role>
 	<security-role>
 		<description>The administrator role</description>
 		<role-name>administrator</role-name>
 	</security-role>
 	<context-param>
 		<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
 		<param-value>.jspx</param-value>
 	</context-param>
 	<context-param>
 		<description>
 			State saving method: "client" or
 			"server" (= default) See JSF Specification 2.5.2
 		</description>
 		<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
 		<param-value>server</param-value>
 	</context-param>
 	<context-param>
 		<param-name>com.icesoft.faces.debugDOMUpdate</param-name>
 		<param-value>false</param-value>
 	</context-param>
 	<context-param>
 		<description>
 			Set this flag to true, if you want the JavaServer Faces
 			Reference Implementation to validate the XML in your
 			faces-config.xml resources against the DTD. Default value is
 			false.
 		</description>
 		<param-name>com.sun.faces.validateXml</param-name>
 		<param-value>true</param-value>
 	</context-param>
 	<context-param>
 		<description>
 			Set this flag to true, if you want the JavaServer Faces
 			Reference Implementation to verify that all of the
 			application objects you have configured (components,
 			converters, renderers, and validators) can be successfully
 			created. Default value is false.
 		</description>
 		<param-name>com.sun.faces.verifyObjects</param-name>
 		<param-value>false</param-value>
 	</context-param>
 	<context-param>
 		<param-name>com.icesoft.faces.uploadDirectory</param-name>
 		<param-value>upload</param-value>
 	</context-param>
 	<context-param>
 		<param-name>com.icesoft.faces.concurrentDOMViews</param-name>
 		<param-value>true</param-value>
 	</context-param>
 	<context-param>
 		<param-name>com.icesoft.faces.synchronousUpdate</param-name>
 		<param-value>false</param-value>
 	</context-param>
 
     <context-param>
         <param-name>com.icesoft.net.messaging.properties</param-name>
         <param-value>activemq.properties</param-value>
     </context-param>
 	<context-param>
 		<param-name>
 			com.icesoft.faces.blockingRequestHandler
 		</param-name>
 		<param-value>icefaces-ahs</param-value>
 	</context-param>
 	<context-param>
 		<param-name>
 			com.icesoft.faces.blockingRequestHandlerContext
 		</param-name>
 		<param-value>async-http-server</param-value>
 	</context-param>
 
 	<listener>
 		<listener-class>
 			com.icesoft.faces.util.event.servlet.ContextEventRepeater
 		</listener-class>
 	</listener>
 
 	<session-config>
 		<session-timeout>10</session-timeout>
 	</session-config>
 </web-app>
 


best regards
mircea.toma

Joined: 10/Feb/2005 00:00:00
Messages: 323
Offline


Are you using Apache or some other reverse proxy in front of Tomcat server?
[Email]
qpid

Joined: 09/Nov/2007 00:00:00
Messages: 21
Offline


No, we are using directly tomcat without Apache httpd or other reverse proxys in front of the tomcat.

michelle2

Joined: 14/Nov/2007 00:00:00
Messages: 449
Offline


I have no issues whatsoever using safari.
[Email]
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team