在resion发布是可以了。并且程序也调试成功。但是换成weblogic 8.1就不行了。
错误如下:
<Security initializing using security realm myrealm.>
####<Dec 1, 2010 11:06:22 AM CST> <Warning> <HTTP> <ktapp> <myserver> <main> <<WLS Kernel>> <> <BEA-101248> <[Application: '/data/sinocc', Module: 'www']: Deployment descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)". (line 142, column 11).>
####<Dec 1, 2010 11:06:22 AM CST> <Warning> <HTTP> <ktapp> <myserver> <main> <<WLS Kernel>> <> <BEA-101248> <[Application: '/data/sinocc', Module: 'www']: Deployment descriptor "weblogic.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: The content of element type "container-descriptor" must match "(check-auth-on-forward?,filter-dispatched-requests-enabled?,redirect-content-type?,redirect-content?,redirect-with-absolute-url?,index-directory-enabled?,index-directory-sort-by?,servlet-reload-check-secs?,inflight-request-timeout-secs?,single-threaded-servlet-pool-size?,session-monitoring-enabled?,save-sessions-enabled?,prefer-web-inf-classes?,default-mime-type?,retain-original-url?,allow-all-roles?)". (line 16, column 26).>
####<Dec 1, 2010 11:06:31 AM CST> <Warning> <HTTP> <ktapp> <myserver> <main> <<WLS Kernel>> <> <BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListener failed: java.lang.ClassCastException.>
####<Dec 1, 2010 11:06:31 AM CST> <Warning> <HTTP> <ktapp> <myserver> <main> <<WLS Kernel>> <> <BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListener failed: java.lang.ClassCastException.>
####<Dec 1, 2010 11:06:31 AM CST> <Error> <Deployer> <ktapp> <myserver> <main> <<WLS Kernel>> <> <BEA-149231> <Unable to set the activation state to true for the application www.
java.lang.Throwable: start() failed.
at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2134)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2168)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2115)
at weblogic.management.deploy.slave.SlaveDeployer$Application.setActivation(SlaveDeployer.java:3082)
at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForAllApplications(SlaveDeployer.java:1751)
at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:359)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
at weblogic.Server.main(Server.java:32)
>
错误如下:
<Security initializing using security realm myrealm.>
####<Dec 1, 2010 11:06:22 AM CST> <Warning> <HTTP> <ktapp> <myserver> <main> <<WLS Kernel>> <> <BEA-101248> <[Application: '/data/sinocc', Module: 'www']: Deployment descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)". (line 142, column 11).>
####<Dec 1, 2010 11:06:22 AM CST> <Warning> <HTTP> <ktapp> <myserver> <main> <<WLS Kernel>> <> <BEA-101248> <[Application: '/data/sinocc', Module: 'www']: Deployment descriptor "weblogic.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: The content of element type "container-descriptor" must match "(check-auth-on-forward?,filter-dispatched-requests-enabled?,redirect-content-type?,redirect-content?,redirect-with-absolute-url?,index-directory-enabled?,index-directory-sort-by?,servlet-reload-check-secs?,inflight-request-timeout-secs?,single-threaded-servlet-pool-size?,session-monitoring-enabled?,save-sessions-enabled?,prefer-web-inf-classes?,default-mime-type?,retain-original-url?,allow-all-roles?)". (line 16, column 26).>
####<Dec 1, 2010 11:06:31 AM CST> <Warning> <HTTP> <ktapp> <myserver> <main> <<WLS Kernel>> <> <BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListener failed: java.lang.ClassCastException.>
####<Dec 1, 2010 11:06:31 AM CST> <Warning> <HTTP> <ktapp> <myserver> <main> <<WLS Kernel>> <> <BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListener failed: java.lang.ClassCastException.>
####<Dec 1, 2010 11:06:31 AM CST> <Error> <Deployer> <ktapp> <myserver> <main> <<WLS Kernel>> <> <BEA-149231> <Unable to set the activation state to true for the application www.
java.lang.Throwable: start() failed.
at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2134)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2168)
at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2115)
at weblogic.management.deploy.slave.SlaveDeployer$Application.setActivation(SlaveDeployer.java:3082)
at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForAllApplications(SlaveDeployer.java:1751)
at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:359)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
at weblogic.Server.main(Server.java:32)
>
<!-- START SNIPPET: xfire -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext.xml
classpath:org/codehaus/xfire/spring/xfire.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<servlet>
<servlet-name>xfire</servlet-name>
<servlet-class>org.codehaus.xfire.spring.XFireSpringServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>xfire</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
<!-- END SNIPPET: xfire -->
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd"><weblogic-web-app>
<jsp-descriptor>
<jsp-param>
<param-name>pageCheckSeconds</param-name>
<param-value>-1</param-value>
</jsp-param>
</jsp-descriptor> <container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
<servlet-reload-check-secs>-1</servlet-reload-check-secs>
</container-descriptor> <context-root>/</context-root>
</weblogic-web-app>
BUG出在weblogic.xml 中增加<prefer-web-inf-classes>true</prefer-web-inf-classes>
其他的不会写有啥区别?