Programming Web Services for WebLogic Server

I was trying to execute a simple Web Service example from a book:

package com.alsb.hello;

import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;

import weblogic.jws.WLHttpTransport;
import weblogic.jws.WSDL;

@WLHttpTransport(portName="HelloWorldSoapPort", serviceUri = "HelloWorldService", contextPath = "business/hello")
public class HelloWorld {

    public String hello(String arg) {
        return arg + "z";

But when i start the server (Weblogic 10.3.6) it happens the following error:

Errors: The annotation weblogic.jws.WSDL is not allowed on com.alsb.hello.HelloWorld because it is a JAX-WS type web service.

The same happens with the annotation @WLHttpTransport.

Could someone figure out where's the problem?


"Although this release of WebLogic Server supports both JAX-RPC 1.1 and JAX-WS 2.0 based Web Services, you can use the WebLogic-specific annotations only with JAX-RPC-based Web Services.", check Overview of JWS Annotation Tags from Weblogic. Maybe this could be the reason.

Need Your Help

Is there a way to detect and debug circular references when using StructureMap?

dependency-injection inversion-of-control structuremap stack-overflow circular-reference

Lately I've been using a larger number of smaller objects, because they are simpler and easier to reuse. Most of the time there isn't any problem injecting these objects into one another using