【发布时间】:2017-01-10 10:33:31
【问题描述】:
我们有一个 EAR,其中包含一个 WAR 和两个 MDBS。 WAR 包含许多 JAX-WS Web 服务,例如注释
@WebService(name = "QuoteService", targetNamespace = "http://quotation.my.place.com")
@SOAPBinding(style = SOAPBinding.Style.RPC)
public interface QuoteService {
:
}
我们的 web.xml 是 web-app 版本 2.5
当我通过管理控制台部署应用程序时(文件对话框选择耳朵,完成 4 个步骤),耳朵部署良好。所有的 webServices 都是通过我假设的注释类扫描获取的,并且可以在 localhost:9080/MyProj/QuoteService 上使用
但是,当我复制命令辅助提供的管理脚本命令并尝试使用 AdminApp jython 对象通过脚本进行复制时,ear 会像 MDB 一样部署,但是 JAX-WS webServices 从未初始化?
我已附上提供的命令。我注意到存在 -nodeployws 标志,但是当我尝试使用 -deployws 时,我没有成功。通过控制台部署时,是否还有其他东西可以启动 JAX-WS WebServices?
AdminApp.install(workspace+"/"+earfile,
'[ -nodeployws -nopreCompileJSPs -distributeApp -nouseMetaDataFromBinary
-nodeployejb -appname ' + appname + ' -createMBeansForResources
-noreloadEnabled -nodeployws -validateinstall warn
-noprocessEmbeddedConfig
-filepermission .*\.dll=755#.*\.so=755#.*\.a=755#.*\.sl=755
-noallowDispatchRemoteInclude -noallowServiceRemoteInclude -asyncRequestDispatchType DISABLED
-nouseAutoLink -noenableClientModule -clientMode isolated -novalidateSchema
-MapModulesToServers
[
[ MyFirstListener-EJB MyProj-MyFirstList-EJB-3.0B.jar,META-INF/ejb-jar.xml
WebSphere:cell=' +cell+ ',node=' +node+ ',server=' +server+ ' ]
[ MySecondListener-EJB MyProj-MySecondList-EJB-3.0B.jar,META-INF/ejb-jar.xml
WebSphere:cell=' +cell+ ',node=' +node+ ',server=' +server+ ' ]
[ MyProj-Client-3.0B.war MyProj-Client-3.0B.war,WEB-INF/web.xml
WebSphere:cell=' +cell+ ',node=' +node+ ',server=' +server+ ' ]
] -MetadataCompleteForModules
[
[ MyFirstListener-EJB MyProj-MyFirstList-EJB-3.0B.jar,META-INF/ejb-jar.xml true ]
[ MySecondListener-EJB MyProj-MySecondList-EJB-3.0B.jar,META-INF/ejb-jar.xml true ]
[ MyProj-Client-3.0B.war MyProj-Client-3.0B.war,WEB-INF/web.xml true ]
]
]' )
【问题讨论】:
标签: web-services websphere jax-ws jython