2017-04-18 87 views
0

我在部署maximo.ear後遇到了一些奇怪的錯誤。一個是\t\t\t java.langStringWebSphere 8.5.5.11如何處理部署描述符(如web.xml)內的選項卡?

AbstractInjec E CWNEN0009E: The injection engine failed to process the XML code from the deployment descriptor due to the following error: Referenced class could not be loaded : java.lang.String

這個錯誤似乎很奇怪,一個整理XML可能行爲不同於一個不上部署整理?我認爲><之間的任何數據會削減任何製表符和換行符?

下面是兩個例子,第一個是整理,第二個是不整理。

我是新來的XML,所以我不太確定XML數據應該如何行爲或規範在選項卡和換行符上。

<env-entry> 
    <description> 
     Indicates whether to use Application Server security or not 
    </description> 
    <env-entry-name> 
     useAppServerSecurity 
    </env-entry-name> 
    <env-entry-type> 
     java.lang.String 
    </env-entry-type> 
    <env-entry-value> 
     1 
    </env-entry-value> 
</env-entry> 

VS標籤包括標籤,新線內

<env-entry> 
    <description>Indicates whether to use Application Server security or not</description> 
    <env-entry-name>useAppServerSecurity</env-entry-name> 
    <env-entry-type>java.lang.String</env-entry-type> 
    <env-entry-value>1</env-entry-value> 
</env-entry> 

回答

0

數據和空格被認爲是數據的一部分。最好不要整理你的XML,只有標籤間沒有任何格式的數據值。

相關問題