You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Oliver Brusberg (JIRA)" <ji...@apache.org> on 2007/10/23 12:42:23 UTC

[jira] Created: (SM-1116) Misleading Exception "The deployed wsdl defines more than one service"

Misleading Exception "The deployed wsdl defines more than one service"
----------------------------------------------------------------------

                 Key: SM-1116
                 URL: https://issues.apache.org/activemq/browse/SM-1116
             Project: ServiceMix
          Issue Type: Bug
          Components: servicemix-jsr181
    Affects Versions: 3.1.2
            Reporter: Oliver Brusberg
            Priority: Minor


The SE reports "The deployed wsdl defines more than one service" when no service is defined at all.
This is due to the condition if (definition.getServices().size() != 1) { ...

An additional check

            if (definition.getServices().size() < 1) {
                throw new IllegalArgumentException("The deployed wsdl defines no service at all");
            }

should be added in the method registerService() 
in org.apache.servicemix.jsr181.Jsr181Endpoint.java just before the !=1-check.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.