You need fileupload-1.1..
http://tapestry.apache.org/tapestry4/dependencies.html
On 8/16/06, Andrés Nates <[EMAIL PROTECTED]> wrote:
I'm have this version of jar
tapestry-4.0.2
hivemind-1.1
hivemind-lib-1.1
commons-fileupload-1.0
and the file Hivemind.xml look this:
<?xml version="1.0"?>
<module id="com.ttdev.album" version="1.0.0">
<service-point id="ImageService"
interface="org.apache.tapestry.engine.IEngineService">
<invoke-factory>
<construct class="com.ttdev.album.ImageService">
<set-object property="linkFactory"
value="service:tapestry.url.LinkFactory"/>
</construct>
</invoke-factory>
</service-point>
<contribution
configuration-id="tapestry.services.ApplicationServices">
<service name="image"
object="service:com.ttdev.album.ImageService"/>
</contribution>
<contribution configuration-id="tapestry.url.ServiceEncoders">
<page-service-encoder id="page" extension="html"
service="page"/>
<encoder id="image"
object="instance:com.ttdev.album.ImageServiceEncoder"/>
</contribution>
<implementation service-id="tapestry.multipart.MultipartDecoder">
<create-instance
class="org.apache.tapestry.multipart.MultipartDecoderImpl,maxSize=-1"
model="threaded" />
</implementation>
</module>
-----Mensaje original-----
De: Ryan Holmes [mailto:[EMAIL PROTECTED]
Enviado el: Miércoles, 16 de Agosto de 2006 03:57 p.m.
Para: Tapestry users
Asunto: Re: Unable to construct service
tapestry.multipart.ServletMultipartDecoder
IIRC, the name of that service changed between Tapestry 4.0 and
4.0.1, but your stacktrace looks correct (well, as correct as a
stacktrace can be).
What versions of the following jars do you have: tapestry, hivemind,
hivemind-lib and commons-fileupload?
Also, are you specifying a maximum upload size in your hivemodule.xml
file? It will look something like this:
<implementation service-
id="tapestry.multipart.ServletMultipartDecoder">
<create-instance
class="org.apache.tapestry.multipart.MultipartDecoderImpl,maxSize=500000
0000"
model="threaded" />
</implementation>
If so, copy and paste that into your response.
-Ryan
On Aug 16, 2006, at 7:26 AM, Andrés Nates wrote:
> When I'm run de example of the component upload, this example has a
> basic
> upload component for images (jpeg). This is the error message
>
>
>
>
>
>
>
>
>
> org.apache.hivemind.ApplicationRuntimeException: Unable to
> construct service
> tapestry.multipart.ServletMultipartDecoder: Could not load class
> org.apache.tapestry.multipart.MultipartDecoderImpl from
> WebappClassLoader
> delegate: false
> repositories:
> /WEB-INF/classes/
> ----------> Parent Classloader:
> [EMAIL PROTECTED]
> : org/apache/commons/fileupload/servlet/ServletFileUpload
>
> org.apache.hivemind.impl.servicemodel.ThreadedServiceModel.constructSe
> rviceF
> orCurrentThread(ThreadedServiceModel.java:186)
>
> org.apache.hivemind.impl.servicemodel.ThreadedServiceModel.getServiceI
> mpleme
> ntationForCurrentThread(ThreadedServiceModel.java:157)
>
> $ServletMultipartDecoder_10d0ea93c7e._service
> ($ServletMultipartDecoder_10d0e
> a93c7e.java)
>
> $ServletMultipartDecoder_10d0ea93c7e.cleanup
> ($ServletMultipartDecoder_10d0ea
> 93c7e.java)
>
> $ServletMultipartDecoder_10d0ea93c7f.cleanup
> ($ServletMultipartDecoder_10d0ea
> 93c7f.java)
>
> org.apache.tapestry.multipart.MultipartDecoderFilter.service
> (MultipartDecode
> rFilter.java:57)
>
> $ServletRequestServicerFilter_10d0ea93cbe.service
> ($ServletRequestServicerFil
> ter_10d0ea93cbe.java)
>
> $ServletRequestServicer_10d0ea93cc6.service
> ($ServletRequestServicer_10d0ea93
> cc6.java)
>
> org.apache.tapestry.services.impl.SetupRequestEncoding.service
> (SetupRequestE
> ncoding.java:53)
>
> $ServletRequestServicerFilter_10d0ea93cc2.service
> ($ServletRequestServicerFil
> ter_10d0ea93cc2.java)
>
> $ServletRequestServicer_10d0ea93cc6.service
> ($ServletRequestServicer_10d0ea93
> cc6.java)
>
> $ServletRequestServicer_10d0ea93cb8.service
> ($ServletRequestServicer_10d0ea93
> cb8.java)
>
> org.apache.tapestry.ApplicationServlet.doService
> (ApplicationServlet.java:123
> )
>
> org.apache.tapestry.ApplicationServlet.doPost
> (ApplicationServlet.java:168)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
>
>
>
>
> Anybody know how to fix this error ?
>
>
>
>
>
>
>
> Cordialmente,
> ~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~
> ANDRÉS NATES M.
> Director de implantación e infraestructura.
> Nuevos Medios
> Calle 25 No. 127-220 Autopista Cali-Jamundí Km. 7
> Tel: (572) - 524 07 77 Ext. 2173
> Email: <mailto:[EMAIL PROTECTED]>
> [EMAIL PROTECTED]
> Cali <mailto:[EMAIL PROTECTED]> - Colombia
> POLÍTICA DE CALIDAD
> Proveer soluciones tecnológicas de software para la gestión del
> conocimiento cumpliendo lo pactado con los clientes mediante el
> mejoramiento continuo y la innovación, apoyado en la sinergia
> corporativa de Parquesoft.
>
>
>
Ryan Holmes, CISSP
[EMAIL PROTECTED]
ph. (213) 626-0026
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.0/420 - Release Date: 16/08/2006
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer
Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.