You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-user@incubator.apache.org by Chris Herborth <ch...@pobox.com> on 2006/08/07 14:44:25 UTC

Trinidad capabilities document (was Re: Unsupported component-family/renderer-type)

Adam Winer wrote:
> Nor do I;  and on this list, I'm afraid we can't give you much
> support for Oracle's ADF Faces.  This list exists for users
> of the open sourced Trinidad code.

I've converted my application to use Trinidad (using the M1 Incubator 
snapshot), and removed all of the Ajax4jsf stuff in case its filters are 
somehow incompatible with Trinidad.

Now I'm getting an exception dump when I load the page; is there a newer 
Trinidad archive I should be using?

7-Aug-2006 10:40:40 AM 
org.apache.myfaces.adfinternal.agent.CapabilitiesProvider getCapabilities
SEVERE: could not get capabilities from capabilities document
java.lang.IllegalArgumentException: Expected url [jar:file:/C:/Documents 
and 
Settings/chrish/Desktop/geronimo-1.1/repository/default/devsignup/1154961598406/devsignup-1154961598406.war/WEB-INF/lib/adf-faces-impl-incubator-m1-SNAPSHOT.jar!/META-INF/agent/capabilities.xml], 
but was [jar:file:/C:/Documents and 
Settings/chrish/Desktop/geronimo-1.1/repository/default/devsignup/1154961598406/devsignup-1154961598406.war/WEB-INF/lib/adf-faces-impl-incubator-m1-SNAPSHOT.jar!/META-INF/agent/htmlBasic.xml]
         at 
org.apache.geronimo.kernel.classloader.JarFileUrlStreamHandler.openConnection(JarFileUrlStreamHandler.java:63)

Thanks!Tr

-- 
Chris Herborth (chrish@pobox.com)           http://www.pobox.com/~chrish/
Never send a monster to do the work of an evil scientist.


Re: Trinidad capabilities document (was Re: Unsupported component-family/renderer-type)

Posted by Matthias Wessendorf <ma...@apache.org>.
I run the examples with (standalone) jetty
must be geronimo

On 8/7/06, Adam Winer <aw...@gmail.com> wrote:
> Chris,
>
> Looking at the source code for JarFileUrlStreamHandler over
> in the geronimo codebase, it looks as though they've got a pretty
> bad bug:  their handler is not reentrant (you can't parse one file out
> of a JAR while in the middle of parsing another).  This is 100% legit
> code on our part (and it'd be a major pain to overhaul our code
> not to do it).  I think you'll need to file a bug against Jetty or Geronimo.
>
> -- Adam
>
>
> On 8/7/06, Chris Herborth <ch...@pobox.com> wrote:
> >
> > Adam Winer wrote:
> > > Can you give us a longer stack trace?
> >
> > Sure thing (is there any way to tell how much is "enough", or should I
> > just post the whole thing when I have a problem?):
> >
> > 7-Aug-2006 10:40:40 AM
> > org.apache.myfaces.adfinternal.agent.CapabilitiesProvider getCapabilities
> > SEVERE: could not get capabilities from capabilities document
> > java.lang.IllegalArgumentException: Expected url [jar:file:/C:/Documents
> > and
> > Settings/chrish/Desktop/geronimo-1.1
> > /repository/default/devsignup/1154961598406/devsignup-1154961598406.war
> > /WEB-INF/lib/adf-
> > faces-impl-incubator-m1-SNAPSHOT.jar!/META-INF/agent/capabilities.xml],
> > but was [jar:file:/C:/Documents and
> > Settings/chrish/Desktop/geronimo-1.1
> > /repository/default/devsignup/1154961598406/devsignup-1154961598406.war
> > /WEB-INF/lib/adf-
> > faces-impl-incubator-m1-SNAPSHOT.jar!/META-INF/agent/htmlBasic.xml]
> >          at
> >
> > org.apache.geronimo.kernel.classloader.JarFileUrlStreamHandler.openConnection
> > (JarFileUrlStreamHandler.java:63)
> >          at java.net.URL.openConnection(Unknown Source)
> >          at
> >
> > org.apache.myfaces.adfinternal.agent.parse.CapabilityDataDocumentParser.parse
> > (CapabilityDataDocumentParser.java:60)
> >          at
> >
> > org.apache.myfaces.adfinternal.agent.parse.CapabilitiesDocument._getCapabilities
> > (CapabilitiesDocument.java:315)
> >          at
> >
> > org.apache.myfaces.adfinternal.agent.parse.CapabilitiesDocument._getCapabilities
> > (CapabilitiesDocument.java:226)
> >          at
> >
> > org.apache.myfaces.adfinternal.agent.parse.CapabilitiesDocument._getCapabilities
> > (CapabilitiesDocument.java:293)
> >          at
> >
> > org.apache.myfaces.adfinternal.agent.parse.CapabilitiesDocument._getCapabilities
> > (CapabilitiesDocument.java:212)
> >          at
> >
> > org.apache.myfaces.adfinternal.agent.parse.CapabilitiesDocument._getDefaultAgentCapabilities
> > (CapabilitiesDocument.java:117)
> >          at
> > org.apache.myfaces.adfinternal.agent.parse.CapabilitiesDocument.<init>(
> > CapabilitiesDocument.java:38)
> >          at
> >
> > org.apache.myfaces.adfinternal.agent.parse.CapabilitiesDocumentParser.endElement
> > (CapabilitiesDocumentParser.java:184)
> >          at
> > org.apache.myfaces.adfinternal.share.xml.TreeBuilder$Handler.endElement(
> > TreeBuilder.java:463)
> >          at
> > org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
> >          at
> > org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
> > Source)
> >          at
> >
> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
> > (Unknown
> > Source)
> >          at
> > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> > Source)
> >          at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> > Source)
> >          at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> > Source)
> >          at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> >          at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> > Source)
> >          at
> > org.apache.myfaces.adfinternal.share.xml.TreeBuilder.parse(
> > TreeBuilder.java:166)
> >          at
> >
> > org.apache.myfaces.adfinternal.agent.parse.CapabilitiesDocumentParser.createInstance
> > (CapabilitiesDocumentParser.java:67)
> >          at
> >
> > org.apache.myfaces.adfinternal.agent.CapabilitiesProvider._getCapabilityDocument
> > (CapabilitiesProvider.java:128)
> >          at
> > org.apache.myfaces.adfinternal.agent.CapabilitiesProvider._getCapabilities
> > (CapabilitiesProvider.java:110)
> >          at
> > org.apache.myfaces.adfinternal.agent.CapabilitiesProvider.getCapabilities(
> > CapabilitiesProvider.java:91)
> >          at
> > org.apache.myfaces.adfinternal.agent.AdfFacesAgentImpl._getCapabilityMap(
> > AdfFacesAgentImpl.java:263)
> >          at
> > org.apache.myfaces.adfinternal.agent.AdfFacesAgentImpl._initialize(
> > AdfFacesAgentImpl.java:233)
> >          at
> > org.apache.myfaces.adfinternal.agent.AdfFacesAgentImpl.<init>(
> > AdfFacesAgentImpl.java:40)
> >          at
> > org.apache.myfaces.adfinternal.context.AdfFacesContextImpl.getAgent(
> > AdfFacesContextImpl.java:533)
> >          at
> >
> > org.apache.myfaces.adfinternal.renderkit.core.CoreRenderKit.chooseRenderKit
> > (CoreRenderKit.java:144)
> >          at
> > org.apache.myfaces.adfinternal.renderkit.CoreRenderKitFactory.getRenderKit
> > (CoreRenderKitFactory.java:50)
> >          at
> > org.apache.myfaces.context.servlet.ServletFacesContextImpl.getRenderKit(
> > ServletFacesContextImpl.java:184)
> >          at
> >
> > org.apache.myfaces.adfinternal.context.FacesContextFactoryImpl$CacheRenderKit.getRenderKit
> > (FacesContextFactoryImpl.java:103)
> >          at
> >
> > org.apache.myfaces.adfinternal.application.ViewHandlerImpl._getExtendedRenderKitService
> > (ViewHandlerImpl.java:330)
> >          at
> > org.apache.myfaces.adfinternal.application.ViewHandlerImpl.renderView(
> > ViewHandlerImpl.java:154)
> >          at
> > org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
> >          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
> >          at
> > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
> >          at
> > org.apache.geronimo.jetty.JettyServletHolder.handle(
> > JettyServletHolder.java:97)
> >          at
> > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> > WebApplicationHandler.java:830)
> >          at
> > org.apache.myfaces.adfinternal.webapp.AdfFacesFilterImpl._invokeDoFilter(
> > AdfFacesFilterImpl.java:320)
> >          at
> > org.apache.myfaces.adfinternal.webapp.AdfFacesFilterImpl._doFilterImpl(
> > AdfFacesFilterImpl.java:289)
> >          at
> > org.apache.myfaces.adfinternal.webapp.AdfFacesFilterImpl.doFilter(
> > AdfFacesFilterImpl.java:213)
> >          at
> > org.apache.myfaces.adf.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java
> > :90)
> >          at
> > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> > WebApplicationHandler.java:821)
> >          at
> > org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(
> > ExtensionsFilter.java:144)
> >          at
> > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> > WebApplicationHandler.java:821)
> >          at
> > org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:170)
> >          at
> > org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> > WebApplicationHandler.java:821)
> >          at
> > org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(
> > WebApplicationHandler.java:471)
> >          at
> > org.apache.geronimo.jetty.JettyWebApplicationHandler.dispatch(
> > JettyWebApplicationHandler.java:58)
> >          at
> > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
> >          at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
> >          at
> > org.mortbay.jetty.servlet.WebApplicationContext.handle(
> > WebApplicationContext.java:633)
> >          at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
> >          at org.mortbay.http.HttpServer.service(HttpServer.java:909)
> >          at org.mortbay.http.HttpConnection.service(HttpConnection.java
> > :816)
> >          at
> > org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
> >          at org.mortbay.http.HttpConnection.handle(HttpConnection.java
> > :833)
> >          at
> > org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
> >          at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java
> > :357)
> >          at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java
> > :534)
> >
> > --
> > Chris Herborth (chrish@pobox.com)           http://www.pobox.com/~chrish/
> > Never send a monster to do the work of an evil scientist.
> >
> >
>
>


-- 
Matthias Wessendorf

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Re: Trinidad capabilities document (was Re: Unsupported component-family/renderer-type)

Posted by Chris Herborth <ch...@pobox.com>.
Matthias Wessendorf wrote:
> Adam,
> 
> they provided a patch and fixed it.
> You were right :)

Thanks again for the help, guys, now I just need to get them to provide 
a more up-to-date build. ;-)

-- 
Chris Herborth (chrish@pobox.com)           http://www.pobox.com/~chrish/
Never send a monster to do the work of an evil scientist.


Re: Trinidad capabilities document (was Re: Unsupported component-family/renderer-type)

Posted by Matthias Wessendorf <ma...@apache.org>.
Adam,

they provided a patch and fixed it.
You were right :)

-Matthias

On 8/7/06, Adam Winer <aw...@gmail.com> wrote:
> Thanks - I hope I'm right. :)    Let me know what
> the Geronimo folks say.
>
> -- Adam
>
>
> On 8/7/06, Chris Herborth <ch...@pobox.com> wrote:
> >
> > Adam Winer wrote:
> > > Looking at the source code for JarFileUrlStreamHandler over
> > > in the geronimo codebase, it looks as though they've got a pretty
> > > bad bug:  their handler is not reentrant (you can't parse one file out
> > > of a JAR while in the middle of parsing another).  This is 100% legit
> > > code on our part (and it'd be a major pain to overhaul our code
> > > not to do it).  I think you'll need to file a bug against Jetty or
> > > Geronimo.
> >
> > D'oh!  Thanks a lot for looking into this Adam, I'll go gripe at the
> > Geronimo folks.
> >
> > --
> > Chris Herborth (chrish@pobox.com)           http://www.pobox.com/~chrish/
> > Never send a monster to do the work of an evil scientist.
> >
> >
>
>


-- 
Matthias Wessendorf

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Re: Trinidad capabilities document (was Re: Unsupported component-family/renderer-type)

Posted by Matthias Wessendorf <ma...@apache.org>.
Great!

I strongly recommend using Facelets instead of JSP

;)

On 8/8/06, Chris Herborth <ch...@pobox.com> wrote:
> Matthias Wessendorf wrote:
> > would be also great if you give us a ping, when your article is published.
> > (Are you using Trinidad now?)
>
> It's part 4 of a 5 part series for IBM's developerWorks site about
> Geronimo, Eclipse, and JSF... not terribly in-depth tutorials, since
> we're covering MyFaces, Tomahawk, Ajax4jsf, ADF Faces/Trinidad and Swing.
>
> But sure, I'll try to remember to post here when it goes up. :-)
>
> I don't actually do any web application development, my interest in
> Trinidad came from this tutorial series...
>
> --
> Chris Herborth (chrish@pobox.com)           http://www.pobox.com/~chrish/
> Never send a monster to do the work of an evil scientist.
>
>


-- 
Matthias Wessendorf

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Re: Trinidad capabilities document (was Re: Unsupported component-family/renderer-type)

Posted by Chris Herborth <ch...@pobox.com>.
Matthias Wessendorf wrote:
> would be also great if you give us a ping, when your article is published.
> (Are you using Trinidad now?)

It's part 4 of a 5 part series for IBM's developerWorks site about 
Geronimo, Eclipse, and JSF... not terribly in-depth tutorials, since 
we're covering MyFaces, Tomahawk, Ajax4jsf, ADF Faces/Trinidad and Swing.

But sure, I'll try to remember to post here when it goes up. :-)

I don't actually do any web application development, my interest in 
Trinidad came from this tutorial series...

-- 
Chris Herborth (chrish@pobox.com)           http://www.pobox.com/~chrish/
Never send a monster to do the work of an evil scientist.


Re: Trinidad capabilities document (was Re: Unsupported component-family/renderer-type)

Posted by Matthias Wessendorf <ma...@apache.org>.
Chris,

would be also great if you give us a ping, when your article is published.
(Are you using Trinidad now?)

-Matthias

On 8/8/06, Chris Herborth <ch...@pobox.com> wrote:
> Adam Winer wrote:
> > Thanks - I hope I'm right. :)    Let me know what
> > the Geronimo folks say.
>
> I haven't had a chance to hassle them on the mailing list yet (although
> I was asking after a more recent build on their IRC channel... build
> machine is broken, apparently), but I did find this in their JIRA:
>
> http://issues.apache.org/jira/browse/XBEAN-22
>
> I _think_ it's the same issue, and it's marked as fixed... trying to
> track down a more up-to-date build now.
>
> I'll let you know if their trunk fixes my problem. :-)
>
> --
> Chris Herborth (chrish@pobox.com)           http://www.pobox.com/~chrish/
> Never send a monster to do the work of an evil scientist.
>
>


-- 
Matthias Wessendorf

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Re: Trinidad capabilities document (was Re: Unsupported component-family/renderer-type)

Posted by Chris Herborth <ch...@pobox.com>.
Adam Winer wrote:
> Thanks - I hope I'm right. :)    Let me know what
> the Geronimo folks say.

I haven't had a chance to hassle them on the mailing list yet (although 
I was asking after a more recent build on their IRC channel... build 
machine is broken, apparently), but I did find this in their JIRA:

http://issues.apache.org/jira/browse/XBEAN-22

I _think_ it's the same issue, and it's marked as fixed... trying to 
track down a more up-to-date build now.

I'll let you know if their trunk fixes my problem. :-)

-- 
Chris Herborth (chrish@pobox.com)           http://www.pobox.com/~chrish/
Never send a monster to do the work of an evil scientist.


Re: Trinidad capabilities document (was Re: Unsupported component-family/renderer-type)

Posted by Chris Herborth <ch...@pobox.com>.
Matthias Wessendorf wrote:
> I was not able to run your application in tomcat
> 
> 1. had to remove the second
[... duplicated web.xml entry ...]
> 2. some tags are named (see [1] and [2] for more)
> -panelForm => panelFormLayout
> -selectInputDate => inputDate
> 
> than it worked in Tomcat.

Fixed those and tried again, with the same result, so it's definitely 
not my bug.  Which wouldn't have surprised me, I'm a total n00b with 
this stuff... it's all magic to me. ;-)

Thanks for checking it, Matthias, I'll update the WAR file attached to 
the JIRA entry.

-- 
Chris Herborth (chrish@pobox.com)           http://www.pobox.com/~chrish/
Never send a monster to do the work of an evil scientist.


Re: Trinidad capabilities document (was Re: Unsupported component-family/renderer-type)

Posted by Matthias Wessendorf <ma...@apache.org>.
I was not able to run your application in tomcat

1. had to remove the second
   <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>client</param-value>
    </context-param>

entry

2. some tags are named (see [1] and [2] for more)
 -panelForm => panelFormLayout
 -selectInputDate => inputDate

than it worked in Tomcat.

Maybe you want to try that in Geronimo too?
And you should fix the provided war, so your bug will be closed
as invalid, I guess.

HTH,
Matthias

[1] http://wiki.apache.org/myfaces/Trinidad_renaming
[2] http://wiki.apache.org/myfaces/Trinidad_renaming

On 8/9/06, Matthias Wessendorf <ma...@apache.org> wrote:
> Blocker :-)
>
> Was that you ?
>
> On 8/9/06, Chris Herborth <ch...@pobox.com> wrote:
> > Adam Winer wrote:
> > > Thanks - I hope I'm right. :)    Let me know what
> > > the Geronimo folks say.
> >
> > Hooray (?), this is an entirely new problem they haven't seen yet; I've
> > filed a bug report, in case anyone wants to keep track of this:
> >
> > https://issues.apache.org/jira/browse/GERONIMO-2305
> >
> > --
> > Chris Herborth (chrish@pobox.com)           http://www.pobox.com/~chrish/
> > Never send a monster to do the work of an evil scientist.
> >
> >
>
>
> --
> Matthias Wessendorf
>
> further stuff:
> blog: http://jroller.com/page/mwessendorf
> mail: mwessendorf-at-gmail-dot-com
>


-- 
Matthias Wessendorf

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Re: Trinidad capabilities document (was Re: Unsupported component-family/renderer-type)

Posted by Chris Herborth <ch...@pobox.com>.
Matthias Wessendorf wrote:
> Blocker :-)
> 
> Was that you ?

Yeah, it's blocking me. :-)  I wasn't sure if their severity codes were 
in relation to Geronimo itself, or the person trying to use it... I 
figured they'd drop it down to something else if I was wrong.

-- 
Chris Herborth (chrish@pobox.com)           http://www.pobox.com/~chrish/
Never send a monster to do the work of an evil scientist.


Re: Trinidad capabilities document (was Re: Unsupported component-family/renderer-type)

Posted by Matthias Wessendorf <ma...@apache.org>.
Blocker :-)

Was that you ?

On 8/9/06, Chris Herborth <ch...@pobox.com> wrote:
> Adam Winer wrote:
> > Thanks - I hope I'm right. :)    Let me know what
> > the Geronimo folks say.
>
> Hooray (?), this is an entirely new problem they haven't seen yet; I've
> filed a bug report, in case anyone wants to keep track of this:
>
> https://issues.apache.org/jira/browse/GERONIMO-2305
>
> --
> Chris Herborth (chrish@pobox.com)           http://www.pobox.com/~chrish/
> Never send a monster to do the work of an evil scientist.
>
>


-- 
Matthias Wessendorf

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Re: Trinidad capabilities document (was Re: Unsupported component-family/renderer-type)

Posted by Chris Herborth <ch...@pobox.com>.
Adam Winer wrote:
> Thanks - I hope I'm right. :)    Let me know what
> the Geronimo folks say.

Hooray (?), this is an entirely new problem they haven't seen yet; I've 
filed a bug report, in case anyone wants to keep track of this:

https://issues.apache.org/jira/browse/GERONIMO-2305

-- 
Chris Herborth (chrish@pobox.com)           http://www.pobox.com/~chrish/
Never send a monster to do the work of an evil scientist.


Re: Trinidad capabilities document (was Re: Unsupported component-family/renderer-type)

Posted by Adam Winer <aw...@gmail.com>.
Thanks - I hope I'm right. :)    Let me know what
the Geronimo folks say.

-- Adam


On 8/7/06, Chris Herborth <ch...@pobox.com> wrote:
>
> Adam Winer wrote:
> > Looking at the source code for JarFileUrlStreamHandler over
> > in the geronimo codebase, it looks as though they've got a pretty
> > bad bug:  their handler is not reentrant (you can't parse one file out
> > of a JAR while in the middle of parsing another).  This is 100% legit
> > code on our part (and it'd be a major pain to overhaul our code
> > not to do it).  I think you'll need to file a bug against Jetty or
> > Geronimo.
>
> D'oh!  Thanks a lot for looking into this Adam, I'll go gripe at the
> Geronimo folks.
>
> --
> Chris Herborth (chrish@pobox.com)           http://www.pobox.com/~chrish/
> Never send a monster to do the work of an evil scientist.
>
>

Re: Trinidad capabilities document (was Re: Unsupported component-family/renderer-type)

Posted by Chris Herborth <ch...@pobox.com>.
Adam Winer wrote:
> Looking at the source code for JarFileUrlStreamHandler over
> in the geronimo codebase, it looks as though they've got a pretty
> bad bug:  their handler is not reentrant (you can't parse one file out
> of a JAR while in the middle of parsing another).  This is 100% legit
> code on our part (and it'd be a major pain to overhaul our code
> not to do it).  I think you'll need to file a bug against Jetty or 
> Geronimo.

D'oh!  Thanks a lot for looking into this Adam, I'll go gripe at the 
Geronimo folks.

-- 
Chris Herborth (chrish@pobox.com)           http://www.pobox.com/~chrish/
Never send a monster to do the work of an evil scientist.


Re: Trinidad capabilities document (was Re: Unsupported component-family/renderer-type)

Posted by Adam Winer <aw...@gmail.com>.
Chris,

Looking at the source code for JarFileUrlStreamHandler over
in the geronimo codebase, it looks as though they've got a pretty
bad bug:  their handler is not reentrant (you can't parse one file out
of a JAR while in the middle of parsing another).  This is 100% legit
code on our part (and it'd be a major pain to overhaul our code
not to do it).  I think you'll need to file a bug against Jetty or Geronimo.

-- Adam


On 8/7/06, Chris Herborth <ch...@pobox.com> wrote:
>
> Adam Winer wrote:
> > Can you give us a longer stack trace?
>
> Sure thing (is there any way to tell how much is "enough", or should I
> just post the whole thing when I have a problem?):
>
> 7-Aug-2006 10:40:40 AM
> org.apache.myfaces.adfinternal.agent.CapabilitiesProvider getCapabilities
> SEVERE: could not get capabilities from capabilities document
> java.lang.IllegalArgumentException: Expected url [jar:file:/C:/Documents
> and
> Settings/chrish/Desktop/geronimo-1.1
> /repository/default/devsignup/1154961598406/devsignup-1154961598406.war
> /WEB-INF/lib/adf-
> faces-impl-incubator-m1-SNAPSHOT.jar!/META-INF/agent/capabilities.xml],
> but was [jar:file:/C:/Documents and
> Settings/chrish/Desktop/geronimo-1.1
> /repository/default/devsignup/1154961598406/devsignup-1154961598406.war
> /WEB-INF/lib/adf-
> faces-impl-incubator-m1-SNAPSHOT.jar!/META-INF/agent/htmlBasic.xml]
>          at
>
> org.apache.geronimo.kernel.classloader.JarFileUrlStreamHandler.openConnection
> (JarFileUrlStreamHandler.java:63)
>          at java.net.URL.openConnection(Unknown Source)
>          at
>
> org.apache.myfaces.adfinternal.agent.parse.CapabilityDataDocumentParser.parse
> (CapabilityDataDocumentParser.java:60)
>          at
>
> org.apache.myfaces.adfinternal.agent.parse.CapabilitiesDocument._getCapabilities
> (CapabilitiesDocument.java:315)
>          at
>
> org.apache.myfaces.adfinternal.agent.parse.CapabilitiesDocument._getCapabilities
> (CapabilitiesDocument.java:226)
>          at
>
> org.apache.myfaces.adfinternal.agent.parse.CapabilitiesDocument._getCapabilities
> (CapabilitiesDocument.java:293)
>          at
>
> org.apache.myfaces.adfinternal.agent.parse.CapabilitiesDocument._getCapabilities
> (CapabilitiesDocument.java:212)
>          at
>
> org.apache.myfaces.adfinternal.agent.parse.CapabilitiesDocument._getDefaultAgentCapabilities
> (CapabilitiesDocument.java:117)
>          at
> org.apache.myfaces.adfinternal.agent.parse.CapabilitiesDocument.<init>(
> CapabilitiesDocument.java:38)
>          at
>
> org.apache.myfaces.adfinternal.agent.parse.CapabilitiesDocumentParser.endElement
> (CapabilitiesDocumentParser.java:184)
>          at
> org.apache.myfaces.adfinternal.share.xml.TreeBuilder$Handler.endElement(
> TreeBuilder.java:463)
>          at
> org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
>          at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
> Source)
>          at
>
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch
> (Unknown
> Source)
>          at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>          at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>          at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>          at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>          at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> Source)
>          at
> org.apache.myfaces.adfinternal.share.xml.TreeBuilder.parse(
> TreeBuilder.java:166)
>          at
>
> org.apache.myfaces.adfinternal.agent.parse.CapabilitiesDocumentParser.createInstance
> (CapabilitiesDocumentParser.java:67)
>          at
>
> org.apache.myfaces.adfinternal.agent.CapabilitiesProvider._getCapabilityDocument
> (CapabilitiesProvider.java:128)
>          at
> org.apache.myfaces.adfinternal.agent.CapabilitiesProvider._getCapabilities
> (CapabilitiesProvider.java:110)
>          at
> org.apache.myfaces.adfinternal.agent.CapabilitiesProvider.getCapabilities(
> CapabilitiesProvider.java:91)
>          at
> org.apache.myfaces.adfinternal.agent.AdfFacesAgentImpl._getCapabilityMap(
> AdfFacesAgentImpl.java:263)
>          at
> org.apache.myfaces.adfinternal.agent.AdfFacesAgentImpl._initialize(
> AdfFacesAgentImpl.java:233)
>          at
> org.apache.myfaces.adfinternal.agent.AdfFacesAgentImpl.<init>(
> AdfFacesAgentImpl.java:40)
>          at
> org.apache.myfaces.adfinternal.context.AdfFacesContextImpl.getAgent(
> AdfFacesContextImpl.java:533)
>          at
>
> org.apache.myfaces.adfinternal.renderkit.core.CoreRenderKit.chooseRenderKit
> (CoreRenderKit.java:144)
>          at
> org.apache.myfaces.adfinternal.renderkit.CoreRenderKitFactory.getRenderKit
> (CoreRenderKitFactory.java:50)
>          at
> org.apache.myfaces.context.servlet.ServletFacesContextImpl.getRenderKit(
> ServletFacesContextImpl.java:184)
>          at
>
> org.apache.myfaces.adfinternal.context.FacesContextFactoryImpl$CacheRenderKit.getRenderKit
> (FacesContextFactoryImpl.java:103)
>          at
>
> org.apache.myfaces.adfinternal.application.ViewHandlerImpl._getExtendedRenderKitService
> (ViewHandlerImpl.java:330)
>          at
> org.apache.myfaces.adfinternal.application.ViewHandlerImpl.renderView(
> ViewHandlerImpl.java:154)
>          at
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
>          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
>          at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
>          at
> org.apache.geronimo.jetty.JettyServletHolder.handle(
> JettyServletHolder.java:97)
>          at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> WebApplicationHandler.java:830)
>          at
> org.apache.myfaces.adfinternal.webapp.AdfFacesFilterImpl._invokeDoFilter(
> AdfFacesFilterImpl.java:320)
>          at
> org.apache.myfaces.adfinternal.webapp.AdfFacesFilterImpl._doFilterImpl(
> AdfFacesFilterImpl.java:289)
>          at
> org.apache.myfaces.adfinternal.webapp.AdfFacesFilterImpl.doFilter(
> AdfFacesFilterImpl.java:213)
>          at
> org.apache.myfaces.adf.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java
> :90)
>          at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> WebApplicationHandler.java:821)
>          at
> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(
> ExtensionsFilter.java:144)
>          at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> WebApplicationHandler.java:821)
>          at
> org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:170)
>          at
> org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
> WebApplicationHandler.java:821)
>          at
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(
> WebApplicationHandler.java:471)
>          at
> org.apache.geronimo.jetty.JettyWebApplicationHandler.dispatch(
> JettyWebApplicationHandler.java:58)
>          at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
>          at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
>          at
> org.mortbay.jetty.servlet.WebApplicationContext.handle(
> WebApplicationContext.java:633)
>          at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
>          at org.mortbay.http.HttpServer.service(HttpServer.java:909)
>          at org.mortbay.http.HttpConnection.service(HttpConnection.java
> :816)
>          at
> org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
>          at org.mortbay.http.HttpConnection.handle(HttpConnection.java
> :833)
>          at
> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
>          at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java
> :357)
>          at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java
> :534)
>
> --
> Chris Herborth (chrish@pobox.com)           http://www.pobox.com/~chrish/
> Never send a monster to do the work of an evil scientist.
>
>

Re: Trinidad capabilities document (was Re: Unsupported component-family/renderer-type)

Posted by Chris Herborth <ch...@pobox.com>.
Adam Winer wrote:
> Can you give us a longer stack trace?

Sure thing (is there any way to tell how much is "enough", or should I 
just post the whole thing when I have a problem?):

7-Aug-2006 10:40:40 AM 
org.apache.myfaces.adfinternal.agent.CapabilitiesProvider getCapabilities
SEVERE: could not get capabilities from capabilities document
java.lang.IllegalArgumentException: Expected url [jar:file:/C:/Documents 
and 
Settings/chrish/Desktop/geronimo-1.1/repository/default/devsignup/1154961598406/devsignup-1154961598406.war/WEB-INF/lib/adf-faces-impl-incubator-m1-SNAPSHOT.jar!/META-INF/agent/capabilities.xml], 
but was [jar:file:/C:/Documents and 
Settings/chrish/Desktop/geronimo-1.1/repository/default/devsignup/1154961598406/devsignup-1154961598406.war/WEB-INF/lib/adf-faces-impl-incubator-m1-SNAPSHOT.jar!/META-INF/agent/htmlBasic.xml]
         at 
org.apache.geronimo.kernel.classloader.JarFileUrlStreamHandler.openConnection(JarFileUrlStreamHandler.java:63)
         at java.net.URL.openConnection(Unknown Source)
         at 
org.apache.myfaces.adfinternal.agent.parse.CapabilityDataDocumentParser.parse(CapabilityDataDocumentParser.java:60)
         at 
org.apache.myfaces.adfinternal.agent.parse.CapabilitiesDocument._getCapabilities(CapabilitiesDocument.java:315)
         at 
org.apache.myfaces.adfinternal.agent.parse.CapabilitiesDocument._getCapabilities(CapabilitiesDocument.java:226)
         at 
org.apache.myfaces.adfinternal.agent.parse.CapabilitiesDocument._getCapabilities(CapabilitiesDocument.java:293)
         at 
org.apache.myfaces.adfinternal.agent.parse.CapabilitiesDocument._getCapabilities(CapabilitiesDocument.java:212)
         at 
org.apache.myfaces.adfinternal.agent.parse.CapabilitiesDocument._getDefaultAgentCapabilities(CapabilitiesDocument.java:117)
         at 
org.apache.myfaces.adfinternal.agent.parse.CapabilitiesDocument.<init>(CapabilitiesDocument.java:38)
         at 
org.apache.myfaces.adfinternal.agent.parse.CapabilitiesDocumentParser.endElement(CapabilitiesDocumentParser.java:184)
         at 
org.apache.myfaces.adfinternal.share.xml.TreeBuilder$Handler.endElement(TreeBuilder.java:463)
         at 
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
         at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown 
Source)
         at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown 
Source)
         at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
Source)
         at 
org.apache.myfaces.adfinternal.share.xml.TreeBuilder.parse(TreeBuilder.java:166)
         at 
org.apache.myfaces.adfinternal.agent.parse.CapabilitiesDocumentParser.createInstance(CapabilitiesDocumentParser.java:67)
         at 
org.apache.myfaces.adfinternal.agent.CapabilitiesProvider._getCapabilityDocument(CapabilitiesProvider.java:128)
         at 
org.apache.myfaces.adfinternal.agent.CapabilitiesProvider._getCapabilities(CapabilitiesProvider.java:110)
         at 
org.apache.myfaces.adfinternal.agent.CapabilitiesProvider.getCapabilities(CapabilitiesProvider.java:91)
         at 
org.apache.myfaces.adfinternal.agent.AdfFacesAgentImpl._getCapabilityMap(AdfFacesAgentImpl.java:263)
         at 
org.apache.myfaces.adfinternal.agent.AdfFacesAgentImpl._initialize(AdfFacesAgentImpl.java:233)
         at 
org.apache.myfaces.adfinternal.agent.AdfFacesAgentImpl.<init>(AdfFacesAgentImpl.java:40)
         at 
org.apache.myfaces.adfinternal.context.AdfFacesContextImpl.getAgent(AdfFacesContextImpl.java:533)
         at 
org.apache.myfaces.adfinternal.renderkit.core.CoreRenderKit.chooseRenderKit(CoreRenderKit.java:144)
         at 
org.apache.myfaces.adfinternal.renderkit.CoreRenderKitFactory.getRenderKit(CoreRenderKitFactory.java:50)
         at 
org.apache.myfaces.context.servlet.ServletFacesContextImpl.getRenderKit(ServletFacesContextImpl.java:184)
         at 
org.apache.myfaces.adfinternal.context.FacesContextFactoryImpl$CacheRenderKit.getRenderKit(FacesContextFactoryImpl.java:103)
         at 
org.apache.myfaces.adfinternal.application.ViewHandlerImpl._getExtendedRenderKitService(ViewHandlerImpl.java:330)
         at 
org.apache.myfaces.adfinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:154)
         at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
         at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
         at 
org.apache.geronimo.jetty.JettyServletHolder.handle(JettyServletHolder.java:97)
         at 
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
         at 
org.apache.myfaces.adfinternal.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:320)
         at 
org.apache.myfaces.adfinternal.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:289)
         at 
org.apache.myfaces.adfinternal.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:213)
         at 
org.apache.myfaces.adf.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:90)
         at 
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
         at 
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
         at 
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
         at 
org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:170)
         at 
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
         at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
         at 
org.apache.geronimo.jetty.JettyWebApplicationHandler.dispatch(JettyWebApplicationHandler.java:58)
         at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
         at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
         at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
         at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
         at org.mortbay.http.HttpServer.service(HttpServer.java:909)
         at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
         at 
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
         at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
         at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
         at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
         at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

-- 
Chris Herborth (chrish@pobox.com)           http://www.pobox.com/~chrish/
Never send a monster to do the work of an evil scientist.


Re: Trinidad capabilities document (was Re: Unsupported component-family/renderer-type)

Posted by Adam Winer <aw...@gmail.com>.
Can you give us a longer stack trace?

Thanks,
Adam


On 8/7/06, Chris Herborth <ch...@pobox.com> wrote:
>
> Adam Winer wrote:
> > Nor do I;  and on this list, I'm afraid we can't give you much
> > support for Oracle's ADF Faces.  This list exists for users
> > of the open sourced Trinidad code.
>
> I've converted my application to use Trinidad (using the M1 Incubator
> snapshot), and removed all of the Ajax4jsf stuff in case its filters are
> somehow incompatible with Trinidad.
>
> Now I'm getting an exception dump when I load the page; is there a newer
> Trinidad archive I should be using?
>
> 7-Aug-2006 10:40:40 AM
> org.apache.myfaces.adfinternal.agent.CapabilitiesProvider getCapabilities
> SEVERE: could not get capabilities from capabilities document
> java.lang.IllegalArgumentException: Expected url [jar:file:/C:/Documents
> and
> Settings/chrish/Desktop/geronimo-1.1
> /repository/default/devsignup/1154961598406/devsignup-1154961598406.war
> /WEB-INF/lib/adf-
> faces-impl-incubator-m1-SNAPSHOT.jar!/META-INF/agent/capabilities.xml],
> but was [jar:file:/C:/Documents and
> Settings/chrish/Desktop/geronimo-1.1
> /repository/default/devsignup/1154961598406/devsignup-1154961598406.war
> /WEB-INF/lib/adf-
> faces-impl-incubator-m1-SNAPSHOT.jar!/META-INF/agent/htmlBasic.xml]
>          at
>
> org.apache.geronimo.kernel.classloader.JarFileUrlStreamHandler.openConnection
> (JarFileUrlStreamHandler.java:63)
>
> Thanks!Tr
>
> --
> Chris Herborth (chrish@pobox.com)           http://www.pobox.com/~chrish/
> Never send a monster to do the work of an evil scientist.
>
>