cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Ramsdale" <je...@asix.com>
Subject Woody problem: Could not parse form definition
Date Mon, 27 Oct 2003 20:03:37 GMT
I'm just beginning to mess with Woody and have hit an error. I've checked
the archives and can't find other occurances of it, so it's time to ask the
group.

Here's my error when I request my page:
"resource://org/apache/cocoon/woody/flow/javascript/woody2.js", line 83:
uncaught JavaScript exception: at woody
(resource://org/apache/cocoon/woody/flow/javascript/woody2.js, Line 204) at
Form (resource://org/apache/cocoon/woody/flow/javascript/woody2.js, Line
83): org.apache.avalon.framework.CascadingException: Could not parse form
definition from file:/C:/Program Files/Apache Software Foundation/Tomcat
5.0/webapps/cocoon/flowtest/forms/browserWidgets.xml


Here's the top of my stack trace:

Original Exception: org.apache.avalon.framework.CascadingException: Could
not parse form definition from file:/C:/Program Files/Apache Software
Foundation/Tomcat 5.0/webapps/cocoon/flowtest/forms/browserWidgets.xml

	at
org.apache.cocoon.woody.DefaultFormManager.getFormDefinition(DefaultFormMana
ger.java:142)
at
org.apache.cocoon.woody.DefaultFormManager.createForm(DefaultFormManager.jav
a:128)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:230)
at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1244)
at
org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(Conti
nuationInterpreter.java:1105)
at
org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(Conti
nuationInterpreter.java:190)
at
org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(Conti
nuationInterpreter.java:138)
at
org.mozilla.javascript.continuations.InterpretedFunctionImpl.call(Interprete
dFunctionImpl.java:121)
at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1244)
at
org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.c
allFunction(FOM_JavaScriptInterpreter.java:558)
at
org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(C
allFunctionNode.java:181)

I have my widgets defined in browserWidgets.xml and my template in
browserTemplate.html. Here's my pipeline:

<map:pipeline>
    <map:match pattern="test">

        <map:call function="woody">

            <map:parameter name="function" value="searchForm"/>

            <map:parameter name="form-definition"
value="forms/browserWidgets.xml"/>

            <map:parameter name="attribute-name" value="form"/>

        </map:call>

    </map:match>

    <map:match pattern="*.continue">

        <map:call continuation="{1}"/>

    </map:match>

    <map:match pattern="form-display-pipeline">

        <!-- pipeline to show the form -->

        <map:generate src="forms/browserTemplate.html"/>

        <map:transform type="woody"/>

        <map:transform type="i18n">

            <map:parameter name="locale" value="en-US"/>

        </map:transform>

        <map:serialize/>

    </map:match>

    <map:match pattern="form-success-pipeline">

        <map:generate src="forms/searchResultsWidgets.xml" />

        <map:transform type="woody"/>

        <map:transform type="i18n">

            <map:parameter name="locale" value="en-US"/>

        </map:transform>

        <map:serialize/>

    </map:match>

</map:pipeline>

I hate to make this post too long, but I don't want to leave vital
information out. I'll include the widget file as an attachment.

Any ideas why I'd get this error? I've checked the widgets file and it's
well-formed. Much harder to verify it's valid...

Thanks, all



Jeff Ramsdale




begin 666 browserWidgets.xml
M/#]X;6P@=F5R<VEO;CTB,2XP(B!E;F-O9&EN9STB25-/+3@X-3DM,2(_/@T*
M/'=D.F9O<FT-"B @>&UL;G,Z=V0](FAT=' Z+R]A<&%C:&4N;W)G+V-O8V]O
M;B]W;V]D>2]D969I;FET:6]N+S$N,"(-"B @>&UL;G,Z:3$X;CTB:'1T<#HO
M+V%P86-H92YO<F<O8V]C;V]N+VDQ.&XO,BXQ(CX-"@T*(" \=V0Z9FEE;&0@
M:60](FYA;64B(')E<75I<F5D/2)F86QS92(^#0H@(" @/'=D.FQA8F5L/DYA
M;64Z/"]W9#IL86)E;#X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R:6%N=#TB9&%T92(@<W1Y;&4](G-H;W)T(CX-"B @(" @(" @
M/'=D.G!A='1E<FYS/@T*(" @(" @(" @(#QW9#IP871T97)N/FUM+V1D+WEY
M>7D\+W=D.G!A='1E<FX^( T*(" @(" @(" @(#QW9#IP871T97)N(&QO8V%L
M93TB97,B/F1D+4U-+7EY>7D\+W=D.G!A='1E<FX^#0H@(" @(" @(#PO=V0Z
M<&%T=&5R;G,^#0H@(" @(" \+W=D.F-O;G9E<G1O<CX-"B @(" \+W=D.F1A
M=&%T>7!E/@T*(" \+W=D.F9I96QD/@T*#0H@(#QW9#IF:65L9"!I9#TB;6]D
M:69I9614;T1A=&4B(')E<75I<F5D/2)F86QS92(^#0H@(" @/'=D.FQA8F5L
M/E1O.CPO=V0Z;&%B96P^#0H@(" @/'=D.F1A=&%T>7!E(&)A<V4](F1A=&4B
M/@T*(" @(" @/'=D.F-O;G9E<G1O<B!T>7!E/2)F;W)M871T:6YG(B!V87)I
M86YT/2)D871E(B!S='EL93TB<VAO<G0B/@T*(" @(" @(" \=V0Z<&%T=&5R
M;G,^#0H@(" @(" @(" @/'=D.G!A='1E<FX^;6TO9&0O>7EY>3PO=V0Z<&%T
M=&5R;CX@#0H@(" @(" @(" @/"$M+2 -"B @(" @(" @(" @(%1H92!A8F]V
M92!P871T97)N(&ES(&$@;F]N+6QO8V%L92US<&5C:69I8R!P871T97)N+B!9
M;W4@8V%N#0H@(" @(" @(" @("!A;'-O(&%D9"!L;V-A;&4M<W!E8VEF:6,@
M<&%T=&5R;G,@8GD@861D:6YG(&UO<F4@=V0Z<&%T=&5R;B!E;&5M96YT<PT*
M(" @(" @(" @(" @:&5R92P@=VET:"!A(&QO8V%L92!A='1R:6)U=&4@;VX@
M=&AE;2X@#0H@(" @(" @(" @+2T^( T*(" @(" @(" \+W=D.G!A='1E<FYS
M/@T*(" @(" @/"]W9#IC;VYV97)T;W(^#0H@(" @/"]W9#ID871A='EP93X-
M"B @/"]W9#IF:65L9#X-"@T*(" \=V0Z9FEE;&0@:60](F-R96%T961&<F]M
M1&%T92(@<F5Q=6ER960](F9A;'-E(CX-"B @(" \=V0Z;&%B96P^0W)E871E
M9"!$871E($9R;VTZ/"]W9#IL86)E;#X-"B @(" \=V0Z9&%T871Y<&4@8F%S
M93TB9&%T92(^#0H@(" @(" \=V0Z8V]N=F5R=&]R('1Y<&4](F9O<FUA='1I
M;F<B('9A<FEA;G0](F1A=&4B('-T>6QE/2)S:&]R="(^#0H@(" @(" @(#QW
M9#IP871T97)N<SX-"B @(" @(" @(" \=V0Z<&%T=&5R;CYM;2]D9"]Y>7EY
M/"]W9#IP871T97)N/B -"B @(" @(" @(" \=V0Z<&%T=&5R;B!L;V-A;&4]
M(F5S(CYD9"U-32UY>7EY/"]W9#IP871T97)N/@T*(" @(" @(" \+W=D.G!A
M='1E<FYS/@T*(" @(" @/"]W9#IC;VYV97)T;W(^#0H@(" @/"]W9#ID871A
M='EP93X-"B @/"]W9#IF:65L9#X-"@T*(" \=V0Z9FEE;&0@:60](F-R96%T
M9614;T1A=&4B(')E<75I<F5D/2)F86QS92(^#0H@(" @/'=D.FQA8F5L/E1O
M.CPO=V0Z;&%B96P^#0H@(" @/'=D.F1A=&%T>7!E(&)A<V4](F1A=&4B/@T*
M(" @(" @/'=D.F-O;G9E<G1O<B!T>7!E/2)F;W)M871T:6YG(B!V87)I86YT
M/2)D871E(B!S='EL93TB<VAO<G0B/@T*(" @(" @(" \=V0Z<&%T=&5R;G,^
M#0H@(" @(" @(" @/'=D.G!A='1E<FX^;6TO9&0O>7EY>3PO=V0Z<&%T=&5R
M;CX@#0H@(" @(" @(" @/"$M+2 -"B @(" @(" @(" @(%1H92!A8F]V92!P
M871T97)N(&ES(&$@;F]N+6QO8V%L92US<&5C:69I8R!P871T97)N+B!9;W4@
M8V%N#0H@(" @(" @(" @("!A;'-O(&%D9"!L;V-A;&4M<W!E8VEF:6,@<&%T
M=&5R;G,@8GD@861D:6YG(&UO<F4@=V0Z<&%T=&5R;B!E;&5M96YT<PT*(" @
M(" @(" @(" @:&5R92P@=VET:"!A(&QO8V%L92!A='1R:6)U=&4@;VX@=&AE
M;2X@#0H@(" @(" @(" @+2T^( T*(" @(" @(" \+W=D.G!A='1E<FYS/@T*
M(" @(" @/"]W9#IC;VYV97)T;W(^#0H@(" @/"]W9#ID871A='EP93X-"B @
M/"]W9#IF:65L9#X-"@T*(" \=V0Z9FEE;&0@:60](F%C=&EV94%S3V9$871E
M(B!R97%U:7)E9#TB9F%L<V4B/@T*(" @(#QW9#IL86)E;#Y!8W1I=F4@07,@
M3V8Z/"]W9#IL86)E;#X-"B @(" \=V0Z9&%T871Y<&4@8F%S93TB9&%T92(^
M#0H@(" @(" \=V0Z8V]N=F5R=&]R('1Y<&4](F9O<FUA='1I;F<B('9A<FEA
M;G0](F1A=&4B('-T>6QE/2)S:&]R="(^#0H@(" @(" @(#QW9#IP871T97)N
M<SX-"B @(" @(" @(" \=V0Z<&%T=&5R;CYM;2]D9"]Y>7EY/"]W9#IP871T
M97)N/B -"B @(" @(" @(" \=V0Z<&%T=&5R;B!L;V-A;&4](F5S(CYD9"U-
M32UY>7EY/"]W9#IP871T97)N/@T*(" @(" @(" \+W=D.G!A='1E<FYS/@T*
M(" @(" @/"]W9#IC;VYV97)T;W(^#0H@(" @/"]W9#ID871A='EP93X-"B @
;/"]W9#IF:65L9#X-"@T*/"]W9#IF;W)M/@T*
`
end



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message