问题描述
请教高人,想利用RED5CHAT视频聊天程序,建立聊天室(注:不是为了盈利),上网找到了compile好的chat程序,copy到WEBAPPS路径下运行red5,出现以下错误信息,一直没有办法解决,希望大家帮我一下,非常感谢,(如果有可以正常运做的CHAT程序,发给我好吗)QQ:4474401972011-01-0400:54:49,093[WrapperSimpleAppMain]ERRORo.apache.catalina.startup.TldConfig-ErrorprocessingTLDfilesforcontextpath/chatjavax.servlet.ServletException:ExceptionprocessingTLDatresourcepath/WEB-INF/tlds/c.tldincontext/chatatorg.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:543)[catalina-6.0.24.jar:na]atorg.apache.catalina.startup.TldConfig.execute(TldConfig.java:299)[catalina-6.0.24.jar:na]atorg.apache.catalina.startup.TldConfig.lifecycleEvent(TldConfig.java:739)[catalina-6.0.24.jar:na]atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)[catalina-6.0.24.jar:na]atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4377)[catalina-6.0.24.jar:na]atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)[catalina-6.0.24.jar:na]atorg.apache.catalina.core.StandardHost.start(StandardHost.java:722)[catalina-6.0.24.jar:na]atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)[catalina-6.0.24.jar:na]atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)[catalina-6.0.24.jar:na]...................................................................................................................................web.xml配置文件为<?xmlversion="1.0"encoding="ISO-8859-1"?><web-appxmlns="省略"xmlns:xsi="省略"xsi:schemaLocation="省略version="2.4"><display-name>chat</display-name><context-param><param-name>globalScope</param-name><param-value>default</param-value></context-param><context-param><param-name>contextConfigLocation</param-name><param-value>/WEB-INF/red5-*.xml</param-value></context-param><context-param><param-name>locatorFactorySelector</param-name><param-value>red5.xml</param-value></context-param><context-param><param-name>parentContextKey</param-name><param-value>default.context</param-value></context-param><context-param><param-name>webAppRootKey</param-name><param-value>/chat</param-value></context-param><listener><listener-class>org.springframework.web.context.ContextLoaderListener</listener-class></listener><servlet><servlet-name>gateway</servlet-name><servlet-class>org.red5.server.net.servlet.AMFGatewayServlet</servlet-class><load-on-startup>1</load-on-startup></servlet><servlet-mapping><servlet-name>gateway</servlet-name><url-pattern>/gateway</url-pattern></servlet-mapping><taglib><taglib-uri>/tlds/c</taglib-uri><taglib-location>/WEB-INF/tlds/c.tld</taglib-location></taglib></web-app>red5-web.xml配置文件为<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEbeansPUBLIC"-//SPRING//DTDBEAN//EN""省略"><beans><beanid="placeholderConfig"class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"><propertyname="location"value="/WEB-INF/red5-web.properties"/></bean><beanid="web.context"class="org.red5.server.Context"autowire="byType"/><beanid="web.scope"class="org.red5.server.WebScope"init-method="register"><propertyname="server"ref="red5.server"/><propertyname="parent"ref="global.scope"/><propertyname="context"ref="web.context"/><propertyname="handler"ref="web.handler"/><propertyname="contextPath"value="${webapp.contextPath}"/><propertyname="virtualHosts"value="${webapp.virtualHosts}"/></bean><beanid="web.handler"class="chat.Application"singleton="true"/></beans>
解决方案
解决方案二:
检查你的/WEB-INF/tlds/c.tld文件<taglib><taglib-uri>/tlds/c</taglib-uri><taglib-location>/WEB-INF/tlds/c.tld</taglib-location></taglib>