Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-1301

sample-helloworldjsonrpc.war built by ant script does not deploy into Tomcat

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • Java-SCA-0.90
    • Java-SCA-0.90
    • Java SCA Samples
    • None
    • Windows XP

    Description

      There is a problem with the helloworld-jsonrpc sample for Java-SCA-0.90 rc2. The pre-built war file in the binary distro deploys and runs successfully. However, a seemingly identical war file built by "ant package" does not deploy successfully into a running Tomcat server (see below for the exception that is thrown). If I do a cold start of the Tomcat server with the war file already in the webapps directory, the war deploys OK and the test runs.

      Here is the failure symptom:

      INFO: Server startup in 1813 ms
      26-May-2007 19:38:37 org.apache.catalina.startup.HostConfig deployWAR
      INFO: Deploying web application archive sample-helloworldjsonrpc.war
      26-May-2007 19:38:42 com.metaparadigm.jsonrpc.JSONRPCBridge registerLocalArgResolver
      INFO: registered local arg resolver com.metaparadigm.jsonrpc.HttpServletRequestArgResolver for local class javax.servlet.http.HttpServletRequest with context javax.servlet.http.HttpServletRequest
      26-May-2007 19:38:42 com.metaparadigm.jsonrpc.JSONRPCBridge registerLocalArgResolver
      INFO: registered local arg resolver com.metaparadigm.jsonrpc.HttpSessionArgResolver for local class javax.servlet.http.HttpSession with context javax.servlet.http.HttpServletRequest
      26-May-2007 19:38:42 com.metaparadigm.jsonrpc.JSONRPCBridge registerLocalArgResolver
      INFO: registered local arg resolver com.metaparadigm.jsonrpc.JSONRPCBridgeServletArgResolver for local class com.metaparadigm.jsonrpc.JSONRPCBridge with context javax.servlet.http.HttpServletRequest
      26-May-2007 19:38:42 org.apache.catalina.session.StandardManager doLoad
      SEVERE: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.tuscany.sca.core.invocation.JDKInvocationHandler
      java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.tuscany.sca.core.invocation.JDKInvocationHandler
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1309)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
      at java.util.HashMap.readObject(HashMap.java:1067)
      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 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
      at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1386)
      at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:921)
      at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:393)
      at org.apache.catalina.session.StandardManager.load(StandardManager.java:320)
      (cut)

      Can anyone else confirm these problem symptoms and throw any light on how these two war files differ? I am attaching both files to this JIRA.

      Attachments

        1. sample-helloworldjsonrpc.war
          2.76 MB
          Simon Nash
        2. sample-helloworldjsonrpc.war
          2.77 MB
          Simon Nash

        Activity

          People

            scnash Simon Nash
            scnash Simon Nash
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: