Re: Tomcat shutdown event

2008-09-13 Thread Johnny Kewl
- Original Message - From: Tom Cat [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, September 13, 2008 1:13 AM Subject: Tomcat shutdown event Hello, I have a servelet spawn a thread that should run until tomcat is shutdown. The problem is, when Tomcat

application to windows - linux

2008-09-13 Thread khaled
Hi , j' have developped a Web JSP application, with tomcat in Windows the application works well, then when i have to test in linux it post error that tomcate does not find my classes in /WEB-INF/classes/projet at : jsp:useBean id=id scope=page class=projet.Testuser/ how I can solve this

Re: application to windows - linux

2008-09-13 Thread Johnny Kewl
- Original Message - From: khaled [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Saturday, September 13, 2008 9:04 AM Subject: application to windows - linux Hi , j' have developped a Web JSP application, with tomcat in Windows the application works well, then when i have to

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-13 Thread André Warnier
Johnny Kewl wrote: If you do decide to look at this link... http://java.sun.com/javase/technologies/core/basic/intl/faq.jsp#core-locale The above link seems to be extremely informative, right on the spot for this thread. Thanks. Among other things, it points out that changing the default

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-13 Thread André Warnier
Caldarale, Charles R wrote: From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem so, Java is still 16-bit Unicode in its char primitive, but you can use ints to hold UTF-16 values using 21-bits? The 21-bit values are

RE: application to windows - linux

2008-09-13 Thread Martin Gainty
did you verify your classes are located in WEB-INF/classes folderBR e.g.BR WEB-INF/classes/projet/Testuser.classBR ?BR MartinBR __ BR Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business

Re: Disable java code execution %blabla% in jsp, but permits tags

2008-09-13 Thread H. Hall
kazukin6 wrote: Plz Help !! Is it possible to disable all java code execution within jsp page (by security manager or something) but allow custom tags to be executed? The problem is that the users can change jsp files, and due to security reasons we can allow them to use only tags Why are

Re: application to windows - linux

2008-09-13 Thread khaled
yes my classes are located in WEB-INF/classes folde 2008/9/13 Martin Gainty [EMAIL PROTECTED] did you verify your classes are located in WEB-INF/classes folderBR e.g.BR WEB-INF/classes/projet/Testuser.classBR ?BR MartinBR __ BR Disclaimer

Re: Disable java code execution %blabla% in jsp, but permits tags

2008-09-13 Thread kazukin6
We want them to be able to customize information they get from our system by using custom tags H. Hall wrote: kazukin6 wrote: Plz Help !! Is it possible to disable all java code execution within jsp page (by security manager or something) but allow custom tags to be executed? The

Re: application to windows - linux

2008-09-13 Thread Johnny Kewl
khaled, Listen... you got to try help us here... How are you deploying it... unpacked, from a war, thru manager Are you dropping the same war into webapps on both systems? And post the actual error logs... Theres a big diff between noclassdef and noclassfound for example... What are you

JNDI configuration in webapp/META-INF/context.xml

2008-09-13 Thread walterw
Hi all, I have tried setting up JNDI for my web application inside the applicaton's WAR file itself to no avail. If I use the same configuration, but put it in my server's context.xml, it works fine. Here is the configuration I am using: [code] ?xml version=1.0 encoding=US-ASCII? !--

Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-13 Thread Johnny Kewl
- Original Message - From: André Warnier [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, September 13, 2008 2:01 PM Subject: Re: Migrating to tomcat 6 gives formatted currency amounts problem Johnny Kewl wrote: If you do decide to look at this

RE: Disable java code execution %blabla% in jsp, but permits tags

2008-09-13 Thread Martin Gainty
use ths struts if tag to conditionally disable the code %@ taglib prefix=s uri=/struts-tags% s:if test=%{false} divWill Not Be Executed/div /s:if http://struts.apache.org/2.0.11.2/docs/if.html datorită struts Martin __ Disclaimer and

RE: JNDI configuration in webapp/META-INF/context.xml

2008-09-13 Thread Martin Gainty
Walter:BR check your META-INF/context.xml attribute useNaming=trueBR http://tomcat.apache.org/tomcat-5.5-doc/config/context.htmlBR HTHBR Martin BR __ BR Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the

Question is answered. See Bill Barker-2 answer

2008-09-13 Thread kazukin6
Hi, Martin Thanks for the answer I see, what you mean, but the problem is slightly different The matter is that our users can change jsp files whatever they like via administrative interface, so we want to restrict the use of scriplets in these jsp's because of possible abuses Bill Barker-2

RE: Question is answered. See Bill Barker-2 answer

2008-09-13 Thread Martin Gainty
that was a 30 second solution amongst 100 different solutionsBR so maybe you want to categorise the jsps and then enable / disable view/update/delete of the resourcesBR in those categories depending on the authenticated credentials of the userBR for this scenario you might want to look at

RE: JNDI configuration in webapp/META-INF/context.xml

2008-09-13 Thread walterw
Hi, Thanks for your reply, but I am still getting the same error. [code] Caused by: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1150)

RE: Question is answered. See Bill Barker-2 answer

2008-09-13 Thread kazukin6
Martin, thanks for a guide! I took a look at the Jetspeed (and portlet specifications too) and it seems pretty intresting. I'll definetely study it. The only thing that scares me that spec-s (http://www.jcp.org/aboutJava/communityprocess/review/jsr168/) wasnt updated since 2003 And yes, you

RE: Question is answered. See Bill Barker-2 answer (update)

2008-09-13 Thread kazukin6
And yes, for us it' not possible to give users to change only parts of jsp's and deny execution of these parts based on some credential assessments executed during some if checkAccess tags kazukin6 wrote: Martin, thanks for a guide! I took a look at the Jetspeed (and portlet specifications

number of worker threads in Tomcat 6

2008-09-13 Thread Madhav
Hi, I want to know the values of maxThreads, minSpareThreads parameters as well as the number of 'available' worker threads inside a servlet in Tomcat 6. I tried googling with -- find worker threads in Tomcat-- and similar phrases but was not able to get the above info. Could anyone help me ?