当前位置: 代码迷 >> 综合 >> Post subject:Deploying War file in Weblogic 9.2
  详细解决方案

Post subject:Deploying War file in Weblogic 9.2

热度:83   发布时间:2023-12-10 05:03:03.0
导读:
   Registered Member
   Joined: Jun 05, 2007
   Posts: 19
  Hi all,
  I am using MyEclipse 5.5.1 GA. I deployed the web application (packaged war file) in
  Tomcat 5.5 successfully. But when I deployed the same web application in Weblogic
  Server 9.2, I received errors. Could some one help please? Here is the display from
  MyEclipse console:
   Quote:
  C:/bea921/user_projects/domains/base_domain921/servers/AdminServer/stage/_appsdir_FotoProject_war/FotoProject.war/WEB-INF/web.xml:80:20:80:20: problem: cvc-complex-type.2.4a: Expected element 'servlet-name@http://java.sun.com/xml/ns/j2ee' instead of 'url-pattern@http://java.sun.com/xml/ns/j2ee' here in element servlet-mapping@http://java.sun.com/xml/ns/j2ee:
  C:/bea921/user_projects/domains/base_domain921/servers/AdminServer/stage/_appsdir_FotoProject_war/FotoProject.war/WEB-INF/web.xml:80:106:80:106: problem: cvc-complex-type.2.4c: Expected element 'url-pattern@http://java.sun.com/xml/ns/j2ee' before the end of the content in element servlet-mapping@http://java.sun.com/xml/ns/j2ee:
  C:/bea921/user_projects/domains/base_domain921/servers/AdminServer/stage/_appsdir_FotoProject_war/FotoProject.war/WEB-INF/web.xml:81:20:81:20: problem: cvc-complex-type.2.4a: Expected element 'servlet-name@http://java.sun.com/xml/ns/j2ee' instead of 'url-pattern@http://java.sun.com/xml/ns/j2ee' here in element servlet-mapping@http://java.sun.com/xml/ns/j2ee:
  C:/bea921/user_projects/domains/base_domain921/servers/AdminServer/stage/_appsdir_FotoProject_war/FotoProject.war/WEB-INF/web.xml:81:110:81:110: problem: cvc-complex-type.2.4c: Expected element 'url-pattern@http://java.sun.com/xml/ns/j2ee' before the end of the content in element servlet-mapping@http://java.sun.com/xml/ns/j2ee:
  C:/bea921/user_projects/domains/base_domain921/servers/AdminServer/stage/_appsdir_FotoProject_war/FotoProject.war/WEB-INF/web.xml:82:20:82:20: problem: cvc-complex-type.2.4a: Expected element 'servlet-name@http://java.sun.com/xml/ns/j2ee' instead of 'url-pattern@http://java.sun.com/xml/ns/j2ee' here in element servlet-mapping@http://java.sun.com/xml/ns/j2ee:
  C:/bea921/user_projects/domains/base_domain921/servers/AdminServer/stage/_appsdir_FotoProject_war/FotoProject.war/WEB-INF/web.xml:82:90:82:90: problem: cvc-complex-type.2.4c: Expected element 'url-pattern@http://java.sun.com/xml/ns/j2ee' before the end of the content in element servlet-mapping@http://java.sun.com/xml/ns/j2ee:
  at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:229)
  at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:216)
  at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:141)
  at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:280)
  at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:248)
  at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:749)
  at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:378)
  at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:720)
  at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:729)
  at weblogic.servlet.internal.WebAppDescriptor.getWebAppBean(WebAppDescriptor.java:134)
  at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:775)
  ... 25 more
  weblogic.application.ModuleException: VALIDATION PROBLEMS WERE FOUND
  C:/bea921/user_projects/domains/base_domain921/servers/AdminServer/stage/_appsdir_FotoProject_war/FotoProject.war/WEB-INF/web.xml:15:32:15:32: problem: cvc-complex-type.2.3: Element 'welcome-file-list@http://java.sun.com/xml/ns/j2ee' with element-only content type cannot have text content.:

本文转自
http://www.myeclipseide.com/PNphpBB2-viewtopic-t-18452.html
  相关解决方案