Update: JDeveloper - Ice Tabs Will Not Change: "Not able to find user agent. Returning default"
[Logo]
Forums for ICEfaces and ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
Update: JDeveloper - Ice Tabs Will Not Change: "Not able to find user agent. Returning default"  XML
Forum Index -> Tools
Author Message
kurzweil4

Joined: 26/03/2007 00:00:00
Messages: 35
Offline


I am getting the following warning when trying to switch tabs on a running page:

Jul 30, 2007 4:31:21 AM com.icesoft.faces.component.style.OutputStyleRenderer browserType
WARNING: Not able to find user agent. Returning default

The tabs will not change.

I am running:

JDeveloper 10.1.3.1.0 with th eembedded OC4J server
ICEfaces-JDeveloper-IDE-v2.0.0
ICEfaces-1.6.0-libs-JDeveloper.zip

I pasted the exact page into Eclipse 3.2 and ran it with JBoss 4.0.3, and the page worked fine. I was able to switch tabs. I tried both servers with two browsers. Both of them worked and did not work in the same places.

Is this a bug or do I need to do something special to get this to work with JDeveloper and OC4J?

Thanks,
Kurzweil4

frank.ye

Joined: 26/10/2004 00:00:00
Messages: 709
Offline


Are you using the same libaries in different IDE combinations?

If you use latest Eclipse Europa , it has a option in server Run time for the standalone Oracle OC4J standalone 10.1.3.1. Is this working for you.

If you look at the release notes, there is some detailed info related to deployment to OC4J server.

\icefaces\docs\ReleaseNotes.html
http://support.icesoft.com/jive/entry.jspa?entryID=752&categoryID=80

[Email]
kurzweil4

Joined: 26/03/2007 00:00:00
Messages: 35
Offline



I am using the same library versions.

I used the web.xml from the documentation you provided and it worked.

Thanks,
Kurzweil4
Cyrill

Joined: 13/04/2007 00:00:00
Messages: 69
Offline


Hi,

I have exactly the same problem but even when i changed my web.xml it doesn't work.
Code:
28.08.2007 15:30:27 com.icesoft.faces.component.style.OutputStyleRenderer browserType
 WARNUNG: Not able to find user agent. Returning default


Is it possible that facelets are producing this WARNING?
Is concurrentDomViews=true allowed in the oc4j application server?

Because this are the two things that are different from your recommended web.xml

It think this is also the root of the problem described in http://www.icefaces.org/JForum/posts/list/5456.page . IceFaces doesn't find the user agent and so it takes a wrong js library for the IE browser.

regards

Cyrill

Code:
<?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
 <web-app id="WebApp_ID">
 	<display-name>Ice-AttributeProfilEditor</display-name>
 	<context-param>
 		<param-name>com.icesoft.faces.debugDOMUpdate</param-name>
 		<param-value>false</param-value>
 	</context-param>
 	<context-param>
 		<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
 		<param-value>server</param-value>
 	</context-param>
 	<context-param>
 		<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
 		<param-value>.jspx</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.standardRequestScope</param-name>
 		<param-value>false</param-value>
 	</context-param>
 	<listener>
 		<listener-class>
 			com.icesoft.faces.util.event.servlet.ContextEventRepeater
 		</listener-class>
 	</listener>
 	<servlet>
 		<servlet-name>Main Servlet</servlet-name>
 		<servlet-class>
 			com.icesoft.faces.webapp.http.servlet.MainServlet
 		</servlet-class>
 		<load-on-startup>1</load-on-startup>
 	</servlet>
 	<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>Main Servlet</servlet-name>
 		<url-pattern>/xmlhttp/*</url-pattern>
 	</servlet-mapping>
 	<servlet-mapping>
 		<servlet-name>Main Servlet</servlet-name>
 		<url-pattern>*.iface</url-pattern>
 	</servlet-mapping>
 	<servlet-mapping>
 		<servlet-name>Main Servlet</servlet-name>
 		<url-pattern>*.jspx</url-pattern>
 	</servlet-mapping>
 	<servlet-mapping>
 		<servlet-name>Main Servlet</servlet-name>
 		<url-pattern>/block/*</url-pattern>
 	</servlet-mapping>
 	<welcome-file-list>
 		<welcome-file>index.jsp</welcome-file>
 	</welcome-file-list>
 </web-app>
 
Cyrill

Joined: 13/04/2007 00:00:00
Messages: 69
Offline


Code:
28.08.2007 15:30:27 com.icesoft.faces.component.style.OutputStyleRenderer browserType
  WARNUNG: Not able to find user agent. Returning default


I think i solved the warning. The problem is when I use oc4j the header names are capitalized ("USER-AGENT").

I added following code in OutputStyleRenderer and the warning disappeared. But my IE problem -> http://www.icefaces.org/JForum/posts/list/5456.page still occurs.

Code:
                useragent = request.getHeader("user-agent");
 		    if(useragent == null)
                    //OC4J
 		       useragent = request.getHeader("USER-AGENT");

kurzweil4

Joined: 26/03/2007 00:00:00
Messages: 35
Offline


Cyrill,

Sounds like your knowledge on this matter is greater than mine :-)

Kurzweil4
mirage

Joined: 29/06/2008 00:00:00
Messages: 3
Offline


According to the javaee specification (JSR-154 spec, i assume) getHeader(String name) and similar should handle the name parameter case-insensitive. ServletEnvironmentRequest handles it case sensitive.

Is it possible to get a fix for that? Or do one need to write a workaround for that?
 
Forum Index -> Tools
Go to:   
Powered by JForum 2.1.7ice © JForum Team