You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org> on 2006/07/15 21:17:14 UTC

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

     [ http://issues.apache.org/jira/browse/TAPESTRY-995?page=all ]

Jesse Kuhnert resolved TAPESTRY-995.
------------------------------------

    Fix Version/s: 4.1
       Resolution: Fixed

Fixed

> Overriding maximum file upload size throws Hivemind exception
> -------------------------------------------------------------
>
>                 Key: TAPESTRY-995
>                 URL: http://issues.apache.org/jira/browse/TAPESTRY-995
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Framework, Examples, Documentation, 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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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