Re: Control character in cookie value

2009-12-08 Thread itay sahar
cookiePath. I can make sure in my application this won't happen right ? If you think something is wrong in the methods below please suggest solution.. Thanks! On Mon, Dec 7, 2009 at 10:42 PM, itay sahar wrote: > sure! > protected void setCookieValueIfEnabled(String value) >

Re: Control character in cookie value

2009-12-07 Thread itay sahar
Cookie cookie = new Cookie( getCookieName(), value ); cookie.setMaxAge( getCookieMaxAge() ); cookie.setPath(cookiePath); response.addCookie(cookie); } } On Mon, Dec 7, 2009 at 10:26 PM, André Warnier wrote: > itay sahar wrote: > >> sur

Re: Control character in cookie value

2009-12-07 Thread itay sahar
i'm not sure it solve all the scenarios/possibilities. On Mon, Dec 7, 2009 at 9:47 PM, Pid Ster wrote: > On 7 Dec 2009, at 19:26, itay sahar wrote: > > > I add log for the following method: > > > > protected String encodeToken(String username, String value) > >

Re: Control character in cookie value

2009-12-07 Thread itay sahar
79, 68, 89, 53, 77, 122, 103, 61] Please note that any change in the above might affect the decoder. Thanks! On Mon, Dec 7, 2009 at 3:04 PM, itay sahar wrote: > Thanks André, > * > * > *I agree with you about the doubt you have about the ":" being in C (after > encod

Re: Control character in cookie value

2009-12-07 Thread itay sahar
t somthing to sove this.* On Mon, Dec 7, 2009 at 1:57 PM, André Warnier wrote: > itay sahar wrote: > >> Pid, >> I'm not using B as the cookie value. A & B go to encode and finally you >> have *one *value(C). this value >&g

Re: Control character in cookie value

2009-12-07 Thread itay sahar
2/2009 21:51, itay sahar wrote: > >> Hi Andre, >> >> please see below input and output of: >> protected String encodeToken(String username, String value) >>{ >> StringBuilder sb = new StringBuilder(); >> sb.append(username); >>

Re: Control character in cookie value

2009-12-06 Thread itay sahar
).getBytes()); } Input is: username= itay.sa...@gmial.com value=6de5ca4f:1254c461110:-7feb:9135486247122677484 Output is (this is what actually addCookie get as parameter): 6de5ca4f:1254c461110:-7feb:9135486247122677484 Can you suggest solution ? On Sun, Dec 6, 2009 at 11:28 PM, itay sahar wrote:

Re: Control character in cookie value

2009-12-05 Thread itay sahar
il address. Thanks! On Sat, Dec 5, 2009 at 3:37 PM, Mark Thomas wrote: > itay sahar wrote: > > Caused by: java.lang.IllegalArgumentException: Control character in > cookie > > value, consider BASE64 encoding your value > > at > > > org.apache.tomcat.util.http

Re: Control character in cookie value

2009-12-05 Thread itay sahar
b.toString().getBytes()); } On Sat, Dec 5, 2009 at 2:14 PM, André Warnier wrote: > itay sahar wrote: > >> Hi all, >> >> I'm using seam on tomcat 6.0.20 and encounter problem in my security >> module. >> >> Basically, i try to add cookie with bas

Control character in cookie value

2009-12-04 Thread itay sahar
Hi all, I'm using seam on tomcat 6.0.20 and encounter problem in my security module. Basically, i try to add cookie with base64 encoding of the username which is email address. The encoding works and no exception is thrown. But when seam try adding the cookie an exception is thrown: 05/12/2009 0

After deployment to tomcat: entity class not found

2009-05-07 Thread itay sahar
Hello, I've successfully created all hbm,POJO and DAO files using Hibernate tool which is great!!! Once deploy to Tomcat I got the exception: nested exception is org.hibernate.MappingException: entity class not found: MyClass the full stack is: org.springframework.beans.factory.BeanCreationExcep

JSF implementation selection

2008-05-09 Thread itay sahar
hi all, I would like you share with us the best JSF implemetation. (myfaces,icefaces) and explian why you prefer one above the other. Thanks Itay

Re: hibernate3 / JPA / JBossCache / tomcat

2008-02-01 Thread itay sahar
Tomcat can use JTA. I use it also with Hib3. My sugession to you is to find the appropriate jar with JBossCache and for tomcat version. On 2/1/08, David Cassidy <[EMAIL PROTECTED]> wrote: > > Hey guys > > Having problems getting Hib3/JPA working with JBossCache within tomcat. > > Am I trying for t

Re: tiles 2 JSF integration in tomcat 5.5.25

2007-11-15 Thread itay sahar
i do have, thanks On 11/16/07, Martin Gainty <[EMAIL PROTECTED]> wrote: > > make sure you have $CATALINA_HOME/common/lib/jsp-api.jar > > M-- > - Original Message - > From: "itay sahar" <[EMAIL PROTECTED]> > To: "Tomcat Users List"

tiles 2 JSF integration in tomcat 5.5.25

2007-11-15 Thread itay sahar
hi, i'm trying to forward from index.jsp: to main.jsp: <%@ taglib uri="http://tiles.apache.org/tags-tiles"; prefix="tiles" %> this is part of tiles.xml: http://tiles.apache.org/dtds/tiles-config_2_0.dtd";> part of web.xml: http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://w

Re:

2007-11-13 Thread itay sahar
api 2.0 (included w/ tomcat 5.5 in > the common/lib directory). > > Also if you have any .java or .class files in tomcat's work directory, > delete them and restart tomcat to remove any possible old stuff. > > --David > > itay sahar wrote: > > hi david than

Re:

2007-11-13 Thread itay sahar
anyway. > > Lastly, you webapp will continue to use servlet spec 2.3/jsp 1.2 as long > as your web.xml declares servlet spec 2.3. Upgrade to the web.xml to > enable all the servlet spec 2.4/jsp 2.0 features. > > --David > > itay sahar wrote: > > hi all, > > &

users@tomcat.apache.org

2007-11-10 Thread itay sahar
hi all, The tomcat version is 5.5.25 with the default version (binary). contain (jsp-api,jar and servlet-api.jar). Servlet 2.4 support jsp 2.0. My application worked (before) on tomcat 4.1 with jsp 1.2. Now i'm working on tomcat 5.5 as mention. I'm not sure what i need to change!!! my index.jsp

Re: Tomcat 5.5.23 throw ServletException

2007-11-04 Thread itay sahar
any ideal anyone? On 11/4/07, itay sahar <[EMAIL PROTECTED]> wrote: > > well, in apache both jsp-api.jar, servlet-api.jar were removed before > running. > they exist only in eclipse!! > > > > > > > > On 11/4/07, Caldarale, Charles R <[EMAIL PROTECTE

Re: Tomcat 5.5.23 throw ServletException

2007-11-04 Thread itay sahar
well, in apache both jsp-api.jar, servlet-api.jar were removed before running. they exist only in eclipse!! On 11/4/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > > From: itay sahar [mailto:[EMAIL PROTECTED] > > Subject: Re: Tomcat 5.5.23 throw Servle

Re: Tomcat 5.5.23 throw ServletException

2007-11-04 Thread itay sahar
eclipse. build with no errors. the problem is only on runtime as mention. thanks On 11/4/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > From: itay sahar [mailto:[EMAIL PROTECTED] > > Subject: Tomcat 5.5.23 throw ServletException > > > > i

Tomcat 5.5.23 throw ServletException

2007-11-03 Thread itay sahar
hi, i think i have wrong jar files. org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.(Ljava/lang/String;ZLjava/lang/String;ZZ)V org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServ

Re: migration from tomcat 4.1 to 5.5

2007-10-30 Thread itay sahar
running Tomcat by itself downloaded from tomcat.apache.org On 10/30/07, itay sahar <[EMAIL PROTECTED]> wrote: > > i'm using the servlet-api.jar that come with tomcat 5.5 installation ( > download from tomcat website). > it's should be 2.4. (according the spec). >

Re: migration from tomcat 4.1 to 5.5

2007-10-30 Thread itay sahar
change somthing in the code: this is the code display with the error mention above: org.apache.jasper.JasperException: Exception in JSP: /index.jsp:5 2: 3: 4: 5: 6: 7: On 10/30/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > > From: itay sahar [mailto

Re: migration from tomcat 4.1 to 5.5

2007-10-30 Thread itay sahar
gt; wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Itay, > > itay sahar wrote: > > The type javax.servlet.jsp.tagext.TagSupport cannot be resolved. It is > > indirectly referenced from required .class files > > *The application is up and ru

Re: migration from tomcat 4.1 to 5.5

2007-10-30 Thread itay sahar
(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) On 10/30/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Itay, > > itay sahar wrote: > > i have an application running on tomcat 4.1. > > i

migration from tomcat 4.1 to 5.5

2007-10-30 Thread itay sahar
hi, i have an application running on tomcat 4.1. i want to make a huge addings to this application but first i want to work on tomcat 5.5 version. is there a way i can do it ? (i know it's not easy). my project lib include the following jar files: (works fine on tomcat 4.1) aopalliance.