Exception when using TLD files in JAR files included with web application

2005-08-23 Thread Seva Popov
Hi, I am evaluating the migration to Tomcat from Resin and encounted the following problem. The following exception is raised when I am trying to use tag libraries packaged as JAR files in the web application with both Tomcat 5.5.9 or 5.5.11 (I have the JAR file with the tld in META-INF/tlds

org.apache.jasper.JasperException using jsp expression inside the c:set /

2005-08-24 Thread Seva Popov
Hi, The following line: c:set var=admin value=%=request.getParameter(admin)%/ gives me the below exception under Tomcat 5.5.9: org.apache.jasper.JasperException: /test.jsp(11,29) The value of attribute value associated with an element type c:set must not contain the '' character. Is

RE: org.apache.jasper.JasperException using jsp expression inside the c:set /

2005-08-24 Thread Seva Popov
Message- From: Rahul Akolkar [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 24, 2005 2:10 PM To: Tomcat Users List Subject: Re: org.apache.jasper.JasperException using jsp expression inside the c:set / On 8/24/05, Seva Popov [EMAIL PROTECTED] wrote: Hi, The following line

RE: org.apache.jasper.JasperException using jsp expression inside the c:set /

2005-08-24 Thread Seva Popov
I would appreciated the pointers to the specs. --Seva -Original Message- From: Rahul Akolkar [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 24, 2005 4:23 PM To: Tomcat Users List Subject: Re: org.apache.jasper.JasperException using jsp expression inside the c:set / On 8/24/05, Seva

Custom tag library packaged within a jar and Tomcat 5.5.9

2005-08-25 Thread Seva Popov
Hi, I have the JAR file with the custom tag library in META-INF/tlds directory. My test.jsp page: jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; xmlns:ui=http://www.metatv.com/common/ui/tags-test; version=2.0 test:print/ /jsp:root The following exception is raised when I

JAASRealm's useContextClassLoader flag is misleading

2005-08-25 Thread Seva Popov
Hi, I believe the name of the JAASRealm's useContextClassLoader flag (and the relevant Tomcat 5.5.* documentation) is misleading. Let's look at the source code: org.apache.catalina.realm.JAASRealm: ... // What if the LoginModule is in the container class loader ? ClassLoader

RE: Tomcat 5.5 classloader log4j vs JCL issue

2005-08-31 Thread Seva Popov
Woodchuck, I guess, the alternative solution is to have all your web apps use log4j as well. So, you have commons-logging.jar and log4j.jar in the ${Tomcat}/common/lib folder and log4j.properties in ${Tomcat}/common/classes folder. Just add into your each web app's WEB-INF/classes folder

RE: Tomcat 5.5 classloader log4j vs JCL issue

2005-09-06 Thread Seva Popov
- From: Woodchuck [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 06, 2005 11:10 AM To: Tomcat Users List; Seva Popov Subject: RE: Tomcat 5.5 classloader log4j vs JCL issue hihi Seva, yes, your suggestion also works. i tried it to confirm, and it was my backup plan to do in case i couldn't

Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1

2005-09-13 Thread Seva Popov
Hi, I need to use the JSP 2.0 runtime expressions in the attribute values of JSTL 1.1 tags but I am getting the exception when I try to use them. My jsp page: jsp:root xmlns:jsp=http://java.sun.com/JSP/Page; xmlns:c=http://java.sun.com/jsp/jstl/core;

RE: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1

2005-09-13 Thread Seva Popov
runtime expressions in the attribute values of JSTL 1.1 For example Resin does allow it. Any ideas? -Original Message- From: Seva Popov [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 13, 2005 12:59 PM To: Tomcat Users List Subject: Tomcat 5.5.9 and JSP 2.0 runtime expressions

RE: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1

2005-09-13 Thread Seva Popov
PM To: Tomcat Users List Subject: Re: Tomcat 5.5.9 and JSP 2.0 runtime expressions in the attribute values of JSTL 1.1 On 9/13/05, Seva Popov [EMAIL PROTECTED] wrote: BTW, I understand that I can use a different syntax with the runtime expressions. So, if I change my jsp (not use the xml

RE: ClassCastException while sharing objects accross applications

2005-10-04 Thread Seva Popov
The type in Java is a combination of a fully qualified class name and its defining classloader. So the two objects with the same class name are considered different types in your two web applications because each web application is loaded by the dedicated webapp classloader. To solve your

RE: ClassCastException while sharing objects accross applications

2005-10-04 Thread Seva Popov
Yes, using the shared classloader seems like an obvious and easy option for sharing the objects between the web applications. However, like the previous author notes relying on the classloader can bring up some issues like introducing new dependencies and reducing the web application