0

我在 jboss 7 上运行一个肥皂服务。我有一个肥皂服务 bean,它的开头是这样的:

@Stateless 
@WebService(name = "AboxConfigurationMgt", targetNamespace = "http://com.atriumnetwork.ws/abox/configuration", serviceName = "AboxConfigurationMgtService")
@SOAPBinding(style = SOAPBinding.Style.RPC, use = SOAPBinding.Use.LITERAL) 
public class AboxConfigurationServiceBean implements AboxConfigurationServiceLocal {

另一堂课也是这样开始的:

@WebService(name = "AboxConfigurationMgt", targetNamespace = "http://com.atriumnetwork.ws/abox/configuration")
@SOAPBinding(style = SOAPBinding.Style.RPC)
public interface AboxConfigurationMgt {

对于 ws 配置,我的standalone.xml 是这样的:

<subsystem xmlns="urn:jboss:domain:webservices:1.1">
        <modify-wsdl-address>true</modify-wsdl-address>
        <wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>
        <endpoint-config name="Standard-Endpoint-Config"/>
        <endpoint-config name="Recording-Endpoint-Config">
            <pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">
                <handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>
            </pre-handler-chain>
        </endpoint-config>
    </subsystem>

但是当我运行时,我收到以下错误:

EXCEPTION_CAUGHT_WHILE_(PREPARING_FOR)_PERFORMING_THE_INVOCATION: org.jboss.ws.WSException: Target endpoint address not set
at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:359) [jbossws-native-core-4.0.2.GA.jar:4.0.2.GA]
at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:246) [jbossws-native-core-4.0.2.GA.jar:4.0.2.GA]
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:176) [jbossws-native-core-4.0.2.GA.jar:4.0.2.GA]
at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:162) [jbossws-native-core-4.0.2.GA.jar:4.0.2.GA]
at $Proxy158.generateNewConfig(Unknown Source)  at com.atriumnetwork.webportal.abconfig.logic.impl.GeneratConfigAction.valid(GeneratConfigAction.java:176) [myatrium_intranet.jar:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_35]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_35]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_35]
at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_35]

我究竟做错了什么???我真的很感激任何帮助。此刻有些绝望。

提前致谢

4

1 回答 1

0

尝试将 ejb.jar 添加到您的 wWEB-INF\lib 中。要创建端点,您需要将 ejb jar 添加到 lib。这是 as7 中的常见问题。

在这里查看

于 2012-09-29T20:08:28.710 回答