~~大家看看:TOMCAT StandardHost[localhost]: MAPPING configuration error for request URI

mitery 2005-03-08 01:19:49
JB2005的tomcat服务器,启动后出现以下提示,不知道是不是tomcat哪个地方没弄好,我搞不懂了!
请大家帮忙看看!
C:\Borland\JBuilder2005\jdk1.4\bin\javaw -classpath "C:\Borland\JBuilder2005\thirdparty\jakarta-tomcat-4.1.30\bin\bootstrap.jar;C:\Borland\JBuilder2005\jdk1.4\lib\tools.jar" "-Dcatalina.home=C:/Borland/JBuilder2005/thirdparty/jakarta-tomcat-4.1.30" org.apache.catalina.startup.Bootstrap -config "D:\eoffice Enterprise v2.01\Tomcat\conf\server8080.xml" start
2005-3-8 13:00:09 org.apache.coyote.http11.Http11Protocol init

信息: Initializing Coyote HTTP/1.1 on port 8080

Starting service Tomcat-Standalone

Apache Tomcat/4.1.30

CoyoteConnector Coyote can't register jmx for protocol

2005-3-8 13:00:09 org.apache.coyote.http11.Http11Protocol start

信息: Starting Coyote HTTP/1.1 on port 8080

StandardHost[localhost]: MAPPING configuration error for request URI

StandardHost[localhost]: MAPPING configuration error for request URI

StandardHost[localhost]: MAPPING configuration error for request URI

StandardHost[localhost]: MAPPING configuration error for request URI

StandardHost[localhost]: MAPPING configuration error for request URI

StandardHost[localhost]: MAPPING configuration error for request URI

StandardHost[localhost]: MAPPING configuration error for request URI

StandardHost[localhost]: MAPPING configuration error for request URI

StandardHost[localhost]: MAPPING configuration error for request URI

StandardHost[localhost]: MAPPING configuration error for request URI

StandardHost[localhost]: MAPPING configuration error for request URI

StandardHost[localhost]: MAPPING configuration error for request URI

StandardHost[localhost]: MAPPING configuration error for request URI

StandardHost[localhost]: MAPPING configuration error for request URI

StandardHost[localhost]: MAPPING configuration error for request URI

StandardHost[localhost]: MAPPING configuration error for request URI






这时从浏览器访问服务器出现提示:
HTTP Status 500 - No Context configured to process this request
type Status report

message No Context configured to process this request

description The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request.


...全文
211 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
mitery 2005-03-10
  • 打赏
  • 举报
回复
我的是提示<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
有错,找不到jasper这个包,我看了一下目录,没有这个包,知道哪里有下吗?你有没有?
wang2000wang 2005-03-10
  • 打赏
  • 举报
回复
看看web。xml有没有什么问题,我的WEB。XML中是这样写的:
<servlet>
<servlet-name>debugjsp</servlet-name>
<description>Added to compile JSPs with debug info</description>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
<init-param>
<param-name>classdebuginfo</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>3</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>debugjsp</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>servlet1</servlet-name>
<url-pattern>/servlet1</url-pattern>
</servlet-mapping>

这里我在工程中写了一个servlet,就是servlet1.java
JB会自动加上这个servlet 的映射。
mitery 2005-03-09
  • 打赏
  • 举报
回复
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3587)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:700)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:252)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1567)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:385)
mitery 2005-03-09
  • 打赏
  • 举报
回复
tomcat启动提示:
C:\Borland\JBuilder2005\jdk1.4\bin\javaw -classpath "C:\Borland\JBuilder2005\thirdparty\jakarta-tomcat-4.1.30\bin\bootstrap.jar;C:\Borland\JBuilder2005\jdk1.4\lib\tools.jar" "-Dcatalina.home=C:/Borland/JBuilder2005/thirdparty/jakarta-tomcat-4.1.30" org.apache.catalina.startup.Bootstrap -config "D:\eoffice Enterprise v2.01\Tomcat\conf\server8080.xml" start
2005-3-9 11:32:59 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.30
HostConfig[localhost]: Deploying configuration descriptor jb--default.xml
WebappLoader[]: Deploying class repositories to work directory D:\eoffice Enterprise v2.01\Tomcat\work
WebappLoader[]: Deploy class files /WEB-INF/classes to D:\eoffice Enterprise v2.01\defaultroot\WEB-INF\classes
WebappLoader[]: Deploy JAR /WEB-INF/lib/comm.jar to D:\eoffice Enterprise v2.01\defaultroot\WEB-INF\lib\comm.jar
WebappLoader[]: Reloading checks are enabled for this Context
2005-3-9 11:33:00 org.apache.commons.digester.Digester error
严重: Parse Error at line 30 column 21: The content of element type "servlet-mapping" is incomplete, it must match "(servlet-name,url-pattern)".
org.xml.sax.SAXParseException: The content of element type "servlet-mapping" is incomplete, it must match "(servlet-name,url-pattern)".
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:282)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
mitery 2005-03-09
  • 打赏
  • 举报
回复
顺便说一下:工程是从JB8搬过来的(在JB8下是正确的),编译提示WebModule有问题,我删除了WebModule,然后新建了WebModule3。
改了那几个xml后,tomcat提示变了,好像是WebModule3目录下的WEB-INF里面的web.xml有问题,我在JB中打开web.xml,JB就提示<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>这一行有错,提示找不到class or classpath.是不是JB2005默认没有这个类阿?
congbailing_914 2005-03-08
  • 打赏
  • 举报
回复
顶,学习!
wang2000wang 2005-03-08
  • 打赏
  • 举报
回复
我修改的结果如下,如果是这样,应该就没有问题,访问时上路径WebModule3

jb--default.xml的内容:
<?xml version="1.0" encoding="UTF-8"?>
<!--This file, generated by JBuilder, may be deleted and regenerated at any time.-->
<Context debug="0" docBase="G:\eoffice Enterprise v2.01\defaultroot" path="" reloadable="true" workDir="D:\eoffice Enterprise v2.01\Tomcat\work"/>

jb-WebModule3.xml的内容:

<?xml version="1.0" encoding="UTF-8"?>
<!--This comment marks this file as generated, so it may be deleted and regenerated at any time. To preserve manual changes to this file, delete this comment.-->
<Context debug="0" docBase="G:\eoffice Enterprise v2.01\WebModule3" path="/WebModule3" reloadable="true" workDir="D:\strutsdemo\Tomcat\work\WebModule3"/>




server8080.xml的内容:
<?xml version="1.0" encoding="UTF-8"?>
<!--This file, generated by JBuilder, may be deleted and regenerated at any time.-->
<Server debug="0" port="8081" shutdown="SHUTDOWN">
<Service name="Tomcat-Standalone">
<Connector acceptCount="10" className="org.apache.coyote.tomcat4.CoyoteConnector" connectionTimeout="60000" debug="0" maxProcessors="75" minProcessors="5" port="8080"/>
<Engine debug="0" defaultHost="localhost" name="Standalone">
<Host appBase="D:\eoffice Enterprise v2.01\Tomcat\webapps" debug="0" name="localhost" unpackWARs="true"/>
</Engine>
</Service>
</Server>
mitery 2005-03-08
  • 打赏
  • 举报
回复
jb--default.xml的内容:
<?xml version="1.0" encoding="UTF-8"?>
<!--This file, generated by JBuilder, may be deleted and regenerated at any time.-->
<Context debug="0" docBase="G:\eoffice Enterprise v2.01\WebModule3" path="" reloadable="true" workDir="D:\eoffice Enterprise v2.01\Tomcat\work\WebModule3"/>


server8080.xml的内容:
<?xml version="1.0" encoding="UTF-8"?>
<!--This file, generated by JBuilder, may be deleted and regenerated at any time.-->
<Server debug="0" port="8081" shutdown="SHUTDOWN">
<Service name="Tomcat-Standalone">
<Connector acceptCount="10" className="org.apache.coyote.tomcat4.CoyoteConnector" connectionTimeout="60000" debug="0" maxProcessors="75" minProcessors="5" port="8080"/>
<Engine debug="0" defaultHost="localhost" name="Standalone">
<Host appBase="D:\eoffice Enterprise v2.01\WebModule3\WEB-INF\classes" debug="0" name="localhost" unpackWARs="true"/>
</Engine>
</Service>
</Server>

WebModule的路径:D:\eoffice Enterprise v2.01\WebModule3

谢谢!
wang2000wang 2005-03-08
  • 打赏
  • 举报
回复
你是不是改了你的工程下TOMCAT/WEBAPPS/jb--default.xml这个文件,或server8080.xml这个文件,不过根据我的经验server8080.xml不会报错,因为这个文件是默认生成的,你改不改都没关系,但你改了
jb--default.xml这个文件,JB会从这个文件来生成server8080.xml,查查这个文件吧。

50,530

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧