【发布时间】:2016-08-03 04:36:49
【问题描述】:
我正在通过 IBM WAS 上的 jython 脚本部署 EAR 文件,但在部署时出现错误并且应用程序未启动。
错误代码:
J2CA0052E: The lookup of the Activation Specification with JNDI Name jms/SampleQueueListener failed due to the following exception: javax.naming.NameNotFoundException: Context: cell01/nodes/dmgr11/servers/dmgr, name: jms/SampleQueueListener: First component in name jms/SampleQueueListener not found. [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]
jms/SampleQueueListener 已经存在。我正在使用 WAS 8.5.5.8 并通过 Linux 操作系统上的 Jython 脚本部署应用程序,并且我还使用节点代理和 dmgr。
部署应用的python脚本:
def installapps():
try:
print "********************************************************"
print "Installing Application in IBM WAS"
print "********************************************************"
print "\n Installing ear file -- %s " % eFile
AdminApp.install(eFile,["-usedefaultbindings", "-BindJndiForEJBMessageBinding",[["samplesystemservice.jar", "ServiceActivator", "sampleservices.jar,META-INF/ejb-jar.xml", "SampleQueueListener", "jms/SampleQueueListener", "jms/SampleJMSQueue"], ["sampleystemservices.jar", "BootstrapMessageBean", "samplesystemservices.jar,META-INF/ejb-jar.xml", "SampleTopicListener", "jms/SampleTopicListener", "jms/SampleJMSTopic"]]])
AdminConfig.save()
print "***************hello22***********"
AdminApp.install(wFile, ["-appname", wName, "-contextroot", ctxroot])
print "***************hello33**********"
AdminConfig.save()
print "Completed installing applications.\n"
print "Saving configuration. This may take time, please wait...."
print "********************************************************\n"
print "********************************************************"
print "Completed the installation of Application in IBM WAS"
print "********************************************************"
except:
AdminControl.stopServer("server1", node)
print "Unable to install Application"
print "********************************************************"
sys.exit(0)
try:
print "********************************************************"
print "Stop the WAS for post configuration of Application"
AdminControl.stopServer("server1", node)
except:
【问题讨论】:
标签: jms jndi jython websphere-8 ibm-was