aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alasdair Nottingham (Resolved) (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (ARIES-783) Jmx connection to IBM Websphere server fails when aries installed on equinox (without aries works fine)
Date Fri, 25 Nov 2011 11:57:40 GMT

     [ https://issues.apache.org/jira/browse/ARIES-783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alasdair Nottingham resolved ARIES-783.
---------------------------------------

    Resolution: Invalid

Hi,

This is caused because the WsnInitialContextFactory is not published into the service registry.
Given how your sample works you will need to do this yourself. The service should be published
using both the javax.naming.spi.InitialContextFactory interface, and the com.ibm.websphere.naming.WsnInitialContextFactory
class name.

This will allow you to resolve the InitialContextFactory.
                
> Jmx connection to IBM Websphere server fails when aries installed on equinox (without
aries works fine)
> -------------------------------------------------------------------------------------------------------
>
>                 Key: ARIES-783
>                 URL: https://issues.apache.org/jira/browse/ARIES-783
>             Project: Aries
>          Issue Type: Bug
>          Components: Blueprint, JMX, JNDI
>    Affects Versions: 0.1, 0.2, 0.3
>         Environment: Linux, Windows
>            Reporter: Dan Peretz
>            Priority: Blocker
>
> Hi,
> We are trying to connect to Websphere JMX MBean server and get the following exception
(see below).
> We are trying to initialize the connection using the attached bean via blueprint definition.
> The attached code works fine if we run it on top of equinox without Aries bundles (only
a bundle containing this bean + ibm jars are installed).
> See below:
> 1. Bean with Connection Code
> 2. Installed bundles on environment and Application Bundle description
> 3. bundle containing IBM connectivity jars (ibm-orb and ws-admin-client)
> 4. Exception on startup
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> import java.util.Hashtable;
> import java.util.Set;
> import javax.management.MBeanServerConnection;
> import javax.management.ObjectName;
> import javax.management.remote.JMXConnector;
> import javax.management.remote.JMXConnectorFactory;
> import javax.management.remote.JMXServiceURL;
> import javax.naming.Context;
> import org.osgi.framework.BundleContext;
> public class TestConnection {
>      private static final String COM_IBM_WEBSPHERE_NAMING_NAME_SYNTAX = "com.ibm.websphere.naming.name.syntax";
>      //private static final String WEBSPHERE_PROTOCOL_PROVIDER_PACKAGES = "com.ibm.ws.naming";
>      private static final String WEBSPHERE_PROTOCOL_PROVIDER_PACKAGES = "com.ibm.websphere.management.remote";
>      private static final String WEBSPHERE_INITIAL_CONTEXT_FACTORY = "com.ibm.websphere.naming.WsnInitialContextFactory";
>      private static final String WAS_JMX_SERVICE_URL_PREFIX = "service:jmx:iiop://";
>      private static final String WAS_JMX_SERVICE_URL_SUFFIX = "/jndi/JMXConnector";
> 	
>      private BundleContext context = null;
>      public void init() throws Exception {
>         System.out.println("--------------- iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii   -");
>         Thread.currentThread().setContextClassLoader(TestConnection.class.getClassLoader());
>         String address = "172.16.252.33";
>         JMXConnector conn = null;
>         JMXServiceURL jmxurl = null;
>         jmxurl = new JMXServiceURL(WAS_JMX_SERVICE_URL_PREFIX + address + WAS_JMX_SERVICE_URL_SUFFIX);
>         Hashtable<String, Object> parameters = new Hashtable<String, Object>();
>         parameters.put(Context.INITIAL_CONTEXT_FACTORY, WEBSPHERE_INITIAL_CONTEXT_FACTORY);
>         parameters.put(javax.management.remote.JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES,
WEBSPHERE_PROTOCOL_PROVIDER_PACKAGES);
>         String providerUrl = "corbaloc:iiop:" + address + "/WsnAdminNameService";
>         parameters.put(Context.PROVIDER_URL, providerUrl);
>         parameters.put("osgi.service.jndi.bundleContext", context);
>         parameters.put(COM_IBM_WEBSPHERE_NAMING_NAME_SYNTAX, "ins");
>         conn = JMXConnectorFactory.connect(jmxurl, parameters);           <<=====
FAILS HERE
>         
>         MBeanServerConnection mbsconn = conn.getMBeanServerConnection();
>         Set set = mbsconn.queryMBeans(new ObjectName("*:name=*,*"), null);
>         System.out.println(set.size());
>         
>         System.out.println("Success! conn: " + conn);		
> 	}
> 	
> 	public void setContext(BundleContext context) {
> 		this.context = context;
> 	}
> 	public BundleContext getContext() {
> 		return context;
> 	}
> }
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> id    State       Bundle
> 0     ACTIVE      org.eclipse.osgi_3.5.0.v20090520
> 114   ACTIVE      com.springsource.org.apache.commons.collections_3.2.1
> 115   ACTIVE      org.ops4j.pax.logging.pax-logging-service_1.4.0
> 116   ACTIVE      org.apache.commons.pool_1.5.4
> 118   ACTIVE      org.apache.commons.lang_2.5.0
> 119   ACTIVE      com.springsource.org.aopalliance_1.0.0
> 120   ACTIVE      com.springsource.org.apache.commons.logging_1.1.1
> 121   ACTIVE      org.ops4j.pax.logging.pax-logging-api_1.4.0
> 122   ACTIVE      org.apache.felix.fileinstall_3.1.4
> 126   ACTIVE      org.apache.felix.configadmin_1.2.4
> 127   ACTIVE      org.objectweb.asm.all_3.2.0
> 133   ACTIVE      com.att.tlv.infra.ibm.client.ibm-client_7.0.0
> 134   ACTIVE      org.apache.aries.proxy_0.4.0.SNAPSHOT
> 135   ACTIVE      org.apache.aries.util_0.4.0.SNAPSHOT
> 137   ACTIVE      jmx-test-plain-bundle_1.0.0.qualifier
> 138   ACTIVE      org.apache.aries.blueprint_0.3.2.SNAPSHOT
> 140   ACTIVE      org.apache.aries.jndi_0.3.1.SNAPSHOT
> osgi> bundle 137
> jmx-test-plain-bundle_1.0.0.qualifier [137]
>   Id=137, Status=ACTIVE      Data Root=D:\Dev\java\workspaces\infra-3.1.5\.metadata\.plugins\org.eclipse.pde.core\osgi\org.eclipse.osgi\bundles\137\data
>   No registered services.
>   No services in use.
>   Exported packages
>     jmx_test_plain_bundle; version="0.0.0"[exported]
>   Imported packages
>     org.osgi.framework; version="1.5.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     com.ibm.websphere.naming; version="7.0.0"<com.att.tlv.infra.ibm.client.ibm-client_7.0.0
[133]>
>     com.ibm.websphere.management.remote; version="7.0.0"<com.att.tlv.infra.ibm.client.ibm-client_7.0.0
[133]>
>   No fragment bundles
>   Named class space
>     jmx-test-plain-bundle; bundle-version="1.0.0.qualifier"[provided]
>   No required bundles
> osgi> bundle 133
> com.att.tlv.infra.ibm.client.ibm-client_7.0.0 [133]
>   Id=133, Status=ACTIVE      Data Root=D:\Dev\java\workspaces\infra-3.1.5\.metadata\.plugins\org.eclipse.pde.core\osgi\org.eclipse.osgi\bundles\133\data
>   No registered services.
>   No services in use.
>   Exported packages
>     com.ibm.websphere.management.remote; version="7.0.0"[exported]
>     org.omg.CORBA; version="7.0.0"[exported]
>     com.ibm.websphere.naming; version="7.0.0"[exported]
>     com.ibm.ws.naming.corbaloc; version="7.0.0"[exported]
>     com.ibm.ws.naming.corbaname; version="7.0.0"[exported]
>     com.ibm.ws.naming.distcos; version="7.0.0"[exported]
>     com.ibm.ws.naming.iiop; version="7.0.0"[exported]
>     com.ibm.ws.naming.ipbase; version="7.0.0"[exported]
>     com.ibm.ws.naming.java; version="7.0.0"[exported]
>     com.ibm.ws.naming.jbatch; version="7.0.0"[exported]
>     com.ibm.ws.naming.jcache; version="7.0.0"[exported]
>     com.ibm.ws.naming.jndicos; version="7.0.0"[exported]
>     com.ibm.ws.naming.ldap; version="7.0.0"[exported]
>     com.ibm.ws.naming.urlbase; version="7.0.0"[exported]
>     com.ibm.ws.naming.urlns; version="7.0.0"[exported]
>     com.ibm.ws.naming.util; version="7.0.0"[exported]
>   Imported packages
>     javax.crypto; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.crypto.spec; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.jws; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.naming; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.naming.directory; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.naming.spi; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.net; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.net.ssl; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>    javax.rmi; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.security.auth; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.security.auth.callback; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520
[0]>
>     javax.security.auth.kerberos; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520
[0]>
>     javax.security.auth.login; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.security.auth.spi; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.security.auth.x500; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.security.cert; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.security.sasl; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.sql; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.swing; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.swing.border; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.swing.event; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.swing.plaf.basic; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.swing.table; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.swing.text; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.xml.bind; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.xml.bind.annotation; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.xml.bind.annotation.adapters; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520
[0]>
>     javax.xml.namespace; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.xml.parsers; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.xml.soap; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.xml.stream; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.xml.transform; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.xml.transform.dom; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.xml.transform.sax; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.xml.transform.stream; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.xml.validation; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.xml.ws; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     javax.xml.xpath; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     org.eclipse.osgi.framework.adaptor; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520
[0]>
>     org.eclipse.osgi.framework.log; version="1.0.0"<org.eclipse.osgi_3.5.0.v20090520
[0]>
>     org.eclipse.osgi.service.datalocation; version="1.2.0"<org.eclipse.osgi_3.5.0.v20090520
[0]>
>     org.ietf.jgss; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     org.osgi.util.tracker; version="1.4.2"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     org.w3c.dom; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     org.w3c.dom.stylesheets; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     org.w3c.dom.traversal; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     org.xml.sax; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     org.xml.sax.ext; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>     org.xml.sax.helpers; version="0.0.0"<org.eclipse.osgi_3.5.0.v20090520 [0]>
>   No fragment bundles
>   Named class space
>     com.att.tlv.infra.ibm.client.ibm-client; bundle-version="7.0.0"[provided]
>   No required bundles
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> osgi> [Framework Event Dispatcher] DEBUG org.ops4j.pax.logging.pax-logging-service
- BundleEvent STARTED
> [Framework Event Dispatcher] DEBUG org.apache.commons.pool - BundleEvent STARTED
> [Framework Event Dispatcher] DEBUG org.apache.commons.lang - BundleEvent STARTED
> [Framework Event Dispatcher] DEBUG com.springsource.org.aopalliance - BundleEvent STARTED
> [Framework Event Dispatcher] DEBUG com.springsource.org.apache.commons.logging - BundleEvent
STARTED
> [Start Level Event Dispatcher] INFO org.ops4j.pax.logging.internal.Activator - Enabling
SLF4J API support.
> [Start Level Event Dispatcher] INFO org.ops4j.pax.logging.internal.Activator - Enabling
Jakarta Commons Logging API support.
> [Start Level Event Dispatcher] INFO org.ops4j.pax.logging.internal.Activator - Enabling
Log4J API support.
> [Start Level Event Dispatcher] INFO org.ops4j.pax.logging.internal.Activator - Enabling
Avalon Logger API support.
> [Start Level Event Dispatcher] INFO org.ops4j.pax.logging.internal.Activator - Enabling
JULI Logger API support.
> [Framework Event Dispatcher] DEBUG org.ops4j.pax.logging.pax-logging-api - BundleEvent
STARTED
> [Start Level Event Dispatcher] DEBUG org.apache.felix.fileinstall - ServiceEvent REGISTERED
> [Start Level Event Dispatcher] DEBUG org.apache.felix.fileinstall - ServiceEvent REGISTERED
> [Framework Event Dispatcher] DEBUG org.apache.felix.fileinstall - BundleEvent STARTED
> [Start Level Event Dispatcher] DEBUG org.apache.felix.configadmin - ServiceEvent REGISTERED
> [Start Level Event Dispatcher] DEBUG org.apache.felix.configadmin - ServiceEvent REGISTERED
> [Start Level Event Dispatcher] DEBUG org.apache.felix.fileinstall - ServiceEvent REGISTERED
> [Start Level Event Dispatcher] DEBUG org.apache.felix.configadmin - Scheduling task ManagedService
Update: pid=org.ops4j.pax.logging
> [Configuration Updater] DEBUG org.apache.felix.configadmin - Running task ManagedService
Update: pid=org.ops4j.pax.logging
> [Start Level Event Dispatcher] DEBUG org.apache.felix.configadmin - Scheduling task ManagedServiceFactory
Update: factoryPid=org.apache.felix.fileinstall
> [Configuration Updater] DEBUG org.apache.felix.configadmin - Running task ManagedServiceFactory
Update: factoryPid=org.apache.felix.fileinstall
> [Framework Event Dispatcher] DEBUG org.apache.felix.configadmin - BundleEvent STARTED
> [Framework Event Dispatcher] DEBUG org.objectweb.asm.all - BundleEvent STARTED
> [Framework Event Dispatcher] DEBUG com.att.tlv.infra.ibm.client.ibm-client - BundleEvent
STARTED
> [Start Level Event Dispatcher] DEBUG org.apache.aries.proxy - ServiceEvent REGISTERED
> [Framework Event Dispatcher] DEBUG org.apache.aries.proxy - BundleEvent STARTED
> [Framework Event Dispatcher] DEBUG org.apache.aries.util - BundleEvent STARTED
> [Framework Event Dispatcher] DEBUG jmx-test-plain-bundle - BundleEvent STARTED
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- Starting blueprint extender...
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintEventDispatcher
- EventAdmin package is not available, just don't use it
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- Found ProxyManager service, starting to process blueprint bundles
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- Scanning bundle org.eclipse.osgi for blueprint application
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- No blueprint application found in bundle org.eclipse.osgi
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- Scanning bundle com.springsource.org.apache.commons.collections for blueprint application
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- No blueprint application found in bundle com.springsource.org.apache.commons.collections
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- Scanning bundle org.ops4j.pax.logging.pax-logging-service for blueprint application
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- No blueprint application found in bundle org.ops4j.pax.logging.pax-logging-service
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- Scanning bundle org.apache.commons.pool for blueprint application
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- No blueprint application found in bundle org.apache.commons.pool
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- Scanning bundle org.apache.commons.lang for blueprint application
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- No blueprint application found in bundle org.apache.commons.lang
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- Scanning bundle com.springsource.org.aopalliance for blueprint application
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- No blueprint application found in bundle com.springsource.org.aopalliance
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- Scanning bundle com.springsource.org.apache.commons.logging for blueprint application
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- No blueprint application found in bundle com.springsource.org.apache.commons.logging
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- Scanning bundle org.ops4j.pax.logging.pax-logging-api for blueprint application
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- No blueprint application found in bundle org.ops4j.pax.logging.pax-logging-api
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- Scanning bundle org.apache.felix.fileinstall for blueprint application
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- No blueprint application found in bundle org.apache.felix.fileinstall
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- Scanning bundle org.apache.felix.configadmin for blueprint application
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- No blueprint application found in bundle org.apache.felix.configadmin
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- Scanning bundle org.objectweb.asm.all for blueprint application
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- No blueprint application found in bundle org.objectweb.asm.all
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- Scanning bundle com.att.tlv.infra.ibm.client.ibm-client for blueprint application
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- No blueprint application found in bundle com.att.tlv.infra.ibm.client.ibm-client
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- Scanning bundle org.apache.aries.proxy for blueprint application
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- No blueprint application found in bundle org.apache.aries.proxy
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- Scanning bundle org.apache.aries.util for blueprint application
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- No blueprint application found in bundle org.apache.aries.util
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- Scanning bundle jmx-test-plain-bundle for blueprint application
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- Found blueprint application in bundle jmx-test-plain-bundle with paths: [bundleentry://137.fwk29115481/OSGI-INF/blueprint/blueprint.xml]
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- Scheduling creation of blueprint bundle jmx-test-plain-bundle asynchronously
> [Blueprint Extender: 1] DEBUG org.apache.aries.blueprint.container.BlueprintContainerImpl
- Running blueprint container for bundle jmx-test-plain-bundle in state Unknown
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint - ServiceEvent REGISTERED
> [Blueprint Extender: 1] DEBUG org.apache.aries.blueprint.container.BlueprintEventDispatcher
- Sending blueprint container event BlueprintEvent[type=CREATING] for bundle jmx-test-plain-bundle
> [Start Level Event Dispatcher] INFO org.apache.aries.blueprint.container.BlueprintExtender
- No quiesce support is available, so blueprint components will not participate in quiesce
operations
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- Blueprint extender started
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- Scanning bundle org.apache.aries.blueprint for blueprint application
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- Found blueprint application in bundle org.apache.aries.blueprint with paths: [bundleentry://138.fwk29115481/OSGI-INF/blueprint/blueprint-cm.xml,
bundleentry://138.fwk29115481/OSGI-INF/blueprint/blueprint-ext.xml]
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- Scheduling creation of blueprint bundle org.apache.aries.blueprint asynchronously
> [Framework Event Dispatcher] DEBUG org.apache.aries.blueprint - BundleEvent STARTED
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint.container.BlueprintContainerImpl
- Running blueprint container for bundle org.apache.aries.blueprint in state Unknown
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint.container.BlueprintContainerImpl
- Grace-period directive: false
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint.container.BlueprintEventDispatcher
- Sending blueprint container event BlueprintEvent[type=CREATING] for bundle org.apache.aries.blueprint
> [Start Level Event Dispatcher] DEBUG org.apache.aries.jndi - ServiceEvent REGISTERED
> [Start Level Event Dispatcher] DEBUG org.apache.aries.jndi - ServiceEvent REGISTERED
> [Start Level Event Dispatcher] DEBUG org.apache.aries.jndi - ServiceEvent REGISTERED
> [Start Level Event Dispatcher] DEBUG org.apache.aries.jndi - ServiceEvent REGISTERED
> [Start Level Event Dispatcher] DEBUG org.apache.aries.jndi - ServiceEvent REGISTERED
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- Scanning bundle org.apache.aries.jndi for blueprint application
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- No blueprint application found in bundle org.apache.aries.jndi
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- Scanning bundle org.eclipse.osgi for blueprint application
> [Start Level Event Dispatcher] DEBUG org.apache.aries.blueprint.container.BlueprintExtender
- No blueprint application found in bundle org.eclipse.osgi
> [Framework Event Dispatcher] DEBUG org.apache.aries.jndi - BundleEvent STARTED
> [Framework Event Dispatcher] DEBUG org.eclipse.osgi - BundleEvent STARTED
> [Framework Event Dispatcher] DEBUG org.eclipse.osgi - FrameworkEvent STARTED
> [Framework Event Dispatcher] DEBUG org.eclipse.osgi - FrameworkEvent STARTLEVEL CHANGED
> [Blueprint Extender: 1] DEBUG org.apache.aries.blueprint.container.BlueprintContainerImpl
- Tracking service references: []
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint.container.BlueprintContainerImpl
- Tracking service references: []
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint.container.ServiceRecipe - Registering
service .component-2 with interfaces [org.apache.aries.blueprint.NamespaceHandler] and properties
{osgi.service.blueprint.namespace=[Ljava.lang.Object;@1f4cbee}
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint - ServiceEvent REGISTERED
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint.namespace.NamespaceHandlerRegistryImpl
- Adding NamespaceHandler {org.apache.aries.blueprint.NamespaceHandler}={osgi.service.blueprint.namespace=[http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0,http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.1.0,http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.2.0],
service.id=41}
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint.container.ServiceRecipe - Retrieving
service for bundle org.apache.aries.blueprint_0.3.2.SNAPSHOT [138] and service registration
{org.apache.aries.blueprint.NamespaceHandler}={osgi.service.blueprint.namespace=[http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0,http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.1.0,http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.2.0],
service.id=41}
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint.container.ServiceRecipe - Creating
service instance
> [Blueprint Extender: 1] DEBUG org.apache.aries.blueprint.container.BlueprintContainerImpl
- Instantiating components: [blueprintContainer, blueprintBundle, blueprintBundleContext,
blueprintConverter, test]
> --------------- iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii   -
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint.container.ServiceRecipe - Service
created: org.apache.aries.blueprint.ext.impl.ExtNamespaceHandler@16c9867
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint.container.ServiceRecipe - Creating
listeners
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint.container.ServiceRecipe - Listeners
created: []
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint.container.ServiceRecipe - Calling
listeners for initial service registration
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint.container.ServiceRecipe - Method
entry: getService, args org.apache.aries.blueprint.ext.impl.ExtNamespaceHandler@16c9867
> ----------------
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint.container.ServiceRecipe - Registering
service .component-1 with interfaces [org.apache.aries.blueprint.NamespaceHandler] and properties
{osgi.service.blueprint.namespace=[Ljava.lang.Object;@3bc473}
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint - ServiceEvent REGISTERED
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint.namespace.NamespaceHandlerRegistryImpl
- Adding NamespaceHandler {org.apache.aries.blueprint.NamespaceHandler}={osgi.service.blueprint.namespace=[http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0,http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0],
service.id=42}
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint.container.ServiceRecipe - Retrieving
service for bundle org.apache.aries.blueprint_0.3.2.SNAPSHOT [138] and service registration
{org.apache.aries.blueprint.NamespaceHandler}={osgi.service.blueprint.namespace=[http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0,http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0],
service.id=42}
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint.container.ServiceRecipe - Creating
service instance
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint.container.ServiceRecipe - Service
created: org.apache.aries.blueprint.compendium.cm.CmNamespaceHandler@1bcdbf6
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint.container.ServiceRecipe - Creating
listeners
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint.container.ServiceRecipe - Listeners
created: []
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint.container.ServiceRecipe - Calling
listeners for initial service registration
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint.container.ServiceRecipe - Method
entry: getService, args org.apache.aries.blueprint.compendium.cm.CmNamespaceHandler@1bcdbf6
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint.container.BlueprintContainerImpl
- Instantiating components: [blueprintContainer, blueprintBundle, blueprintBundleContext,
blueprintConverter]
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint - ServiceEvent REGISTERED
> [Blueprint Extender: 2] DEBUG org.apache.aries.blueprint.container.BlueprintEventDispatcher
- Sending blueprint container event BlueprintEvent[type=CREATED] for bundle org.apache.aries.blueprint
> [Blueprint Extender: 1] DEBUG javax.enterprise.resource.corba._CORBA_.rpc.presentation
- ORBUTIL.errorInSettingDynamicStubFactoryFactory
> org.omg.CORBA.BAD_PARAM:   vmcid: SUN  minor code: 227  completed: No
>       at com.sun.corba.se.impl.logging.ORBUtilSystemException.errorInSettingDynamicStubFactoryFactory(ORBUtilSystemException.java:1879)
>       at com.sun.corba.se.impl.logging.ORBUtilSystemException.errorInSettingDynamicStubFactoryFactory(ORBUtilSystemException.java:1898)
>       at com.sun.corba.se.spi.orb.ORB$2.run(ORB.java:196)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at com.sun.corba.se.spi.orb.ORB.<clinit>(ORB.java:179)
>       at java.lang.Class.forName0(Native Method)
>       at java.lang.Class.forName(Class.java:247)
>       at org.omg.CORBA.ORB.create_impl(ORB.java:295)
>       at org.omg.CORBA.ORB.init(ORB.java:336)
>       at javax.management.remote.rmi.RMIConnector.resolveOrb(RMIConnector.java:1721)
>       at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1851)
>       at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257)
>       at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
>       at TestConnection.init(TestConnection.java:57)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:597)
>       at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:238)
>       at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:838)
>       at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:638)
>       at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:726)
>       at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:71)
>       at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>       at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>       at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:79)
>       at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:220)
>       at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:154)
>       at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:634)
>       at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:326)
>       at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:228)
>       at org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)
>       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>       at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>       at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
>       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
>       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>       at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.ClassNotFoundException: com.sun.corba.se.impl.presentation.rmi.bcel.StubFactoryFactoryBCELImpl
>       at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:489)
>       at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:405)
>       at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:393)
>       at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:105)
>       at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>       at com.sun.corba.se.impl.orbutil.ORBClassLoader.loadClass(ORBClassLoader.java:20)
>       at com.sun.corba.se.spi.orb.ORB$2.run(ORB.java:192)
>       ... 37 more
> [Blueprint Extender: 1] ERROR org.apache.aries.blueprint.container.BlueprintContainerImpl
- Unable to start blueprint container for bundle jmx-test-plain-bundle
> org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to intialize
bean test
>       at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:640)
>       at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:726)
>       at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:71)
>       at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>       at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>       at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:79)
>       at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:220)
>       at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:154)
>       at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:634)
>       at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:326)
>       at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:228)
>       at org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)
>       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>       at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>       at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
>       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
>       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>       at java.lang.Thread.run(Thread.java:619)
> Caused by: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.NoInitialContextException:
Unable to find the InitialContextFactory com.ibm.websphere.naming.WsnInitialContextFactory.
>       at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:338)
>       at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
>       at TestConnection.init(TestConnection.java:57)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at java.lang.reflect.Method.invoke(Method.java:597)
>       at org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:238)
>       at org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:838)
>       at org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:638)
>       ... 19 more
> Caused by: javax.naming.NoInitialContextException: Unable to find the InitialContextFactory
com.ibm.websphere.naming.WsnInitialContextFactory.
>       at org.apache.aries.jndi.ContextHelper.getInitialContext(ContextHelper.java:127)
>       at org.apache.aries.jndi.OSGiInitialContextFactoryBuilder.getInitialContext(OSGiInitialContextFactoryBuilder.java:49)
>       at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
>       at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
>       at javax.naming.InitialContext.init(InitialContext.java:223)
>       at javax.naming.InitialContext.<init>(InitialContext.java:197)
>       at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1884)
>       at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856)
>       at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257)
>       ... 28 more
> [Blueprint Extender: 1] DEBUG org.apache.aries.blueprint.container.BlueprintEventDispatcher
- Sending blueprint container event BlueprintEvent[type=FAILURE, exception=Unable to intialize
bean test] for bundle jmx-test-plain-bundle
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message