现在的位置: 首页 > 综合 > 正文

Jboss6.0final的下载与安装(Jboss6.0运行run.bat,一启动除开一闪而过及常见异常)

2013年01月09日 ⁄ 综合 ⁄ 共 2072字 ⁄ 字号 评论关闭

下载地址:

http://www.jboss.org/jbossas/downloads

 

Jboss6.0运行run.bat,一启动除开一闪而过,就是不行。但是用eclipse或者myeclipsejboss配进去,又可以了。为什么单独启动不行呢?
经过研究,大概有三个原因:

1.jdk
配错

cmd下,输入java  -version查看版本号,如果出现正确的版本且javac运行成功,说明java已经安装成功。
2.jboss
环境配置问题。

主要是要注意端口冲突问题。
3.
操作系统问题。
经过盘查,1,2是没问题的。cmdjbossrun.bat,报错为:'findstr' 不是内部或外部命令,也不是可运行的程序或批处理文件。

看来是3操作系统的问题,因为本win7操作系统是克隆的,安装的时候没有把SystemRoot配到path中间!


解决办法:
1.
在我的电脑环境变量里面新建个变量SystemRoot,如果系统为2000,则SystemRoot的值为C:WINNT ,如果系统是xpwin7,则为C:windows

2.path
中追加:%SystemRoot%system32;%SystemRoot%。重启jboss,搞定。

 

错误一:ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/invoker state=Create mode=Manual requiredState=Installed: java.net.URISyntaxException: Illegal character in path at index 16: file:/C:/Program Files/jboss_6Final/server/default/deploy/http-invoker.sar/invoker.war/

ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/ROOT state=Create mode=Manual requiredState=Installed: java.net.URISyntaxException: Illegal character in path at index 16: file:/C:/Program Files/jboss_6Final/server/default/deploy/ROOT.war/

 

ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/javaEe_register_0100 state=Create mode=Manual requiredState=Installed: java.net.URISyntaxException: Illegal character in path at index 16: file:/C:/Program Files/jboss_6Final/server/default/deploy/javaEe_register_0100.war/

这个错误是因为JBOSS_HOME的路径中包含空格。解决:将jboss放到没有空格的路径下。

 

错误二:ERROR [AbstractKernelController] Error installing to Start: name=XNIO:Binding:1200038492:RemotingTcpServer state=Create: java.net.BindException: Address already in use: bind

这个错误是因为jboss的某个应用端口与本地端口冲突造成的。解决办法是:修改jboss的配置文件,文件路径为:C:/jboss6/server/default/conf/bindingservice.beans/META-INF/bindings-jboss-beans.xml。需要注意的是:jboss提供web服务的端口8080这是默认端口,为了避免修改为8082.而错误二则是这个端口引起的5500,修改为5502ok

windowscmd控制台输入netstat –an查看本地tcp端口,如果跟这个文件配置端口一致就会出现这个错误。

错误三:ERROR [ProfileServiceBootstrap] Failed to load profile:: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS)

这个错误出在最后,由前面的错误造成的。当前面的问题解决了,这个问题也不会再出了。

最后祝你jboss之旅好运!

抱歉!评论已关闭.