我对apache / tomcat / axis非常新。当我开始按照他们的教程安装axis2时,我已经安装了apache / tomcat。当我尝试启动轴服务时,我收到此错误:
[INFO] Listening on port 8080
[WARN] Attempt number 10 of 10 to reestalish connection listener org.apache.axis2.transport.http.server.DefaultConnectionListener@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 org.apache.axis2.transport.http.server.DefaultConnectionListener@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 :(得分:1)
服务器轴和tomcat apache端口之间存在冲突,这是因为您尝试在同一端口上启动两台服务器。
要修复它,你必须首先构建.war轴并在tomcat的webapps文件夹中将其作为servlet运行,以便在tomcat的服务器中获得你想要的可爱页面。
答案 1 :(得分:0)
您可以直接下载Axis2.war文件并放入tomcat服务器的webapp文件夹中。一旦启动,tomcat服务器axis2也在其上运行。 然后您可以访问URL:localhost:8080 / axis2