0 Replies Latest reply on Dec 7, 2011 5:05 AM by Sivaraj R

    Issue in WebSerice: javax.xml.bind.JAXBException

    Sivaraj R Newbie


      i am new to webservice. i have developed a EJB and exposed it as webservice. i have deployed my EJB in JBOSS 5.

      Business Logic and inteface is as below package com.sample;



      public interface SampleEJBRemote { 


           public SampleResult getDetails(String name, String value);




      business class:



      public class SampleEJB implements SampleEJBRemote {

           public SampleResult getDetails(String name, String value){

           Map resultObj = getData();

           SampleResult result = new SampleResult();




      private Map getData(){

           HashMap propsMap = new HashMap();

           for(int i =0 ; i < 10; i++)


                 HashMap prop = new HashMap();

                prop.put("name",i + "Count"); propsMap.put(i,prop);


           return propsMap;




      For the above code i created an ear and deployed in JBOSS and it works fine for EJB mode.


      When i invoke the same method using WebService i am getting the below error:

      [javax.xml.bind.JAXBException: class java.util.HashMap nor any of its super class is known to this context.]

      i have generated the client proxy for webservice using wsgen tool.


      Kindly help me. As i am new to this WebService's and EJB's .


      Regards Sivaraj R