注意打war包的时候不能将lib下面Jboss client中的jar打包
否则将抛出异常
java.lang.IncompatibleClassChangeError: Class org.jnp.server.NamingServer does not implement the requested interface org.jnp.interfaces.Naming
此外:以war形式访问,同时需要将Hellowrd.jar部署, 如果不部署Helloworld.jar将会抛出javax.naming.NameNotFoundException: HelloworldBean not bound的异常
附录:
build.xml 文件
index.jsp