JBOSS、ANT远程部署的异常解决!
来源:互联网 发布:网络维修是什么 编辑:程序博客网 时间:2024/05/21 08:02
Buildfile: D:/Program Files/MyEclipse 5.1.1 GA/workspace/ant/build.xml
prepare:
compile:
dep:
deploy.webapp:
[get] Getting: http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=redeploy&argType=java.net.URL&arg0=file:D:/Program Files/MyEclipse 5.1.1 GA/workspace/ant/ant.war
[get] To: D:/Program Files/MyEclipse 5.1.1 GA/workspace/ant/a.html
[get] Error opening connection java.io.IOException: Server returned HTTP response code: 505 for URL: http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=redeploy&argType=java.net.URL&arg0=file:D:/Program Files/MyEclipse 5.1.1 GA/workspace/ant/ant.war
[get] Error opening connection java.io.IOException: Server returned HTTP response code: 505 for URL: http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=redeploy&argType=java.net.URL&arg0=file:D:/Program Files/MyEclipse 5.1.1 GA/workspace/ant/ant.war
[get] Error opening connection java.io.IOException: Server returned HTTP response code: 505 for URL: http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=redeploy&argType=java.net.URL&arg0=file:D:/Program Files/MyEclipse 5.1.1 GA/workspace/ant/ant.war
[get] Can't get http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=redeploy&argType=java.net.URL&arg0=file:D:/Program Files/MyEclipse 5.1.1 GA/workspace/ant/ant.war to D:/Program Files/MyEclipse 5.1.1 GA/workspace/ant/a.html
BUILD FAILED
D:/Program Files/MyEclipse 5.1.1 GA/workspace/ant/build.xml:127: Can't get http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=redeploy&argType=java.net.URL&arg0=file:D:/Program Files/MyEclipse 5.1.1 GA/workspace/ant/ant.war to D:/Program Files/MyEclipse 5.1.1 GA/workspace/ant/a.html
Total time: 984 milliseconds
=========================
解决方案:(1)检查所在路径是否有空格例如:D:/Program Files/MyEclipse 5.1.1 GA/workspace/其中有空格Build时不稳定是要出问题的;
(2)系统防火墙是否将8080端口给屏蔽掉;
(3)JDK的版本是否>=1.4
=====================
可正常运行的例子:
<project default="deploy.webapp" basedir=".">
<target name="deploy.webapp" depends="undeploy.webapp">
<get dest="deployresult.html" src="http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=redeploy&argType=java.net.URL&arg0=file:${basedir}/ant.war" />
</target>
<target name="undeploy.webapp">
<get dest="deployresult.html" src="http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOpByName&name=jboss.system:service%3DMainDeployer&methodName=undeploy&argType=java.net.URL&arg0=file:${basedir}/ant.war" />
</target>
</project>
祝您成功!===================还有不明白的给我发mail吧shandongcn#sina.com
- JBOSS、ANT远程部署的异常解决!
- Jenkins部署远程jboss
- ant或者说wsadmin远程部署websphere异常
- ant 远程增量部署
- eclipse远程调试部署在JBoss服务器上的工程
- 解决ANT无法捕获异常的问题
- ant自动部署WEBLOGIC,包括远程部署
- 解决自动部署到jboss时,设置虚拟主机的问题。
- 解决自动部署到jboss时,设置虚拟主机的问题。
- jboss的部署
- jboss的热部署
- JBoss的部署机制
- 远程服务器控制台部署JBOSS项目
- 解决JBOSS局域网内无法访问的问题,JBoss启动异常问题,端口占用问题
- 用Maven打包成EAR远程部署JBoss(二)——部署到远程JBoss
- eclipse ant Tomcat 远程部署问题
- 利用ant进行远程tomcat部署
- Android Ant的部署
- 网站开发
- 搭建CruiseControl 环境
- 只能输入数字的脚本javascript- -
- linux下OCCI编程(1)安装、运行
- WebRequest 乱码 问题
- JBOSS、ANT远程部署的异常解决!
- 自己的网页图标
- DataList中DropDownList如何触发它的SelectedIndexChanged事件
- No row with the given identifier exists 解决方法
- 在SQL中递归查询数据
- HUD 1000
- 使用boostpython小结
- filter过滤器的使用
- 读《大话设计模式》---模板方法模式(TemplateMethond)