Missing jar files in WmEJBAdapter for WebSphere 6
- 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…
- 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 instantiate 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. Error:
[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. Error:
[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
- 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%\ecutils.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