问题1
log4jWARNNoappenders couldbefoundforlogger
解决办法:在src文件下新建log4j.properties文件并添加以下内容
# Configure logging for testing: optionally with log file
log4j.rootLogger=WARN,stdout
# log4j.rootLogger=WARN,stdout,logfile
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n
log4j.appender.logfile=org.apache.log4j.FileAppender
log4j.appender.logfile.File=target/spring.log
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
log4j.appender.logfile.layout.ConversionPattern=%d %p [%c] - %m%
问题2
Exception in thread "main" org.apache.axis2.AxisFault: Network is unreachable: connect
.。。。
。。。
解决办法:
http://localhost:8080/axis2/services/SimpleServer?wsdl中的ip地址与自动生成的SimpleServerStub.java文件中的不一样导致网络无法连接问题。
将用浏览器打开http://localhost:8080/axis2/services/SimpleServer?wsdl,复制其中<soap:address location="http://180.201.157.45:8080/axis2/services/SimpleServer.SimpleServerHttpSoap11Endpoint/"/>中的ip地址将自动生成文件SimpleServerStub.java中的ip地址替换,就解决了。
参考博客地址:http://blog.csdn.net/tgz501/article/details/4364948