jboss启动常见的错误

1.报错:java.rmi.server.ExportException: Port already in use: 1098; nested exception is:
        java.net.BindException: Address already in use: JVM_Bind
此错误常在4.2版本中出现。
需要修改的文件的路径:jboss-4.2.2.GA\server\default\conf\jboss-service.xml   把1098改为其它号码即可,一直改到它成功为止

<attribute name="Port">1099</attribute>
     
<attribute name="RmiPort">1098</attribute>

2.报错:java.net.BindException:   Address   already   in   use:   JVM_Bind:8080
需要修改的文件的路径:jboss-4.2.2.GA\server\default\deploy\jboss-web.deployer\server.xml
把8080改为其它号码即可,一直改到它成功为止,修改后一定记得要保存.如安装eclipse插件可以打开服务直接修改Port即可。
此错误在各个版本都常见。

JBOSS里面这个异常说明端口1098被其他进程占用了,查看占用进程的方法为:

1)命令行cmd -> netstat -ano | findstr "1098",得到占用端口1098的pID
2)ctrl+alt+del,进入任务管理器,点击“查看‘,选择pid后,查看是那个进程占用的,结束即可

3.报错:Deployment "AttachmentStore" is in error due to: java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[java.net.URI] actual=[java.io.File]
具体:
...
16:15:28,605 ERROR [AbstractKernelController] Error installing to Instantiated: name=AttachmentStore state=Described  
java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[java.net.URI] actual=[java.io.File]  
    at org.jboss.reflect.plugins.introspection.ReflectionUtils.handleErrors(ReflectionUtils.java:395)  
    at org.jboss.reflect.plugins.introspection.ReflectionUtils.newInstance(ReflectionUtils.java:153)  
    at org.jboss.reflect.plugins.introspection.ReflectConstructorInfoImpl.newInstance(ReflectConstructorInfoImpl.java:106)  
    at org.jboss.joinpoint.plugins.BasicConstructorJoinPoint.dispatch(BasicConstructorJoinPoint.java:80)  
    at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.createTarget(AOPConstructorJoinpoint.java:282)  
    at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.java:103)  
    at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)  
    at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)  
    at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)  
    at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)  
    at org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInternal(InstantiateAction.java:66)  
    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)  
    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)  
    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)  
    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)  
    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)  
    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)  
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)  
    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)  
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)  
    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)  
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)  
    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)  
    at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:319)  
    at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:297)  
    at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)  
    at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:76)  
    at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:91)  
    at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:161)  
    at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:138)  
    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)  
    at org.jboss.Main.boot(Main.java:221)  
    at org.jboss.Main$1.run(Main.java:556)  
    at java.lang.Thread.run(Thread.java:619)  
Failed to boot JBoss:  
java.lang.IllegalStateException: Incompletely deployed:  
 
DEPLOYMENTS IN ERROR:  
  Deployment "AttachmentStore" is in error due to: java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[java.net.URI] actual=[java.io.File]  
 
DEPLOYMENTS MISSING DEPENDENCIES:  
  Deployment "ProfileServicePersistenceDeployer" is missing the following dependencies:  
    Dependency "AttachmentStore" (should be in state "Installed", but is actually in state "**ERROR**")  
  Deployment "ProfileServiceDeployer" is missing the following dependencies:  
    Dependency "AttachmentStore" (should be in state "Installed", but is actually in state "**ERROR**")  
  Deployment "ProfileService" is missing the following dependencies:  
    Dependency "ProfileServiceDeployer" (should be in state "Installed", but is actually in state "Instantiated")  
    Dependency "jboss.kernel:service=KernelController" (should be in state "Installed", but is actually in state "**ERROR**")  
  Deployment "ProfileServiceBootstrap" is missing the following dependencies:  
    Dependency "ProfileService" (should be in state "Installed", but is actually in state "Instantiated")  
    Dependency "jboss.kernel:service=Kernel" (should be in state "Installed", but is actually in state "**ERROR**")  
 
    at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:278)  
    at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)  
    at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:142)  
    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)  
    at org.jboss.Main.boot(Main.java:221)  
    at org.jboss.Main$1.run(Main.java:556)  
    at java.lang.Thread.run(Thread.java:619)  
16:15:29,515 INFO  [ServerImpl] Runtime shutdown hook called, forceHalt: true 
16:15:29,523 INFO  [ServerImpl] Shutdown complete  
Shutdown complete  
Halting VM

此错误常在5.1版本中出现。
这个错误是配置文件profile.xml内的一个bug,文件路径为:$JBOSS_HOME/server/<serverName>/conf/bootstrap/profile.xml
把其中的节点:
<bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore">
 <constructor><parameter><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor>
修改为:
<bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore">
 <constructor><parameter class="java.io.File"><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor>

4.错误信息:
ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=jboss:service=NamingProviderURLWriter state=Create mode=Manual requiredState=Installed
java.io.IOException: Access is denied

解决办法:停止windows的Indexing Service服务。出现错误原因如下:
It seemed that a file was being locked for some reason, and that file was obviously necessary for JBoss to start. Some further investigation (ok, I admit, I just tried to delete all of JBoss with the faith that it would fail on the locked file), it turns out that file was some file called jnp-service.url in the data directory of the default server. After downloading and installing the handy Unlocker tool (http://ccollomb.free.fr/unlocker/), it turns out that cidaemon.exe (aka the Windows Indexing Service) was locking the file for some reason. Turning off the Indexing Service solved that problem.

The second issue came when I attempted to deploy my WAR file with my JAX-WS service into my new JBoss server. Again, I could not get it to deploy, and a review of the log files showed
"vfsfile:/C:/dev/Workspaces/BeliefNet/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_5.1_Server/deploy/RAFTSOA.war/" is in error due to the following reason(s): java.lang.StringIndexOutOfBoundsException: String index out of range: -1
A strange and cryptic error indeed. As you can see, I was using the JBoss tools integration with Eclipse, so I tried just exporting the WAR file and copying it manually to the JBoss deploy directory, but still no luck. With nightmares of "pouring through source code to see what JBoss is doing when it throws this exception" dancing in my head, luckily Google gave a bunch of pieces to the puzzle to what might be causing this. It turns out that JBoss requires all servlets and such to be inside a package. This was not the case when I was just deploying in Tomcat alone, but luckily this is among the easiest problems to fix.
Happy to say, after those issues were resolved, my sample JAX-WS application is up and running. Now I just have to unlock the puzzle of JAX-WS, JAXB, and how everything lives in harmony to create a viable SOA solution....

5.启动正常在但是使用JBoss Tool3.1的插件JBossAS Tool发布无效(JBoss5.1 Runtime Server发布无效),但是在默认Runtime路径“workspace\.metadata\.plugins\org.jboss.ide.eclipse.as.core\JBoss_5.1_Runtime_ServerXXX”内可以看到发布的项目,启动JBoss却无法访问发布信息,这个问题郁闷了我两天,最终发现一个令人无语的问题,那就是在创建JBoss的项目的时候项目物理路径内不能存在空格,比如路径“Ejb3 Project”等带有空格目录的项目发布后将无法被JBoss正确加载(真佩服这帮程序员)。

解决办法:在开发JBoss的项目时候项目路径一定不要带空格或者其它比较少用的特殊字符,JBoss对路径特别敏感。

OK,可以正常启动了。

jboss启动常见的错误相关推荐

  1. eclipse中jboss启动时50s错误提示

    2019独角兽企业重金招聘Python工程师标准>>> Server JBoss v4.2 at localhost was unable to start within 50 se ...

  2. Zookeeper之启动常见错误及解决方法

    Zookeeper之启动常见错误及解决方法 参考文章: (1)Zookeeper之启动常见错误及解决方法 (2)https://www.cnblogs.com/jpfss/p/11510716.htm ...

  3. tuxedo错误码6_TUXEDO启动常见错误和解决方法

    TUXEDO启动常见错误和解决方法 如果TUXEDO配置的有问题,在启动的时候,会有各种报错信息来提示,请看下面: 1 tmboot: internal error: CMDTUX_CAT:4578: ...

  4. elasticsearch启动常见错误

    elasticsearch启动常见错误 1.max file descriptors [4096] for elasticsearch process is too low, increase to ...

  5. weblogic 启动常见错误解决

    1 weblogic启动常见错误及解决方法 1) weblogic无法启动,不能访问http://localhost:7001/console a) 先查看weblogic的控制端口是否7001,不是 ...

  6. 常见 Datagrid 错误

    Marcie Robillard DatagridGirl.com Datagrid 控件是 Microsoft® ASP.NET 中功能最强.用途最广的 Web 控件之一,这一点已经得到了 ASP. ...

  7. 加载服务器版本信息,传奇服务器端启动加载错误的解决方法

    1.启动服务端M2报错的类型 2.错误分类,思路理清 3.文字总结以下常见现象 传奇服务器端启动加载错误解决方法 Exception] 物品数据库加载错误! [Exception] 魔法数据库加载错误 ...

  8. 8种常见SQL错误用法

    点击上方"方志朋",选择"设为星标" 做积极的人,而不是积极废人 来源:https://dwz.cn/cgAPOWPx 1.LIMIT 语句 分页查询是最常用的 ...

  9. TCP/IP 某些最常见的错误原因码 (errno)列表

    TCP/IP 某些最常见的错误原因码 (errno)列表 对于在基于 UNIX 的环境中的 TCP/IP 用户,下表列出了某些最常见的错误原因码 (errno).它不是完整的错误列表.可以在文件 /u ...

最新文章

  1. 2022-2028年中国硅酸钙板行业市场研究及前瞻分析报告
  2. java非递归遍历file树_Java语言实现非递归实现树的前中后序遍历总结
  3. 线结构光平面标定矩阵变换算子
  4. 做了几道Linux笔试题1
  5. PAT甲级1015 Reversible Primes :[C++题解]进制位、秦九韶算法、判质数
  6. java web 购物车_java web开发之实现购物车功能
  7. 科技行业风投日趋谨慎:VR、机器学习和汽车值得关注
  8. Top命令找出CPU占用较高的Java线程信息
  9. 设计模式笔记五:原型模式
  10. 594.最长和谐子序列(力扣leetcode) 博主可答疑该问题
  11. 数学建模算法与应用学习day4——综合评价与决策方法
  12. linux环境编程apue,《UNIX环境高级编程》中apue.h的问题
  13. 软件测试-测试需求分析
  14. 安装SQL server2017提示无法打开注册表项:“Software\Microsoft\MicrosoftsQL Server\140\Bootstrap“,注册表可能已损环。
  15. 《编码的奥秘》——手电筒剖析——读后感!
  16. 解决ERROR Failed to compile with 3 errors These dependencies were not found: * pdfjs-dist/es5/buil问题
  17. ORA-04091: table xxxx is mutating, trigger/function may not see it
  18. 去云南看你们风花雪月
  19. idea-maven父子工程的依赖问题
  20. 这段Rap火了!「中本聪VS汉密尔顿」谁有道理?(附视频)

热门文章

  1. Python - 列表补充(一)
  2. linux断开tcp连接命令,强制断开已经连接上的tcp连接
  3. 人生就像DOTA 需要扎实的补刀、风骚的走位、必胜的欲望和永不放弃的心(持续更新)
  4. C++-Bigo笔试题
  5. Qihoo 360 Secure:您从未听说过的最受欢迎的浏览器
  6. CIDR子网拆分细节
  7. 07_I.MX6ULL_Cortex-A中断原理
  8. 物流信息服务器繁忙,考虑设施繁忙率和自提点服务水平的生鲜物流网络优化
  9. 《Adobe Illustrator CS6中文版经典教程(彩色版)》—第0课0.18节使用透视
  10. 计算机机房防火门,机房防火门需要安装闭门器吗