MASM0015; Webservice HandlerTubeFactory异常

时间:2017-02-20 17:27:19

标签: java web-services jax-ws weblogic12c

我正在尝试创建一个调用另一个的webservice链。我已经创建了第一个服务并成功部署在weblogic12c上。 当第一个webservice尝试调用外部Web服务时,存在以下异常。

----notifyAbout----
 WSTestOuter outer = new WSTestOuter(getWsdlLocation(), new QName("http://www.example.com/abcd/soa/wsdl", "WSTestOuter"));
 WSTestOuterPort outerPort =outer.getWSTestOuterPort(); 

异常;

java.lang.RuntimeException: MASM0015: Class [ com.sun.xml.ws.assembler.jaxws.HandlerTubeFactory ] does not implement [ com.sun.xml.internal.ws.assembler.dev.TubeFactory ] interface
    at com.sun.xml.internal.ws.assembler.TubeCreator.<init>(TubeCreator.java:63)
    at com.sun.xml.internal.ws.assembler.TubelineAssemblyController.initializeTubeCreators(TubelineAssemblyController.java:116)
    at com.sun.xml.internal.ws.assembler.TubelineAssemblyController.getTubeCreators(TubelineAssemblyController.java:79)
    at com.sun.xml.internal.ws.assembler.MetroTubelineAssembler.createClient(MetroTubelineAssembler.java:103)
    at com.sun.xml.internal.ws.client.Stub.createPipeline(Stub.java:328)
    at com.sun.xml.internal.ws.client.Stub.<init>(Stub.java:295)
    at com.sun.xml.internal.ws.client.Stub.<init>(Stub.java:228)
    at com.sun.xml.internal.ws.client.Stub.<init>(Stub.java:243)
    at com.sun.xml.internal.ws.client.sei.SEIStub.<init>(SEIStub.java:84)
    at com.sun.xml.internal.ws.client.WSServiceDelegate.getStubHandler(WSServiceDelegate.java:814)
    at com.sun.xml.internal.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:803)
    at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:436)
    at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:404)
    at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:459)
    at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:463)
    at javax.xml.ws.Service.getPort(Service.java:188)
    at com.xyz.abcd.soa.hop.ws.impl.WSTest.notifyAbout(WSTest.java:126)

我有什么建议可以尝试吗?

2 个答案:

答案 0 :(得分:0)

Weblogic 12c安装将有com.oracle.webservices.wls.jaxws-wlswss-client.jar。把它放在CLASSPATH中。它应该解决这个问题。

答案 1 :(得分:0)

我已经在项目中添加了import pandas as pd df = pd.read_csv('nn.csv') df = df.fillna(df.mean()['IndustrialP']) df.head() Word1 Word2 Word3 Word4 Word5 IndustrialP 0 0 15 1 0 0 107.35586 1 0 15 1 0 0 110.50964 2 0 13 1 0 0 113.66342 y=df.IndustrialP X=df.drop('IndustrialP', axis=1) split = int(len(df)*0.8) X_train, X_test, y_train, y_test = X[:split], X[split:], y[:split], y[split:] import tensorflow as tf from keras.models import Sequential from keras.layers import Dense model = Sequential([ Dense(32, activation='relu', input_shape=(5,)), Dense(32, activation='relu'), Dense(1, activation='sigmoid'), ]) model.compile(loss="mean_squared_error", optimizer="sgd") model.fit(X_train, y_train, batch_size=20, epochs=50) ,问题已经解决。