Re: genStrAsCharArray not available in JspC and performance increase?

2005-05-28 Thread Remy Maucherat
On 5/29/05, Kevin Burton <[EMAIL PROTECTED]> wrote: > So on: > > http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html#Production%20Configuration > > It recommends to use genStrAsCharArray when in production. > > This can be set in web.xml but not when using JspC from the command lin

java.lang.NoClassDefFoundError:javax/servlet/http/HttpServlet

2005-05-28 Thread John Tobias
Hi All, I just installed the tomcat 5.5.9 and then I add my program to upload a file in my server. I set everything ok from html to my servlet code and I didn't add any jar or third party file in the library. But, when I execute my program, sometimes the tomcat find the HttpServlet and my progr

Jasper generating garbage? new String() in generated code?

2005-05-28 Thread Kevin Burton
This is another smaller issue. yields: _jspx_th_c_set_0.setValue(new String("bar")); If this is a constant string why does it need to continually call new String("bar") here? This is just going to waste CPU and cause more garbage to be generated which the GC will eventually have to

Re: The amazingly slow performance of JSP (profiler results)

2005-05-28 Thread Peter Lin
On 5/28/05, Kevin Burton <[EMAIL PROTECTED]> wrote: > Remy Maucherat wrote: > > >It will obviously use more CPU and make more API calls. However, it > >does not allocate any objects, but instead will reuse per page objects > >(which is very fast). So overall, it sounds weird to me that the > >bott

genStrAsCharArray not available in JspC and performance increase?

2005-05-28 Thread Kevin Burton
So on: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html#Production%20Configuration It recommends to use genStrAsCharArray when in production. This can be set in web.xml but not when using JspC from the command line. trimSpaces is there... but not genStrAsCharArray. Its in the

Re: The amazingly slow performance of JSP (profiler results)

2005-05-28 Thread Kevin Burton
Remy Maucherat wrote: For production configuration for Jasper, see: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html#Production%20Configuration Do you know offhand if genStrAsCharArray has to be passed to jspc? I didn't notice this as one of the command line options in 5.5

TC and RMI ClassLoader issue

2005-05-28 Thread Nikola Milutinovic
Hi all. I'm having problems with ClassLoader. I have a RMI client that calls a RMI server. What I keep getting as an error is a ClassCastException. This is the code: Object obj = Naming.lookup(url); search = (SearchRMI) obj; And the exception is: java.lang.ClassCastException at co

Re: The amazingly slow performance of JSP (profiler results)

2005-05-28 Thread Kevin Burton
Remy Maucherat wrote: It will obviously use more CPU and make more API calls. However, it does not allocate any objects, but instead will reuse per page objects (which is very fast). So overall, it sounds weird to me that the bottleneck would be on tag invocation. In the end, it's hard to beat

Re: The amazingly slow performance of JSP (profiler results)

2005-05-28 Thread Kevin Burton
Peter Lin wrote: Back in 2002, I wrote several pages using JSP + java and JSP + JSTL to measure the actual cost of from a performance perspective. The performance difference isn't noticeable if a page has less than 50 tags. With 200+ tags, the performance difference does range from 2-5x slower f

Re: The amazingly slow performance of JSP (profiler results)

2005-05-28 Thread Kevin Burton
Remy Maucherat wrote: For production configuration for Jasper, see: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html#Production%20Configuration Cool... we have those set but I didn't see *genStrAsCharArray * **The interesting thing is that jprofiler clearly shows a big pe

Re: The amazingly slow performance of JSP (profiler results)

2005-05-28 Thread Kevin Burton
Peng Tuck Kwok wrote: Just to check are your precompiling the jsp page? Yes... we're precompiling them before we deploy. I'd recommend most people do that if they have the time. Kevin -- Use Rojo (RSS/Atom aggregator)! - visit http://rojo.com. See irc.freenode.net #rojo if you want t

Re: The amazingly slow performance of JSP (profiler results)

2005-05-28 Thread Kevin Burton
Dakota Jack wrote: You have to be and are comparing apples and oranges, Kevin, Perhaps... but my point was that JSP 2.0 doesn't HAVE to be this slow! :) because JSP *is* Java. DOH! It cannot run slower than what it is. No.. it could run slower... I'm sure the Tomcat developers will find

eToken & servlets

2005-05-28 Thread Carol Chamblas
hi i have a remote server (linux) that contains servlets wich i want to use to interact with an USB Aladdin eToken that the user connect in his local machine (windows) to sing XML documents. in the server i put (jdk1.5.0_03/jre/lib/security/java.security file): security.provider.7=sun.security

Re: Bug?: JspCompilationContext.createCompiler(JspCompilationContext.java:220)

2005-05-28 Thread Mark M. Egan
I answered my own question. I was not including an important .jar file in the CLASSPATH. At 08:49 PM 5/27/2005, you wrote: I am trying to embed tomcat in an application. I am using Sun Java 1.5 and Tomcat 5.5.9. During the tomcat startup, I receive the following error: SEVERE: Servlet.serv

Re: Apache Integration

2005-05-28 Thread Arnar Gestsson
Hi, which connector are you using? I guess you're using apache to handle port 80 and you want it to relay jsp and servlets over to the tomcat, but serve other content than jsp/servlets by the apache? You should use mod_jk, newest version probably 1.2.13. My experience is that you shouldn't ha

NTLM authentication using jCIFS over JK1.2.10 & IIS fails

2005-05-28 Thread charly
I am currently using TC 5.0.28 & http1.1-connector and JCIFS for authentication in a webapp. Authentication is done completely within the webapp without using TC methods and only when necessary. This is working quite well except for few users, who are accessing over squid proxy, which suppresses

Re: The amazingly slow performance of JSP (profiler results)

2005-05-28 Thread Dakota Jack
I agree with this. There really is *not* a lot of code in what Kevin showed us, because the page code has to be there whether you have one or 500 invocations, tags, on the page. This just makes it look large because all the setup is attributed to one measely little tag. On 5/28/05, Remy Mauchera

Re: The amazingly slow performance of JSP (profiler results)

2005-05-28 Thread Peter Lin
correction to my previous email. On 5/28/05, Remy Maucherat <[EMAIL PROTECTED]> wrote: > On 5/28/05, Peter Lin <[EMAIL PROTECTED]> wrote: > > as you see already, using JSTL means a single line of code gets > > converted to several lines of JSTL api calls. once you look at how > > many classes are

Re: The amazingly slow performance of JSP (profiler results)

2005-05-28 Thread Remy Maucherat
On 5/28/05, Peter Lin <[EMAIL PROTECTED]> wrote: > as you see already, using JSTL means a single line of code gets > converted to several lines of JSTL api calls. once you look at how > many classes are involved in executing JSTL, it's pretty clear it's > using much more memory and causing more GC.

Re: The amazingly slow performance of JSP (profiler results)

2005-05-28 Thread Peter Lin
I would advise using the tag plugins to change tags to pure java. JSP tags are considerably slower than pure JSP + java, but many people find that combination bad on maintenance. When remy and I worked on the book back in 2002, I did quite a bit of comparison between pure java and JSTL. as you see

[Addendum] Re: Tomcat and RMI client - setup (ClasCastException)

2005-05-28 Thread Nikola Milutinovic
Bill Barker wrote: "Nikola Milutinovic" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] - setup catalina.policy - run it with "-security" option I'm on Windows XP, how do I enable security mode for TC? That's the idea. And, as a bonus, it works the same on Linux, Solari

Beginner Load Balancing w/ apache

2005-05-28 Thread Brian McGovern
Hi , Im hoping someone can give me some pretty detailed instructions on how to load balance 2 tomcat servers with 1 apache web server in front. I wanted to use mod_jk. First question, is , is this the best way to load balance? Second question. Where do i start. Im having trouble finding clea

Re: The amazingly slow performance of JSP (profiler results)

2005-05-28 Thread Remy Maucherat
On 5/28/05, Kevin Burton <[EMAIL PROTECTED]> wrote: > I've been tuning our application trying to get the maximum performance > out if the system as possible. > > I've been throwing the system at jprofiler and allowing it to tell me > where to optimized. > > In short Tomcat is slower than our DB,

Re: Auto-Deployment Problems (Real Version)

2005-05-28 Thread Parsons Technical Services
Just a few suggestions. Check the logs. Turn up debugging if nothing shows. It sounds like something has a "lock" on a file and Tomcat can't remove it. If this is the case your next move is to look at your app. Are you creating any threads or objects that are not getting cleaned up by the dest

Re: The amazingly slow performance of JSP (profiler results)

2005-05-28 Thread Dakota Jack
Whether he is precompiling or not, Peng, and I know that is important, he is still comparing applies and oranges. Further, he is comparing the setup for any and all uses of with pojo code that he does not give the same infrastructure accounting, apparently. The whole question fails to see the pa

Re: Cross-site scripting vulnerability

2005-05-28 Thread Mark Thomas
XSS issues have been reported in: - the servlet 2.3 examples (including snoop.jsp) - the manager servlet - the servlet 2.4 examples (affects TC5 only) All of these have been fixed in CVS. Fixes for these are included in Tomcat 5.5.7 onwards. Tomcat 4.1.31 still has the following XSS issues

Re: cant post to wiki and security

2005-05-28 Thread Mark Thomas
. . wrote: 1 of 3 I wanted to include an install doc for tomcat 5.5.9 on solaris 9 with jdk1.5.0 Post it to the wiki 2 of 3 I also have a question: How do you create a login for webdav servlet so that no one besides your access list can log into the webdav folder and read it You secure it

Re: The amazingly slow performance of JSP (profiler results)

2005-05-28 Thread Peng Tuck Kwok
Just to check are your precompiling the jsp page? On 5/28/05, Kevin Burton <[EMAIL PROTECTED]> wrote: > I've been tuning our application trying to get the maximum performance > out if the system as possible. > > I've been throwing the system at jprofiler and allowing it to tell me > where to opt