我是非常新的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主頁?
你能解決這個問題嗎? – user427969