2013-07-22 167 views
1

我是非常新的apache/tomcat/axis。當我開始在他們的教程中安裝axis2時,我已經安裝了apache/tomcat。當我嘗試啓動軸的服務我得到這個錯誤:Apache Axis2 localhost:8080/axis2不能正常工作

[INFO] Listening on port 8080 
[WARN] Attempt number 10 of 10 to reestalish connection listener o[email protected]19a029e due to failure 
java.net.BindException: Address already in use 
    at java.net.PlainSocketImpl.socketBind(Native Method) 
    at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:353) 
    at java.net.ServerSocket.bind(ServerSocket.java:336) 
    at java.net.ServerSocket.<init>(ServerSocket.java:202) 
    at java.net.ServerSocket.<init>(ServerSocket.java:114) 
    at org.apache.axis2.transport.http.server.DefaultConnectionListener.run(DefaultConnectionListener.java:81) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
    at java.lang.Thread.run(Thread.java:679) 
[INFO] Listening on port 8080 
[ERROR] Terminating connection listener o[email protected]19a029e after 10retries in 0 seconds. 
java.net.BindException: Address already in use 
    at java.net.PlainSocketImpl.socketBind(Native Method) 
    at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:353) 
    at java.net.ServerSocket.bind(ServerSocket.java:336) 
    at java.net.ServerSocket.<init>(ServerSocket.java:202) 
    at java.net.ServerSocket.<init>(ServerSocket.java:114) 
    at org.apache.axis2.transport.http.server.DefaultConnectionListener.run(DefaultConnectionListener.java:81) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
    at java.lang.Thread.run(Thread.java:679) 
[INFO] [SimpleAxisServer] Started 
[SimpleAxisServer] Started 

所以我發現,如果我改變了$ AXIS2_HOME/conf目錄/ axis2.xml傳輸接收機端口從8080到8081,則服務是可行的。但是每次我都會瀏覽到http://localhost:8081,它會重定向到localhost:8081/axis2/services,我無法進入我應該能夠閱讀的漂亮的小軸主頁。

因此,在教程的後面,我創建了我的axis2.war文件,並在tomcat/webapps文件夾中放置了一個副本。重新啓動,但我仍然堅持沒有獲得Axis2主頁?

+0

你能解決這個問題嗎? – user427969

回答

0

服務器軸和tomcat apache端口之間存在衝突,這是因爲您試圖在同一端口上啓動兩臺服務器。

要修復它,你必須建立第一個.war軸,並在tomcat的webapps文件夾中運行它作爲servlet,以在tomcat的服務器中獲得你想要的那個可愛的頁面。

0

您可以直接下載Axis2.war文件並將其放入tomcat服務器的webapp文件夾中。一旦啓動tomcat服務器,axis2也在其上運行。 然後你可以訪問URL:localhost:8080/axis2