I’m not sure I have a better idea than what I said previously.  If you compile everything with the latest code then it will work.  If you mix in an old version of MyFacesGenericPortlet.class then it will not work.

 

This has nothing to do with the MyFaces samples unless the samples were compiled with an old version of MyFaces.

 

Stan Silvert

JBoss, Inc.

[EMAIL PROTECTED]

callto://stansilvert


From: Jonas Jacobi [mailto:[EMAIL PROTECTED]
Sent: Friday, March 25, 2005 8:40 PM
To: MyFaces Discussion
Subject: Re: ADF Faces EA14 with MyFaces 1.0.9

 

Hi Mark,

I'm glad to see that it is not the ADF Faces component bundle that is causing this :) I have not had a chance to find the cause yet, maybe Stan have a better idea of what it is now when it can be reproduced in the MyFaces samples. I'll continue on our side to make sure that there are no issues with JDeveloper or ADF Faces.

Thanks,
Jonas



Mark Millman wrote:

I downloaded the myfaces-examples and am trying to run it in Oracle JDeveloper 10.1.3.0.2.  I installed it in its own workspace and project but when I attempt to run it I get the following error message.

 

500 Internal Server Error

java.lang.NoSuchFieldError:  org.apache.myfaces.portlet.MyFacesGenericPortlet.PORTLET_REQUEST_FLAG
       at org.apache.myfaces.portlet.PortletUtil.isPortletRequest(PortletUtil.java:50)

 

I have been working with ADF-Faces EA13 for a couple of months but at this point I'm just trying to get the MyFaces demo to run in a pure MyFaces project.  The MyFaces download was not an upgrade.  It appears that I am getting a similar error using the existing examples download kit with JDeveloper.

 

The MANIFEST.MF file reads:  Implementation-Version: 1.0.9 (2005-03-16 11:22)

Mark Millman
[EMAIL PROTECTED]

 

 


From: Stan Silvert [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 25, 2005 1:20 PM
To: MyFaces Development
Cc: MyFaces Discussion
Subject: RE: ADF Faces EA14 with MyFaces 1.0.9

I can’t tell how it is happening, but the old version of MyFacesGenericPortlet is definitely getting loaded along with the new version of PortletUtil.  You might try passing the –verbose flag to your VM to see where each class is loaded from.

 

Stan Silvert

JBoss, Inc.

[EMAIL PROTECTED]

callto://stansilvert


From: Jonas Jacobi [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 25, 2005 4:06 PM
To: MyFaces Development
Cc: MyFaces Discussion
Subject: Re: ADF Faces EA14 with MyFaces 1.0.9

 

Hi Stan,

Thanks for your rapid reply. I have checked my application and I'm pretty sure that the only thing I did was adding the 1.0.9 RC1 libraries, and when that did not work reversed back to 1.0.8 to ensure it wasn't my application breaking. To be sure I'm going to check again.

Thanks,
Jonas

Stan Silvert wrote:

Jonas,
 
You are mixing classes from two different versions of MyFaces.  
 
PORTLET_REQUEST_FLAG was added a few weeks after portlet support was
initially added to MyFaces.  
 
You are using the newer version of PortletUtil.class with an old version
of MyFacesGenericPortlet.class.
 
Stan Silvert
JBoss, Inc.
[EMAIL PROTECTED]
callto://stansilvert
 
  

-----Original Message-----
From: Jonas Jacobi [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 24, 2005 6:19 PM
To: MyFaces Development; MyFaces Discussion
Subject: ADF Faces EA14 with MyFaces 1.0.9
 
Hi All,
 
I'm trying to use the new release of the ADF Faces component libraries
with MyFaces1.0.9. I'm getting a "NoSuchFieldErrors" when I try to run
the ADF Faces EA14 demo bundle with the MyFaces 1.0.9 release. When I
try to use the 1.0.8 relelase it works just fine. There seem to be a
missmatch of MyFaces libraries. Any clue to what may cause this?
 
Stack trace:
05/03/24 14:18:32 java.lang.NoSuchFieldError:
org.apache.myfaces.portlet.MyFacesGenericPortlet.PORTLET_REQUEST_FLAG
 
05/03/24 14:18:32     at
 
    
org.apache.myfaces.portlet.PortletUtil.isPortletRequest(PortletUtil.java
:5
  
0)
 
 
05/03/24 14:18:32     at
 
    
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspView
Ha
  
ndlerImpl.java:241)
 
 
05/03/24 14:18:32     at
 
    
oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(Vie
wH
  
andlerImpl.java:134)
 
 
Thanks,
Jonas
    

Reply via email to