1 Reply Latest reply on Mar 5, 2006 12:26 PM by Thomas Diesler

    JBoss.net error

    Saikat Kanjilal Newbie

      I am building a webservice using the following:

      Version: JBoss 3.2.5
      Module: JBoss.net
      Axis Version Being Used: 1.1

      I created a .wsr file as well as a .ear file and inside the .wsr file I put in my webservice class as well as my web-service.xml

      When I go to deploy my application though I get the followign error:

      java.lang.Exception: The OperationDesc for uploadTransmission was not synchronized to a method of com.adobe.esd.headlights.server.filecapture.webservice.FileCaptureService

      I have researched the web heavily but didnt see a solution anywhere on this. Listed below are my web-service.xml file and my java webservice class.

      contents of web-service.xml
      <!-- This deploys the file attachment service. -->
      <deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java" xmlns:ns1="urn:FileCaptureService" >

      qname="ns1:DataHandler" xmlns:ns1="http://java.sun.com/jax-rpc-ri/internal"
      type="java:javax.activation.DataHandler" serializer="org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory"deserializer="org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory"

      Contents of FileCaptureService.java
      package com.adobe.esd.headlights.server.filecapture.webservice;

      import java.io.File;
      import java.io.FileOutputStream;
      import java.util.Collection;
      import java.util.Iterator;

      import javax.activation.DataHandler;

      import org.apache.axis.Message;
      import org.apache.axis.MessageContext;
      import org.apache.axis.attachments.AttachmentPart;
      import org.apache.axis.attachments.Attachments;

      public class FileCaptureService {

      public boolean uploadTransmission(DataHandler dh)
      boolean retval = false;
      String fileDir = "/opt/usage";
      String name;
      if (dh!=null)
      dh.writeTo(new FileOutputStream(new File (fileDir+name)));
      catch( Exception e )
      return retval;

      Any help would be much appreciated, I have been stuck on this for a day or so now and dont see anything obvious.

      Thanks Again