Monday, October 29, 2007

今天在deploy一個ejb, 裡面因為用到spring所以把他的manifest.mf改了改, 想說可以把dependent的jar塞進去這個ejb的jar. 原本想說沒啥問題, 但今天弄了一整天, 才發現這句關鍵的句子害我感到都浪費了
Use the manifest file to specify that a JAR file can reference another JAR file.
Standalone EJBs cannot use the Manifest Class-Path. It is only supported for
components that are deployed within an EAR file
. The clients should reference
the client.jar in the classpath entry of the manifest file.

真讓我感到傷心, 原來是因為這樣, 不過超神奇的還是weblogic如果直接選原本的檔案, 卻又活的好好的, 讓我感到很迷惘阿.
雖然可以找到的解法很多, 像是直接把classpath塞到weblogic的classpath裡面, 但是想說不要動server的設定比較好, 結果就讓我耗了一天了!! 可惡~~

No comments: