Sun has recently released the official 1.0 reference implementation for JavaServer 
Faces (replacing the beta version released in December of last year), and I have 
managed, after some pain, to upgrade a simple application that I had developed and was 
running with JBoss 3.2.3 and Tomcat 5. I thought I would share my experience, so the 
next person won't take as long to figure things out as I did.

First, there are a few syntax changes, such as tags changed to use camel case (e.g. 
"output_text" becomes "outputText"). There is a "Major changes/features in this 
release" section in the newly-released JSF 1.0 specification that describes these 
changes, and the error messages you get are reasonably straightforward, so this likely 
won't cause too much trouble.

The most time-consuming problem I encountered was due to the fact that the class 
"com.sun.faces.config.ConfigListener" was renamed to 
"com.sun.faces.config.ConfigureListener" in the official release, and even though I 
didn't reference that class anywhere, I kept getting a classloader error indicating 
that com.sun.faces.config.ConfigListener could not be found. I wondered if something 
was being cached, but even shutting down and restarting my server didn't help.

What I finally discovered is that the old class name was being referenced in a file in 
the work directory, related to my application (called jsf-test):


  | /usr/jboss/server/default/work/jboss-web/localhost/jsf-test/tldCache.ser
  | 

This was probably overkill, but I simply deleted the entire work directory, restarted 
my server, and no more classloader problem.





<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3824418#3824418";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3824418>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to