Tapestry 5
  1. Tapestry 5
  2. TAP5-1995

Tapestry5 Application can not be deployed as Tomcat7 HotDeploy Package

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.3.3
    • Fix Version/s: 5.3.7, 5.4
    • Component/s: plastic
    • Labels:
      None

      Description

      1. WAR file is named like

      yourapp##1.2.3.war
      

      2. Results in path

      webapps/yourapp##1.2.3
      

      3. Tapestry throws error:

      Caused by: java.lang.RuntimeException: Failure reading bytecode for class com.biso.casingdb.web.services.AppModule: /home/apache-tomcat-7.0.26/webapps/yourapp%23%231.2.3/WEB-INF/classes/AppModule.class (No such file or directory)
              at org.apache.tapestry5.internal.plastic.PlasticInternalUtils.readBytecodeForClass(PlasticInternalUtils.java:384)
              at org.apache.tapestry5.ioc.internal.services.PlasticProxyFactoryImpl.readClassNode(PlasticProxyFactoryImpl.java:107)
              at org.apache.tapestry5.ioc.internal.services.PlasticProxyFactoryImpl.getMemberLocation(PlasticProxyFactoryImpl.java:141)
              at org.apache.tapestry5.ioc.internal.services.PlasticProxyFactoryImpl.getMethodLocation(PlasticProxyFactoryImpl.java:114)
              at org.apache.tapestry5.ioc.internal.util.InternalUtils.asString(InternalUtils.java:85)
              at org.apache.tapestry5.ioc.internal.ContributionDefImpl.toString(ContributionDefImpl.java:59)
              at java.lang.String.valueOf(String.java:2902)
              at java.lang.StringBuilder.append(StringBuilder.java:128)
              at org.apache.tapestry5.ioc.internal.RegistryImpl.addToMappedConfiguration(RegistryImpl.java:557)
              at org.apache.tapestry5.ioc.internal.RegistryImpl.getMappedConfiguration(RegistryImpl.java:515)
              at org.apache.tapestry5.ioc.internal.ServiceResourcesImpl$3.invoke(ServiceResourcesImpl.java:126)
              at org.apache.tapestry5.ioc.internal.ServiceResourcesImpl$3.invoke(ServiceResourcesImpl.java:123)
              at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
              ... 224 more
      Caused by: java.io.FileNotFoundException: /home/apache-tomcat-7.0.26/webapps/yourapp%23%231.2.3/WEB-INF/classes/AppModule.class (No such file or directory)
              at java.io.FileInputStream.open(Native Method)
              at java.io.FileInputStream.<init>(FileInputStream.java:138)
              at org.apache.tapestry5.internal.plastic.PlasticInternalUtils.getStreamForPath(PlasticInternalUtils.java:408)
              at org.apache.tapestry5.internal.plastic.PlasticInternalUtils.readBytecodeForClass(PlasticInternalUtils.java:370)
              ... 236 more
      
      1. TAP5-1995.patch
        0.9 kB
        Chris Poulsen

        Issue Links

          Activity

          Thomas Hackel created issue -
          Thomas Hackel made changes -
          Field Original Value New Value
          Description 1. WAR file is named like
          {noformat}
          yourapp##1.2.3.war
          {noformat}
          2. Results in path
          {noformat}
          webapps/yourapp##1.2.3
          {noformat}
          3. Tapestry throws error:
          {noformat}
          Caused by: java.lang.RuntimeException: Failure reading bytecode for class com.biso.casingdb.web.services.AppModule: /home/apache-tomcat-7.0.26/webapps/yourapp%23%231.2.3/WEB-INF/classes/AppModule.class (No such file or directory)
                  at org.apache.tapestry5.internal.plastic.PlasticInternalUtils.readBytecodeForClass(PlasticInternalUtils.java:384)
                  at org.apache.tapestry5.ioc.internal.services.PlasticProxyFactoryImpl.readClassNode(PlasticProxyFactoryImpl.java:107)
                  at org.apache.tapestry5.ioc.internal.services.PlasticProxyFactoryImpl.getMemberLocation(PlasticProxyFactoryImpl.java:141)
                  at org.apache.tapestry5.ioc.internal.services.PlasticProxyFactoryImpl.getMethodLocation(PlasticProxyFactoryImpl.java:114)
                  at org.apache.tapestry5.ioc.internal.util.InternalUtils.asString(InternalUtils.java:85)
                  at org.apache.tapestry5.ioc.internal.ContributionDefImpl.toString(ContributionDefImpl.java:59)
                  at java.lang.String.valueOf(String.java:2902)
                  at java.lang.StringBuilder.append(StringBuilder.java:128)
                  at org.apache.tapestry5.ioc.internal.RegistryImpl.addToMappedConfiguration(RegistryImpl.java:557)
                  at org.apache.tapestry5.ioc.internal.RegistryImpl.getMappedConfiguration(RegistryImpl.java:515)
                  at org.apache.tapestry5.ioc.internal.ServiceResourcesImpl$3.invoke(ServiceResourcesImpl.java:126)
                  at org.apache.tapestry5.ioc.internal.ServiceResourcesImpl$3.invoke(ServiceResourcesImpl.java:123)
                  at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
                  ... 224 more
          Caused by: java.io.FileNotFoundException: /home/casingdb/apache-tomcat-7.0.26/webapps/casingdb%23%231.0.8/WEB-INF/classes/com/biso/casingdb/web/services/AppModule.class (No such file or directory)
                  at java.io.FileInputStream.open(Native Method)
                  at java.io.FileInputStream.<init>(FileInputStream.java:138)
                  at org.apache.tapestry5.internal.plastic.PlasticInternalUtils.getStreamForPath(PlasticInternalUtils.java:408)
                  at org.apache.tapestry5.internal.plastic.PlasticInternalUtils.readBytecodeForClass(PlasticInternalUtils.java:370)
                  ... 236 more
          {noformat}
          1. WAR file is named like
          {noformat}
          yourapp##1.2.3.war
          {noformat}
          2. Results in path
          {noformat}
          webapps/yourapp##1.2.3
          {noformat}
          3. Tapestry throws error:
          {noformat}
          Caused by: java.lang.RuntimeException: Failure reading bytecode for class com.biso.casingdb.web.services.AppModule: /home/apache-tomcat-7.0.26/webapps/yourapp%23%231.2.3/WEB-INF/classes/AppModule.class (No such file or directory)
                  at org.apache.tapestry5.internal.plastic.PlasticInternalUtils.readBytecodeForClass(PlasticInternalUtils.java:384)
                  at org.apache.tapestry5.ioc.internal.services.PlasticProxyFactoryImpl.readClassNode(PlasticProxyFactoryImpl.java:107)
                  at org.apache.tapestry5.ioc.internal.services.PlasticProxyFactoryImpl.getMemberLocation(PlasticProxyFactoryImpl.java:141)
                  at org.apache.tapestry5.ioc.internal.services.PlasticProxyFactoryImpl.getMethodLocation(PlasticProxyFactoryImpl.java:114)
                  at org.apache.tapestry5.ioc.internal.util.InternalUtils.asString(InternalUtils.java:85)
                  at org.apache.tapestry5.ioc.internal.ContributionDefImpl.toString(ContributionDefImpl.java:59)
                  at java.lang.String.valueOf(String.java:2902)
                  at java.lang.StringBuilder.append(StringBuilder.java:128)
                  at org.apache.tapestry5.ioc.internal.RegistryImpl.addToMappedConfiguration(RegistryImpl.java:557)
                  at org.apache.tapestry5.ioc.internal.RegistryImpl.getMappedConfiguration(RegistryImpl.java:515)
                  at org.apache.tapestry5.ioc.internal.ServiceResourcesImpl$3.invoke(ServiceResourcesImpl.java:126)
                  at org.apache.tapestry5.ioc.internal.ServiceResourcesImpl$3.invoke(ServiceResourcesImpl.java:123)
                  at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
                  ... 224 more
          Caused by: java.io.FileNotFoundException: /home/apache-tomcat-7.0.26/webapps/yourapp%23%231.2.3/WEB-INF/classes/AppModule.class (No such file or directory)
                  at java.io.FileInputStream.open(Native Method)
                  at java.io.FileInputStream.<init>(FileInputStream.java:138)
                  at org.apache.tapestry5.internal.plastic.PlasticInternalUtils.getStreamForPath(PlasticInternalUtils.java:408)
                  at org.apache.tapestry5.internal.plastic.PlasticInternalUtils.readBytecodeForClass(PlasticInternalUtils.java:370)
                  ... 236 more
          {noformat}
          Chris Poulsen made changes -
          Attachment TAP5-1995.patch [ 12549039 ]
          Kalle Korhonen made changes -
          Assignee Kalle Korhonen [ kaosko ]
          Kalle Korhonen made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 5.3.7 [ 12323355 ]
          Fix Version/s 5.4 [ 12316401 ]
          Resolution Fixed [ 1 ]
          Kalle Korhonen made changes -
          Link This issue is duplicated by TAP5-2015 [ TAP5-2015 ]
          Kalle Korhonen made changes -
          Link This issue is duplicated by TAP5-2067 [ TAP5-2067 ]
          Jochen Kemnade made changes -
          Link This issue breaks TAP5-2365 [ TAP5-2365 ]

            People

            • Assignee:
              Kalle Korhonen
              Reporter:
              Thomas Hackel
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development