2010-03-08 167 views
2

以下錯誤錯誤是什麼意思? 我使用eclipse和導出web項目作爲戰爭文件,然後 我部署到weblogic有我不明白的錯誤消息。部署戰爭問題

Message icon - Error Unable to access the selected application. 
Message icon - Error Exception in AppMerge flows' progression 
Message icon - Error Exception in AppMerge flows' progression 
Message icon - Error VALIDATION PROBLEMS WERE FOUND problem: cvc-complex-type.2.4a: Expected elements '[email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee' instead of '[email protected]://java.sun.com/xml/ns/javaee' here in element [email protected]://java.sun.com/xml/ns/javaee:<null> problem: cvc-complex-type.2.4a: Expected elements '[email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee' instead of '[email protected]://java.sun.com/xml/ns/javaee' here in element [email protected]://java.sun.com/xml/ns/javaee:<null> 
Message icon - Error VALIDATION PROBLEMS WERE FOUND problem: cvc-complex-type.2.4a: Expected elements '[email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee' instead of '[email protected]://java.sun.com/xml/ns/javaee' here in element [email protected]://java.sun.com/xml/ns/javaee:<null> problem: cvc-complex-type.2.4a: Expected elements '[email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee [email protected]://java.sun.com/xml/ns/javaee' instead of '[email protected]://java.sun.com/xml/ns/javaee' here in element [email protected]://java.sun.com/xml/ns/javaee:<null> 

這是我的web.xml文件

<?xml version="1.0" encoding="ISO-8859-1"?> 


<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" 
version="2.4"> 

    <display-name>Welcome to Tomcat</display-name> 
    <description> 
    Welcome to Tomcat 
    </description> 

    <servlet> 
     <servlet-name>ServletLogin</servlet-name> 
     <servlet-class>com.ko.servlet.action.ServletLogin</servlet-class> 
    </servlet> 
    <servlet-mapping> 
     <servlet-name>ServletLogin</servlet-name> 
     <url-pattern>/ServletLogin</url-pattern> 
    </servlet-mapping> 

    <servlet> 
     <servlet-name>TombolInfoGenerator</servlet-name> 
     <servlet-class>com.ko.servlet.action.TambolInfoGenerator</servlet-class> 
    </servlet> 
    <servlet> 
    <description> 
    </description> 
    <display-name>ArrestAction</display-name> 
    <servlet-name>ArrestAction</servlet-name> 
    <servlet-class> 
    com.ko.servlet.ArrestAction</servlet-class> 
    </servlet> 
    <servlet-mapping> 
     <servlet-name>TombolInfoGenerator</servlet-name> 
     <url-pattern>/TombolInfoGenerator</url-pattern> 
    </servlet-mapping> 
    <servlet-mapping> 
    <servlet-name>ArrestAction</servlet-name> 
    <url-pattern>/ArrestAction</url-pattern> 
    </servlet-mapping> 


<taglib> 
    <taglib-uri> 
    http://jsptags.com/tags/navigation/pager 
    </taglib-uri> 
    <taglib-location> 
    /WEB-INF/jsp/pager-taglib.tld 
    </taglib-location> 
</taglib> 

<taglib> 
    <taglib-uri> 
    http://java.sun.com/jstl/core 
    </taglib-uri> 
    <taglib-location> 
    /WEB-INF/jstl/c.tld 
    </taglib-location> 

</taglib> 

<welcome-file-list> 
    <welcome-file>main.jsp</welcome-file> 
</welcome-file-list> 

</web-app> 

回答

1

根據XSD,第一說明必須出現在顯示名稱前: (說明*,顯示名稱*,*圖標)

1

根據XSD您應該包括內部如下:

<jsp-config> 
    <taglib> 
     <taglib-uri>http://jsptags.com/tags/navigation/pager</taglib-uri> 
     <taglib-location>/WEB-INF/jsp/pager-taglib.tld</taglib-location> 
    </taglib> 
    <taglib> 
     <taglib-uri>http://java.sun.com/jstl/core</taglib-uri> 
     <taglib-location>/WEB-INF/jstl/c.tld</taglib-location> 
    </taglib> 
</jsp-config> 

w^ebLogic在Tomcat等其他應用服務器不支持的web.xml上執行XSD驗證。 您可以在eclipse中右鍵單擊您的web.xml文件,然後在導出WAR之前點擊驗證來修復所有問題。

0

你的問題是一個標籤ArrestAction,這是插件生成錯誤,同樣的情況發生在插件grails-springws中。

看看這個:發生grails

0

此錯誤是由於應用程序的web.xml文件中包含的特殊字符。重新部署應用程序之前,請確保web.xml和weblogic.xml文件中不包含任何特殊字符,不支持的標記或符號。