My Oracle Support Banner

How To Configure CLASSPATH For Tuxedo JCA Adapter When Used With WebLogic Server (Doc ID 1174413.1)

Last updated on OCTOBER 04, 2017

Applies to:

Tuxedo JCA Adapter - Version 11.1.1.1.0 to 12.1.1.0 [Release 11g to 12c]
Information in this document applies to any platform.

Goal

Tuxedo JCA Adapter includes the following jar files.
com.oracle.tuxedo.adapter_1.0.0.0.jar
com.bea.core.jatmi_1.3.0.0.jar
com.bea.core.i18n_1.4.0.0.jar
javax.transaction_1.0.0.0_1-1.jar
javax.ejb_3.0.1.jar

CLASSPATH information is included in the sample which is available on sample code page at Tuxedo JCA Adapter sample
However, the documentation is unclear regarding necessary jar files in the CLASSPATH for WebLogic Server.

setenv.cmd for Windows

set EXT_PRE_CLASSPATH=%WORKDIR%\adapter\tmp\com.oracle.tuxedo.adapter_1.0.0.0.jar
set EXT_PRE_CLASSPATH=%EXT_PRE_CLASSPATH%;%WORKDIR%\adapter\tmp\com.bea.core.jatmi_1.3.0.0.jar
set EXT_PRE_CLASSPATH=%EXT_PRE_CLASSPATH%;%WLS_HOME%\server\lib\weblogic.jar
set EXT_PRE_CLASSPATH=%EXT_PRE_CLASSPATH%;%WORKDIR%\adapter\tmp\com.bea.core.i18n_1.4.0.0.jar
set EXT_PRE_CLASSPATH=%EXT_PRE_CLASSPATH%;%WORKDIR%\adapter\tmp\javax.ejb_3.0.1.jar
set EXT_PRE_CLASSPATH=%EXT_PRE_CLASSPATH%;%WORKDIR%\adapter\tmp\javax.transaction_1.0.0.0_1-1.jar
set CLASSPATH=%EXT_PRE_CLASSPATH%;%CLASSPATH%

 
setenv.sh for UNIX

EXT_PRE_CLASSPATH=$WORKDIR/adapter/tmp/com.oracle.tuxedo.adapter_1.0.0.0.jar
EXT_PRE_CLASSPATH=$EXT_PRE_CLASSPATH:$WORKDIR/adapter/tmp/com.bea.core.jatmi_1.3.0.0.jar
EXT_PRE_CLASSPATH=$EXT_PRE_CLASSPATH:$WLS_HOME/server/lib/weblogic.jar
EXT_PRE_CLASSPATH=$EXT_PRE_CLASSPATH:$WORKDIR/adapter/tmp/com.bea.core.i18n_1.4.0.0.jar
EXT_PRE_CLASSPATH=$EXT_PRE_CLASSPATH:$WORKDIR/adapter/tmp/javax.ejb_3.0.1.jar
EXT_PRE_CLASSPATH=$EXT_PRE_CLASSPATH:$WORKDIR/adapter/tmp/javax.transaction_1.0.0.0_1-1.jar
export EXT_PRE_CLASSPATH
export CLASSPATH=$EXT_PRE_CLASSPATH:$CLASSPATH

 

Tuxedo JCA works well with above setting when used with WebLogic Server 10gR3
However, it does not work with WebLogic Server 11g or later release with following errors

- Error message at admin console

<Aug 12, 2010 5:27:17 PM JST> <Error> <HTTP> <BEA-101199> <Could not deploy policy for resource: type=<url>, application=consoleapp, contextPath=/console, uri=/.
weblogic.security.service.ResourceCreationException: weblogic.security.spi.ResourceCreationException: This operation cannot be performed while a Transaction is active.
at com.bea.common.security.internal.service.PolicyDeploymentServiceImpl$DeploymentHandlerImpl.deployPolicy(PolicyDeploymentServiceImpl.java:173)
at weblogic.security.service.WLSPolicyDeploymentServiceWrapper$DeploymentHandlerImpl.deployPolicy(WLSPolicyDeploymentServiceWrapper.java:85)
at weblogic.security.service.AuthorizationManager$HandlerAdaptor.deployPolicy(AuthorizationManager.java:707)
at weblogic.security.service.AuthorizationManager.deployPolicy(AuthorizationManager.java:511)
at weblogic.servlet.security.internal.ResourceConstraint.deploy(ResourceConstraint.java:108)
Truncated. see log file for complete  stack trace


- Error message when booting on the console

Exception in thread "main" java.lang.NoSuchMethodError: weblogic.i18n.logging.CatalogMessage.getDiagnosticVolume()Ljava/lang/String;
at weblogic.logging.MessageLogger.log(MessageLogger.java:85)
at weblogic.logging.MessageLogger.log(MessageLogger.java:111)
at weblogic.logging.WLMessageLogger.log(WLMessageLogger.java:52)
at weblogic.kernel.T3SrvrLogger.logServerStateChange(T3SrvrLogger.java:2059)
at weblogic.t3.srvr.T3Srvr.setState(T3Srvr.java:190)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:458)
at weblogic.Server.main(Server.java:67)

 

Solution

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
Goal
Solution

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