2017-01-10 40 views
0

我們有一個包含WAR和兩個MDBS的EAR。該WAR包含了一些JAX-WS Web服務的標註了例如WebSphere 8.5管理控制檯部署與AdminApp部署(JAX-WS不初始化)

@WebService(name = "QuoteService", targetNamespace = "http://quotation.my.place.com") 
@SOAPBinding(style = SOAPBinding.Style.RPC) 
public interface QuoteService { 
: 
} 

我們的web.xml是web應用程序2.5版

當我部署通過管理控制檯(文件對話框的應用程序中選擇耳朵,經過4個步驟)耳朵部署良好。所有的web服務都是通過一個註釋類掃描來獲取的,我可以在localhost上找到它們:9080/MyProj/QuoteService

但是,當我複製Command Assistance提供的管理腳本命令並嘗試通過腳本AdminApp jython對象,耳朵像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 ] 
] 
]') 

回答

1

對於其他任何人爲此而努力,該解決方案是與 -MetadataCompleteForModules選項。對於線

MyProj-Client-3.0B.war MyProj-Client-3.0B.war,WEB-INF/web.xml true 

我不得不從true值更改爲false作爲MetadataCompleteForModules指示部署管理器不掃描其認爲完成該模塊的元數據標註的神器。

希望這可以幫助未來的人。

謝謝, 馬克。