首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

Eclipse出错解决思路

2012-01-30 
Eclipse出错请教各位,我在JBuider2006能够编译成功以下的两个JSP页面:--Include.jsp%@pagecontentType

Eclipse出错
请教各位,我在JBuider2006能够编译成功以下的两个JSP页面:

--Include.jsp
<%@   page   contentType= "text/html;   charset=gb2312 "   %>
<html>
<head>
<title>
Include.jsp
</title>
</head>
<body   bgcolor= "#ffffff ">
  <jsp:include   page= "IncludeTo.jsp "   flush= "true ">
  <jsp:param   name= "IncludeTo.jsp "   value= "true "/>
  </jsp:include>
</body>
</html>

--IncludeTo.jsp
<%@   page   contentType= "text/html;   charset=gb2312 "   %>
<html>
<head>
<title>
IncludeTo.jsp
</title>
</head>
<body   bgcolor= "#ffffff ">
    Welcome   to   xi 'an   JiaoTong   University
</body>
</html>

但是在Eclipse下却出错,而且编译其他的JSP文件也是这样:
2007-5-31   14:31:59   org.apache.commons.digester.Digester   fatalError
严重:   Parse   Fatal   Error   at   line   359   column   23:   The   entity   name   must   immediately   follow   the   '& '   in   the   entity   reference.
org.xml.sax.SAXParseException:   The   entity   name   must   immediately   follow   the   '& '   in   the   entity   reference.
at   org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown   Source)
at   org.apache.xerces.util.ErrorHandlerWrapper.fatalError(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.XMLScanner.reportFatalError(Unknown   Source)
at   org.apache.xerces.impl.XMLScanner.scanAttributeValue(Unknown   Source)
at   org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanAttribute(Unknown   Source)
at   org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(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.XML11Configuration.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.Catalina.load(Catalina.java:489)
at   org.apache.catalina.startup.Catalina.load(Catalina.java:528)
at   sun.reflect.NativeMethodAccessorImpl.invoke0(Native   Method)
at   sun.reflect.NativeMethodAccessorImpl.invoke(Unknown   Source)
at   sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown   Source)
at   java.lang.reflect.Method.invoke(Unknown   Source)
at   org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
Catalina.start   using   C:\Program   Files\Apache   Software   Foundation\Tomcat   5.0\conf\server.xml:   org.xml.sax.SAXParseException:   The   entity   name   must   immediately   follow   the   '& '   in   the   entity   reference.


org.xml.sax.SAXParseException:   The   entity   name   must   immediately   follow   the   '& '   in   the   entity   reference.
at   org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown   Source)
at   org.apache.commons.digester.Digester.parse(Digester.java:1548)
at   org.apache.catalina.startup.Catalina.load(Catalina.java:489)
at   org.apache.catalina.startup.Catalina.load(Catalina.java:528)
at   sun.reflect.NativeMethodAccessorImpl.invoke0(Native   Method)
at   sun.reflect.NativeMethodAccessorImpl.invoke(Unknown   Source)
at   sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown   Source)
at   java.lang.reflect.Method.invoke(Unknown   Source)
at   org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:250)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:424)
2007-5-31   14:31:59   org.apache.commons.digester.Digester   fatalError
严重:   Parse   Fatal   Error   at   line   359   column   23:   The   entity   name   must   immediately   follow   the   '& '   in   the   entity   reference.
org.xml.sax.SAXParseException:   The   entity   name   must   immediately   follow   the   '& '   in   the   entity   reference.
at   org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown   Source)
at   org.apache.xerces.util.ErrorHandlerWrapper.fatalError(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.XMLScanner.reportFatalError(Unknown   Source)
at   org.apache.xerces.impl.XMLScanner.scanAttributeValue(Unknown   Source)
at   org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanAttribute(Unknown   Source)
at   org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(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.XML11Configuration.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.Catalina.load(Catalina.java:489)
at   org.apache.catalina.startup.Catalina.start(Catalina.java:548)
at   sun.reflect.NativeMethodAccessorImpl.invoke0(Native   Method)
at   sun.reflect.NativeMethodAccessorImpl.invoke(Unknown   Source)
at   sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown   Source)
at   java.lang.reflect.Method.invoke(Unknown   Source)
at   org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Catalina.start   using   C:\Program   Files\Apache   Software   Foundation\Tomcat   5.0\conf\server.xml:   org.xml.sax.SAXParseException:   The   entity   name   must   immediately   follow   the   '& '   in   the   entity   reference.
org.xml.sax.SAXParseException:   The   entity   name   must   immediately   follow   the   '& '   in   the   entity   reference.


at   org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown   Source)
at   org.apache.commons.digester.Digester.parse(Digester.java:1548)
at   org.apache.catalina.startup.Catalina.load(Catalina.java:489)
at   org.apache.catalina.startup.Catalina.start(Catalina.java:548)
at   sun.reflect.NativeMethodAccessorImpl.invoke0(Native   Method)
at   sun.reflect.NativeMethodAccessorImpl.invoke(Unknown   Source)
at   sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown   Source)
at   java.lang.reflect.Method.invoke(Unknown   Source)
at   org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
2007-5-31   14:31:59   org.apache.catalina.startup.Catalina   start
信息:   Server   startup   in   0   ms
java.lang.reflect.InvocationTargetException
at   sun.reflect.NativeMethodAccessorImpl.invoke0(Native   Method)
at   sun.reflect.NativeMethodAccessorImpl.invoke(Unknown   Source)
at   sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown   Source)
at   java.lang.reflect.Method.invoke(Unknown   Source)
at   org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at   org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused   by:   java.lang.NullPointerException
at   org.apache.catalina.startup.Catalina.await(Catalina.java:619)
at   org.apache.catalina.startup.Catalina.start(Catalina.java:579)
...   6   more

[解决办法]
C:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\server.xml有问题,改过?

热点排行