- I am unable to enable connection to the WmEJBAdapter. It appears that some WebSphere jar files are missing.
I installed WebSphere 6.0 and configured a EJB connection, as follows:
webSphereDemoConnection: WebSphereEJBConnection Details
Connection Type: EJB Non-transactional Connection
Package Name: WebSphereDemoConnection
Connection Properties
EJB Server Type: WebSphere60Connection
Properties File Name: C:\webMethods6\IntegrationServer\ packages\WebSphereDemoConnection\ pub\WebSphereJNDI.properties
JNDI Username:
JNDI Password: ******
EJB Caching Level: None
Connection Management Properties
Enable Connection Pooling: true
Minimum Pool Size: 1
Maximum Pool Size: 10
Pool Increment Size: 1
Block Timeout (msec): 1000
Expire Timeout (msec): 1000
Startup Retry Count: 0
Startup Backoff Timeout (sec): 10
- When I try to enable the EJB connection via IS, I get the following error.
Error encountered
[ART.118.5042] Adapter Runtime (Connection): Unable to enable connection resource webSphereDemoConnection:WebSphereEJBConnection.
[ART.118.5063] Adapter Runtime (Connection): Unable to start connection webSphereDemoConnection:WebSphereEJBConnection: after 1 attempt(s).
[ART.118.5036] Adapter Runtime (Connection): Unable to configure connection manager.
[ADA.640.3006] Failed to get InitialContext
Cannot instantiate class: com.ibm.websphere.naming.WsnInitialContextFactory
- The following errors were reported in SERVER.LOG when I attempted to enable the WmEJBAdapter connection.
Cannot instantiate class: com.ibm.websphere.naming.WsnInitialContextFactory
2006-10-07 13:54:57 EDT [ADA.0640.3998E] javax.naming.NamingException explanation: Cannot instantiat
e class: com.ibm.websphere.naming.WsnInitialContextFactory
2006-10-07 13:54:57 EDT [ADA.0640.3999E] javax.naming.NamingException root cause: com.ibm.websphere.
naming.WsnInitialContextFactory
2006-10-07 13:54:57 EDT [ART.0114.1007E] Adapter Runtime: Error Logged. See Error log for details. E
rror: [ART.118.5036] Adapter Runtime (Connection): Unable to configure connection manager.
[ADA.640.3006] Failed to get InitialContext
Cannot instantiate class: com.ibm.websphere.naming.WsnInitialContextFactory
2006-10-07 13:54:57 EDT [ART.0114.1007E] Adapter Runtime: Error Logged. See Error log for details. E
rror: [ART.118.5042] Adapter Runtime (Connection): Unable to enable connection resource webSphereDem
oConnection:WebSphereEJBConnection.
[ART.118.5063] Adapter Runtime (Connection): Unable to start connection webSphereDemoConnection:WebS
phereEJBConnection: after 1 attempt(s).
[ART.118.5036] Adapter Runtime (Connection): Unable to configure connection manager.
[ADA.640.3006] Failed to get InitialContext
Cannot instantiate class: com.ibm.websphere.naming.WsnInitialContextFactory
- When configuring for EJB I tried to follow the instruction in
webMethods_Enterprise_JavaBeans_Adapter_Installation_Guide_6.0.pdf.
The instructions say to copy the following files
from: WebSphere Server 6.0\lib directory
to: webMethods6\packages\WmEJBAdapter\code\jars directory.
But only 2 of the 19 jar files were available (see below) in the WebSphere directories.
- ?? admin.jar
- OK bootstrap.jar
- ?? ecutils.jar
- ?? ejbportable.jar
- ?? emf.jar
- ?? ffdc.jar
- ?? idl.jar
- ?? iwsorb.jar
- OK j2ee.jar
- ?? management.jar
- ?? naming.jar
- ?? namingclient.jar
- ?? ras.jar
- ?? runtimefw.jar
- ?? runtime.jar
- ?? txClient.jar
- ?? txClientPrivate.jar
- ?? utils.jar
- ?? wsexception.jar
- I made the following setting in the SERVER.BAT file.
set PREPENDCLASSES=
set FILE_LOCATION=C:\webMethods6\IntegrationServer\packages\WmEJBAdapter\code\jars
set APPENDCLASSES=
set APPENDCLASSES=%FILE_LOCATION%\admin.jar
set APPENDCLASSES=%APPENDCLASSES%:%FILE_LOCATION%\ejbportable.jar
set APPENDCLASSES=%APPENDCLASSES%:%FILE_LOCATION%\emf.jar
set APPENDCLASSES=%APPENDCLASSES%:%FILE_LOCATION%\ffdc.jar
set APPENDCLASSES=%APPENDCLASSES%:%FILE_LOCATION%\idl.jar
set APPENDCLASSES=%APPENDCLASSES%:%FILE_LOCATION%n\iwsorb.jar
set APPENDCLASSES=%APPENDCLASSES%:%FILE_LOCATION%\j2ee.jar
set APPENDCLASSES=%APPENDCLASSES%:%FILE_LOCATION%\management.jar
set APPENDCLASSES=%APPENDCLASSES%:%FILE_LOCATION%\naming.jar
set APPENDCLASSES=%APPENDCLASSES%:%FILE_LOCATION%\namingclient.jar
set APPENDCLASSES=%APPENDCLASSES%:%FILE_LOCATION%\ras.jar
set APPENDCLASSES=%APPENDCLASSES%:%FILE_LOCATION%\runtime.jar
set APPENDCLASSES=%APPENDCLASSES%:%FILE_LOCATION%\runtimefw.jar
set APPENDCLASSES=%APPENDCLASSES%:%FILE_LOCATION%\txClient.jar
set APPENDCLASSES=%APPENDCLASSES%:%FILE_LOCATION%\txClientPrivate.jar
set APPENDCLASSES=%APPENDCLASSES%:%FILE_LOCATION%\utils.jar
set APPENDCLASSES=%APPENDCLASSES%:%FILE_LOCATION%\wsexception.jar
rem ############################################################################
rem
rem Items in PREPEND_SYSTEM_CLASSPATH will be added to the classpath before proxy.jar
rem Items in APPEND_SYSTEM_CLASSPATH will be added to the absolute end of the CLASSPATH
rem
rem ############################################################################
set PREPEND_SYSTEM_CLASSPATH=
set APPEND_SYSTEM_CLASSPATH=
set APPEND_SYSTEM_CLASSPATH=%FILE_LOCATION%\bootstrap.jar