What I have found is that I can run a web application without taglibs if
I am not in an context other than the default with "" path.  I created a
jsp directory under this context and changed the path to blank, and then
the taglibs worked fine.  So, I guess the question is.  Do you have to
have the base/default context for a server be blank?  I'm guessing this
is the case probably.  Anyways, I have them working now.

Wade

-----Original Message-----
From: Wade Chandler [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 03, 2003 5:41 PM
To: 'Tomcat Users List'
Subject: RE: Tag Libraries in host other than the main server.


Well I checked the file names, and they are fine.  Then to make sure it
was finding them I changed the path in web.xml to look for my file (to
see what error I would get), and this tells me that it was finding the
tld fine before keying in an invalid path.

org.apache.jasper.JasperException: File
"/ROOT/WEB-INF/taglibs-mailer.tld" not found
        at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand
ler.java:94)
        at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java
:365)
        at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java
:151)
        at
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:1
83)
        at
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:453)
        at
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:514)
        at
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1562)
        at org.apache.jasper.compiler.Parser.parse(Parser.java:171)

I know the class will be loaded into memory by the way my jar files are
in my lib directory for the application.  Does anyone else have tag
libraries running from a Host other than localhost?  Localhost is
usually the default host.  I have another host defined called
www.cltractor.com and am using that host to try to use tag libs.  I
think I might like to get into the tomcat code to try to locate some of
the issues.  But, I'm going to be a newby to that code.  Any help is
appreciated.  

I'm running on Linux using Sun JDK 1.4.1_02.  Everything else other than
Alias and this seems to be working fine.

Thanks again,

Wade


-----Original Message-----
From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 03, 2003 4:23 PM
To: 'Tomcat Users List'
Subject: RE: Tag Libraries in host other than the main server.


        Check WEB-INF directory to see if its name is in the same way as
web.xml, because its case-sensitive.

        Regards,
        Edson

> ----------
> De:   Wade Chandler[SMTP:[EMAIL PROTECTED]
> Responder:    Tomcat Users List
> Enviada:      sexta-feira, 3 de outubro de 2003 16:29
> Para:         'Tomcat Users List'; [EMAIL PROTECTED]
> Assunto:      RE: Tag Libraries in host other than the main server.
> 
> I thought I would give a run down of my setup.
> 
> I have my web.xml file.  I am not using long URIs.  I am using URIs of

> the form apache_taglibname in my web.xml file, but don't assume this
> is the problem.  The URIs are definitely unique in the host or 
> context. The host I am running has it's files out side of the 
> application directory.  They reside in a folder 
> /usr/servers/tomcat/server/cltractor/ROOT.  I have my context setup 
> correctly.  I can run an jsp pages I want as long as I don't need to 
> have any tag libraries installed as well.  I have this web page 
> running and it runs fine: www.cltractor.com.  This is the host I am 
> trying to run under.  Again, thanks for any help and it is 
> appreciated.
> 
> This is my web.xml file:
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> 
> <!DOCTYPE web-app
>     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>     "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> 
> <web-app>
> 
>     <display-name>www.cltractor.com</display-name>
>     <description>
>       New and Used Tractor Parts.
>    </description>
>       <welcome-file-list>
>               <welcome-file>index.jsp</welcome-file>
>               <welcome-file>index.html</welcome-file>
>               <welcome-file>index.htm</welcome-file>
>       </welcome-file-list>
>       <taglib>
>               <taglib-uri>apache_mailer</taglib-uri>
>       
> <taglib-location>/WEB-INF/taglibs-mailer.tld</taglib-location>
>       </taglib>
>       <taglib>
>               <taglib-uri>apache_request</taglib-uri>
>       
> <taglib-location>/WEB-INF/taglibs-request.tld</taglib-location>
>       </taglib>
>       <taglib>
>               <taglib-uri>apache_response</taglib-uri>
>       
> <taglib-location>/WEB-INF/taglibs-response.tld</taglib-location>
>       </taglib>       
>       <taglib>
>               <taglib-uri>apache_session</taglib-uri>
>       
> <taglib-location>/WEB-INF/taglibs-session.tld</taglib-location>
>       </taglib>
>       <taglib>
>               <taglib-uri>apache_page</taglib-uri>
>       
> <taglib-location>/WEB-INF/taglibs-page.tld</taglib-location>
>       </taglib>       
>       <taglib>
>               <taglib-uri>apache_application</taglib-uri>
>       
> <taglib-location>/WEB-INF/taglibs-application.tld</taglib-location>
>       </taglib>       
>       <taglib>
>               <taglib-uri>apache_string</taglib-uri>
>       
> <taglib-location>/WEB-INF/taglibs-string.tld</taglib-location>
>       </taglib>       
>       <taglib>
>               <taglib-uri>apache_log</taglib-uri>
>       
> <taglib-location>/WEB-INF/taglibs-log.tld</taglib-location>
>       </taglib>       
>       <taglib>
>               <taglib-uri>apache_datetime</taglib-uri>
>       
> <taglib-location>/WEB-INF/taglibs-datetime.tld</taglib-location>
>       </taglib>       
>       <taglib>
>               <taglib-uri>apache_regexp</taglib-uri>
>       
> <taglib-location>/WEB-INF/taglibs-regexp.tld</taglib-location>
>       </taglib>       
>       <taglib>
>               <taglib-uri>apache_dbtags</taglib-uri>
>               <taglib-location>/WEB-INF/dbtags.tld</taglib-location>
>       </taglib>       
>       
>       
> </web-app>
> 
> Maybe I'm missing an attribute in my Context or Host tag in my
> ROOT.xml or server.xml file?
> 
> Thanks again,
> 
> 
> Wade
> 
> -----Original Message-----
> From: Wade Chandler [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 03, 2003 3:20 PM
> To: Tomcat User List
> Subject: Tag Libraries in host other than the main server.
> 
> 
> Hello,
> 
>      I'm using the Tomcat 5.x branch.  I'm having an issue with Tag
> libs apparently.  I downloaded an installed the mailer tag libraries.

> The examples with installed from a WAR file to the main server run
> fine, but when I take the libs and move them into another host I get 
> this error
> message:
> org.apache.jasper.JasperException: Unable to initialize
> TldLocationsCache: null
>       at
>
org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java
> :218)
>       at
>
org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCac
> he.java:188)
>       at
>
org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationCon
> text.java:557)
>       at
>
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:452)
>       at
> org.apache.jasper.compiler.Parser.parseDirective(Parser.java:514)
>       at
> org.apache.jasper.compiler.Parser.parseElements(Parser.java:1562)
>       at org.apache.jasper.compiler.Parser.parse(Parser.java:171)
>       at
>
org.apache.jasper.compiler.ParserController.parse(ParserController.java:
> 247)
>       at
>
org.apache.jasper.compiler.ParserController.parse(ParserController.java:
> 150)
>       at
>
org.apache.jasper.compiler.ParserController.parse(ParserController.java:
> 137)
>       at
> org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:250)
>       at
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:458)
>       at
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:444)
>       at
>
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
> va:593)
>       at
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
> va:300)
>       at
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:293)
>       at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>       at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:288)
>       at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:206)
>       at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> e.java:263)
> 
> There is more to the trace, but I didn't assume I would need to
> include it.  Anyways, I would like to be able to use tag libraries 
> from my other hosts, and appreciate any help.
> 
> Wade Chandler
> Software Engineer
> Red-e Set Grow, LLC
> Email: [EMAIL PROTECTED]
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to