You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Isak Rickyanto <is...@telkom.net> on 2002/03/25 08:08:16 UTC

error loading taglib

I have problem with custom tag
I have added in my web.xml :
<taglib>
<taglib-uri>counter</taglib-uri>
<taglib-location>/WEB-INF/counter.tld</taglib-location>
</taglib>

I also have the counter.tld :
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE taglib
  PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
  "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">

<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.2</jspversion>
<shortname>Counter Tag</shortname>
<info>This tag display Counter</info>
  <tag>
  <name>counter</name>
  <tagclass>CounterTag</tagclass>
  <bodycontent>empty</bodycontent>
 </tag>
</taglib>

but when i use in my code :
<%@ taglib uri="counter" prefix="util" %>
<html>
<head>
<title>Hit Counter with Custom Tag </title>
This page has visited for <util:counter/> times
</body>
</html>

I got this error messages :

org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 6 in the jsp file: /countertag.jsp
Generated servlet error:
C:\tomcat4\work\localhost\_\countertag$jsp.java:59: Class
org.apache.jsp.CounterTag not found.
                CounterTag _jspx_th_util_counter_0 = new CounterTag();
                ^
An error occurred at line: 6 in the jsp file: /countertag.jsp
Generated servlet error:
C:\tomcat4\work\localhost\_\countertag$jsp.java:59: Class
org.apache.jsp.CounterTag not found.
                CounterTag _jspx_th_util_counter_0 = new CounterTag();
                                                         ^
Why ?



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Tomcat Security + IIS

Posted by Renato Romano <r....@set-network.com>.
I have to integrate two web applications: the first is written using
JSP, but the second is using Microsoft ASP pages. That's ok to have
Tomcat running under IIS, I already used this technique succesfully, but
what about using Servlet Security Schema, for ASP pages ?? Briefly I
would have of course IIS run ASP pages, but security checked by Tomcat
!! I suppose this ain't very easy, because i shoul let Tomcat serve ALL
resources, recognize ASP pages, and send them back to IIS, in some way
... Any help ? Thanks... Renato

____________________________________
Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: r.romano@set-network.com
Tel.:   010 2712603
_____________________________________





--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Tomcat Security

Posted by Renato Romano <r....@set-network.com>.
I have to integrate two web applications: the first is written using
JSP, but the second is using Microsoft ASP pages. That's ok to have
Tomcat running under IIS, I already used this technique succesfully, but
what about using Servlet Security Schema, for ASP pages ?? Briefly I
would have of course IIS run ASP pages, but security checked by Tomcat
!! I suppose this ain't very easy, because i shoul let Tomcat serve ALL
resources, recognize ASP pages, and send them back to IIS, in some way
...
Any help ?
Thanks...
Renato

____________________________________
Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: r.romano@set-network.com
Tel.:   010 2712603
_____________________________________




--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: error loading taglib

Posted by James Williamson <ja...@nameonthe.net>.
Hi Isak,

Are you sure you've put the class (CounterTag) in a place the classloader
can find it?

Regards,

James Williamson
www.nameonthe.net
----- Original Message -----
From: Isak Rickyanto <is...@telkom.net>
To: Tomcat User Group <to...@jakarta.apache.org>
Sent: Monday, March 25, 2002 7:08 AM
Subject: error loading taglib


> I have problem with custom tag
> I have added in my web.xml :
> <taglib>
> <taglib-uri>counter</taglib-uri>
> <taglib-location>/WEB-INF/counter.tld</taglib-location>
> </taglib>
>
> I also have the counter.tld :
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <!DOCTYPE taglib
>   PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
>   "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
>
> <taglib>
> <tlibversion>1.0</tlibversion>
> <jspversion>1.2</jspversion>
> <shortname>Counter Tag</shortname>
> <info>This tag display Counter</info>
>   <tag>
>   <name>counter</name>
>   <tagclass>CounterTag</tagclass>
>   <bodycontent>empty</bodycontent>
>  </tag>
> </taglib>
>
> but when i use in my code :
> <%@ taglib uri="counter" prefix="util" %>
> <html>
> <head>
> <title>Hit Counter with Custom Tag </title>
> This page has visited for <util:counter/> times
> </body>
> </html>
>
> I got this error messages :
>
> org.apache.jasper.JasperException: Unable to compile class for JSP
> An error occurred at line: 6 in the jsp file: /countertag.jsp
> Generated servlet error:
> C:\tomcat4\work\localhost\_\countertag$jsp.java:59: Class
> org.apache.jsp.CounterTag not found.
>                 CounterTag _jspx_th_util_counter_0 = new CounterTag();
>                 ^
> An error occurred at line: 6 in the jsp file: /countertag.jsp
> Generated servlet error:
> C:\tomcat4\work\localhost\_\countertag$jsp.java:59: Class
> org.apache.jsp.CounterTag not found.
>                 CounterTag _jspx_th_util_counter_0 = new CounterTag();
>                                                          ^
> Why ?
>
>
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re:package org.apache.jasper.runtime does not exist

Posted by Chuck Amadi <ch...@breconbeacons.org>.
Hey pretty long error log. Anyway basically can't find package 
org.apache.jasper.runtime does not exist.


_0002fregisterMySql_0002ejspregisterMySql_jsp_0.java [10:1] package 
org.apache.jasper.runtime does not exist
import org.apache.jasper.runtime.*;
^
_0002fregisterMySql_0002ejspregisterMySql_jsp_0.java [12:1] cannot 
resolve symbol
symbol  : class JasperException 
location: package jasper
import org.apache.jasper.JasperException;
                         ^
_0002fregisterMySql_0002ejspregisterMySql_jsp_0.java [16:1] cannot 
resolve symbol
symbol  : class HttpJspBase 
location: class _0002fregisterMySql_0002ejspregisterMySql_jsp_0
public class _0002fregisterMySql_0002ejspregisterMySql_jsp_0 extends 
HttpJspBase {
                                                                     ^
_0002fregisterMySql_0002ejspregisterMySql_jsp_0.java [26:1] cannot 
resolve symbol
symbol  : class JasperException 
location: class _0002fregisterMySql_0002ejspregisterMySql_jsp_0
    public final void _jspx_init() throws JasperException {
                                          ^
_0002fregisterMySql_0002ejspregisterMySql_jsp_0.java [38:1] incompatible 
types
found   : _0002fregisterMySql_0002ejspregisterMySql_jsp_0
required: java.lang.Object
        Object page = this;
                      ^
_0002fregisterMySql_0002ejspregisterMySql_jsp_0.java [48:1] 
getPageContext(javax.servlet.Servlet,javax.servlet.ServletRequest,javax.servlet.ServletResponse,java.lang.String,boolean,int,boolean) 
in javax.servlet.jsp.JspFactory cannot be applied to 
(_0002fregisterMySql_0002ejspregisterMySql_jsp_0,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.String,boolean,int,boolean)
            pageContext = _jspxFactory.getPageContext(this, request, 
response,
                                      ^
6 errors
Errors compiling registerMySql.

Cheers Chuckie Amadi
Systems Programmer



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>