2
我想在我的android程序中使用CXF webservice setup for web,是否可以爲兩者使用相同的webservice?日誌消息如下。有人可以告訴我問題是什麼嗎?可以在Android中使用CXF webservice嗎?
12-04 08:59:28.432: E/Trace(850): error opening trace file: No such file or directory (2)
12-04 08:59:29.285: E/dalvikvm(850): Could not find class 'org.jida.mns.web.ws.connector.WSConnector', referenced from method com.example.list.MainActivity.onCreate
12-04 08:59:29.332: E/AndroidRuntime(850): FATAL EXCEPTION: main
12-04 08:59:29.332: E/AndroidRuntime(850): java.lang.NoClassDefFoundError: org.cdac.nms.web.ws.connector.WSConnector
12-04 08:59:29.332: E/AndroidRuntime(850): at com.example.list.MainActivity.onCreate(MainActivity.java:49)
12-04 08:59:29.332: E/AndroidRuntime(850): at android.app.Activity.performCreate(Activity.java:5008)
12-04 08:59:29.332: E/AndroidRuntime(850): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
12-04 08:59:29.332: E/AndroidRuntime(850): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
12-04 08:59:29.332: E/AndroidRuntime(850): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
12-04 08:59:29.332: E/AndroidRuntime(850): at android.app.ActivityThread.access$600(ActivityThread.java:130)
12-04 08:59:29.332: E/AndroidRuntime(850): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
12-04 08:59:29.332: E/AndroidRuntime(850): at android.os.Handler.dispatchMessage(Handler.java:99)
12-04 08:59:29.332: E/AndroidRuntime(850): at android.os.Looper.loop(Looper.java:137)
12-04 08:59:29.332: E/AndroidRuntime(850): at android.app.ActivityThread.main(ActivityThread.java:4745)
12-04 08:59:29.332: E/AndroidRuntime(850): at java.lang.reflect.Method.invokeNative(Native Method)
12-04 08:59:29.332: E/AndroidRuntime(850): at java.lang.reflect.Method.invoke(Method.java:511)
12-04 08:59:29.332: E/AndroidRuntime(850): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
12-04 08:59:29.332: E/AndroidRuntime(850): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
12-04 08:59:29.332: E/AndroidRuntime(850): at dalvik.system.NativeStart.main(Native Method)
感謝您的回覆..........請你告訴我如何添加一個外部的Java項目到當前的Android程序? –
對不起,這是我不知道的...... – florent
當我在你提供的鏈接中運行ws客戶端程序時,在運行時我在logcat中得到以下錯誤,如果你能幫我解決這個問題。 12-04 11:11:27.452:E /跟蹤(1105):錯誤打開跟蹤文件:沒有這樣的文件或目錄(2) –