java - 启动 JBOSS 5.0.0 GA java.lang.IllegalArgumentException 时出错

标签 java eclipse jboss

<分区>

    Getting the following exception while starting jboss server from eclipse
> ERROR [AbstractKernelController] Error installing to Instantiated: name=StandardBindings state=Described
>java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[int] actual=[java.util.HashSet]
>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)

◾DEPLOYMENTS IN ERROR:名称 -> 错误

StandardBindings -> java.lang.IllegalArgumentException: Wrong arguments. new for target >java.lang.reflect.Constructor expected=[int] actual=[java.util.HashSet] "

最佳答案

在 JBOSS 站点上找到了解决方案。似乎为此打开了一个JIRA。请引用https://issues.jboss.org/browse/JBAS-6506

更改 bindings.xml 文件: ..jboss-5.0.0.GA\server\default\conf\bootstrap 文件夹。

bindings.xml 的 elementClass 属性不正确

 <bean name="StandardBindings" class="java.util.HashSet"
  elementClass="org.jboss.services.binding.ServiceBindingMetadata">
  <constructor>
  <parameter>
  <set>

elementClass 不在正确的位置。上面几行应更改为:

<bean name="StandardBindings" class="java.util.HashSet" > 
   <constructor>
    <parameter class="java.util.Collection">
    <set elementClass="org.jboss.services.binding.ServiceBindingMetadata">
            <!-- ********************* conf/jboss-service.xml ****************** -->

关于java - 启动 JBOSS 5.0.0 GA java.lang.IllegalArgumentException 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22669879/

相关文章:

java - 属性测试器在第二个编辑器页面上不起作用

eclipse - Eclipse Juno缓慢地在编辑器中切换选项卡

c++ - 如何让 eclipse CDT 忽略错误?

hibernate - JBoss AS 7 迁移 - java.lang.ClassNotFoundException : org. hibernate.validator.ClassValidator

caching - jboss/tomcat tld 缓存失效

java - 配置更改无需重新部署

java - 无法检测测试类的默认资源位置

java - Intent 并不总是按预期工作

java - 洛蒂错误 : "java.lang.IllegalStateException: Unable to parse composition"

java - Rijndael 128/256解密