weblogic部署servlet的问题
东部小飞侠 2006-07-24 11:51:14 我用Myeclipse建了一个测试的web工程里面写了一个测试JSP和测试SERVLET,
然后用WEBLOGIC自带的部署功能,将此WEB工程部署到WEBLOGIC上,
JSP页面可以跑,但是SERVLET不行,
此测试工程部署到TOMCAT上可以正常跑。
weblogic后台报错如下:
<2006-7-24 上午11时06分47秒 CST> <Notice> <JTA> <BEA-110025> <Creating new transaction log file [D:\tools\bea\user_projects\domains\mydomain\myserver\./myserver.heur.0000.tlog].>
<2006-7-24 上午11时06分48秒 CST> <Warning> <HTTP> <BEA-101248> <[Application: 'D:\tools\bea\user_projects\domains\mydomain\applications', Module: 'test']: Deployment descriptor "web.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'web-app'. (line 6, column 52).>
<2006-7-24 上午11时06分52秒 CST> <Error> <Socket> <BEA-000438> <Unable to load performance pack. Using Java I/O instead. Please ensure that wlntio.dll is in: 'E:/BEA/weblogic81/server/bin'
>
我的WEB。XML如下
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
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">
<servlet>
<description>This is the description of my J2EE component</description>
<display-name>This is the display name of my J2EE component</display-name>
<servlet-name>Test</servlet-name>s
<servlet-class>test.Test</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Test</servlet-name>
<url-pattern>/servlet/Test</url-pattern>
</servlet-mapping>
</web-app>