Thanks for your response!
I've been using GlassFish for local development to have a full Java EE 5 compliant server matching target deployment environment - IBM WebSphere AS (WAS) 7.0. My application that was using RichFaces is working fine in GlassFish 2.1. I'm evaluating the switch from RichFaces to PrimeFaces.
I can indeed switch locally to Tomcat - no big deal, but before I jump the ship, I want to understand whether the problems can be fixed.
So, my next troubleshooting step was changing class loading order from Parent First (default in GlassFish) to Parent Last. I've created WEB-INF/sun-web.xml that looks like this:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!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_5-0.dtd">
<sun-web-app>
<class-loader delegate="false"/>
</sun-web-app>
That did seem to fix the exception I was getting before. You might want to include this file into prime-showcase, it should not hurt deployments on any other servers. The next problem was index page blowing out on <h:head> (see templates/ui.xhtml). It should be <head> in the default XHTML namespace. After I had fixed that, the index page rendered!
My next problem is that, apparently, some of resources are not rendering. For example, if I go to the showcase page for the Wizard component, the top of the page renders like this:
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>PrimeFaces - ShowCase</title>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<link type="text/css" rel="stylesheet" href="/PrimeShowcase/css/default.css" />
<link type="text/css" rel="stylesheet" href="/PrimeShowcase/syntaxhighlighter/styles/syntaxhighlighter.css" />
<style type="text/css">
.yui-skin-sam .yuimenu .bd {
background-color: #000000;
}
At the same time, online Showcase renders a whole bunch of resources between syntaxhighlighter.css and embedded CSS. As a result, I don't see wizard box with heading and next/previous arrows in my environment.
Any thoughts on what might be causing it? I don't see any exceptions in the server log. A whole bunch of JavaScript errors occur which is understandable given that resources are missing.