You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jeff Schmitz <je...@mac.com> on 2010/02/22 05:07:18 UTC
cocoon upload
hello,
I'm trying to implement the file upload functionality outlined here:
http://wiki.apache.org/cocoon/FileUploadsWithFlow
But when I try to upload, I'm getting the following error. It looks
like some kind of config error, but I think I've set things up per the
instructions. Any ideas?
WARN (2010-02-21) 22:00.46:904 [sitemap] (/owlTrans/
222c155c883e2a1c547854454282871d0c245b40.kont) PoolThread-4/
ExcaliburComponentManager: ComponentLocator exception from parent CM
during lookup.
org.apache.avalon.framework.component.ComponentException: Could not
find component (key
[org.apache.cocoon.components.upload.FileUploadManager])
at
org
.apache
.avalon
.excalibur
.component
.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:265)
at
org
.apache
.cocoon
.components.CocoonComponentManager.lookup(CocoonComponentManager.java:
354)
at
org
.apache
.avalon
.excalibur
.component
.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:194)
at
org
.apache
.cocoon
.components.CocoonComponentManager.lookup(CocoonComponentManager.java:
354)
at
org
.apache
.avalon
.excalibur
.component
.ExcaliburComponentManager.lookup(ExcaliburComponentManager.java:194)
at
org
.apache
.cocoon
.components.CocoonComponentManager.lookup(CocoonComponentManager.java:
354)
at org.apache.cocoon.components.ComponentContext
$ComponentManagerWrapper.lookup(ComponentContext.java:147)
at
org
.apache
.cocoon
.components
.flow
.javascript.fom.FOM_Cocoon.jsFunction_getComponent(FOM_Cocoon.java:331)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun
.reflect
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:145)
at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:471)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:
3085)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2251)
at
org
.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:
161)
at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:
2758)
at
org
.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:
159)
at org.mozilla.javascript.Context.call(Context.java:489)
at
org
.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:
1556)
at
org
.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:
1526)
at
org
.apache
.cocoon
.components
.flow
.javascript
.fom
.FOM_JavaScriptInterpreter
.handleContinuation(FOM_JavaScriptInterpreter.java:841)
RE: cocoon upload {SOLVED}
Posted by "Schmitz, Jeffrey A" <Je...@boeing.com>.
Ended up being the user-roles attribute got inadvertantly deleted in the cocoon element of the cocoon.xconf file. That linked example still works fine with 2.1
<cocoon version="2.1" user-roles="/WEB-INF/user.xroles">
Jeff
Work: 314-232-1997
Cell: 636-448-5990
________________________________
From: Francesco Chicchiriccò [mailto:francesco.chicchiricco@everett.it]
Sent: Monday, February 22, 2010 2:09 AM
To: users@cocoon.apache.org
Subject: Re: cocoon upload
On 22/feb/10, at 05:07, Jeff Schmitz wrote:
hello,
I'm trying to implement the file upload functionality outlined here:
http://wiki.apache.org/cocoon/FileUploadsWithFlow
But when I try to upload, I'm getting the following error. It looks like some kind of config error, but I think I've set things up per the instructions. Any ideas?
[...]
Hi Jeff,
assuming that you are using 2.1 (2.1.11?), I don't know how much updated is the link that you reported above.
I would suggest to start from the upload sample in the forms block (see [1]).
Cheers.
[1] http://svn.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X/src/blocks/forms/samples/
Re: cocoon upload
Posted by Francesco Chicchiriccò <fr...@everett.it>.
On 22/feb/10, at 05:07, Jeff Schmitz wrote:
> hello,
> I'm trying to implement the file upload functionality outlined
> here:
>
> http://wiki.apache.org/cocoon/FileUploadsWithFlow
>
> But when I try to upload, I'm getting the following error. It looks
> like some kind of config error, but I think I've set things up per
> the instructions. Any ideas?
> [...]
Hi Jeff,
assuming that you are using 2.1 (2.1.11?), I don't know how much
updated is the link that you reported above.
I would suggest to start from the upload sample in the forms block
(see [1]).
Cheers.
[1] http://svn.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X/src/blocks/forms/samples/