I'm starting to sound like a broken record here.

If you try to use PortletUtil.class from MyFaces 1.0.9 with
MyFacesGenericPortlet.class from MyFaces 1.0.8 then you will get this
error.

This is a class loading problem.  Somehow, you have MyFaces 1.0.8 and
1.0.9 in the same classpath.  Find out where MyFaces 1.0.8 is being
loaded from and remove it.

Since this seems to happen a lot with the examples, I am wondering if
there is some problem with the way we are packaging them?

If someone can tell me where the old version of
MyFacesGenericPortlet.class comes from then maybe we can figure out how
to prevent this in the future.

Stan Silvert
JBoss, Inc.
[EMAIL PROTECTED]
callto://stansilvert

> -----Original Message-----
> From: Sean Schofield [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 29, 2005 2:57 PM
> To: MyFaces Discussion; [EMAIL PROTECTED]; Stan Silvert
> Subject: Re: MyFaces 1.0.9 examples and JDeveloper 10.1.3.0.2
> 
> This doesn't sound like a JDeveloper specific problem (at least
> looking at the log file.)  Are you using RC1 or latest from CVS.  I
> haven't built from CVS in over a week and there have been lots of
> changes to the examples while I was away.  Its possible there is a
> problem there.
> 
> Stan, any ideas on the portlet complaint?
> 
> sean
> 
> 
> On Tue, 29 Mar 2005 10:12:06 -0800, Mark Millman
> <[EMAIL PROTECTED]> wrote:
> >
> > I was unable to get the myfaces-examples for 1.0.9 to work with
> JDeveloper
> > 10.1.3.0.2.
> >
> > When I reverted to MyFaces 1.0.8 and it worked fine.
> >
> > In both cases I used the WAR file contained in the myfaces-
> 1.0.N.examples.gz
> > files to create a new project in JDeveloper.
> >
> >
> > The immediate response from attempting to "Run"
myfaces-1.0.9-examples
> is.
> >
> > java.lang.NoSuchFieldError:
> >
org.apache.myfaces.portlet.MyFacesGenericPortlet.PORTLET_REQUEST_FLAG
> > at
> >
>
org.apache.myfaces.portlet.PortletUtil.isPortletRequest(PortletUtil.java
:5
> 0)
> > at
> >
>
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspView
Ha
> ndlerImpl.java:241)
> > at
>
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300
)
> > at javax.faces.webapp.FacesServlet.service(FacesServlet.java:110)
> > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) -
Developer
> > Preview
> >
3].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:61)
> > at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
> > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) -
Developer
> > Preview
> >
3].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
> > at
> >
>
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(Extensi
on
> sFilter.java:115)
> > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) -
Developer
> > Preview
> >
>
3].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.
ja
> va:670)
> > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) -
Developer
> > Preview
> >
>
3].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDi
sp
> atcher.java:378)
> > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) -
Developer
> > Preview
> >
>
3].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java
:8
> 69)
> > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) -
Developer
> > Preview
> 3].server.http.HttpRequestHandler.run(HttpRequestHandler.java:288)
> > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) -
Developer
> > Preview
> 3].server.http.HttpRequestHandler.run(HttpRequestHandler.java:120)
> > at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) -
Developer
> > Preview
> >
>
3].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResource
Po
> oledExecutor.java:294)
> > at java.lang.Thread.run(Thread.java:534)
> >
> > This is followed (in my Embedded OC4J Server - log) with a
> > NullPointerException thrown by the XulServletContextListener every
6-7
> > seconds until I kill the page with the error message.
> >
> > 05/03/28 12:19:21 java.lang.NullPointerException
> > 05/03/28 12:19:21  at
> >
>
nonjsp.lifecycle.XulServletContextListener.contextInitialized(XulServlet
Co
> ntextListener.java:101)
> > 05/03/28 12:19:21  at
> >
>
com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.jav
a:
> 908)
> > 05/03/28 12:19:21  at
> >
>
com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:593
)
> > (and so on)
> >
> > Mark Millman
> > The CMSDK Group
> >
> >
> > Mark Millman
> > The CMSDK Group

Reply via email to