`
yangzb
  • 浏览: 3507393 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Starting JBoss AS 5.1.0 fails on opensolaris, jdk 1.6.0_13

    博客分类:
  • Java
阅读更多

Starting up JBoss AS 5.1.0.GA fails with the following message:
23:31:11,553 INFO [JMXKernel] Legacy JMX core initialized
23:31:16,747 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 "ProfileService" is missing the following dependencies:
    Dependency "jboss.kernel:service=KernelController" (should be in state "Installed", but is actually in state "**ERROR**")
    Dependency "ProfileServiceDeployer" (should be in state "Installed", but is actually in state "Instantiated")
  Deployment "ProfileServiceDeployer" is missing the following dependencies:
    Dependency "AttachmentStore" (should be in state "Installed", but is actually in state "**ERROR**")
  Deployment "ProfileServiceBootstrap" is missing the following dependencies:
    Dependency "jboss.kernel:service=Kernel" (should be in state "Installed", but is actually in state "**ERROR**")
    Dependency "ProfileService" (should be in state "Installed", but is actually in state "Instantiated")
  Deployment "ProfileServicePersistenceDeployer" is missing the following dependencies:
    Dependency "AttachmentStore" (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)
23:31:18,389 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
23:31:18,402 INFO [ServerImpl] Shutdown complete
Shutdown complete
Halting VM

 

解决办法:

The profile.xml has this configuration for AttachmentStore:

<bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore">
<constructor><parameter><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor>
....

However, there are multiple constructors available for org.jboss.system.server.profileservice.repository.AbstractAttachmentStore. MC randomly picks up one of the available constructors and this can lead to exceptions as noted in the referenced forum thread.

The fix is to provide the parameter type for the constructor in the MC bean configuration (note the use of class="java,io.File" for the constructor parameter):

<bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore">
<constructor><parameter class="java.io.File"><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor>

分享到:
评论
1 楼 skying007 2011-07-30  
高手。果然问题解决

相关推荐

    jboss-5.1.0.GA-jdk6.part1.rar

    jboss-5.1.0.GA-jdk6的部分part1,另外还有part2(http://download.csdn.net/detail/shyaideguo/5160168)需要一起下载之后,再解压使用,该软件均从官方网站下载,请放心使用。

    jboss-5.1.0.GA-jdk6.part2.rar

    jboss-5.1.0.GA-jdk6的部分part2,另外还有part1需要一起下载之后,再解压使用,该软件均从官方网站下载,请放心使用。

    jboss-5.1.0.GA 下载地址

    JBoss AS 5.1.0.GA,全称JavaBoss Application Server,是Red Hat公司开发的一款开源且免费的企业级Java应用服务器,基于Java EE(Enterprise Edition)5规范。这个版本发布于2009年,是JBoss AS 5系列的重要里程碑...

    jboss-5.1.0.GA Getting_Started_Guide.pdf

    ### JBoss 5.1.0.GA Getting Started Guide 关键知识点 #### 一、简介 JBoss 5.1.0.GA 是一个企业级的应用服务器,它提供了丰富的服务来支持 Java 应用程序的部署与运行。该版本的 Getting Started Guide(起步指南...

    linux下jboss安装与配置

    在 Linux 平台下安装 JBoss 需要的系统环境是 RHEL 5.4,Java 版本为 jdk-6u17-linux-i586,Jboss 版本为 jboss-5.1.0.GA-jdk6。 三、安装准备 1. 下载 JBoss 5.1 和 JDK 1.6,从 ...

    最新_jboss安装文档

    本文将详细介绍如何在最新的环境中安装JBoss,主要涉及的步骤包括JDK的安装、JBoss的下载与配置,以及启动和验证安装。 首先,我们从JDK的安装开始: 1. **下载JDK**:你需要下载适用于操作系统的JDK版本,这里...

    jboss-5.1.0.GA.zip.7z1.part

    jboss-5.1.0.GA.zip.7z1.part

    jboss-5.1.0.GA.zip.7z2.part

    jboss-5.1.0.GA.zip.7z2.part

    windows下JBOSS5.1.0部署web应用

    1. **下载JBOSS-5.1.0.GA-jdk6.zip**: JBOSS 5.1.0 GA是Java 6兼容的版本,因此需要下载对应的zip文件。解压缩到指定位置,例如D盘根目录,便于团队成员共享一致的开发环境。 2. **集成Spring框架**: 为了利用...

    jboss-5.1.0.GA _01

    jboss-5.1.0.GA, 因为太大了,我分了两部分上传,这是第一部分,我把里面的service目录的内容放到第二部分了,下载的时候 记得我的上传目录找第二部分资源,然后解压到server目录 便可

    jboss-5.1.0.GA下载(共享份)

    单个只能60所以分了三块

    jboss-5.1.0.GA_02 第二部分

    jboss-5.1.0.GA, 因为太大了,我分了两部分上传,这是第二部分,我把里面的service目录的内容放到第二部分了,下载的时候 记得找我的上传目录找第一部分资源,然后把第二部分解压到第一部分的server目录 便可。...

    jboss-5.1.0.GA-src.tar.gz

    JBoss AS 5.1.0 GA 是一个历史悠久但至关重要的中间件产品,它属于Java企业版(Java EE)的应用服务器,由Red Hat公司开发。这个版本的源代码压缩包"jboss-5.1.0.GA-src.tar.gz"为开发者提供了深入理解其工作原理的...

    jdk1.8.0_181.zip

    JDK 1.8.0_181与各类Java应用服务器如Tomcat、WebLogic、Jboss等兼容,是部署企业级Java应用的基础。 9. **安全增强** 每个JDK更新都会包含安全补丁,修复已知的安全漏洞,确保应用程序的运行安全。 10. **兼容...

    jboss-5.1.0.GA.part1.rar

    jboss-5.1.0.GA 版本的part1,另外还有part2(http://download.csdn.net/detail/shyaideguo/5160163)。请一起下载之后再解压使用,jboss-5.1.0.GA 版本从jboss的官网下载,请各位放心使用。

    jboss-annotations-api_1.3_spec-2.0.1.Final-API文档-中英对照版.zip

    赠送jar包:jboss-annotations-api_1.3_spec-2.0.1.Final.jar; 赠送原API文档:jboss-annotations-api_1.3_spec-2.0.1.Final-javadoc.jar; 赠送源代码:jboss-annotations-api_1.3_spec-2.0.1.Final-sources.jar;...

    jboss-5.1.0.GA.part2.rar

    jboss-5.1.0.GA 版本的part2,另外还有part1。请一起下载之后再解压使用,jboss-5.1.0.GA 版本从jboss的官网下载,请各位放心使用。

    jboss-5.1.0.GA.part3

    jboss官网经常下载不了,可尝试下这个资源分三个压缩包,请分别下载解压

    jboss-5.1.0.GA配置指南

    ### jboss-5.1.0.GA配置指南知识点概览 #### 1. JBoss企业应用平台概述 - **JBoss企业应用平台5.0**:本版本为JBoss企业应用平台的一个重要版本,提供了丰富的功能和服务,适用于构建、部署和管理企业级Java应用...

    Linux下安装Jboss安装详细教程.docx

    - **JBoss版本**:jboss-5.1.0.GA-jdk6 #### 四、软件下载与安装准备 - **JBoss下载地址**:http://sourceforge.net/projects/jboss/files/JBoss/JBoss-5.1.0.GA/jboss-5.1.0.GA-jdk6.zip/download - **JDK下载...

Global site tag (gtag.js) - Google Analytics