0 Replies Latest reply on Apr 25, 2009 4:09 AM by kinson jiang

    How to upload with Flex

    kinson jiang Newbie
      I am just wondering if I can upload file from Flex and using Seam uploading bean?


      By the way, I have a Upload Servlet programming, it work well under normal web server,
      when I try to put this programming in the Flex+Seam+Graniteds, it get error
      messages on ClassNotFoundException. I have no idea if it is caused by Seam or
      Graniteds. Are there someone have same experience?

      Thanks,


      Susong


      21:40:09,455 INFO [[/consoleflex]] Marking servlet UploadServlet as unavailable
      21:40:09,455 ERROR [[/consoleflex]] Error loading
      org.jboss.web.tomcat.service.WebCtxLoader$ENCLoader@1fdfb42
      com.test.servlet.UploadServlet
      java.lang.ClassNotFoundException: com.test.servlet.UploadServlet
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at
      org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1083)
      at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:806)
      at
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:1\
      29)
      at
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1\
      75)
      at
      org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociatio\
      nValve.java:182)
      at
      org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      at
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at
      org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionVa\
      lve.java:157)
      at
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109\
      )
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
      at
      org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:856)
      at
      org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http1\
      1AprProtocol.java:566)
      at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
      at java.lang.Thread.run(Unknown Source)
      21:40:09,456 ERROR [[UploadServlet]] Allocate exception for servlet
      UploadServlet
      java.lang.ClassNotFoundException: com.test.servlet.UploadServlet
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at
      org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1083)
      at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:806)
      at
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:1\
      29)
      at
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1\
      75)
      at
      org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociatio\
      nValve.java:182)
      at
      org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      at
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at
      org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionVa\
      lve.java:157)
      at
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109\
      )
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
      at
      org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:856)
      at
      org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http1\
      1AprProtocol.java:566)
      at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
      at java.lang.Thread.run(Unknown Source)