My Oracle Support Banner

JavaCAPS6 - Classloader issues when using jms-bc and rawave.rar (Doc ID 1025981.1)

Last updated on JANUARY 19, 2011

Applies to:

Oracle Java CAPS Enterprise Service Bus - Version: R6.3 and later   [Release: 6.0 and later ]
Information in this document applies to any platform.
Checked for relevance on 19-Jan-2011


Environment is Java CAPS 6 and connecting to JMS Grid 5.1.x versions.

Using the jms-bc JBI binding component, we are unable to connect to a JMS Grid daemon using connection factories looked up via JNDI.

We have followed all the steps below and yet are encountering an exception at very end.

1. Install Solaris_ml package.
2. Deploy $JMSGRID/jmsjca/rawave.rar to SJSAS domain as a Connector Module.
3. Using the version of netbeans that comes with the JavaCAPS 6 installation, create an "SOA / BPEL module" project.
4. Add to the project a new WSDL Document. Using the WSDL wizard, define a single Request-Response Operation named ReceiveHttpPost that takes as input an xsd:anyType input paramenter. Set the Binding Type to be HTTP and subtype to be "POST with urlEncoded encoding". See sample below.
5. Add to the project a new WSDL Document. Using the WSDL wizard, define a single One-Way Operation named SendToQueue that takes as input an xsd:string input paramenter. Set the Binding Type to be JMS. See sample below.
6. Create a BPEL process. Add the WSDL documents to the Partner Link region. Add a Receive action to the process and connect it to the ReceiveHttpPost partner link. Add a Add an Invoke action to the process and connect the Invoke action to the SendToQueue partner link. Add an Assign action to the process and use the Assign action to map the input to the ReceiveHttpPost operation to the input parameter of the SendToQueue operation.
7. Create an "SOA / Composite Application" project.
8. Add the BPEL module to the composite application. Build the service assembly to generate the JMS SendToQueue WSDL port.
9. Edit the SendToQueue JMS WSDL Port properties. Set the following properties:
connectionURL = jndi://
username = <jms grid user, eg "admin">
password = <password for username>
initialContextFactory = com.sun.jndi.ldap.LdapCtxFactory
providerURL = <url to ldap service hosting grid connection factories>
securityPrincipal = <dn of ldap admin user>
securityCredentials = <password of securityPrinicpal>
connectionFactoryName = <dn of connection factory entry>
10. Post some data to the http port using the java application documented at
The server.log file should show the following error:

[#|2008-10-24T15:30:11.520-0700|WARNING|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=560ca08c-9747-49bd-b438-b51cc0e72d77;|CORE5016: Unexpected error occurred while loading applications
java.lang.ClassCastException: cannot be cast to
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.createManagedConnectionFactory(
at com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.obtainManagedConnectionFactory(
at com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.createConnectorConnectionPool(
at com.sun.enterprise.connectors.ConnectorRuntime.createConnectorConnectionPool(
at com.sun.enterprise.connectors.ActiveOutboundResourceAdapter.createDefaultConnectorConnectionPools(
at com.sun.enterprise.connectors.ActiveOutboundResourceAdapter.createAllConnectorResources(
at com.sun.enterprise.connectors.ActiveInboundResourceAdapter.setup(
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(
at com.sun.enterprise.connectors.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(
at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(
at com.sun.enterprise.server.ConnectorModuleLoader.load(
at com.sun.enterprise.server.ConnectorModuleLoader.doLoad(
at com.sun.enterprise.server.AbstractLoader.load(
at com.sun.enterprise.server.AbstractManager.load(
at com.sun.enterprise.server.ApplicationLifecycle.onStartup(
at com.sun.enterprise.server.ApplicationServer.onStartup(
at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup( at
at com.sun.enterprise.server.PEMain.main(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at com.sun.enterprise.server.PELaunch.main(

[#|2008-10-24T15:30:11.594-0700|SEVERE|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=560ca08c-9747-49bd-b438-b51cc0e72d77;|CORE5059: Error in loading resource|#]


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.