You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Sloan, Noah M" <No...@baylor.edu> on 2006/06/28 20:33:11 UTC

NoClassDefFoundError: org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server startup.

I'm trying to upgrade from MyFaces and Tomahawk 1.1.1 to 1.1.3. I only replaced the myfaces-api, myfaces-impl and tomahawk jars.  I also changed the extensions filter class to org.apache.myfaces.webapp.filter.ExtensionsFilter.

When Tomcat starts up, I get the following error numerous times:
java.lang.NoClassDefFoundError: org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper
	at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:279)
	at org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:265)
	at org.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigurator.java:652)
	at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:144)
	at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:66)
	at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:49)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3727)
...

Am I missing a jar?  Any idea where those classes are supposed to come from?

Re: NoClassDefFoundError: org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server startup.

Posted by Gregg Bolinger <gd...@gmail.com>.
What are:

myfaces-shared-core-2.0.2.jar
myfaces-shared-impl-2.0.2.jar
myfaces-shared-tomahawk-2.0.2.jar


??

Gregg

On 6/28/06, Rick <ri...@arc-mind.com> wrote:
>
>
> Did you see this:
>
> http://wiki.apache.org/myfaces/More_tips_on_Upgrading_to_Tomahawk_1%2e1%2e3
>
> You need the following jar files:
>
> myfaces-api-1.1.3.jar
> myfaces-impl-1.1.3.jar
> myfaces-shared-core-2.0.2.jar
> myfaces-shared-impl-2.0.2.jar
> myfaces-shared-tomahawk-2.0.2.jar
> tomahawk-1.1.3.jar
>
>
> At least this is what I have and it is working...
>
>
>
>
> -----Original Message-----
> From: Sloan, Noah M [mailto:Noah_Sloan@baylor.edu]
> Sent: Wednesday, June 28, 2006 11:33 AM
> To: users@myfaces.apache.org
> Subject: NoClassDefFoundError:
> org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server
> startup.
>
> I'm trying to upgrade from MyFaces and Tomahawk 1.1.1 to 1.1.3. I only
> replaced the myfaces-api, myfaces-impl and tomahawk jars.  I also changed
> the extensions filter class to
> org.apache.myfaces.webapp.filter.ExtensionsFilter.
>
> When Tomcat starts up, I get the following error numerous times:
> java.lang.NoClassDefFoundError:
> org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper
>         at
> org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java
> :2
> 79)
>         at
> org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java
> :2
> 65)
>         at
> org.apache.myfaces.config.FacesConfigurator.configureLifecycle
> (FacesConfigur
> ator.java:652)
>         at
> org.apache.myfaces.config.FacesConfigurator.configure(
> FacesConfigurator.java
> :144)
>         at
> org.apache.myfaces.webapp.StartupServletContextListener.initFaces
> (StartupSer
> vletContextListener.java:66)
>         at
> org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized
> (S
> tartupServletContextListener.java:49)
>         at
> org.apache.catalina.core.StandardContext.listenerStart(
> StandardContext.java:
> 3727)
> ...
>
> Am I missing a jar?  Any idea where those classes are supposed to come
> from?
>
>
>

RE: NoClassDefFoundError: org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server startup.

Posted by Rick <ri...@arc-mind.com>.
Back to the original question....


org.apache.myfaces.renderkit.html.util.HtmlBufferResponseWriterWrapper

is the new name of 

org.apache.myfaces.custom.buffer.HtmlBufferResponseWriterWrapper


HtmlBufferResponseWriterWrapper is the jar file of tomahawk-1.1.3.jar.


Did you change the SourceCodeServlet?


It should now be.

	<servlet>
		<servlet-name>SourceCodeServlet</servlet-name>
	
<servlet-class>org.apache.myfaces.shared_tomahawk.util.servlet.SourceCodeSer
vlet</servlet-class>
	</servlet>


Are you sure you don't have an old jar file or an old tld file somewhere?
I would double check.

--Rick Hightower

-----Original Message-----
From: Rick [mailto:ricks_mailinglists@arc-mind.com] 
Sent: Wednesday, June 28, 2006 12:57 PM
To: 'MyFaces Discussion'
Subject: RE: NoClassDefFoundError:
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server
startup.


Did you see this:
http://wiki.apache.org/myfaces/More_tips_on_Upgrading_to_Tomahawk_1%2e1%2e3

You need the following jar files:

myfaces-api-1.1.3.jar
myfaces-impl-1.1.3.jar
myfaces-shared-core-2.0.2.jar
myfaces-shared-impl-2.0.2.jar
myfaces-shared-tomahawk-2.0.2.jar
tomahawk-1.1.3.jar


At least this is what I have and it is working...




-----Original Message-----
From: Sloan, Noah M [mailto:Noah_Sloan@baylor.edu] 
Sent: Wednesday, June 28, 2006 11:33 AM
To: users@myfaces.apache.org
Subject: NoClassDefFoundError:
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server
startup.

I'm trying to upgrade from MyFaces and Tomahawk 1.1.1 to 1.1.3. I only
replaced the myfaces-api, myfaces-impl and tomahawk jars.  I also changed
the extensions filter class to
org.apache.myfaces.webapp.filter.ExtensionsFilter.

When Tomcat starts up, I get the following error numerous times:
java.lang.NoClassDefFoundError:
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper
	at
org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:2
79)
	at
org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:2
65)
	at
org.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigur
ator.java:652)
	at
org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java
:144)
	at
org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupSer
vletContextListener.java:66)
	at
org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(S
tartupServletContextListener.java:49)
	at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
3727)
...

Am I missing a jar?  Any idea where those classes are supposed to come from?





RE: NoClassDefFoundError: org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server startup.

Posted by Rick <ri...@arc-mind.com>.
Did you see this:
http://wiki.apache.org/myfaces/More_tips_on_Upgrading_to_Tomahawk_1%2e1%2e3

You need the following jar files:

myfaces-api-1.1.3.jar
myfaces-impl-1.1.3.jar
myfaces-shared-core-2.0.2.jar
myfaces-shared-impl-2.0.2.jar
myfaces-shared-tomahawk-2.0.2.jar
tomahawk-1.1.3.jar


At least this is what I have and it is working...




-----Original Message-----
From: Sloan, Noah M [mailto:Noah_Sloan@baylor.edu] 
Sent: Wednesday, June 28, 2006 11:33 AM
To: users@myfaces.apache.org
Subject: NoClassDefFoundError:
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper on server
startup.

I'm trying to upgrade from MyFaces and Tomahawk 1.1.1 to 1.1.3. I only
replaced the myfaces-api, myfaces-impl and tomahawk jars.  I also changed
the extensions filter class to
org.apache.myfaces.webapp.filter.ExtensionsFilter.

When Tomcat starts up, I get the following error numerous times:
java.lang.NoClassDefFoundError:
org/apache/myfaces/custom/buffer/HtmlBufferResponseWriterWrapper
	at
org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:2
79)
	at
org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:2
65)
	at
org.apache.myfaces.config.FacesConfigurator.configureLifecycle(FacesConfigur
ator.java:652)
	at
org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java
:144)
	at
org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupSer
vletContextListener.java:66)
	at
org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(S
tartupServletContextListener.java:49)
	at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
3727)
...

Am I missing a jar?  Any idea where those classes are supposed to come from?