WebServices on weblogic

Posted on 2005-05-12
Last Modified: 2008-01-09
I am writing web services on EJB.I am using the servicegen of weblogic to build the file.When i build the file i am getting the following error.Please let me know what could be the reason.

weblogic.xml.schema.binding.BindingException: Invalid class received: interface java.util
.Map loaded from file:/C:/j2sdk1.4.1_06/jre/lib/rt.jar!/java/util/Map.clas All classes that will be serialized or deserialized must be non-interface, non-abstract classes that provide a public default constructor
Question by:koppcha
    LVL 2

    Expert Comment

    Check parameter and return value of methods in your web serivce class to make sure all those data types are:
    "non-interface, non-abstract classes that provide a public default constructor ".

    Because those data type need to be encapsulated by webservice layer into SOAP message, they must be compliant to those requirements.
    LVL 8

    Author Comment

     Thanks for the response.
      I know that the return type of one of my EJB methods is of type Map which is no one of the supported built not data types by weblogic servicegen utility.I want to know how to oversome this and how to write the Non Buit in data type for java.util.Map
    LVL 23

    Expert Comment


    If you use the clientgen or autotype Ant tasks with the wsdl attribute to generate client or data type components from a WSDL file, you might sometimes get the following exception: Failed to do type mapping - with nested exception: [weblogic.xml.schema.binding.BindingException: unable to find a definition for type datatype
    This exception means that there is an undefined data type in the section of the WSDL file that describes the XML Schema data types used by the Web Service. The solution to this problem is to add the data type definition to the WSDL file.

    For more info about may refer here...

    I hope you it may help you..

    LVL 8

    Author Comment

    The java.util.Map data type is not in the list of supported non built in data type by servigen .So there are two options available either to wrap your methods to return a simple type or a bean which is supported by servicegen or to develop from the first principles  without using servigen task of weblogic....
    LVL 8

    Author Comment

    The last comment provided by me is the solution.Probably it will help someone else with the same problem.
    LVL 1

    Accepted Solution

    PAQed with points (500) refunded

    Community Support Moderator

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Accessibility and Usability are two concepts that seem to be closely related.  But, too many people seem to have a distorted perception of them. During last five years, those two words have come to the day-to-day work of almost every web develope…
    Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    The viewer will learn how to dynamically set the form action using jQuery.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now