2014-03-26 31 views
2

我嘗試添加到weblogic.xml文件<cookie-secure>標籤安全JSESSIONID:配置的weblogic.xml發送

<wls:session-descriptor> 
    <wls:timeout-secs>1800</wls:timeout-secs> 
    <wls:cookie-path>/my-web</wls:cookie-path> 
    <wls:cookie-http-only>false</wls:cookie-http-only> 
    <wls:url-rewriting-enabled>false</wls:url-rewriting-enabled> 
    <wls:sharing-enabled>true</wls:sharing-enabled> 
    <wls:invalidate-on-relogin>true</wls:invalidate-on-relogin> 
    <wls:cookie-secure>true</wls:cookie-secure> 
</wls:session-descriptor> 

但出現錯誤:

cvc-complex-type.2.4.d: Invalid content was found starting with element 'wls:cookie-secure'. No child element is expected at this point 

如何可以解決問題?

+0

有你看試圖改變順序?也有你看過類似的錯誤,如:http://stackoverflow.com/questions/14556050/error-in-weblogic-xml-cvc-complex-type-2-4-a-invalid-content-was-found-starti http://stackoverflow.com/questions/12893675/invalid-deployment-descriptors-in-deployment-descriptor-file-web-inf-web-xml-in –

+0

非常感謝您的回覆。確實問題是爲了 –

+0

很高興我能幫上忙。如果你願意,你可以「接受」你自己的答案。 –

回答

2

正確的順序是:

<wls:timeout-secs>1800</wls:timeout-secs> 
<wls:cookie-path>/my</wls:cookie-path> 
<wls:cookie-secure>true</wls:cookie-secure> 
<wls:cookie-http-only>true</wls:cookie-http-only> 
<wls:url-rewriting-enabled>false</wls:url-rewriting-enabled>