[jboss-jira] [JBoss JIRA] Updated: (JBAS-6506) conf/bootstrap/bindings.xml contains wrong/ambiguous configuration
Adrian Brock (JIRA)
jira-events at lists.jboss.org
Tue Feb 17 05:31:44 EST 2009
[ https://jira.jboss.org/jira/browse/JBAS-6506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adrian Brock updated JBAS-6506:
-------------------------------
Summary: conf/bootstrap/bindings.xml contains wrong/ambiguous configuration (was: JBossAS-5.0.0.GA fails to start with IBM SDK 6 on AIX 5.3 (error in java.util.HashSet))
Workaround Description:
Modify conf/bootstrap/bindings.xml as per the diff below
Index: src/etc/conf/default/bootstrap/bindings.xml
===================================================================
--- src/etc/conf/default/bootstrap/bindings.xml (revision 84300)
+++ src/etc/conf/default/bootstrap/bindings.xml (working copy)
@@ -95,11 +95,10 @@
</bean>
<!-- Base binding metadata that ServiceBindingStore uses to create bindings for each set -->
- <bean name="StandardBindings" class="java.util.HashSet"
- elementClass="org.jboss.services.binding.ServiceBindingMetadata">
+ <bean name="StandardBindings" class="java.util.HashSet">
<constructor>
- <parameter>
- <set>
+ <parameter class="java.util.Collection">
+ <set elementClass="org.jboss.services.binding.ServiceBindingMetadata">
<!-- ********************* conf/jboss-service.xml ****************** -->
<!-- Naming Service -->
Workaround: [Workaround Exists]
The StandardBindings bean in conf/bootstrap/bindings.xml contains wrong/ambiguous configuration.
1) the elementClass is in the wrong place.
2) the HashSet constructor is not disambiguating between the two one parameter constructors
There exists at least two one parameter constructors, the second one should be used
so it needs to specify the type on the parameter of the constructor.
HashSet(int)
HashSet(Collection)
> conf/bootstrap/bindings.xml contains wrong/ambiguous configuration
> ------------------------------------------------------------------
>
> Key: JBAS-6506
> URL: https://jira.jboss.org/jira/browse/JBAS-6506
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Management services
> Affects Versions: JBossAS-5.0.0.GA
> Environment: AIX 5300-09-02-0849, 64 bit
> java version "1.6.0" Java(TM) SE Runtime Environment (build pap6460sr3-20081106_07(SR3))
> IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 AIX ppc64-64 jvmap6460-20081105_25433 (JIT enabled, AOT enabled)
> Also with Java 6 32 bit:
> IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 AIX ppc-32 jvmap3260-20081105_25433 (JIT enabled, AOT enabled)
> Reporter: Mihai Criveti
> Fix For: JBossAS-5.0.1.GA
>
> Attachments: boot.log
>
>
> Note: jboss-4.2.3.GA works fine with this version of Java (as well as various other Java apps), so the Java version is functional.
> jboss-5.0.0.GA works with IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 AIX ppc-32 j9vmap3223-20080315 (JIT enabled) though.
> It does not work with Java6 64:
> cmihai at phobos:/home/cmihai/binary/jboss-5.0.0.GA-JDK6/bin$ ./run.sh
> =========================================================================
> JBoss Bootstrap Environment
> JBOSS_HOME: /home/cmihai/binary/jboss-5.0.0.GA-JDK6
> JAVA: /usr/java6_64/bin/java
> JAVA_OPTS: -Dprogram.name=run.sh -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
> CLASSPATH: /home/cmihai/binary/jboss-5.0.0.GA-JDK6/bin/run.jar:/usr/java6_64/lib/tools.jar
> =========================================================================
> 18:06:46,285 INFO [ServerImpl] Starting JBoss (Microcontainer)...
> 18:06:46,299 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812042120)
> 18:06:46,305 INFO [ServerImpl] Bootstrap URL: null
> 18:06:46,307 INFO [ServerImpl] Home Dir: /home/cmihai/binary/jboss-5.0.0.GA-JDK6
> 18:06:46,309 INFO [ServerImpl] Home URL: file:/home/cmihai/binary/jboss-5.0.0.GA-JDK6/
> 18:06:46,311 INFO [ServerImpl] Library URL: file:/home/cmihai/binary/jboss-5.0.0.GA-JDK6/lib/
> 18:06:46,317 INFO [ServerImpl] Patch URL: null
> 18:06:46,323 INFO [ServerImpl] Common Base URL: file:/home/cmihai/binary/jboss-5.0.0.GA-JDK6/common/
> 18:06:46,325 INFO [ServerImpl] Common Library URL: file:/home/cmihai/binary/jboss-5.0.0.GA-JDK6/common/lib/
> 18:06:46,327 INFO [ServerImpl] Server Name: default
> 18:06:46,329 INFO [ServerImpl] Server Base Dir: /home/cmihai/binary/jboss-5.0.0.GA-JDK6/server
> 18:06:46,332 INFO [ServerImpl] Server Base URL: file:/home/cmihai/binary/jboss-5.0.0.GA-JDK6/server/
> 18:06:46,335 INFO [ServerImpl] Server Config URL: file:/home/cmihai/binary/jboss-5.0.0.GA-JDK6/server/default/conf/
> 18:06:46,337 INFO [ServerImpl] Server Home Dir: /home/cmihai/binary/jboss-5.0.0.GA-JDK6/server/default
> 18:06:46,339 INFO [ServerImpl] Server Home URL: file:/home/cmihai/binary/jboss-5.0.0.GA-JDK6/server/default/
> 18:06:46,341 INFO [ServerImpl] Server Data Dir: /home/cmihai/binary/jboss-5.0.0.GA-JDK6/server/default/data
> 18:06:46,344 INFO [ServerImpl] Server Library URL: file:/home/cmihai/binary/jboss-5.0.0.GA-JDK6/server/default/lib/
> 18:06:46,346 INFO [ServerImpl] Server Log Dir: /home/cmihai/binary/jboss-5.0.0.GA-JDK6/server/default/log
> 18:06:46,348 INFO [ServerImpl] Server Native Dir: /home/cmihai/binary/jboss-5.0.0.GA-JDK6/server/default/tmp/native
> 18:06:46,365 INFO [ServerImpl] Server Temp Dir: /home/cmihai/binary/jboss-5.0.0.GA-JDK6/server/default/tmp
> 18:06:46,367 INFO [ServerImpl] Server Temp Deploy Dir: /home/cmihai/binary/jboss-5.0.0.GA-JDK6/server/default/tmp/deploy
> 18:06:56,337 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/home/cmihai/binary/jboss-5.0.0.GA-JDK6/server/default/conf/bootstrap.xml
> 18:07:03,534 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.IterableTimedVFSCache]
> 18:07:03,645 INFO [VFSCacheFactory] Using VFSCache [IterableTimedVFSCache{lifetime=1800, resolution=60}]
> 18:07:11,591 INFO [CopyMechanism] VFS temp dir: /home/cmihai/binary/jboss-5.0.0.GA-JDK6/server/default/tmp
> 18:07:11,607 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
> 18:07:36,399 INFO [ServerInfo] Java version: 1.6.0,IBM Corporation
> 18:07:36,413 INFO [ServerInfo] Java VM: IBM J9 VM 2.4,IBM Corporation
> 18:07:36,414 INFO [ServerInfo] OS-System: AIX 5.3,ppc64
> 18:07:37,337 INFO [JMXKernel] Legacy JMX core initialized
> 18:08:05,390 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)
> at org.jboss.joinpoint.plugins.BasicConstructorJoinPoint.dispatch(BasicConstructorJoinPoint.java:80)
> at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.createTarget(AOPConstructorJoinpoint.java:276)
> at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.java:97)
> 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:1595)
> at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
> 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:331)
> at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:309)
> 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:144)
> at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:394)
> at org.jboss.Main.boot(Main.java:209)
> at org.jboss.Main$1.run(Main.java:547)
> at java.lang.Thread.run(Thread.java:735)
> 18:08:09,856 INFO [ProfileServiceImpl] Loading profile: default from: org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository at 65716571(root=/home/cmihai/binary/jboss-5.0.0.GA-JDK6/server, key=org.jboss.profileservice.spi.ProfileKey at 143b82c3[domain=default,server=default,name=default])
> 18:08:09,887 INFO [ProfileImpl] Using repository:org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository at 65716571(root=/home/cmihai/binary/jboss-5.0.0.GA-JDK6/server, key=org.jboss.profileservice.spi.ProfileKey at 143b82c3[domain=default,server=default,name=default])
> 18:08:09,889 INFO [ProfileServiceImpl] Loaded profile: ProfileImpl at 4af64af6{key=org.jboss.profileservice.spi.ProfileKey at 143b82c3[domain=default,server=default,name=default]}
> Failed to boot JBoss:
> java.lang.IllegalStateException: Incompletely deployed:
> *** DEPLOYMENTS IN ERROR: Name -> Error
> StandardBindings -> java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[int] actual=[java.util.HashSet]
> *** DEPLOYMENTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
> SystemPropertyBinder -> SystemPropertyBinder#1{Installed:Described}
> SystemPropertyBinder#1 -> ServiceBindingManager{Installed:Described}
> ServiceBindingStore -> StandardBindings{Installed:**ERROR**}
> ServiceBindingManager -> ServiceBindingStore{Installed:Instantiated}
> at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:290)
> at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)
> at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:148)
> at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:394)
> at org.jboss.Main.boot(Main.java:209)
> at org.jboss.Main$1.run(Main.java:547)
> at java.lang.Thread.run(Thread.java:735)
> 18:08:18,701 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
> 18:08:18,741 INFO [ServerImpl] Shutdown complete
> Shutdown complete
> Halting VM
> cmihai at phobos:/home/cmihai$ oslevel -s
> 5300-09-02-0849
> cmihai at phobos:/home/cmihai$ java -version
> java version "1.6.0"
> Java(TM) SE Runtime Environment (build pap6460sr3-20081106_07(SR3))
> IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 AIX ppc64-64 jvmap6460-20081105_25433 (JIT enabled, AOT enabled)
> J9VM - 20081105_025433_BHdSMr
> JIT - r9_20081031_1330
> GC - 20081027_AB)
> JCL - 20081106_01
> Have tried jboss-5.0.0.GA-jdk6.zip and jboss-5.0.0.GA.zip with 32 and 64 bit versions of IBM SDK 6. All behave in the same manner.
> Does work with IBM Java 5.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list