在JBOSS 下配置AXIS 报错

将axis1.4.zip解压后进入webapp得到axis文件夹,拷入jboss deploy目录下改名为axis.war
启动jboss无任何异常进入http://127.0.0.1:8080/axis/EchoHeaders.jws?method=list看到编译错误。检查日志发现下面的异常
JBoss_5_1_0_GA date=200905221634)] Started in 31s:710ms
22:13:43,441 INFO  [STDOUT] - Unable to find config file.  Creating new servletengine config file: /WEB-INF/server-config.wsdd
22:13:44,522 INFO  [STDOUT] - Exception:
AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.compileError
 faultSubcode:
 faultString: Error while compiling:  E:\jboss-5.1.0.GA\server\default\deploy\axis.war\WEB-INF\jwsClasses\EchoHeaders.java
 faultActor:
 faultNode:
 faultDetail:
        {}Errors:Error compiling E:\jboss-5.1.0.GA\server\default\deploy\axis.war\WEB-INF\jwsClasses\EchoHeaders.java:
Line 21, column 25:  package javax.servlet.http does not exist
Line 92, column -1:  cannot find symbol
Line 36, column -1:  cannot find symbol
Line 56, column -1:  cannot find symbol
Line 94, column -1:  cannot find symbol
Line 94, column -1:  cannot find symbol
Line 0, column 0:
Note: E:\jboss-5.1.0.GA\server\default\deploy\axis.war\WEB-INF\jwsClasses\EchoHe
aders.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.


将servlet-api.jar 从jboss-5.1.0.GA\common\lib 移到 jboss-5.1.0.GA\lib\endorsed后重启动jboss,问题解决!
参考: http://www.coderanch.com/t/222632/Web-Services/java/install-standalone-axis-jboss-failed

你可能感兴趣的:(jboss,axis)