WebSphere MQ resource adapter  and Weblogic - how?

Hi,
has anybody managed to get the WebSphere MQ resource adapter to run with Weblogic 10.3 ?
(http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.csqzaw.doc/uj40010_.htm)
I got it deployed, but it never triggers. I only made changes to the ra.xml, do I also need a weblogic-ra.xml?
Has anybody a sample for the WebSphere MQ resource adapter?
Thanks very much,
Juergen

Here's an example resource adapter configuration you can use
* weblogic-ra.xml - http://pastie.org/294590
* note: you have to edit ra.xml manually to change transaction type from Local to XA, etc.
This configures:
* the resource adapter (needed for MDBs) to the jndi name wmq/Connector
* a queue for outbound messages to the jndi name wmq/Queue1
a connection factory for outbound messages to the jndi name wmq/ConnectionFactory
Here's an example MDB that uses the above adapter
* ejb-jar.xml - http://pastie.org/294594
* weblogic-ejb-jar.xml - http://pastie.org/294597
* note: useJNDI doesn't seem to work on WLS. Otherwise, you could setup the queue in your weblogic-ra.xml and then reference the jndi name in the ejb-jar.xml. This limitation clutters the ejb-jar.xml with implementation details of websphere, which are tricky to inject (deployment plan, xslt, etc.). That said, this does work.
* note: If you want consistent control of the amount of consumers you have on a queue, set the ejb-jar.xml activation-config maxPoolDepth == weblogic-ejb-jar.xml max-beans-in-free-pool
This configures:
* an mdb instance listening on a specific WMQ destination
I hope this helps. It is the result of may months of effort between Bea and IBM, and with me in the middle! ;)
Cheers,
-Adrian
Edited by: ferncam1 on Oct 17, 2008 5:31 AM

Similar Messages

  • Send message to WebSphere MQ resource adapter - how?

    Hi,
    has anybody a working sample how an Weblogic EJB can write to an MQ queue via the WebSphere MQ resource adapter?
    http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzaw.doc/uj40010_.htm
    I took Adrian Cole's sample from
    WebSphere MQ resource adapter  and Weblogic - how?
    the message driven bean works, but for outbound I couldn't get it to work.
    I used
         @Resource(name = "wmq/ConnectionFactory")
         private javax.jms.ConnectionFactory queueConnectionFactory;
         Connection connection = null;
         connection = queueConnectionFactory.createConnection();
         Session sess = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
         MessageProducer messageProducer = sess.createProducer(queue);
         messageProducer.send(msg);
         connection.close();
    But then I get
    javax.jms.JMSException: [JMSPool:169819]There was an error with a resource pool used to pool JMS sessions: weblogic.common.ResourceException: 0:javax.jms.JMSException: MQJCA1018:Only one session per connection allowed.
    Can't I use the Resource Adapter to trigger an MDB and write in the same application to the same Resource Adapter?
    Thanks,
    Juergen

    By using @Resource you activate Session pooling [http://download.oracle.com/docs/cd/E12840_01/wls/docs103/jms/j2ee.htm]. Although you constantly create and close the connection, you end up with one connection and multiple Sessions created out of it when there is sufficient concurrency. In JCA, ManagedConnection represents a single Resource (because it also deals with JDBC). In JMS, a Session is a resource. Session pooling violates the requirement "one resource per managed connection" which is what MQ Resource Adapter is telling [http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzaw.doc/uj40030_.htm].
    Some possible solutions:
    * Set max-beans-in-free-pool 1 in weblogic-ejb-jar.xml
    * disable wls Session pooling by simply looking up using InitialContext.lookup. WLS session pool is redundant because resource adapters usually pool connections [http://download.oracle.com/docs/cd/E12840_01/wls/docs103/resadapter/connect.html]. Define outbound resource adapter use its connection factory.

  • Cci resource adapter in weblogic

              Hi,
              I am trying to install the cciblackbox-tx resource adapter that comes with
              sun reference implementation. I successfully deployed the resource adapter and
              created the stored procedures in cloudscape. I get a null pointer exception when
              I call the execute method on the interaction. I did check that the connection,
              interaction are not null. I have a feeling that the java class (Procs.class) that
              you create for the stored procedures need to be in the classpath of the cloudscape
              server when it starts. I would appreciate if anyone can provide insight into this.
              thanks,
              babu
              

              Weblogic 6.1 ships cloudscape 3.5.1. Sun's RI ships cloudscape 3.6. cloudscape
              3.5.1 does not fetch the metadata of the stored procedures properly. I upgraded
              to cloudscape 3.6 and evrything works fine. I did try the example on suns RI and
              it works fine.
              babu
              prasen <[email protected]> wrote:
              >
              >yes you are right, you need to put Procs.class in your classpath.
              >
              >Also I am not sure, but there may be some problems with their
              >implementation. Did you try out teh example on SUN's RI ?
              >
              >prasen
              >
              >babu siddabathuni wrote:
              >>
              >> Hi,
              >> I am trying to install the cciblackbox-tx resource adapter that
              >comes with
              >> sun reference implementation. I successfully deployed the resource
              >adapter and
              >> created the stored procedures in cloudscape. I get a null pointer exception
              >when
              >> I call the execute method on the interaction. I did check that the
              >connection,
              >> interaction are not null. I have a feeling that the java class (Procs.class)
              >that
              >> you create for the stored procedures need to be in the classpath of
              >the cloudscape
              >> server when it starts. I would appreciate if anyone can provide insight
              >into this.
              >>
              >> thanks,
              >> babu
              

  • JMS Resource Adapter and JDeveloper 10g

    Hello,
    I an trying to use the OC4J JMS Resource Adapter for WebSphere MQ with Jdeveloper 10g (OC4J 9.0.4). The program is just a servlet that sends a message to a JMS Queue. My orion-web.xml looks like:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE orion-web-app PUBLIC "-//Evermind//DTD Orion Web Application 2.3//EN" "http://xmlns.oracle.com/ias/dtds/orion-web.dtd">
    <orion-web-app servlet-webdir="/servlet/">
    <resource-ref-mapping name="jms/QCF" location="mqjms/MyQCF" />
    <resource-env-ref-mapping name="jms/QUEUE1" location="mqjms/MyQ" />
    </orion-web-app>
    The problem is that when I try to start the server I get the following Jdeveloper error:
    java.lang.IllegalArgumentException: Unrecognized parent-elem combination: interface oracle.jdeveloper.xml.oc4j.war.OrionWebApp - resource-env-ref-mapping
         at oracle.javatools.xml.bind.XMLBinding.throwUnrecognizedElem(XMLBinding.java:127)
         at oracle.jdeveloper.xml.j2ee.war.WebAppBinding.elem2intImpl(WebAppBinding.java:637)
         at oracle.javatools.xml.bind.XMLBinding.elem2int(XMLBinding.java:104)….
    Any ideas?
    Thanks in advance

    Did you find a fix for this? I'm experiencing the same problem.

  • Classloader issue with resource adapter and webservice

    The following applications are planned to be deployed on the server.
    1.My-shared-lib.ear (J2EE shared library).
    2.My-Service-ear.ear (Service)
    3.My-Resource-Adapter.rar
    The My-shared-lib.ear contains a war which has 3rd Party jars.
    The My-Service-ear.ear contains the service classes and refers to the My-shared-lib.ear using a library relationship. In our case, it refers to spring, Hibernate and related jars.
    The My-Resource-Adapter.rar contains the Resources Adapters. In this case it contains the Spring jars.
    Points on Setup
    1.The configuration does not specify any jars in the classpath.
    2.There are no 3rd party jars in the ext folder.
    *2.Issue Description*
    Issue while starting the Service EAR.*
    The development setup has an application server that has My-shared-lib.ear and My-Service-ear.ear deployed. This works fine.
    The proposed deployment architecture mandates that these applications be deployed on a server where the My-Resource-Adapter.rar is already running. We can deploy & start My-shared-lib.ear . However, when we try to deploy and start My-Service-ear.ear, it fails to start with the error. The detailed exception is found in Appendix A.
    Error Message:
    java.lang.NoClassDefFoundError: org/hibernate/ejb/HibernatePersistence
    *3.Options tried*
    1.Place all the required jars in the .rar.
    We placed all the 3rd party jars required for the My-Service-ear.ear in the My-Resource-Adapter.rar file. When we deployed all the 3 applications, all applications including the My-Service-ear.ear were deployed and started as well.
    2.Place all the required jars in the Service ear.
    We placed all the 3rd party jars required for the My-Service-ear.ear in the My-Service-ear.ear file with the <prefer-web-inf-classes>true</prefer-web-inf-classes>. When we deployed all the 3 applications, all applications including the My-Service-ear.ear were deployed and started as well.
    3.Altering deployment order.
    The deployment order was altered with a higher preference being given to the My-Service-ear.ear. When we deployed all the 3 applications, the application My-Service-ear.ear was deployed but failed to start giving the same exception.
    *4.Analysis*
    1.The spring jar though available in the library ear is being loaded from the .rar application by the classloader.
    2.The above point means that the library reference being provided in the My-Service-ear.ear does not seem to have any impact.
    3.In the 3rd scenario we observed that when the spring is removed from the .rar, it gets loaded from the My-shared-lib.ear. However when it tries to load Hibernate related classes, it fails.
    *5.Summary*
    Our understanding is that all the applications run within their own Classloaders. If classes are not found within the applications, then they should be looking at the Application Server. But here we see that they are referring to the classes in ‘.rar’ file. Hence we are unable to understand this issue. The above problem has workarounds. However, these options are not allowed as per the requirement. The requirement is that the application should run independent of the’ .rar’. Is there a better approach? Are we missing any configuration?
    Edited by: user8575867 on Oct 13, 2010 11:41 PM

    This thread caught my attention - because since switching last week from a late '06 Macbook to the Macbook Pro 13", my Wifi performance at home has gotten slow and unreliable.
    I'm using the Apple MiniDP-DVI adapter, connected to a 24" Dell monitor, which has worked great for a few years on my white Macbook. My base station is a Linksys WRTSL54GS, located about 20 feet away from my desk.
    So, I tried some speed tests with and without the DVI. Performance with the adapter connected is terrible, disconnected it's perfect. Further testing shows that positioning matters.
    When the adapter is turned back 90 degrees, leading the monitor cable towards the back of my desk, Wifi performance is bad. When I turn the adapter so it sticks straight out the left side of the Macbook Pro, performance is normal.
    This is a little weird, but an acceptable workaround for me.

  • JCA Resource adapter deployment in Weblogic server

    Hi,
    I have deployed a resource adapter successfully in Weblogic server and works fine.My resource adapter has weblogic-ra.xml and ra.xml available under meta-inf folder.I have provided some properties in weblogic-ra.xml and ra.xml but unable to see the same properties when i open the resource adapter settings page in the the weblogic administration console
    I want to change resource adapter properties from weblogic adminstration console but dont see the properties which i used during deployment.
    Can someone help with identifying the issue or if i have to do something different.
    Appreciate any help.
    Thanks
    S

    Not sure what might be causing this behavior. Property values in ra/weblogic-ra.xml should be displayed on the console (http://machine:port/console). I think I have experienced similar issue only to realize that console only displays 10 properties and other properties are displayed after pressing Next link on the page.
    How many proprieties you have? What are getting displayed and what properties are not getting displayed?
    Manoj

  • Resource Adapter errors in WebLogic 10.3

    Hi,
    I'm getting ClassCastException from coherence 3.5.3 resource adapter in WebLogic 10.3.
    I've already tried to install resource adapter as a separate deploy and inside ear file, but get same errors.
    Has anybody already managed to use this adapter along with weblogic 10.3 ? The error occurs when I try to get a NamedCache object. The distributed cache named "cache" is up and running since I manage to get and put objects into cache by using NamedCache from CacheFactory (CacheFactory.getCache("cache")).
                   ctx = new InitialContext();
                   // the transaction manager from container
                   tx = (UserTransaction) ctx.lookup("java:comp/UserTransaction");
                   tx.begin();
                   adapter = new CacheAdapter(ctx, "tangosol.coherenceTx", CacheAdapter.CONCUR_PESSIMISTIC ,CacheAdapter.TRANSACTION_REPEATABLE_GET, 300);
                   NamedCache cache = adapter.getNamedCache("cache", getClass().getClassLoader());
                   cache.put(1, 11);
                   Integer estoqueGet = (Integer)cache.get(1);
    2010-06-05 20:24:02.859/96.703 Oracle Coherence GE 3.5.3/465 <D5> (thread=Cluster, member=n/a): Service Cluster joined the cluster with senior service member n/
    a
    2010-06-05 20:24:02.969/96.813 Oracle Coherence GE 3.5.3/465 <Info> (thread=Cluster, member=n/a): Failed to satisfy the variance: allowed=16, actual=47
    2010-06-05 20:24:02.969/96.813 Oracle Coherence GE 3.5.3/465 <Info> (thread=Cluster, member=n/a): Increasing allowable variance to 19
    2010-06-05 20:24:03.344/97.188 Oracle Coherence GE 3.5.3/465 <Info> (thread=Cluster, member=n/a): This Member(Id=2, Timestamp=2010-06-05 20:24:03.078, Address=1
    0.10.10.10:8089, MachineId=2570, Location=machine:ACCENTUR-1FAF0A,process:8036, Edition=Grid Edition, Mode=Development, CpuCount=2, SocketCount=1) joined cluste
    r "cluster:0xDDEB" with senior Member(Id=1, Timestamp=2010-06-05 20:23:06.562, Address=10.10.10.10:8088, MachineId=2570, Location=machine:ACCENTUR-1FAF0A,proces
    s:6300, Role=CoherenceServer, Edition=Grid Edition, Mode=Development, CpuCount=2, SocketCount=1)
    2010-06-05 20:24:03.438/97.282 Oracle Coherence GE 3.5.3/465 <D5> (thread=Cluster, member=n/a): Member 1 joined Service Management with senior member 1
    2010-06-05 20:24:03.438/97.282 Oracle Coherence GE 3.5.3/465 <D5> (thread=Cluster, member=n/a): Member 1 joined Service DistributedCache with senior member 1
    2010-06-05 20:24:03.656/97.500 Oracle Coherence GE 3.5.3/465 <D5> (thread=Invocation:Management, member=2): Service Management joined the cluster with senior se
    rvice member 1
    2010-06-05 20:24:04.125/97.985 Oracle Coherence GE 3.5.3/465 <D5> (thread=TcpRingListener, member=2): TcpRing: connecting to member 1 using TcpSocket{State=STAT
    E_OPEN, Socket=Socket[addr=/10.10.10.10,port=3748,localport=8089]}
    2010-06-05 20:24:04.141/97.985 Oracle Coherence GE 3.5.3/465 <Info> (thread=[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)', memb
    er=2): Loaded cache configuration from "zip:D:/Oracle/Middleware/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user/coherenceapp/v3byxq/war/WEB-
    INF/lib/coherence.jar!/coherence-cache-config.xml"
    2010-06-05 20:24:04.438/98.282 Oracle Coherence GE 3.5.3/465 <D5> (thread=DistributedCache, member=2): Service DistributedCache joined the cluster with senior s
    ervice member 1
    2010-06-05 20:24:04.453/98.297 Oracle Coherence GE 3.5.3/465 <D5> (thread=DistributedCache, member=2): Service DistributedCache: received ServiceConfigSync cont
    aining 258 entries
    2010-06-05 20:24:04.547/98.391 Oracle Coherence GE 3.5.3/465 <D4> (thread=DistributedCache, member=2): Asking member 1 for 128 primary partitions
    2010-06-05 20:24:04.828/98.672 Oracle Coherence GE 3.5.3/465 <Error> (thread=DistributedCache, member=2): An exception (java.io.IOException) occurred reading Me
    ssage Response Type=21 for Service=DistributedCache{Name=DistributedCache, State=(SERVICE_STARTED), LocalStorage=enabled, PartitionCount=257, BackupCount=1, Ass
    ignedPartitions=0, BackupPartitions=0}
    2010-06-05 20:24:04.828/98.672 Oracle Coherence GE 3.5.3/465 <Error> (thread=DistributedCache, member=2): Terminating DistributedCache due to unhandled exceptio
    n: java.io.IOException
    2010-06-05 20:24:04.828/98.672 Oracle Coherence GE 3.5.3/465 <Error> (thread=DistributedCache, member=2):
    java.io.IOException: Class initialization failed: java.lang.ClassCastException: com.tangosol.run.xml.SimpleElement
    at com.tangosol.util.ExternalizableHelper.readExternalizableLite(ExternalizableHelper.java:1946)
    at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2273)
    at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2219)
    at com.tangosol.io.DefaultSerializer.deserialize(DefaultSerializer.java:60)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.readObject(Service.CDB:4)
    at com.tangosol.coherence.component.net.Message.readObject(Message.CDB:1)
    at com.tangosol.coherence.component.net.message.DistributedCacheResponse.read(DistributedCacheResponse.CDB:2)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:123)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onNotify(DistributedCache.CDB:3)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
    at java.lang.Thread.run(Thread.java:619)
    Class: com.tangosol.run.xml.SimpleElement
    ClassLoader: weblogic.utils.classloaders.ChangeAwareClassLoader@15fe77a finder: weblogic.utils.classloaders.CodeGenClassFinder@2a865b8 annotation: coherenceapp@
    WebAppCoherence
    ContextClassLoader: weblogic.utils.classloaders.ChangeAwareClassLoader@15fe77a finder: weblogic.utils.classloaders.CodeGenClassFinder@2a865b8 annotation: cohere
    nceapp@WebAppCoherence
    at com.tangosol.util.ExternalizableHelper.readExternalizableLite(ExternalizableHelper.java:1961)
    at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2273)
    at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java:2219)
    at com.tangosol.io.DefaultSerializer.deserialize(DefaultSerializer.java:60)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.readObject(Service.CDB:4)
    at com.tangosol.coherence.component.net.Message.readObject(Message.CDB:1)
    at com.tangosol.coherence.component.net.message.DistributedCacheResponse.read(DistributedCacheResponse.CDB:2)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:123)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onNotify(DistributedCache.CDB:3)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
    at java.lang.Thread.run(Thread.java:619)
    2010-06-05 20:24:04.844/98.688 Oracle Coherence GE 3.5.3/465 <D5> (thread=DistributedCache, member=2): Service DistributedCache left the cluster
    java.lang.RuntimeException: Failed to start Service "DistributedCache" (ServiceState=SERVICE_STOPPED)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.waitAcceptingClients(Service.CDB:12)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:8)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:11)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.ensureCache(DistributedCache.CDB:29)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.ensureCache(DistributedCache.CDB:39)
    at com.tangosol.coherence.component.util.safeService.SafeCacheService.ensureCache$Router(SafeCacheService.CDB:1)
    at com.tangosol.coherence.component.util.safeService.SafeCacheService.ensureCache(SafeCacheService.CDB:46)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:878)
    at com.tangosol.net.DefaultConfigurableCacheFactory.configureCache(DefaultConfigurableCacheFactory.java:1088)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:304)
    at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:735)
    at com.tangosol.coherence.ra.component.connector.resourceAdapter.cciAdapter.CacheAdapter$ManagedConnection$Connection$Interaction.execute(CacheAdapter.C
    DB:35)
    at com.tangosol.run.jca.CacheAdapter.getNamedCache(CacheAdapter.java:329)
    at com.tangosol.run.jca.CacheAdapter.getNamedCache(CacheAdapter.java:271)
    at ServletCoherence.doGet(ServletCoherence.java:51)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3594)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Exception: java.lang.RuntimeException: Failed to start Service "DistributedCache" (ServiceState=SERVICE_STOPPED)
    java.lang.RuntimeException: Failed to start Service "DistributedCache" (ServiceState=SERVICE_STOPPED)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.waitAcceptingClients(Service.CDB:12)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:8)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:11)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.ensureCache(DistributedCache.CDB:29)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.ensureCache(DistributedCache.CDB:39)
    at com.tangosol.coherence.component.util.safeService.SafeCacheService.ensureCache$Router(SafeCacheService.CDB:1)
    at com.tangosol.coherence.component.util.safeService.SafeCacheService.ensureCache(SafeCacheService.CDB:46)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:878)
    at com.tangosol.net.DefaultConfigurableCacheFactory.configureCache(DefaultConfigurableCacheFactory.java:1088)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:304)
    at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:735)
    at com.tangosol.coherence.ra.component.connector.resourceAdapter.cciAdapter.CacheAdapter$ManagedConnection$Connection$Interaction.execute(CacheAdapter.C
    DB:35)
    at com.tangosol.run.jca.CacheAdapter.getNamedCache(CacheAdapter.java:329)
    at com.tangosol.run.jca.CacheAdapter.getNamedCache(CacheAdapter.java:271)
    at ServletCoherence.doGet(ServletCoherence.java:51)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3594)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    The problem may be related to having more than one coherence.jar and tangosol.jar in the classpath. Can you verify that you only have one of those in the classpath?
    /Christer

  • WebLogic Server 10.0 MP1: Error in resource adapter deployment

    When I try to deploy our (own implemented) resource adapter into WebLogic Server 10.0 MP1, I get the following error message:
    An error occurred during activation of changes, please see the log for details.
    weblogic.security.service.InvalidParameterException: weblogic.security.service.SecurityServiceException: [Security:090198]No appropriate constructor for java.util.logging.LoggingPermission
    java.util.logging.LoggingPermission.(java.lang.String)
    The same adapter works flawless with Oracle AS/OC4J, JBoss 4.2 and Glassfish V2.
    In the security-permission-spec element of our ra.xml file we use (beside others) the following permissions:
    permission javax.management.MBeanTrustPermission "register";
    permission java.util.logging.LoggingPermission "control";
    When I delete this two lines from the security-permission-spec element, I can deploy the adapter in WebLogic.
    For me this seems to be a bug in WebLogic 10.0MP1.
    Best,
    Manfred

    Re: Installation error: Weblogic Server 10.0 MP2

  • How to install custom Resource Adapter

    Hi I have writen the java class for the Custome Resource adapter and I loaded the .class file into web-inf classes folder.I followed the installation steps given in the deployement document.In that I am not understanding one step i.e "Install .class file and help file into IDM" How can we do this and How to get the particular resource under Managed Resources tabe of Configure tab./its very urgent for me any kind of help is appriciable.

    Ok, since it is urgent, do it the way Sun/Waveset inserts the adapters.
    1.) Alter your java code to have
    package com.waveset.adapter;
    As your package line.
    2.) Compile the adapter to a class file.
    3.) Grab the idm.jar file from $WSHOME/WEB-INF/lib and copy it to e.g /tmp
    4.) unjar it. jar -vxf idm.jar
    5.) copy the your adapter class file to /tmp/com/waveset/adapter
    6.) jar the archive. jar -cvf idm.jar /tmp/com
    7.) Make a backup of the original idm.jar, and copy the new to the old position replacing the old jar-file. Bounce your app-server.
    8.) Log in as configurator or an administrator with equal capabilities. And add the custom adapter using the previous procedure... although, use the adaper class path
    com.waveset.adapter.YourCustomAdapter
    9.) Go to debug pages and put tracing on the same class file, and tail -f the app-server std out.
    10.) try to configure the adapter. Note any eventual error messages. Post error messages on the forum along with the std out log.
    If your adapter code works, it should work... if not your problems are elsewhere.
    Please not that this set up is not recommended for production environment and if you apply service packs etc this fix will break!

  • Weblogic-ra.xml for resource adapter

    Hi
    We are trying to deploy Oracle Centraloffice on weblogic 10.3
    But after configuring resource adapter which resides inside Central office application's EAR file, are application stops working.
    It give us No classdef found error, basically it stops finding the JAR files which resides inside the application.
    Resource adapter is configured to read file system for incoming JAR files and then process them, but if it starts working then are application stops working.
    We are configuring the resource adapter's weblogic-ra.xml with the weblogic 9.10 schema in which everything is bundled inside <outbound-resource-adapter> tag

    What is the correct way of looking up a resource adapter from another resource adpater? The JNDI name of my resource adapter is "StorageFactory" and I am doing a lookup like:
              Context ctx = new InitialContext();
              ctx.lookup("StorageFactory")
              Is this a correct way to lookup?

  • Messaging Bridge/Resource adapter problem on Solaris?

              Has anyone successfully used the supplied resource adapter and messaging bridge
              on Solaris? We seem to have problems getting the resource adapter to be bound
              properly. After creating a connector through the admin console (using any of the
              weblogic supplied jms-*-adp.rar files) the element shows up in the JNDI tree but
              has no object information associated with it - which I assume means it is not
              bound. The following error shows up in the weblogic log file:
              ####<Jan 24, 2003 6:28:03 PM CST> <Error> <Connector> <fssun02> <AdminServer>
              <ExecuteThread: '0' for queue: '__weblogic_admin_html_queue'> <kernel identity>
              <> <190004> <ManagedConnectionFactory not found for jndiName eis/jms/WLSConnectionFactoryJNDINoTX.>
              We are using WL 7.0.1.0 and Solaris 2.8 (8). With the same configuration on Win
              2K everything works properly. Classpath's etc all seem to be correct. Any ideas?
              thanks,
              

    I finally got my Messaging Bridge (Tibco to a WLS Cluster) to work. See my post 3 messages before yours - to which no-one responded... :-(
              So here goes with my suggestion based on what I have done.
              1. Create a Distributed Destination for the WLS queue and "auto deploy" it your cluster. (Read the manual on how to do that, it is quite straightforward).
              2. In the Local Bridge Destination, put :
              Connection URL - nothing
              Initial Context Factory - weblogic.jndi.WLInitialContextFactory
              Connection Factory JNDI Name - <your JMS conection factory name>
              Destination JNDI Name - <the JNDI name given to the Distributed Destination>.
              I hope that works.
              Andy

  • Required Resource Adapter cookbook for 11g

    How to write wsdl and the .jca binding file for a custom resource adapter in Fusion 11g? There was a resource adapter cookbook which had the details for writing wsdl for Fusion 10g (http://www.oracle.com/technology/products/integration/adapters/pdf/Adapter%20Development%20cookbook.)
    Is there anything similar in 11g?
    I am trying to invoke a custom resource adapter deployed on weblogic 10.3 from BPEL.
    Kindly provide info on this or direct me to the correct guide.
    Thanks,
    Amith

    Hi Melvin,
    I have successfully created the resource adapter and deployed the same on weblogic managed server. The problem i am having is to invoke this resource adapter from BPEL process. In Fusion 10g release i followed the cook book (link given in the previous message) to create the wsdl which also had the jca bindings for outbound and inbound transaction. In 11g i find that the jca bindings has to be put in a separate .jca file and there is no documentation given on how to create the .jca file for resource adapters.
    Any information on this will be really helpfull.
    Thanks,
    Amith

  • Resource Adapter Deployment Error (Resolved)

    This Problem Has Been Resolved.
    I'm trying to develop an application using Inbound resource adapters on Weblogic 9.2.1 .
    I have the resource adapter and the MDB packaged separately. The MDB appears to deploy successfully, but the resource adapter does not.
    I get the following exception
    javax.naming.NamingException [Root exception is java.rmi.RemoteException: javax.naming.InitialContext; nested exception is:
         java.io.NotSerializableException: javax.naming.InitialContext]
         at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:97)
         at weblogic.jndi.internal.WLContextImpl.translateException(WLContextImpl.java:421)
         at weblogic.jndi.internal.WLEventContextImpl.bind(WLEventContextImpl.java:297)
         at weblogic.jndi.internal.WLContextImpl.bind(WLContextImpl.java:389)
         at weblogic.connector.deploy.JNDIHandler.bindRA(JNDIHandler.java:575)
         at weblogic.connector.common.RAInstanceManager.putRAintoJNDITree(RAInstanceManager.java:1361)
         at weblogic.connector.common.RAInstanceManager.activate(RAInstanceManager.java:432)
         A similar issues was referenced in this message :
         http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4330872
         It appears that the exception means the InitialContext is not serializable.
         This is my start(BootstrapContext) method in my resource adapter. If I DO NOT call new InitialContext(), or setMDBOnMessageMethod(), the exception does not occur.
    public void start(BootstrapContext ctx)
         this.ctx = ctx;
         System.out.println("entering AddScanResourceAdapterImpl start");
         logger.info("entering AddScanResourceAdapterImpl start");
         try
         this.JNDIContext = new InitialContext(); // This causes the exception.
         this.wm = this.ctx.getWorkManager(); // Calling this does not cause and exception.
         setMDBOnMessageMethod(); // This also appears to cause the same exception.
         catch (Exception e)
              System.out.println("AddScanRA start : Exception thrown: " + e);
         // TODO: Log problem.     
         logger.info("exiting AddScanResourceAdapterImpl start");
    private void setMDBOnMessageMethod()
    try
    Class socketListenerClass = com.fedex.ground.tms.mtms.server.addscan.connector.ra.AddScanSocketHandler.class;
    Class[] paramTypes      = { java.net.Socket.class };
    this.onMessageMethod      = socketListenerClass.getMethod("onMessage", paramTypes);
    catch (NoSuchMethodException ex)
    ex.printStackTrace();
    Thanks for your any help,
    John
    Edited by johnbrod20 at 04/17/2007 6:48 AM

    Hi John,
    One of my customer is facing the same error .
    Can you please share the resolution of this problem

  • Can't Find Custom Work Manager For Resource Adapter

    I'm creating an inbound resource adapter and wish to throttle the number of connections via a custom work manager.
    If I understand the BEA docs, I can declare and define a resource adapter's work manager inside of its entry in weblogic-ra.xml .
    For example:
    <?xml version = "1.0"?>
    <weblogic-connector xmlns="http://www.bea.com/ns/weblogic/90">
    <jndi-name>InboundRA</jndi-name>
    <!-- WM declared below -->
    <work-manager>
         <name>CustomWM</name>
         <max-threads-constraint>
    <name>maxthreads</name>
         <count>3</count>
         </max-threads-constraint>
    </work-manager>
    However, upon startup I see :
    <BEA-002919> <Unable to find a WorkManager with name CustomWM . Dispatch policy CustomWM will map to the default WorkManager for the application appsdirCustom_ear> .
    So it uses the default work manager.

    Well, I did it again. Solved my own problem two hours after I posted it. Which, I guess, is better than not solving it.
    I mistakenly thought that the <work-manager> entry in weblogic-ra.xml is a declaration. It is apparently a reference.
    I declared a WorkManager of the same name in the WLS 9 console, restarted the server, and it appears that I am now using the custom work manager.
    The max-threads constraint also works.

  • JNDI lookup() for a Resource Adapter fails

    Hi guys,
    I've deployed a Resource Adapter on Weblogic (v10.3.4). It's JNDI name is: jca/HelloAdapter
    Moreover, in the Outbound Connection Pools tag, I've created a javax.resource.cci.ConnectionFactory entry with JNDI name: eis/HelloAdapter.
    I want to write a simple Java test to lookup my Resource adapter. The code I am using is the following:
          Hashtable<String, String> properties = new Hashtable<String, String>();
          properties.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
          properties.put(Context.PROVIDER_URL, "t3://localhost:8001");
          properties.put(Context.SECURITY_PRINCIPAL, "weblogic");
          properties.put(Context.SECURITY_CREDENTIALS, "weblogic1");
          Context ctx = null;
          try {
              ctx = new InitialContext(properties);
              javax.resource.cci.ConnectionFactory cf =
                (javax.resource.cci.ConnectionFactory) ctx.lookup("jca/HelloAdapter");
          } catch (NamingException e) {
              e.printStackTrace();
          }I get the following exception:
    javax.naming.NameNotFoundException: No Object found:  jca/HelloAdapter|null
         at weblogic.connector.deploy.JNDIHandler.lookupObject(JNDIHandler.java:881)
         at weblogic.connector.deploy.JNDIHandler.getObjectInstance(JNDIHandler.java:843)
         at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:424)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:411)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)Any ideas please ? Thank you for your time
    Regards,
    George

    Sorry guys,
    I suppose my thread subject is out of the scope of the specific list.
    Sorry for the inconvenience

Maybe you are looking for

  • Cannot send email to bcc: list without an address in to:

    I've been trying to figure out how to send an email from my iPhone (3G) that only has recipients in the bcc: field, not in the to: field, but the send button stays grayed out until I enter an address in the to: field. I tried just entering "null" for

  • Having two LR catalogues and using an external hard drive?

    I use LR as my primary image storage/editing application and have gathered about 250 gb worth of photos on my macbook pro internal drive. I need to transfer everything to an extenral hard drive and just edit the images from there, but have a question

  • Add button to transaction ie01,il01,ia01

    Hi All, Does anyone knows how to enhance these transactions(IE03 , IL03 , IA03) i am not able to enhance it. I got an exit ITOB0001 for tecnical objects but not able to see any difference on IE01 transaction. My requirement is to add a button or menu

  • What r the services can be imported in visual composer

    Hi all, Can anyone tell me wht are the services can be imported in VC. And can i import XI interface as service into visual composer?? and also plz tell me how to import a service into visual composer and also how to integrate different systems to th

  • Error - Webutil

    I am trying to run the sample file WU_TEST_106.fmx under form 9i & 10g db. Though i configure all the steps which are given in previous threads for webutil. Still i am facing the problem.Though the form is open at run time when i am trying to click a