| Summary: | JNDIRegistration doesn't refer to esb.juddi.xml | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise SOA Platform 4 | Reporter: | Toshiya Kobayashi <tkobayas> |
| Component: | JBossESB | Assignee: | Kevin Conner <kevin.conner> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 4.3 CP02 | CC: | dlesage, noel.oconnor |
| Target Milestone: | --- | ||
| Target Release: | 4.3 CP04 ER1 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://jira.jboss.org/jira/browse/SOA-1534 | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-03-23 14:50:34 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Deadline: | 2010-03-08 | ||
|
Description
Toshiya Kobayashi
2009-10-19 09:14:09 UTC
jUDDI is incorrectly overriding the JNDI defaults, rather than allowing InitialContext to do the work. The jmx-console shows the following properties being set by default java.naming.factory.initial: org.jnp.interfaces.NamingContextFactory java.naming.factory.url.pkgs: org.jboss.naming:org.jnp.interfaces The lack of java.naming.provider.url results in juddi guessing at the correct value, getting it wrong in this instance. Changed workaround Workaround Description: Removed: Set system properties.
Example)
> bin/run.sh -c default -Djava.naming.provider.url=jnp://localhost:1199 Added: run.sh -Djava.naming.provider.url=
(url is empty)
Fixed Description from "because JNDIRegistration uses java.naming.provider.url from system properties." to "because JNDIRegistration uses default value of java.naming.provider.url." Link: Added: This issue related JBESB-2906 Link: Added: This issue related SOA-1547 Approved for SOA 4.3 CP03. Link: Removed: This issue related JBESB-2906 Link: Added: This issue depends JBESB-3198 Updated in the ESB codebase, will be in next merge. Draft text for the Resolved Issues section of the Release Notes states: https://jira.jboss.org/jira/browse/JBESB-3198 The JNDIRegistration did not refer to esb.juddi.xml. As a consequence, if the binding-manager was configured to change the value of java.naming.provider.url, a javax.naming.CommunicationException exception would occur. This happened because jUDDI was being loaded at the incorrect point. The JuddiRMIService needed to initialize the configuration before the Registry was created. Because it was now, jUDDI would then incorrectly override the JNDI defaults, rather than allow InitialContext to do the work. (jUDDI would attempt to guess the value of java.naming.provider.url and made mistakes.) To fix this issue, jUDDI is now loaded at the correct point. The value is now populated correctly and, as a result, the exception no longer occurs. Verified in 4.3.CP03 ER1 |