tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From IndianAtTech <indianatt...@gmail.com>
Subject How to set the user created tld in web.xml??
Date Tue, 12 Jul 2005 06:44:48 GMT
 Hi All,

I am facing a problem in setting the user created tld file in web.xml

If I don't specify anything in web.xml

I am getting below error

Exception Handler


Description: An unhandled exception occurred during the execution of
the web application. Please review the following stack trace for more
information regarding the error.

Exception Details: org.apache.jasper.JasperException
  This absolute uri (http://www.jiyaJobs.com/) cannot be resolved in
either web.xml or the jar files deployed with this application

Possible Source of Error:
   Class Name: org.apache.jasper.compiler.DefaultErrorHandler
   File Name: DefaultErrorHandler.java
   Method Name: jspError
   Line Number: 105

Source not available. Information regarding the location of the
exception can be identified using the exception stack trace below.

Stack Trace:

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:105)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:430)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154)
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:159)
org.apache.jasper.compiler.JspDocumentParser.addCustomTagLibraries(JspDocumentParser.java:459)
org.apache.jasper.compiler.JspDocumentParser.startElement(JspDocumentParser.java:189)
org.apache.xerces.parsers.AbstractSAXParser.startElement( Unknown Source )
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement( Unknown Source )
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(
Unknown Source )
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(
Unknown Source )
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(
Unknown Source )
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(
Unknown Source )
org.apache.xerces.parsers.XML11Configuration.parse( Unknown Source )
org.apache.xerces.parsers.XML11Configuration.parse( Unknown Source )
org.apache.xerces.parsers.XMLParser.parse( Unknown Source )
org.apache.xerces.parsers.AbstractSAXParser.parse( Unknown Source )
javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.java:156)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:193)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:227)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
com.sun.jsfcl.app.ViewHandlerImpl.renderView(ViewHandlerImpl.java:181)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
java.lang.Thread.run(Thread.java:534)






otherwise If I try to set some value in web.xml something like
<taglib> <taglib-uri>/WEB-INF/radio.tld</taglib-uri> </taglib>


then I am getting below error

2005-07-11 17:30:11 WebappLoader[]: Reloading checks are enabled for
this Context
2005-07-11 17:30:12 ContextConfig[] null
java.lang.NullPointerException
     at org.apache.catalina.startup.ContextConfig.tldScanResourcePaths(ContextConfig.java:1054)
     at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:861)
     at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
     at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
     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.start(ContainerBase.java:1188)
     at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
     at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
     at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
     at org.apache.catalina.core.StandardService.start(StandardService.java:497)
     at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
     at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
     at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
     at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
     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.catalina.startup.Bootstrap.main(Bootstrap.java:203)












 My Web.xml


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<!--
 Copyright 2002, 2003 Sun Microsystems, Inc. All Rights Reserved.
-->
<web-app>
  <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>server</param-value>
  </context-param>
  <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
  <param-value>/WEB-INF/faces-config.xml,/WEB-INF/navigation.xml,/WEB-INF/managed-beans.xml</param-value>
  </context-param>
  <context-param>
    <param-name>com.sun.faces.validateXml</param-name>
    <param-value>true</param-value>
  </context-param>
  <context-param>
    <param-name>com.sun.faces.verifyObjects</param-name>
    <param-value>true</param-value>
  </context-param>
  <!-- Faces Servlet -->
  <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup> 1 </load-on-startup>
  </servlet>
  <!-- Error Handler Servlet -->
  <servlet>
    <servlet-name>ExceptionHandlerServlet</servlet-name>
    <servlet-class>com.sun.errorhandler.ExceptionHandler</servlet-class>
  </servlet>
  <!-- Faces Servlet Mapping -->
  <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.face</url-pattern>
    <!-- <url-pattern>*.faces</url-pattern> -->
  </servlet-mapping>
  <!-- Error Handler Servlet Mapping -->
  <servlet-mapping>
    <servlet-name>ExceptionHandlerServlet</servlet-name>
    <url-pattern>/error/ExceptionHandler</url-pattern>
  </servlet-mapping>
  <!-- Welcome File List -->
  <welcome-file-list>
    <welcome-file>index.htm</welcome-file>
  </welcome-file-list>
  <!-- Catch  ServletException -->
  <error-page>
    <exception-type>javax.servlet.ServletException</exception-type>
    <location>/error/ExceptionHandler</location>
  </error-page>
  <!-- Catch  IOException -->
  <error-page>
    <exception-type>java.io.IOException</exception-type>
    <location>/error/ExceptionHandler</location>
  </error-page>
  <!-- Catch  FacesException -->
  <error-page>
    <exception-type>javax.faces.FacesException</exception-type>
    <location>/error/ExceptionHandler</location>
  </error-page>
  <resource-ref>
    <description>Rave generated DataSource Reference</description>
    <res-ref-name>jdbc/jiya</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
  </resource-ref>


</web-app>



 And here is part of tld

<?xml version="1.0"?>

<!--
 Copyright 2004 Sun Microsystems, Inc. All rights reserved.
 Use is subject to license terms.
 $Id: addons.tld,v 1.0 2004/10/02 02:50:03 winstonp Exp $
-->

<!DOCTYPE taglib PUBLIC
 "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
 "http://java.sun.com/j2ee/dtd/web-jsptaglibrary_1_2.dtd">

<taglib>

  <tlib-version>0.1</tlib-version>
  <jsp-version>1.2</jsp-version>
  <short-name>a</short-name>
  <uri>http://www.jiyaJobs.com/</uri>
  <display-name>Jiya Library</display-name>
  <description>
    The AddOns Tag Library is a tag library containing JavaServer Faces
    component+renderer custom actions.  It contains no dependencies on any
    other APIs and libraries except for the following standard APIs:
    * JavaServer Faces (version 1.0 or later)
    * JavaServer Pages (JSP) (version 1.2 or later)
    * Servlet (version 2.3 or later)
  </description>









plz help to resolve this issue

Thanks
Sudhakar

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message