隨筆 - 119  文章 - 3173  trackbacks - 0
          <2015年11月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          交友莫獨(dú)酒,茅臺(tái)西鳳游。
          口干古井貢,心徜洋河流。
          稱多情杜康,趟無(wú)量雙溝。
          贊中華巍巍,無(wú)此不銷愁。

          常用鏈接

          留言簿(68)

          隨筆分類(136)

          隨筆檔案(122)

          最新隨筆

          搜索

          •  

          積分與排名

          • 積分 - 524912
          • 排名 - 93

          最新評(píng)論

          為了滿足廣大網(wǎng)友的要求,今天抽時(shí)間搞了下WebServices 在tomcat中的發(fā)布
          相關(guān)文章:
          tomcat啟動(dòng)時(shí)自動(dòng)加載servlet
          學(xué)習(xí)Java6(一) WebServices (1)服務(wù)端
          學(xué)習(xí)Java6(一) WebServices (2)客戶端

          新建一個(gè)servlet,偶太,能少打一個(gè)字符都是好的,所以servlet寫的非常簡(jiǎn)潔,也適合初學(xué)者看得懂。。。。。。。。。。
          WebServiceStarter.java

          ?1?import?javax.servlet.ServletException;
          ?2?import?javax.servlet.http.HttpServlet;
          ?3?import?javax.xml.ws.Endpoint;
          ?4?
          ?5?public?class?WebServiceStarter?extends?HttpServlet?{
          ?6?????
          ?7?????private?static?final?long?serialVersionUID?=?5870534239093709659L;
          ?8?
          ?9?????public?WebServiceStarter()?{
          10?????????super();
          11?????}
          12?
          13?????public?void?destroy()?{
          14?????????super.destroy();
          15?????}
          16?
          17?????public?void?init()?throws?ServletException?{
          18?????????System.out.println("準(zhǔn)備啟動(dòng)服務(wù)");
          19?????????Endpoint.publish("http://localhost:8080/HelloService",?new?Hello());
          20?????????System.out.println("服務(wù)啟動(dòng)完畢");
          21?????}
          22?}
          23?

          web service類Hello.java也是非常簡(jiǎn)單
          ?1?
          ?2?
          ?3?import?javax.jws.WebMethod;
          ?4?import?javax.jws.WebService;
          ?5?import?javax.jws.soap.SOAPBinding;
          ?6?
          ?7?@WebService(targetNamespace?=?"http://jdk.study.hermit.org/client")
          ?8?@SOAPBinding(style?=?SOAPBinding.Style.RPC)
          ?9?public?class?Hello?{
          10?????@WebMethod
          11?????public?String?sayHello(String?name)?{
          12?????????return?"hello:"?+?name;
          13?????}
          14?}
          web.xml
          ?1?<?xml?version="1.0"?encoding="UTF-8"?>
          ?2?<web-app?version="2.4"?xmlns="http://java.sun.com/xml/ns/j2ee"
          ?3?????xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          ?4?????xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee?
          ?5?????http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
          ?6?????<servlet>
          ?7?????????<servlet-name>WebServiceStarter</servlet-name>
          ?8?????????<servlet-class>WebServiceStarter</servlet-class>
          ?9?????????<load-on-startup>1</load-on-startup>
          10?????</servlet>
          11?</web-app>
          12?

          ok
          就這三個(gè)文件。。。。。。。。。啥jar都不要。。。。
          發(fā)布,啟動(dòng)服務(wù)器
          2007-1-5 13:28:37 org.apache.catalina.core.AprLifecycleListener init
          信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: G:\JDK6\bin;F:\tomcat6\bin
          2007-1-5 13:28:37 org.apache.coyote.http11.Http11Protocol init
          信息: Initializing Coyote HTTP/1.1 on http-8080
          2007-1-5 13:28:37 org.apache.catalina.startup.Catalina load
          信息: Initialization processed in 937 ms
          2007-1-5 13:28:38 org.apache.catalina.core.StandardService start
          信息: Starting service Catalina
          2007-1-5 13:28:38 org.apache.catalina.core.StandardEngine start
          信息: Starting Servlet Engine: Apache Tomcat/6.0.7
          2007-1-5 13:28:38 org.apache.catalina.core.StandardHost start
          信息: XML validation disabled
          2007-1-5 13:28:38 org.apache.catalina.core.ApplicationContext log
          信息: ContextListener: contextInitialized()
          2007-1-5 13:28:38 org.apache.catalina.core.ApplicationContext log
          信息: SessionListener: contextInitialized()
          準(zhǔn)備啟動(dòng)服務(wù)
          服務(wù)啟動(dòng)完畢
          2007-1-5 13:28:39 org.apache.coyote.http11.Http11Protocol start
          信息: Starting Coyote HTTP/1.1 on http-8080
          2007-1-5 13:28:39 org.apache.jk.common.ChannelSocket init
          信息: JK: ajp13 listening on /0.0.0.0:8009
          2007-1-5 13:28:39 org.apache.jk.server.JkMain start
          信息: Jk running ID=0 time=16/62? config=null
          2007-1-5 13:28:39 org.apache.catalina.startup.Catalina start
          信息: Server startup in 1969 ms


          訪問(wèn):http://localhost:8080/HelloService?wsdl
          ?1???<?xml?version="1.0"?encoding="UTF-8"??>?
          ?2?-?<definitions?xmlns="http://schemas.xmlsoap.org/wsdl/"?xmlns:tns="http://jdk.study.hermit.org/client"?xmlns:xsd="http://www.w3.org/2001/XMLSchema"?xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"?targetNamespace="http://jdk.study.hermit.org/client"?name="HelloService">
          ?3???<types?/>?
          ?4?-?<message?name="sayHello">
          ?5???<part?name="arg0"?type="xsd:string"?/>?
          ?6???</message>
          ?7?-?<message?name="sayHelloResponse">
          ?8???<part?name="return"?type="xsd:string"?/>?
          ?9???</message>
          10?-?<portType?name="Hello">
          11?-?<operation?name="sayHello"?parameterOrder="arg0">
          12???<input?message="tns:sayHello"?/>?
          13???<output?message="tns:sayHelloResponse"?/>?
          14???</operation>
          15???</portType>
          16?-?<binding?name="HelloPortBinding"?type="tns:Hello">
          17???<soap:binding?style="rpc"?transport="http://schemas.xmlsoap.org/soap/http"?/>?
          18?-?<operation?name="sayHello">
          19???<soap:operation?soapAction=""?/>?
          20?-?<input>
          21???<soap:body?use="literal"?namespace="http://jdk.study.hermit.org/client"?/>?
          22???</input>
          23?-?<output>
          24???<soap:body?use="literal"?namespace="http://jdk.study.hermit.org/client"?/>?
          25???</output>
          26???</operation>
          27???</binding>
          28?-?<service?name="HelloService">
          29?-?<port?name="HelloPort"?binding="tns:HelloPortBinding">
          30???<soap:address?location="http://localhost:8080/HelloService"?/>?
          31???</port>
          32???</service>
          33???</definitions>
          看到以上代碼就ok!
          客戶端寫法照舊

          呵呵,這下大家滿意了吧。。。。。。。。。
          有沖動(dòng)想把項(xiàng)目里的xfire撤掉了。。。。。。。。。。。。。。。。。
          posted on 2007-01-05 13:38 交口稱贊 閱讀(12541) 評(píng)論(40)  編輯  收藏 所屬分類: Java6J2EE & WEB

          FeedBack:
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-01-05 13:41 交口稱贊
          忘了說(shuō)環(huán)境

          eclipse3.2.1+myeclipse5.1
          jdk6
          tomcat6.0.7

          出現(xiàn)問(wèn)題請(qǐng)先檢查下自己的環(huán)境。

          如果你在其它環(huán)境下也能通過(guò)謝謝你告訴我  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-01-05 13:43 交口稱贊
          剛才測(cè)試了
          jboss4.0.5也沒(méi)問(wèn)題

          看來(lái)基本上可以通用  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-01-07 13:57 冷面閻羅
          不過(guò)我感覺(jué)還是不實(shí)用,因?yàn)楝F(xiàn)在jdk6在項(xiàng)目中基本上是不能被用到,目前大多數(shù)還是用的jdk4.所以這樣的 只能是我們玩玩而已.用到實(shí)際開發(fā)估計(jì)還要一段時(shí)間  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-01-07 18:53 交口稱贊
          呵呵
          在新項(xiàng)目里面可以直接用哦
          我們項(xiàng)目現(xiàn)在就用到了JDK5的很多新特性

          而且很多開源的東西都用的很多新東西

          感覺(jué)用起來(lái)比xfire還爽  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-01-07 18:54 交口稱贊
          有空來(lái)測(cè)試下性能。。。。。。。。。

          看看哪個(gè)牛

          誰(shuí)有LoadRunner8.1的License啊  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-01-07 23:36 正需要啊
          z終于盼到了  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-01-08 22:45 東方游
          強(qiáng)
            回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-01-11 16:55 jht
          nod
          我去SUN JAVA網(wǎng)站上也找了幾篇文章,挺好的,大家可以自己去找找  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-04-16 21:11 sdf
          can you tell me, how can i create a servlet in eclipse and how can i publish this WS? in very detail!!

          Thanks a lot!  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-04-16 21:13 sdf
          can i develop this WS without Xfire?  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-04-16 21:34 交口稱贊
          1.服務(wù)端程序:我要怎樣在eclipse里寫"servlet"和"web service"兩個(gè)java程序?
          新建一個(gè)web項(xiàng)目
          新建servlet
          新建java類
          內(nèi)容按照上面的例子  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-04-16 21:37 交口稱贊
          2.我怎樣執(zhí)行他們,才能把他們發(fā)布出去?

          一般項(xiàng)目在eclipse都是自動(dòng)編譯的
          我是用的myeclipse
          可以直接部署到tomcat或者jboss,有個(gè)小按鈕,點(diǎn)了以后是向?qū)降模阋徊揭徊阶觯茨阌⑽倪@么好,應(yīng)該搞的定
          這個(gè)就是IDE的基本使用

          啟動(dòng)tomcat就算發(fā)布出去了
          測(cè)試是否發(fā)布成功,本文已經(jīng)寫了  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-04-16 21:40 交口稱贊
          您能否在說(shuō)說(shuō)分別用java6開發(fā)WS和用axis2開發(fā)ws的優(yōu)缺點(diǎn)

          axis2沒(méi)用過(guò),不敢說(shuō),但是印象不好

          java6的WS經(jīng)過(guò)我的這幾篇文章探索,個(gè)人還有很多問(wèn)題沒(méi)解決,感覺(jué)還是不要用在項(xiàng)目里面的好,畢竟現(xiàn)在很多項(xiàng)目還是在jdk1.4或者1.5

          你要是項(xiàng)目里面需要用webservice推薦你使用xfire

            回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-04-16 21:41 交口稱贊
          can i develop this WS without Xfire?

          你直接用java6的webservice可以不用XFIRE  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布[未登錄](méi) 2007-04-23 16:26 daisy
          不知道在NetBeans里可以嗎?直接在一個(gè)Web項(xiàng)目里依次建好上面幾個(gè)文件,然后啟動(dòng)Tomca就可以嗎?  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-04-23 16:58 交口稱贊
          樓上抱歉
          沒(méi)在NB下面試過(guò)

          理論上應(yīng)該可以

          還是建議你用eclipse吧
          為你以后工作好  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布[未登錄](méi) 2007-04-24 16:02 daisy
          為什么我用NB寫的WS(JDK1.6)放在這里說(shuō):syntax error,annotations are only
          available if source level is 5.0?
          然后我在你要求的環(huán)境下寫的代碼,和你的格式一樣.仍然在@WebService @SOAPBinding @WebMethod下面有紅色波浪線,并報(bào)告上述錯(cuò)誤?
          直接建一個(gè)calss文件,編寫WS,可以嗎?  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-04-24 16:05 交口稱贊
          可以,你是不是裝的jdk6?
            回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布[未登錄](méi) 2007-04-24 16:12 daisy
          因?yàn)槲沂羌敝瓿尚枰墓δ?所以并沒(méi)有時(shí)間去多看基礎(chǔ)的東西.本來(lái)對(duì)eclipse不熟悉.
          所以問(wèn)的問(wèn)題可能顯得有些白癡,不過(guò)請(qǐng)你陳情幫忙看看,謝謝了!

          我現(xiàn)在JDK1.5 1.6 都有了!我以為是JDK版本的問(wèn)題,換成1.5的也不行
            回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布[未登錄](méi) 2007-04-24 16:14 daisy
          可以加你的QQ,或者M(jìn)SN嗎?萬(wàn)分感謝!  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布[未登錄](méi) 2007-04-24 16:15 daisy
          如果你不想公開,我告訴你我的吧!謝謝了!
          QQ:315768093  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-04-24 16:22 交口稱贊
          你項(xiàng)目中還是別用這個(gè)了

          用xfire吧

          你弄個(gè)jdk6
          估計(jì)你們頭是不會(huì)為了你的功能改項(xiàng)目JDK的

            回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-04-26 17:32 HEDY
          Netbeans中開發(fā)Webservice更容易  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-04-26 19:26 sdf
          Thank you for your reply. i cann't write chinese on my computer, sorry:(

          so, must "WebServiceStarter.java" be a "servlet"? and must i create a Web-Project?

          I have a WS with axis1.x, now i wanne to change its library only with java6. for example, i hve to authenticate the user with "BasicHandler.invoke()", but it only belones to axis, what should i do, if i write this function in java6? which one can be instead it? and so on... the things like this are so many, that makes me headache.

          That' my pleasure, if i could talk with you in msn
          i'm iceapplexin@hotmail.com

          Thank you  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-04-30 21:16 sdf
          It doesn't work!!!
          By the compiling WebServiceStarter.java:
          1 error
          WebServiceStarter.java:19: cannot find symbol
          symbol : class Hello
          location: class WebServiceStarter
          Endpoint.publish("http://localhost:8080/HelloService", new Hello());


          Tell me Why,please!!!   回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-05-01 00:34 交口稱贊
          。。。。
          樓上
          我會(huì)放一個(gè)myeclipse項(xiàng)目,到時(shí)候你直接導(dǎo)入就可以了。。。。。


          或者建個(gè)eclipse的web項(xiàng)目。。。。

          你要那種?  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-05-01 03:43 sdf
          "eclipse的web項(xiàng)目" is better for me,

          but even better, if you do it with "Tomcat Project" and without MyEclipse (I mean only Eclipse alone, without the "deploy"-Button, how would you do the deployment step by step per hand?
          Is this so right?: Deployment = copy all *.class files in the dictionary WEB-INF/classes?).

          Thanks a lot!  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-05-01 07:11 交口稱贊
          不用myeclipse沒(méi)問(wèn)題。。
          你有WTP嗎?
          Web Tools Platform
          http://download.eclipse.org/eclipse/downloads/

          有這個(gè)做WEB開發(fā)也可以  回復(fù)  更多評(píng)論
            
          # Developing Java6 WS with TomcatProject in Eclipse 2007-05-03 19:03 sdf
          Oh, yes. I have done it!!
          I will write it here for you as Thanks and for you all.

          Step by step
          0> first you must have Tomcat-plugin in your eclipse

          1>. Server-side-programm

          1. File->new->other->java->
          create a Tomcat-Project named "TomWs"->finish

          2. in WEB-INF\src create

          HelloServlet.java: a Servlet, the only duty is to publish the WS-endpoint onto a URL (hier is Http://localhost:8080/services)

          import java.io.*;
          import javax.servlet.http.*;
          import javax.servlet.*;
          import javax.swing.JOptionPane;
          import javax.xml.ws.Endpoint;


          public class HelloServlet extends HttpServlet {
          public void doGet (HttpServletRequest req,
          HttpServletResponse res)
          throws ServletException, IOException
          {
          Endpoint endpoint = Endpoint.publish( "http://localhost:8080/services",
          new sayHello() );
          res.setContentType( "text/html" );
          PrintWriter out = res.getWriter();
          out.println( "<html>" );
          out.println( "Hallo, mein erstes Servlet meldet sich." );
          out.println( "</html>" );
          out.close();
          JOptionPane.showMessageDialog( null, "Server beenden" );
          endpoint.stop();

          }
          }
          SayHello.java: a normal class, describes the Web-Service with Jax-Ws Annotation.

          import javax.jws.soap.SOAPBinding;
          import javax.jws.*;

          @WebService(name="XinServ",targetNamespace="http:///")
          @SOAPBinding(style = SOAPBinding.Style.RPC)
          public class sayHello
          {
          @WebMethod
          public String hello( String name )
          {
          return "Hello " + name + "!";
          }

          @WebMethod(operationName="body-mass-index")
          @WebResult(name = "your-bmi")
          public double bmi( @WebParam(name="height") double height,
          @WebParam(name="weight") double weight )
          {
          return weight / (height * height) / 100 * 100;
          }
          }

          3. compile the tow classes in Web-Inf\classes with the two commandos:

          set classpath=C:\Tomcat\jakarta-tomcat-5.5.9\common\lib\servlet-api.jar
          javac -d classes -sourcepath src src\HelloServlet.java

          4. create web.xml in WEB-INF\web.xml
          <!DOCTYPE web-app PUBLIC
          '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'
          '<web-app>
          <servlet>
          <servlet-name>hello</servlet-name>
          <servlet-class>HelloServlet</servlet-class>
          <load-on-startup>1</load-on-startup>
          </servlet>

          <servlet-mapping>
          <servlet-name>hello</servlet-name>
          <url-pattern>/hello</url-pattern>
          </servlet-mapping>
          </web-app>

          5. start Tomcat-server in eclipse
          Repeat to compile the classes = reload them in Tomcat
          6. in URL-Address input:
          http://localhost:8080/TomWs/hello, It’s the address of the Servlet, that only tomcat automatic loads. In the browser will show “Hello….”, and there are small dialog "server beenden", don’t close it, then go on with input the
          http://localhost:8080/services?wsdl. Wenn you can see this, you’re done!
          7. leave the little widow open.
            回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-05-03 19:05 sdf

          Go on with the
          2>. Client-side-programm

          1. create a another java-project

          2. create a “wsimport.bat” file in the project-folder with

          wsimport -keep -p com http://localhost:8080/services?wsdl

          3. run the wsimport.bat, there will tow class automatic producted.

          4. create a class named “HelloClient.java”
          package com;
          public class ClientHello {
          public static void main( String[] args )
          {

          XinServ port = new SayHelloService().getXinServPort();
          System.out.printf( "%s Your BMI is %.1f%n",
          port.hello( "Xin" ),
          port.bodyMassIndex( 183, 84 ) );
          }
          }

          5. compile this and run it as java application in eclipse.

          6. if you cann't see anny eerors, than congratulations!
            回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-05-04 15:52 高手
          樓上的好佩服你啊  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-05-04 17:13 sdf
          But This way is uncommon to write a WS, do you think, that develop WS with Java6+Tomcat is better and easier then with axis2? I don't know :(
          can anyone give some idears to me about that?  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-05-30 11:02 agoo
          準(zhǔn)備啟動(dòng)服務(wù)
          2007-5-30 10:55:04 org.apache.catalina.core.ApplicationContext log
          嚴(yán)重: StandardWrapper.Throwable
          java.lang.NoClassDefFoundError: javax/xml/ws/Endpoint
          運(yùn)行以上程序出現(xiàn)的錯(cuò)誤,
          環(huán)境是JRE1.6
          tomcat5.5  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-05-30 12:25 交口稱贊
          JRE1.6
          還是JDK?
            回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布[未登錄](méi) 2007-06-13 14:59 edward
          報(bào)以下錯(cuò)誤,誤人子弟
          java.net.BindException: Address already in use: bind  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-06-14 09:23 交口稱贊
          Address already in use: bind

          你自己找個(gè)金山詞霸翻譯一下吧
            回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2007-06-21 09:17 楊一
          我有一個(gè)疑問(wèn):
          Web Service是怎樣自動(dòng)部署到Tomcat中的?
          您這樣做僅僅是在JVM自帶的服務(wù)器中發(fā)布了WS,而Tomcat也僅僅起到了觸發(fā)JVM自帶服務(wù)器的作用,我想知道怎樣把WSDL部署到Tomcat里面,完全由這個(gè)成熟的Web服務(wù)器托管,或者您告訴我,現(xiàn)在已經(jīng)做到這一點(diǎn)了  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2008-11-06 10:37 jeekchen
          這種方式只能單線程訪問(wèn)的,沒(méi)實(shí)際用處  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2015-10-09 12:30 你二大爺
          Address already in use: bind
          暈死;;;  回復(fù)  更多評(píng)論
            
          # re: 學(xué)習(xí)Java6(一) WebServices (3)在tomcat中發(fā)布 2015-11-10 17:58 setyg
          靠,,這就叫發(fā)布到tomcat了,,忽悠誰(shuí)呢。、  回復(fù)  更多評(píng)論
            
          主站蜘蛛池模板: 莱西市| 法库县| 福海县| 鄂托克前旗| 左贡县| 昌江| 永泰县| 石河子市| 方正县| 阳新县| 桐梓县| 乌鲁木齐市| 寿阳县| 盱眙县| 晋江市| 张家界市| 丰都县| 会东县| 卫辉市| 绵阳市| 康定县| 浦北县| 娄底市| 漯河市| 苏尼特右旗| 巴彦县| 仲巴县| 涪陵区| 天台县| 曲周县| 浦县| 龙江县| 石棉县| 睢宁县| 青川县| 高台县| 余姚市| 黎川县| 新兴县| 石嘴山市| 定州市|