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)
ER错误的情况:姓名 - >错误
StandardBindings - > java.lang.IllegalArgumentException:错误的参数。 new for target> java.lang.reflect.Constructor expected = [int] actual = [java.util.HashSet]"
答案 0 :(得分:9)
在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 ****************** -->