You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Claudiu Dobre (JIRA)" <de...@tapestry.apache.org> on 2007/05/18 17:11:16 UTC

[jira] Commented: (TAPESTRY-995) Overriding maximum file upload size throws Hivemind exception

    [ https://issues.apache.org/jira/browse/TAPESTRY-995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12496907 ] 

Claudiu Dobre commented on TAPESTRY-995:
----------------------------------------

It is not a bug of Tapestry 4.0.2!

The documentation of Upload component has a wrong service ID  to the Decoder service.

The documentation looks like:

<implementation service-id="tapestry.multipart.MultipartDecoder">
<create-instance class="org.apache.tapestry.multipart.MultipartDecoderImpl,maxSize=-1" model="threaded" />
</implementation> 


and it should be 
<implementation service-id="tapestry.multipart.ServletMultipartDecoder">
<create-instance class="org.apache.tapestry.multipart.MultipartDecoderImpl,maxSize=-1" model="threaded" />
</implementation> 

So the service ID is  "tapestry.multipart.ServletMultipartDecoder". 
You can take a look at tapestry-4.0.2.jar/META-INF/tapestry.multipart.xml

> Overriding maximum file upload size throws Hivemind exception
> -------------------------------------------------------------
>
>                 Key: TAPESTRY-995
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-995
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Documentation, Examples, Framework, Web
>    Affects Versions: 4.0.2
>         Environment: Linux, Tomcat 5.5.17, Hivemind 1.1.1
>            Reporter: Mathijs den Burger
>            Priority: Critical
>             Fix For: 4.1
>
>
> The example on the Tapestry web site of how to override the maximum file upload size (in the documentation of the Upload component) does not work. I added the example code to my webapp's hivemodule.xml:
> <?xml version="1.0"?>
> <module id="app" version="1.0.0" package="services">
>     [...]
>     <implementation service-id="tapestry.multipart.MultipartDecoder">
>         <create-instance class="org.apache.tapestry.multipart.MultipartDecoderImpl,maxSize=-1" model="threaded" />
>     </implementation> 
> </module>
> When the app. is then deployed in Tomcat, an exception is thrown during initialization:
> 2006-06-28 11:14:08,135 [main] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/test] - Servlet /test threw load() exception
> org.apache.hivemind.ApplicationRuntimeException: Error at context:/WEB-INF/hivemodule.xml, line 53, column 109: Module app contributed to unknown service point tapestry.multipart.MultipartDecoder. The contribution has been ignored. [context:/WEB-INF/hivemodule.xml, line 53, column 109]
> 	at org.apache.hivemind.impl.StrictErrorHandler.error(StrictErrorHandler.java:39)
> 	at org.apache.hivemind.impl.RegistryInfrastructureConstructor.addServiceInstanceBuilder(RegistryInfrastructureConstructor.java:568)
> 	at org.apache.hivemind.impl.RegistryInfrastructureConstructor.addImplementations(RegistryInfrastructureConstructor.java:544)
> 	at org.apache.hivemind.impl.RegistryInfrastructureConstructor.addImplementations(RegistryInfrastructureConstructor.java:423)
> 	at org.apache.hivemind.impl.RegistryInfrastructureConstructor.addImplementationsAndContributions(RegistryInfrastructureConstructor.java:399)
> 	at org.apache.hivemind.impl.RegistryInfrastructureConstructor.constructRegistryInfrastructure(RegistryInfrastructureConstructor.java:176)
> 	at org.apache.hivemind.impl.RegistryBuilder.constructRegistry(RegistryBuilder.java:151)
> 	at org.apache.tapestry.ApplicationServlet.constructRegistry(ApplicationServlet.java:253)
> 	at org.apache.tapestry.ApplicationServlet.init(ApplicationServlet.java:194)
> 	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
> 	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
> 	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
> 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
> 	at org.apache.catalina.core.StandardService.start(StandardService.java:450)
> 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
> 	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:585)
> 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org