Overriding maximum file upload size throws Hivemind exception
-------------------------------------------------------------
Key: TAPESTRY-995
URL: http://issues.apache.org/jira/browse/TAPESTRY-995
Project: Tapestry
Type: Bug
Components: Framework, Examples, Documentation, Web
Versions: 4.0.2
Environment: Linux, Tomcat 5.5.17, Hivemind 1.1.1
Reporter: Mathijs den Burger
Priority: Critical
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]