JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Java IDE » Eclipse  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友   
reply to topicthreaded modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 使用eclipse建立web.xml出現嚴重異常
Jeffliou





發文: 18
積分: 0
於 2016-11-25 11:03 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
g.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1107)
  at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:771)
  at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:305)
  at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)
  at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
  at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5135)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
  at java.util.concurrent.FutureTask.run(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)
 
十一月 25, 2016 7:01:11 下午 org.apache.tomcat.util.descriptor.web.WebXmlParser parseWebXml
嚴重: Parse error in application web.xml file at file:/D:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp5/wtpwebapps/Tigeree/WEB-INF/web.xml
org.xml.sax.SAXParseException; systemId: file:/D:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp5/wtpwebapps/Tigeree/WEB-INF/web.xml; lineNumber: 1; columnNumber: 39; 檔案提早結束。
  at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
  at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source)
  at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
  at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
  at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(Unknown Source)
  at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)
  at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
  at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
  at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
  at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
  at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
  at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
  at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
  at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1451)
  at org.apache.tomcat.util.descriptor.web.WebXmlParser.parseWebXml(WebXmlParser.java:120)
  at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1107)
  at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:771)
  at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:305)
  at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:95)
  at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
  at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5135)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
  at java.util.concurrent.FutureTask.run(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  at java.lang.Thread.run(Unknown Source)
 
十一月 25, 2016 7:01:11 下午 org.apache.tomcat.util.descriptor.web.WebXmlParser parseWebXml
嚴重: Occurred at line 1 column 39
十一月 25, 2016 7:01:11 下午 org.apache.catalina.startup.ContextConfig configureStart
嚴重: Marking this application unavailable due to previous error(s)
十一月 25, 2016 7:01:11 下午 org.apache.catalina.core.StandardContext startInternal
嚴重: One or more components marked the context as not correctly configured
十一月 25, 2016 7:01:11 下午 org.apache.catalina.core.StandardContext startInternal
嚴重: Context [/Tigeree] startup failed due to previous errors
十一月 25, 2016 7:01:11 下午 org.apache.coyote.AbstractProtocol start
資訊: Starting ProtocolHandler ["http-nio-8080"]
十一月 25, 2016 7:01:11 下午 org.apache.coyote.AbstractProtocol start
資訊: Starting ProtocolHandler ["ajp-nio-8009"]
十一月 25, 2016 7:01:11 下午 org.apache.catalina.startup.Catalina start
資訊: Server startup in 235 ms



請問為什麼我使用eclipse創建一個web.xml檔案會出現這樣的異常??有解決的辦法嗎??


reply to postreply to post
作者 Re:使用eclipse建立web.xml出現嚴重異常 [Re:Jeffliou]
pclevin





發文: 322
積分: 0
於 2016-11-25 14:41 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
錯誤訊息內容有段
web.xml; lineNumber: 1; columnNumber: 39;

看一下web.xml 你寫了什麼


reply to postreply to post
我的網誌
http://pclevin.blogspot.com
作者 Re:使用eclipse建立web.xml出現嚴重異常 [Re:Jeffliou]
Jeffliou





發文: 18
積分: 0
於 2016-11-25 15:22 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
1
<?xml version="1.0" encoding="UTF-8"?>


我只有寫這個


reply to postreply to post
作者 Re:使用eclipse建立web.xml出現嚴重異常 [Re:Jeffliou]
pclevin





發文: 322
積分: 0
於 2016-11-25 15:54 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
嗯~~

沒遇過這問題。

你把此專案資料夾壓上傑上來。
我匯到我的的eclipse試看看,是什麼問題。


reply to postreply to post
我的網誌
http://pclevin.blogspot.com
作者 Re:使用eclipse建立web.xml出現嚴重異常 [Re:pclevin]
mmolis





發文: 127
積分: 0
於 2016-11-25 17:56 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
is there any BOM of the web deployment descriptor file ?

reply to postreply to post
作者 Re:使用eclipse建立web.xml出現嚴重異常 [Re:pclevin]
Jeffliou





發文: 18
積分: 0
於 2016-11-26 07:05 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
在這邊~感謝前輩幫忙解答~

is there any BOM of the web deployment descriptor file ?

沒有

Tigeree.rar (2.82k)


reply to postreply to post
作者 Re:使用eclipse建立web.xml出現嚴重異常 [Re:Jeffliou]
pclevin





發文: 322
積分: 0
於 2016-11-28 12:58 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
@@看來你必須看一下jsp / servlet的基本
語言技術:Servlet/JSP Gossip
http://openhome.cc/Gossip/ServletJSP/FirstServlet.html


reply to postreply to post
我的網誌
http://pclevin.blogspot.com
作者 Re:使用eclipse建立web.xml出現嚴重異常 [Re:pclevin]
Jeffliou





發文: 18
積分: 0
於 2016-11-30 11:24 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
ok~謝謝前輩

reply to postreply to post
» JWorld@TW »  Java IDE » Eclipse

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8