File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Web logic server Resource adapter problem using ra.xml and weblogic-ra.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Web logic server Resource adapter problem using ra.xml and weblogic-ra.xml" Watch "Web logic server Resource adapter problem using ra.xml and weblogic-ra.xml" New topic
Author

Web logic server Resource adapter problem using ra.xml and weblogic-ra.xml

hari bahmi
Greenhorn

Joined: Dec 12, 2013
Posts: 1
Hi,
I am new to weblogic server. In my application we are trying to create Data source using ra.xml and weblogic-ra.xml in META-INF/ . I am getting .. this exception while deploying my rar/war

can any one help..in this

<Dec 12, 2013 2:27:35 PM IST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1386838655365' for tas
k '1'. Error is: 'weblogic.application.ModuleException: No ComponentMBean was found in Application TestWeb with the URI PPMWeb.rar'
weblogic.application.ModuleException: No ComponentMBean was found in Application TestWeb with the URI TestWeb.rar
at weblogic.application.internal.BaseJ2EEModule.findComponentMBean(BaseJ2EEModule.java:62)
at weblogic.connector.deploy.ConnectorModule.initAndSetClassLoader(ConnectorModule.java:549)
at weblogic.connector.deploy.ConnectorModule.init(ConnectorModule.java:527)
at weblogic.application.internal.flow.ModuleListenerInvoker.init(ModuleListenerInvoker.java:167)
at weblogic.application.internal.flow.InitModulesFlow.initModule(InitModulesFlow.java:312)
Truncated. see log file for complete stacktrace
below are files
ra.xml
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE connector PUBLIC '-//Sun Microsystems, Inc.//DTD Connector 1.0//EN' 'http://java.sun.com/j2ee/dtds/connector_1_0.dtd'>

<connector>
<display-name>My Connector</display-name>
<vendor-name>BEA System</vendor-name>
<spec-version>1.0</spec-version>
<eis-type>Oracle</eis-type>
<version>2.0</version>
<resourceadapter>
<managedconnectionfactory-class>com.bea.adapter.dbms.spi.ManagedConnectionFactoryImpl</managedconnectionfactory-class>
<connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
<connectionfactory-impl-class>com.bea.adapter.cci.ConnectionFactoryImpl</connectionfactory-impl-class>
<connection-interface>javax.resource.cci.Connection</connection-interface>
<connection-impl-class>com.bea.adapter.dbms.cci.ConnectionImpl</connection-impl-class>
<transaction-support>XATransaction</transaction-support>
<config-property>
<config-property-name>pfJndiName</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>testDataSource11</config-property-value>
</config-property>
<config-property>
<config-property-name>UserName</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>test</config-property-value>
</config-property>
<config-property>
<config-property-name>Password</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>test</config-property-value>
</config-property>
<config-property>
<config-property-name>ConnectionURL</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>jdbcracle:thin:@172.17.19.5:1521:sample</config-property-value>
</config-property>
<authentication-mechanism>
<authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
<credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
</authentication-mechanism>
<reauthentication-support>false</reauthentication-support>
</resourceadapter>

</connector>
______&weblogic-ra.xml is _________
<?xml version="1.0"?>
<!DOCTYPE weblogic-connection-factory-dd PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 9.0.0 Connector//EN' 'http://www.bea.com/servers/wls810/dtd/weblogic810-ra.dtd'>
<weblogic-connection-factory-dd>
<connection-factory-name>sampleConnection</connection-factory-name>
<jndi-name>testDataSource11</jndi-name>
<pool-params>
<initial-capacity>0</initial-capacity>
<max-capacity>20</max-capacity>
</pool-params>
<use-connection-proxies>false</use-connection-proxies>
</weblogic-connection-factory-dd>
 
 
subject: Web logic server Resource adapter problem using ra.xml and weblogic-ra.xml
 
Similar Threads
Moving JCA CCI (not DataSource) from Weblogic to JBoss
JCA deploying on JBOSS 4.0.0
MDB deployed in WebLogic and Queues in IBM MQ
How to deploy an rar file in JBOSS 4
javax.jms.JMSException: Not supported in XA-backed session outside