Cannot read from file /xbl/orbeon/case/case.xbl

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Cannot read from file /xbl/orbeon/case/case.xbl

Jeremiah Jahn-4
I'm using the separate deployment structure for my application, and it
seems I can use most of the xbl controls, but when I try use the
accordian example in my project I get the following error:
Cannot read from file /xbl/orbeon/case/case.xbl
I've searched through all of the jars and what not, and I can't find
case.xbl either. So I'm assuming it's getting created dynamically
through xsl or something.

I haven't made any changes to the example and I'm using the latest
nighty build. I'm wondering if I have a property not set or something.
but all of the other basic <fr:* seem to work.

  <fr:accordion class="fr-accordion-lnf" id="my-accordion">
    <fr:case>
        <fr:label>First section (lorem ipsum)</fr:label>
        <xhtml:div>
            Lorem ipsum dolor sit amet, [...]
        </xhtml:div>
    </fr:case>
</fr:accordion>

if I change fr:case to xforms:case and fr:labe; to xforms:label I get
a cast exception.

help please


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Cannot read from file /xbl/orbeon/case/case.xbl

Jeremiah Jahn-4
finally found case.xbl, which is just part of the xsl in
accordian.xbl. So why is my xform being pre processed in the wrong
order. And why is it using the FilesystemResourceManager to try and
find case.xbl?  I'm not sure of the way things work enough yet to even
know where to start debugging this.

/xforms-renderer - Received request
Exception at line 111, column 67 of oxf:/ops/pfc/xforms-epilogue.xpl
(reading processor output: name='data', id='widgeted-view')
org.orbeon.oxf.resources.ResourceNotFoundException: Cannot read from
file /xbl/orbeon/case/case.xbl
        at org.orbeon.oxf.resources.FilesystemResourceManagerImpl.getContentAsStream(FilesystemResourceManagerImpl.java:67)
        at org.orbeon.oxf.resources.ResourceManagerBase.getContentAsSAX(ResourceManagerBase.java:128)
        at org.orbeon.oxf.resources.PriorityResourceManagerImpl$4.run(PriorityResourceManagerImpl.java:122)
        at org.orbeon.oxf.resources.PriorityResourceManagerImpl.delegate(PriorityResourceManagerImpl.java:271)
        at org.orbeon.oxf.resources.PriorityResourceManagerImpl.getContentAsSAX(PriorityResourceManagerImpl.java:120)
        at org.orbeon.oxf.processor.generator.URLGenerator$OXFResourceHandler.readXML(URLGenerator.java:716)
        at org.orbeon.oxf.processor.generator.URLGenerator$1.readImpl(URLGenerator.java:457)
        at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
        at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
        at org.orbeon.oxf.xml.ProcessorOutputXMLReader.parse(ProcessorOutputXMLReader.java:40)
        at org.orbeon.oxf.xml.ForwardingXMLReader.parse(ForwardingXMLReader.java:82)
        at org.orbeon.oxf.processor.xinclude.XIncludeProcessor$XIncludeContentHandler.startElement(XIncludeProcessor.java:226)
        at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:230)


do I have my resources prioritized in the wrong order?
<context-param>
    <param-name>oxf.resources.priority.1</param-name>
    <param-value>org.orbeon.oxf.resources.FilesystemResourceManagerFactory</param-value>
  </context-param>
  <context-param>
    <param-name>oxf.resources.priority.1.oxf.resources.filesystem.sandbox-directory</param-name>
    <param-value>/Users/jeremiah/java-work/delcyon-core</param-value>
  </context-param>
  <context-param>
    <param-name>oxf.resources.priority.2</param-name>
    <param-value>org.orbeon.oxf.resources.WebAppResourceManagerFactory</param-value>
  </context-param>
  <context-param>
    <param-name>oxf.resources.priority.2.oxf.resources.webapp.rootdir</param-name>
    <param-value>/WEB-INF/resources</param-value>
  </context-param>


On Sat, Aug 8, 2009 at 1:29 PM, Jeremiah Jahn<[hidden email]> wrote:

> I'm using the separate deployment structure for my application, and it
> seems I can use most of the xbl controls, but when I try use the
> accordian example in my project I get the following error:
> Cannot read from file /xbl/orbeon/case/case.xbl
> I've searched through all of the jars and what not, and I can't find
> case.xbl either. So I'm assuming it's getting created dynamically
> through xsl or something.
>
> I haven't made any changes to the example and I'm using the latest
> nighty build. I'm wondering if I have a property not set or something.
> but all of the other basic <fr:* seem to work.
>
>  <fr:accordion class="fr-accordion-lnf" id="my-accordion">
>    <fr:case>
>        <fr:label>First section (lorem ipsum)</fr:label>
>        <xhtml:div>
>            Lorem ipsum dolor sit amet, [...]
>        </xhtml:div>
>    </fr:case>
> </fr:accordion>
>
> if I change fr:case to xforms:case and fr:labe; to xforms:label I get
> a cast exception.
>
> help please
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Cannot read from file /xbl/orbeon/case/case.xbl

Jeremiah Jahn-4
I added fr:case and fr:label to:
 <property as="xs:string" name="oxf.epilogue.xforms.widgets.fr-elements-to-skip"
                    value="fr:case fr:label

and it seems to work now. Is this the right thing to do? basically
list any elements that don't have there own xbl file?

On Sat, Aug 8, 2009 at 6:16 PM, Jeremiah Jahn<[hidden email]> wrote:

> finally found case.xbl, which is just part of the xsl in
> accordian.xbl. So why is my xform being pre processed in the wrong
> order. And why is it using the FilesystemResourceManager to try and
> find case.xbl?  I'm not sure of the way things work enough yet to even
> know where to start debugging this.
>
> /xforms-renderer - Received request
> Exception at line 111, column 67 of oxf:/ops/pfc/xforms-epilogue.xpl
> (reading processor output: name='data', id='widgeted-view')
> org.orbeon.oxf.resources.ResourceNotFoundException: Cannot read from
> file /xbl/orbeon/case/case.xbl
>        at org.orbeon.oxf.resources.FilesystemResourceManagerImpl.getContentAsStream(FilesystemResourceManagerImpl.java:67)
>        at org.orbeon.oxf.resources.ResourceManagerBase.getContentAsSAX(ResourceManagerBase.java:128)
>        at org.orbeon.oxf.resources.PriorityResourceManagerImpl$4.run(PriorityResourceManagerImpl.java:122)
>        at org.orbeon.oxf.resources.PriorityResourceManagerImpl.delegate(PriorityResourceManagerImpl.java:271)
>        at org.orbeon.oxf.resources.PriorityResourceManagerImpl.getContentAsSAX(PriorityResourceManagerImpl.java:120)
>        at org.orbeon.oxf.processor.generator.URLGenerator$OXFResourceHandler.readXML(URLGenerator.java:716)
>        at org.orbeon.oxf.processor.generator.URLGenerator$1.readImpl(URLGenerator.java:457)
>        at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl$1.read(ProcessorImpl.java:998)
>        at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1181)
>        at org.orbeon.oxf.xml.ProcessorOutputXMLReader.parse(ProcessorOutputXMLReader.java:40)
>        at org.orbeon.oxf.xml.ForwardingXMLReader.parse(ForwardingXMLReader.java:82)
>        at org.orbeon.oxf.processor.xinclude.XIncludeProcessor$XIncludeContentHandler.startElement(XIncludeProcessor.java:226)
>        at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:230)
>
>
> do I have my resources prioritized in the wrong order?
> <context-param>
>    <param-name>oxf.resources.priority.1</param-name>
>    <param-value>org.orbeon.oxf.resources.FilesystemResourceManagerFactory</param-value>
>  </context-param>
>  <context-param>
>    <param-name>oxf.resources.priority.1.oxf.resources.filesystem.sandbox-directory</param-name>
>    <param-value>/Users/jeremiah/java-work/delcyon-core</param-value>
>  </context-param>
>  <context-param>
>    <param-name>oxf.resources.priority.2</param-name>
>    <param-value>org.orbeon.oxf.resources.WebAppResourceManagerFactory</param-value>
>  </context-param>
>  <context-param>
>    <param-name>oxf.resources.priority.2.oxf.resources.webapp.rootdir</param-name>
>    <param-value>/WEB-INF/resources</param-value>
>  </context-param>
>
>
> On Sat, Aug 8, 2009 at 1:29 PM, Jeremiah Jahn<[hidden email]> wrote:
>> I'm using the separate deployment structure for my application, and it
>> seems I can use most of the xbl controls, but when I try use the
>> accordian example in my project I get the following error:
>> Cannot read from file /xbl/orbeon/case/case.xbl
>> I've searched through all of the jars and what not, and I can't find
>> case.xbl either. So I'm assuming it's getting created dynamically
>> through xsl or something.
>>
>> I haven't made any changes to the example and I'm using the latest
>> nighty build. I'm wondering if I have a property not set or something.
>> but all of the other basic <fr:* seem to work.
>>
>>  <fr:accordion class="fr-accordion-lnf" id="my-accordion">
>>    <fr:case>
>>        <fr:label>First section (lorem ipsum)</fr:label>
>>        <xhtml:div>
>>            Lorem ipsum dolor sit amet, [...]
>>        </xhtml:div>
>>    </fr:case>
>> </fr:accordion>
>>
>> if I change fr:case to xforms:case and fr:labe; to xforms:label I get
>> a cast exception.
>>
>> help please
>>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Cannot read from file /xbl/orbeon/case/case.xbl

Alessandro Vernet
Administrator
Jeremiah,

<quote author="Jeremiah Jahn-4">
I added fr:case and fr:label to:
 <property as="xs:string" name="oxf.epilogue.xforms.widgets.fr-elements-to-skip"
                    value="fr:case fr:label

and it seems to work now. Is this the right thing to do? basically
list any elements that don't have there own xbl file?
</quote>

Yes, this is exactly it.

As a convention, we are placing the XBL files for the fr:* components under /xbl/orbeon. So the implementation for fr:gaga is in /xbl/orbeon/gaga/gaga.xbl. Based on this convention, we can automatically xinclude XBL files for the fr:* components, so you don't have to do it manually. But some of those fr:* are not components, but just elements that are used in the description of a component, like fr:case. So we exclude those with the oxf.epilogue.xforms.widgets.fr-elements-to-skip property. The default value for this property is:

fr:back-button fr:body fr:buttons fr:component fr:dateTime fr:foobar fr:grid fr:metadata
fr:repeat fr:save-button fr:section fr:super-control fr:td fr:tr fr:view fr:dialogs
fr:max-results-displayed fr:mindate fr:prefix fr:digits-after-decimal fr:case fr:label
fr:mindate fr:maxdate

It is defined in properties-xforms.xml, and now I am not sure why it would be any different in your case. I.e. it should just work out of the box, and you shouldn't have to change the value of this property. Have you by any chance modified those files?

Alex
Reply | Threaded
Open this post in threaded view
|

Re: Re: Cannot read from file /xbl/orbeon/case/case.xbl

Jeremiah Jahn-4
I don't think I've modifed it, but you never know given the amount of
flailing around I've been doing, but it seems unlikely. Perhaps it was
going from the last stable build to the nighty builds.

On Mon, Aug 10, 2009 at 8:46 AM, Alessandro  Vernet<[hidden email]> wrote:

>
> Jeremiah,
>
>
> Jeremiah Jahn-4 wrote:
>>
>> I added fr:case and fr:label to:
>>  <property as="xs:string"
>> name="oxf.epilogue.xforms.widgets.fr-elements-to-skip"
>>                     value="fr:case fr:label
>>
>> and it seems to work now. Is this the right thing to do? basically
>> list any elements that don't have there own xbl file?
>>
>
> Yes, this is exactly it.
>
> As a convention, we are placing the XBL files for the fr:* components under
> /xbl/orbeon. So the implementation for fr:gaga is in
> /xbl/orbeon/gaga/gaga.xbl. Based on this convention, we can automatically
> xinclude XBL files for the fr:* components, so you don't have to do it
> manually. But some of those fr:* are not components, but just elements that
> are used in the description of a component, like fr:case. So we exclude
> those with the oxf.epilogue.xforms.widgets.fr-elements-to-skip property. The
> default value for this property is:
>
> fr:back-button fr:body fr:buttons fr:component fr:dateTime fr:foobar fr:grid
> fr:metadata
> fr:repeat fr:save-button fr:section fr:super-control fr:td fr:tr fr:view
> fr:dialogs
> fr:max-results-displayed fr:mindate fr:prefix fr:digits-after-decimal
> fr:case fr:label
> fr:mindate fr:maxdate
>
> It is defined in properties-xforms.xml, and now I am not sure why it would
> be any different in your case. I.e. it should just work out of the box, and
> you shouldn't have to change the value of this property. Have you by any
> chance modified those files?
>
> Alex
>
> -----
> Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
> Orbeon's Blog: http://www.orbeon.com/blog/
> Personal Blog: http://avernet.blogspot.com/
> Twitter - http://twitter.com/avernet
> --
> View this message in context: http://www.nabble.com/Cannot-read-from-file--xbl-orbeon-case-case.xbl-tp24880874p24900018.html
> Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com.
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws