0

我使用 JQuery 开发了一个 Tapestry 应用程序。在部署期间,我收到一个错误:

cat MPI-alertes.log
[MPI_SYS] 2013-08-30 16:29:38,110 ERROR [org.apache.catalina.core.StandardContext :: filterStart] Exception au démarrage                                      du filtre app
java.lang.RuntimeException: Exception loading module(s) from manifest jar:file:/usr/local/M2M/RMD_MPIIHM-1.1/httpd1/docs                                     /WEB-INF/lib/tapestry5-jquery-3.3.6.jar!/META-INF/MANIFEST.MF: Failure loading Tapestry IoC module class org.got5.tapest                                     ry5.jquery.services.JQueryModule: Error invoking service binder method org.got5.tapestry5.jquery.services.JQueryModule.b                                     ind(ServiceBinder) (at JQueryModule.java:155): org/apache/tapestry5/upload/services/UploadedFile
        at org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:123)
        at org.apache.tapestry5.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:77)
        at org.apache.tapestry5.internal.TapestryAppInitializer.<init>(TapestryAppInitializer.java:124)
        at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:103)
        at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221)
        at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)
        at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
        at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:448)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        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:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.lang.RuntimeException: Failure loading Tapestry IoC module class org.got5.tapestry5.jquery.services.JQue                                     ryModule: Error invoking service binder method org.got5.tapestry5.jquery.services.JQueryModule.bind(ServiceBinder) (at J                                     QueryModule.java:155): org/apache/tapestry5/upload/services/UploadedFile
        at org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:162)
        at org.apache.tapestry5.ioc.IOCUtilities.addModulesInList(IOCUtilities.java:137)
        at org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:107)
        ... 21 more

版本是:tapestry5-jquery-3.3.6 java版本“1.5.0_16”tapestry-core-5.3.7

是不是版本的问题?谢谢你。

4

1 回答 1

1

我有两个问题:

  • Tapestry5-jquery-3.3.6 和 Tapestry-core-5.3.7 不兼容。我用tapestry5-jquery-3.3.4 替换了tapestry5-jquery-3.3.6。

  • JQuery 需要挂毯上传。我在 pom.xml 中添加:

    <dependency>
        <groupId>org.apache.tapestry</groupId>
        <artifactId>tapestry-upload</artifactId>
        <version>5.3.7</version>
    </dependency>
    

现在,它起作用了。

于 2013-09-10T13:32:07.613 回答