Hello,

I have gotten this exception when I have multiple tomahawk jars, or jsf jars
(RI or myfaces) in the classpath.

I originally got this issue when using jboss and a war file that packaged
the MyFaces jars.  The classloader is basically finding two instances of the
class, and not able to determine which to use.  This may also be a check in
JSF itself - I'm not sure.

I would check if web logic packages a JSF implementation,  If so the only
way I found to get around it was to update the rev in JBoss to the one I
wanted and not include my own in my war.  If this is not an option I think
you'll have to remove the jsf jars from web logic.

Hope this helps,
Jay

On 1/25/07, Mike Kienenberger <[EMAIL PROTECTED]> wrote:

Don't know for sure, but you can start by adding the web.xml
org.apache.myfaces.CHECK_EXTENSIONS_FILTER context-param to get rid of
the warning.

Typically if you have a duplicate class issue, it's because you have
two copies of the jar file, possibly with different versions, in your
path somewhere.   I think the class in question is part of
myfaces-impl.jar.   Make sure you don't have any old version jars like
myfaces-all or myfaces-shared in your path as well.

On 1/25/07, Leyzerzon, Simeon <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi,
> We are trying to trace the root cause of the following run-time
exception
> which seems to be happening every time the server gets restarted and a
link
> in the application gets clicked.  We use Weblogic 8.1 sp2 with the
following
> myFaces jars:
>
>         myfaces-api-1.1.4.jar
>         myfaces-impl-1.1.4.jar
>         tomahawk.jar-1.1.3.jar
> Has anyone experiensed this error? Any suggestions on how to prevent it
from
> happening?
>
> 10:44:58,068 INFO MyfacesConfig:133 - No context init parameter
> 'org.apache.myf
>  aces.CHECK_EXTENSIONS_FILTER' found, using default value true
>  <Jan 25, 2007 10:44:58 AM EST> <Error> <HTTP> <BEA-101017>
> <[ServletContext(id=3
>  1984775,name=GISWeb,context-path=/GISWeb)] Root cause of
> ServletException.
>  javax.faces.FacesException: duplicate class definition:
> org/apache/myfaces/tagli
>  b/html/HtmlSelectOneMenuTag
>  at
> org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatc
>  h(ServletExternalContextImpl.java:422)
>  at
> org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspV
>  iewHandlerImpl.java:234)
>  at
> org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapp
>  er.java:101)
>  at
> org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandle
>  r.java:222)
>  at
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:
>  384)
>  at
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
>  at
> org.apache.myfaces.webapp.MyFacesServlet.service(MyFacesServlet.java:
>  74)
>  at
> weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
>  (ServletStubImpl.java:971)
>  at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
>  pl.java:402)
>  at
> weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
>  at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
>  va:27)
>  at
> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(Extensions
>  Filter.java:144)
>  at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
>  va:27)
>  at
> org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseX
>  MLFilter.java:75)
>  at
> org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.
>  java:213)
>  at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja
>  va:27)
>  at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
>  n.run(WebAppServletContext.java:6356)
>  at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
>  dSubject.java:317)
>  at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
>  118)
>  at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
>  rvletContext.java:3635)
>  at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
>  pl.java:2585)
>  at
> weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
>  at
> weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
>
> Thank you in advance for help.
>
> Simeon Leyzerzon
>
>
==============================================================================
> Please access the attached hyperlink for an important electronic
> communications disclaimer:
>
> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
>
==============================================================================
>
>
>
>

Reply via email to