Sur*_*rya 1 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)
Run Code Online (Sandbox Code Playgroud)
◾DEPLOYMENTSIN ERROR:名称 - >错误
StandardBindings - > java.lang.IllegalArgumentException:错误的参数.new for target> java.lang.reflect.Constructor expected = [int] actual = [java.util.HashSet]"
在JBOSS网站上找到了解决方案.似乎有一个JIRA对此开放.请参阅https://issues.jboss.org/browse/JBAS-6506
更改:..jboss-5.0.0.GA\server\default\conf\bootstrap文件夹下的bindings.xml文件.
bindings.xml具有不正确的elementClass属性
<bean name="StandardBindings" class="java.util.HashSet"
elementClass="org.jboss.services.binding.ServiceBindingMetadata">
<constructor>
<parameter>
<set>
Run Code Online (Sandbox Code Playgroud)
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 ****************** -->
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3461 次 |
| 最近记录: |