You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Will (JIRA)" <de...@tapestry.apache.org> on 2008/02/08 00:25:08 UTC
[jira] Created: (TAPESTRY-2135) Adding tapestry-upload to app
causes TapestryFilter to fail initialization
Adding tapestry-upload to app causes TapestryFilter to fail initialization
--------------------------------------------------------------------------
Key: TAPESTRY-2135
URL: https://issues.apache.org/jira/browse/TAPESTRY-2135
Project: Tapestry
Issue Type: Bug
Components: tapestry-upload
Environment: Glassfish 2
Reporter: Will
Fix For: 5.0.10, 5.0.9
After adding tapestry-upload to my app, TapestryFilter fails to initialize with the following exception:
java.lang.RuntimeException: Service id 'MultipartDecoder' has already been defined by org.apache.tapestry.upload.services.UploadModule.buildMultipartDecoder(ThreadCleanupHub, RegistryShutdownHub, ObjectLocator) (at UploadModule.java:49) and may not be redefined by org.apache.tapestry.upload.services.UploadModule.buildMultipartDecoder(ThreadCleanupHub, RegistryShutdownHub, ObjectLocator) (at UploadModule.java:49). You should rename one of the service builder methods.
at org.apache.tapestry.ioc.internal.RegistryImpl.<init>(RegistryImpl.java:174)
at org.apache.tapestry.ioc.RegistryBuilder.build(RegistryBuilder.java:131)
at org.apache.tapestry.internal.TapestryAppInitializer.getRegistry(TapestryAppInitializer.java:143)
at org.apache.tapestry.TapestryFilter.init(TapestryFilter.java:71)
--
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
[jira] Updated: (TAPESTRY-2135) Adding tapestry-upload to app
causes TapestryFilter to fail initialization
Posted by "Will (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Will updated TAPESTRY-2135:
---------------------------
Fix Version/s: (was: 5.0.10)
(was: 5.0.9)
Affects Version/s: 5.0.10
5.0.9
> Adding tapestry-upload to app causes TapestryFilter to fail initialization
> --------------------------------------------------------------------------
>
> Key: TAPESTRY-2135
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2135
> Project: Tapestry
> Issue Type: Bug
> Components: tapestry-upload
> Affects Versions: 5.0.9, 5.0.10
> Environment: Glassfish 2
> Reporter: Will
>
> After adding tapestry-upload to my app, TapestryFilter fails to initialize with the following exception:
> java.lang.RuntimeException: Service id 'MultipartDecoder' has already been defined by org.apache.tapestry.upload.services.UploadModule.buildMultipartDecoder(ThreadCleanupHub, RegistryShutdownHub, ObjectLocator) (at UploadModule.java:49) and may not be redefined by org.apache.tapestry.upload.services.UploadModule.buildMultipartDecoder(ThreadCleanupHub, RegistryShutdownHub, ObjectLocator) (at UploadModule.java:49). You should rename one of the service builder methods.
> at org.apache.tapestry.ioc.internal.RegistryImpl.<init>(RegistryImpl.java:174)
> at org.apache.tapestry.ioc.RegistryBuilder.build(RegistryBuilder.java:131)
> at org.apache.tapestry.internal.TapestryAppInitializer.getRegistry(TapestryAppInitializer.java:143)
> at org.apache.tapestry.TapestryFilter.init(TapestryFilter.java:71)
--
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
[jira] Commented: (TAPESTRY-2135) Adding tapestry-upload to app
causes TapestryFilter to fail initialization
Posted by "Will (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12567201#action_12567201 ]
Will commented on TAPESTRY-2135:
--------------------------------
Ok, it works when I put all of the jars in my .ear file and link via the jar manifest. Perhaps Glassfish classloader weirdness?
> Adding tapestry-upload to app causes TapestryFilter to fail initialization
> --------------------------------------------------------------------------
>
> Key: TAPESTRY-2135
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2135
> Project: Tapestry
> Issue Type: Bug
> Components: tapestry-upload
> Affects Versions: 5.0.9, 5.0.10
> Environment: Glassfish 2
> Reporter: Will
>
> After adding tapestry-upload to my app, TapestryFilter fails to initialize with the following exception:
> java.lang.RuntimeException: Service id 'MultipartDecoder' has already been defined by org.apache.tapestry.upload.services.UploadModule.buildMultipartDecoder(ThreadCleanupHub, RegistryShutdownHub, ObjectLocator) (at UploadModule.java:49) and may not be redefined by org.apache.tapestry.upload.services.UploadModule.buildMultipartDecoder(ThreadCleanupHub, RegistryShutdownHub, ObjectLocator) (at UploadModule.java:49). You should rename one of the service builder methods.
> at org.apache.tapestry.ioc.internal.RegistryImpl.<init>(RegistryImpl.java:174)
> at org.apache.tapestry.ioc.RegistryBuilder.build(RegistryBuilder.java:131)
> at org.apache.tapestry.internal.TapestryAppInitializer.getRegistry(TapestryAppInitializer.java:143)
> at org.apache.tapestry.TapestryFilter.init(TapestryFilter.java:71)
--
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
[jira] Closed: (TAPESTRY-2135) Adding tapestry-upload to app causes
TapestryFilter to fail initialization
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAPESTRY-2135.
------------------------------------------
Resolution: Invalid
This sounds like a deployment/configuration issue. Sounds like the tapestry-upload JAR may have been present on the classpath multiple times due to WAR/EAR packaging issues.
> Adding tapestry-upload to app causes TapestryFilter to fail initialization
> --------------------------------------------------------------------------
>
> Key: TAPESTRY-2135
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2135
> Project: Tapestry
> Issue Type: Bug
> Components: tapestry-upload
> Affects Versions: 5.0.9, 5.0.10
> Environment: Glassfish 2
> Reporter: Will
> Assignee: Howard M. Lewis Ship
>
> After adding tapestry-upload to my app, TapestryFilter fails to initialize with the following exception:
> java.lang.RuntimeException: Service id 'MultipartDecoder' has already been defined by org.apache.tapestry.upload.services.UploadModule.buildMultipartDecoder(ThreadCleanupHub, RegistryShutdownHub, ObjectLocator) (at UploadModule.java:49) and may not be redefined by org.apache.tapestry.upload.services.UploadModule.buildMultipartDecoder(ThreadCleanupHub, RegistryShutdownHub, ObjectLocator) (at UploadModule.java:49). You should rename one of the service builder methods.
> at org.apache.tapestry.ioc.internal.RegistryImpl.<init>(RegistryImpl.java:174)
> at org.apache.tapestry.ioc.RegistryBuilder.build(RegistryBuilder.java:131)
> at org.apache.tapestry.internal.TapestryAppInitializer.getRegistry(TapestryAppInitializer.java:143)
> at org.apache.tapestry.TapestryFilter.init(TapestryFilter.java:71)
--
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
[jira] Commented: (TAPESTRY-2135) Adding tapestry-upload to app
causes TapestryFilter to fail initialization
Posted by "Will (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12567188#action_12567188 ]
Will commented on TAPESTRY-2135:
--------------------------------
Hi Howard,
I haven't done anything with the tapestry-upload components in my AppModule. Simply adding commons-io, commons-fileupload, and tapestry-upload jars to my war WEB-INF/lib causes this.
Thanks,
Will
> Adding tapestry-upload to app causes TapestryFilter to fail initialization
> --------------------------------------------------------------------------
>
> Key: TAPESTRY-2135
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2135
> Project: Tapestry
> Issue Type: Bug
> Components: tapestry-upload
> Affects Versions: 5.0.9, 5.0.10
> Environment: Glassfish 2
> Reporter: Will
>
> After adding tapestry-upload to my app, TapestryFilter fails to initialize with the following exception:
> java.lang.RuntimeException: Service id 'MultipartDecoder' has already been defined by org.apache.tapestry.upload.services.UploadModule.buildMultipartDecoder(ThreadCleanupHub, RegistryShutdownHub, ObjectLocator) (at UploadModule.java:49) and may not be redefined by org.apache.tapestry.upload.services.UploadModule.buildMultipartDecoder(ThreadCleanupHub, RegistryShutdownHub, ObjectLocator) (at UploadModule.java:49). You should rename one of the service builder methods.
> at org.apache.tapestry.ioc.internal.RegistryImpl.<init>(RegistryImpl.java:174)
> at org.apache.tapestry.ioc.RegistryBuilder.build(RegistryBuilder.java:131)
> at org.apache.tapestry.internal.TapestryAppInitializer.getRegistry(TapestryAppInitializer.java:143)
> at org.apache.tapestry.TapestryFilter.init(TapestryFilter.java:71)
--
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
[jira] Commented: (TAPESTRY-2135) Adding tapestry-upload to app
causes TapestryFilter to fail initialization
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12566891#action_12566891 ]
Howard M. Lewis Ship commented on TAPESTRY-2135:
------------------------------------------------
This looks odd, more like you have the UploadModule added *twice*.
You should just be adding the tapestry-upload JAR to the classpath, you should not have to do any further configuration (such as adding a @SubModule annotation to your AppModule).
> Adding tapestry-upload to app causes TapestryFilter to fail initialization
> --------------------------------------------------------------------------
>
> Key: TAPESTRY-2135
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2135
> Project: Tapestry
> Issue Type: Bug
> Components: tapestry-upload
> Affects Versions: 5.0.9, 5.0.10
> Environment: Glassfish 2
> Reporter: Will
>
> After adding tapestry-upload to my app, TapestryFilter fails to initialize with the following exception:
> java.lang.RuntimeException: Service id 'MultipartDecoder' has already been defined by org.apache.tapestry.upload.services.UploadModule.buildMultipartDecoder(ThreadCleanupHub, RegistryShutdownHub, ObjectLocator) (at UploadModule.java:49) and may not be redefined by org.apache.tapestry.upload.services.UploadModule.buildMultipartDecoder(ThreadCleanupHub, RegistryShutdownHub, ObjectLocator) (at UploadModule.java:49). You should rename one of the service builder methods.
> at org.apache.tapestry.ioc.internal.RegistryImpl.<init>(RegistryImpl.java:174)
> at org.apache.tapestry.ioc.RegistryBuilder.build(RegistryBuilder.java:131)
> at org.apache.tapestry.internal.TapestryAppInitializer.getRegistry(TapestryAppInitializer.java:143)
> at org.apache.tapestry.TapestryFilter.init(TapestryFilter.java:71)
--
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
[jira] Assigned: (TAPESTRY-2135) Adding tapestry-upload to app
causes TapestryFilter to fail initialization
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-2135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship reassigned TAPESTRY-2135:
----------------------------------------------
Assignee: Howard M. Lewis Ship
> Adding tapestry-upload to app causes TapestryFilter to fail initialization
> --------------------------------------------------------------------------
>
> Key: TAPESTRY-2135
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2135
> Project: Tapestry
> Issue Type: Bug
> Components: tapestry-upload
> Affects Versions: 5.0.9, 5.0.10
> Environment: Glassfish 2
> Reporter: Will
> Assignee: Howard M. Lewis Ship
>
> After adding tapestry-upload to my app, TapestryFilter fails to initialize with the following exception:
> java.lang.RuntimeException: Service id 'MultipartDecoder' has already been defined by org.apache.tapestry.upload.services.UploadModule.buildMultipartDecoder(ThreadCleanupHub, RegistryShutdownHub, ObjectLocator) (at UploadModule.java:49) and may not be redefined by org.apache.tapestry.upload.services.UploadModule.buildMultipartDecoder(ThreadCleanupHub, RegistryShutdownHub, ObjectLocator) (at UploadModule.java:49). You should rename one of the service builder methods.
> at org.apache.tapestry.ioc.internal.RegistryImpl.<init>(RegistryImpl.java:174)
> at org.apache.tapestry.ioc.RegistryBuilder.build(RegistryBuilder.java:131)
> at org.apache.tapestry.internal.TapestryAppInitializer.getRegistry(TapestryAppInitializer.java:143)
> at org.apache.tapestry.TapestryFilter.init(TapestryFilter.java:71)
--
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