JSF開發,採用myfaces-tobago-1.0.11-dist實現菜單(menu)的問題

lyqgenius 2007-06-15

需要使用的Tag:
xmlns:tc="http://myfaces.apache.org/tobago/component"
tc:menu
tc:menuBar
tc:menucheck
tc:menuCheckbox
tc:menuItem

相關對應的類可以查API HELP

問題:
發布顯示錯誤:
HTTP Status 404 - /ted12/

type Status report

message /ted12/

description The requested resource (/ted12/) is not available.
Apache Tomcat/6.0.13

日志:
2007/6/15 下午 01:55:15 org.apache.catalina.core.StandardContext listenerStart
嚴重的: Exception sending context initialized event to listener instance of class org.apache.myfaces.tobago.webapp.TobagoServletContextListener
java.lang.RuntimeException: Error while deploy process. Tobago can't be initialized! Application will not run!
at org.apache.myfaces.tobago.webapp.TobagoServletContextListener.contextInitialized(TobagoServletContextListener.java:72)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
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:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.net.MalformedURLException: no protocol: tobago-config_1_0.dtd
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at gnu.xml.aelfred2.SAXDriver.absolutize(SAXDriver.java:608)
at gnu.xml.aelfred2.SAXDriver.resolveEntity(SAXDriver.java:585)
at gnu.xml.aelfred2.XmlParser.pushURL(XmlParser.java:3336)
at gnu.xml.aelfred2.XmlParser.parseDoctypedecl(XmlParser.java:845)
at gnu.xml.aelfred2.XmlParser.parseProlog(XmlParser.java:522)
at gnu.xml.aelfred2.XmlParser.parseDocument(XmlParser.java:414)
at gnu.xml.aelfred2.XmlParser.doParse(XmlParser.java:167)
at gnu.xml.aelfred2.SAXDriver.parse(SAXDriver.java:320)
at gnu.xml.aelfred2.XmlReader.parse(XmlReader.java:294)
at org.apache.commons.digester.Digester.parse(Digester.java:1666)
at org.apache.myfaces.tobago.config.TobagoConfigParser.parse(TobagoConfigParser.java:110)
at org.apache.myfaces.tobago.config.TobagoConfigParser.parse(TobagoConfigParser.java:50)
at org.apache.myfaces.tobago.webapp.TobagoServletContextListener.contextInitialized(TobagoServletContextListener.java:53)
... 24 more
2007/6/15 下午 01:55:18 org.apache.catalina.core.ApplicationContext log
資訊: ContextListener: contextInitialized()
2007/6/15 下午 01:55:18 org.apache.catalina.core.ApplicationContext log
資訊: SessionListener: contextInitialized()

發布的是官方提供的例子:
http://myfaces.apache.org/tobago/download.html

如果是配置文件的問題,請把你們成功運行的配置文件發上來
在次感謝

不會的麻煩幫忙頂頂
lyqgenius 2007-06-15
我的QQ:185854534
Email:lyqgenius@gmail.com
Global site tag (gtag.js) - Google Analytics