Re: Help required for SMAP....

2010-03-24 Thread TWönlìnè
Thanks for the reply, I guessed that also, but i think there are some problems in this approach. If you look at JSP line from 3 to 13 you'll find this, 3. %> 4. <%@ page import="java.util.*" %> 5. <%@ page import="java.text.*" %> 6. http://www.w3.org/TR/html4/loose.dtd";> 7. 8. 9. 10. Insert t

RE: Help required for SMAP....

2010-03-24 Thread Caldarale, Charles R
> From: TWönlìnè [mailto:twonlinevi...@gmail.com] > Subject: Re: Help required for SMAP > > Not URL mapping, i need to understand SMAP mapping Sorry, I misunderstood the problem. > 3,11:55,0 > 14,3:57 > 16,3:60,0 > 18:61 > 19,2:62,0 I believe the above notation is starting line followed by

Re: Project : SPDY connector for Tomcat

2010-03-24 Thread Rajeev Sampath
Hi Nouhoun, I too was interested in this idea and Jean-Frederic provided a brief explanation and also some useful resources. Perhaps you will also find them useful to get started. I'm including a link [1] to the discussion below. [1] http://marc.info/?l=tomcat-dev&m=126924586709978&w=2 Regards

Re: Help required for SMAP....

2010-03-24 Thread TWönlìnè
Not URL mapping, i need to understand SMAP mapping, here's a SMAP file i created, (when compiling JSP to JAVA sources) SMAP time_jsp.java JSP *S JSP *F + 0 time.jsp mytest/time.jsp *L 3,11:55,0 14,3:57 16,3:60,0 18:61 19,2:62,0 *E this is JSP line to JAVA line mapping ??? but i found that the

RE: Help required for SMAP....

2010-03-24 Thread Caldarale, Charles R
> From: TWönlìnè [mailto:twonlinevi...@gmail.com] > Subject: Help required for SMAP > > Can someone help me to understand SMAP feature (how the mapping is > indicated in files) in TOMCAT? Try reading the servlet spec. All of it should be required reading for anyone using servlets or JSPs, b

Help required for SMAP....

2010-03-24 Thread TWönlìnè
Can someone help me to understand SMAP feature (how the mapping is indicated in files) in TOMCAT? (a reference link or a book would be great) -- _A_N_I_M_E_-_O_T_A_K_U_

RE: Connecting to a Database

2010-03-24 Thread Leo Donahue - PLANDEVX
** SOLVED ** 1. It would have helped had I added the localDataSource="true" to the Realm, since I was using the realm in META-INF/context.xml 2. It would have helped if I had paid attention to the actual table name I was using for the userRoleTable. The table should have been SECURITYSTORE_US

Re: Portable

2010-03-24 Thread Asangansi
Hi all, Thanks alot for your contributions. What other file should i reconfigure to permanently connect the tomcat to a particular mysql server? Say, mysql server running on port 3308? And can i make it automatically start the mysql database? Thank you in anticipation for your collaboration. CTO

Project : SPDY connector for Tomcat

2010-03-24 Thread Nouhoun KANE
I would like to work on this project. I propose a JAVA API that we can use to let Tomcat support SPDY. I'm waiting for your critics about this proposal. Thank you very much. Nouhoun

Project: Develop a tool that can provision a Tuscany SCA enabled web application based on the extension requirements of the composite (implementation/binding/databinding/policy types) for Google App

2010-03-24 Thread Nouhoun KANE
i want you to give me more details about this idea bacause i want to do something with Tuscany SCA in Java and i think this an opportunity for me to do it. So i want more details about this idea and i will submit you my project and we will discuss about it before the subcription for the GSoC begi

Re: can't seem to migrate this app over to a new server

2010-03-24 Thread joon yoo
Peter, Thank you so much for your help, that tip about CONFIDENTIAL was just HUGE in helping me get this working. Also, thanks to Sam for linking to the documentation. All the best, John On Wed, Mar 24, 2010 at 3:24 AM, Peter Crowther wrote: > The SSL configuration for a Tomcat 5.5 server

Re: httpd vs. Tomcat performance

2010-03-24 Thread Rémy Maucherat
On Thu, Mar 25, 2010 at 1:50 AM, Mark Thomas wrote: > Chris deserves a lot of the credit. Without his figures, it is just opinion. That's the second benchmark that I see today that has odd numbers. Rémy - To unsubscribe, e-mail

Re: httpd vs. Tomcat performance

2010-03-24 Thread Mark Thomas
On 25/03/2010 00:26, Hassan Schroeder wrote: > Just to get this into the archives for the next time it comes up > > > > because I don't know if the author (a certain "mth

httpd vs. Tomcat performance

2010-03-24 Thread Hassan Schroeder
Just to get this into the archives for the next time it comes up because I don't know if the author (a certain "mthomas") will mention it here. :-) (via @springsource

RE: need help

2010-03-24 Thread Martin Gainty
i would look at tuning permgen (specifically for handling anonymous classes) and perhaps using DBCP for connection pooling..resource handles ARE expensive (and anything else pete suggests) Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note

RE: Connecting to a Database

2010-03-24 Thread Martin Gainty
Good Evening Leo- i would suggest using the Digest class (over command line calculation of Password) http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#Digested%20Passwords HTH Martin Gainty __ Relayers are requested to not disrupt or alt

Re: need help

2010-03-24 Thread Peter Crowther
It depends entirely on your application. 500 users each asking for one static HTML page every 10 minutes? Sure, no problem. 500 concurrent users requesting 1 page every 10 seconds that takes 8 seconds to generate? Ah, now you're going to have to do some tuning. Have you profiled your applicati

RE: Connecting to a Database

2010-03-24 Thread Leo Donahue - PLANDEVX
Chris, In my realm, you're saying that the digest attribute is how the password is stored in the database? Not how it is entered/translated when the user logs in. I'm using this to generate a MD5 hash of the password = password: java -classpath C:\apache-tomcat-6.0.24\lib\catalina.jar;C:\apac

Re: [OT] import public certificate

2010-03-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 3/24/2010 2:02 PM, Toman, Chuck [Stock] wrote: > I'm getting this error when trying to merge CERT into keystore > > c:\Program Files\Java\jre6\bin>keytool -import -alias tomcat -keystore > c:\sbskeytools\keys\sbs.keystore -trustcacerts -fil

Re: Connecting to a Database

2010-03-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leo, On 3/24/2010 1:28 PM, Leo Donahue - PLANDEVX wrote: > I know you can specify digest for a Realm, but I don't see where I > can do that for a Resource. Note that the digest is for hashing passwords during /user/ authentication, not connecting to

Configuring a database connection pool by source

2010-03-24 Thread David Calavera
Hi, I'm working in an application that uses an embedded tomcat and I'd like to add a feature to add a connection pool by source but when I run the server I'm getting this error: javax.naming.NoInitialContextException: Need to specify class name in > environment or system property, or as an apple

Re: Session replication: Channel.SEND_OPTIONS_SECURE

2010-03-24 Thread Filip Hanik - Dev Lists
On 03/23/2010 09:46 AM, Tom wrote: On Tue, Mar 23, 2010 at 1:58 PM, Caldarale, Charles R wrote: From: Tom [mailto:808...@gmail.com] Subject: Session replication: Channel.SEND_OPTIONS_SECURE There is little documentation about Channel.SEND_OPTIONS_SECURE From a brief glance at th

import public certificate

2010-03-24 Thread Toman, Chuck [Stock]
I'm getting this error when trying to merge CERT into keystore c:\Program Files\Java\jre6\bin>keytool -import -alias tomcat -keystore c:\sbskey tools\keys\sbs.keystore -trustcacerts -file "c:\sbskeytools\keys\ebiz-sslcert.ce r" keytool error: java.security.cert.CertificateException: sun.s

need help

2010-03-24 Thread Muralidhar Yaragalla
Hi, I have to run tomcat against 500 concurrent users. I am using tomcat6, Java1.6 and tomcat running on windows2003 OS. Do I have to do any additional configuration for this in tomcat or no configuration required? Kindly help me. Do I have to specify any maximum threads allowed or kind of things?

RE: Connecting to a Database

2010-03-24 Thread Leo Donahue - PLANDEVX
Thanks everyone. I understand this better. I know you can specify digest for a Realm, but I don't see where I can do that for a Resource. Do I need to leave the password of "javadude" in the Resource in clear text, or can it be a digested version of "javadude" in clear text in the Resource el

Re: "/META-INF/context.xml" is being copied to "$CATALINA_HOME/conf/my_engine/my_app/ROOT.xml"

2010-03-24 Thread Dave Cherkassky
See below: Is this a new bug? Why is it a bug? Sorry, I was not implying anything :) I was just wondering why the behaviour changed. Did the Tomcat behaviour change in an undocumented fashion? See notes for 6.0.19. http://tomcat.apache.org/tomcat-6.0-doc/changelog.html Ah, this is a sid

RE: Connecting to a Database

2010-03-24 Thread Caldarale, Charles R
> From: Pid [mailto:p...@pidster.com] > Subject: Re: Connecting to a Database > > If you define the datasource as a global resource, you can define the > Realm in server.xml (before or inside the Host), but then you need a > resource link in the context.xml to make the global resource available >

Re: Connecting to a Database

2010-03-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leo, On 3/24/2010 11:43 AM, Leo Donahue - PLANDEVX wrote: > No, not sure. That is what I was confused about. > JDBC Realm, vs JNDI DataSourceRealm, vs JDBC DataSource A Realm is something Tomcat uses for authentication. A DataSource is an object whi

Re: "/META-INF/context.xml" is being copied to "$CATALINA_HOME/conf/my_engine/my_app/ROOT.xml"

2010-03-24 Thread Pid
On 24/03/2010 15:44, Dave Cherkassky wrote: Dear Tomcat community: Here's my setup: - I am running Apache Tomcat/6.0.24. - I am deploying the my applications 'exploded' -- i.e. NOT as a war file. - each application is defined by a /META-INF/context.xml in the respective appBase directory. - I ha

Re: Connecting to a Database

2010-03-24 Thread Pid
On 24/03/2010 15:43, Leo Donahue - PLANDEVX wrote: No, not sure. That is what I was confused about. JDBC Realm, vs JNDI DataSourceRealm, vs JDBC DataSource I think what was throwing me off was seeing examples of the tomcat-users in both the realm-howto and in the jndi-resources-howto I'm atte

"/META-INF/context.xml" is being copied to "$CATALINA_HOME/conf/my_engine/my_app/ROOT.xml"

2010-03-24 Thread Dave Cherkassky
Dear Tomcat community: Here's my setup: - I am running Apache Tomcat/6.0.24. - I am deploying the my applications 'exploded' -- i.e. NOT as a war file. - each application is defined by a /META-INF/context.xml in the respective appBase directory. - I have several virtual hosts:

RE: Connecting to a Database

2010-03-24 Thread Leo Donahue - PLANDEVX
No, not sure. That is what I was confused about. JDBC Realm, vs JNDI DataSourceRealm, vs JDBC DataSource I think what was throwing me off was seeing examples of the tomcat-users in both the realm-howto and in the jndi-resources-howto I'm attempting container managed security using SQL Server.

RE: DB connection error -Tomcat 6 config

2010-03-24 Thread Propes, Barry L
No, I didn't undeploy it at all - I simply stopped, and started it. Then I reloaded it. And/or, if I simply only reloaded it, I got the same error message. I'm not using a MySQL connector at all, as I noticed Pid had mentioned - only Oracle 10g. -Original Message- From: Caldarale, Cha

RE: DB connection error -Tomcat 6 config

2010-03-24 Thread Caldarale, Charles R
> From: Propes, Barry L [mailto:barry.l.pro...@citi.com] > Subject: RE: DB connection error -Tomcat 6 config > > Although when I ran "find memory leaks" or whatever that little button > reads, it did mention my app had some classes that were still being > used, which seemed odd, but I assume accur

RE: DB connection error -Tomcat 6 config

2010-03-24 Thread Propes, Barry L
Admittedly, this is my first dance with the Tomcat manager app, deploying anything. I was, I suppose archaically, arguably, just using the startup and shutdown commands at the cmd prompt level. Although when I ran "find memory leaks" or whatever that little button reads, it did mention my app h

RE: DB connection error -Tomcat 6 config

2010-03-24 Thread Propes, Barry L
Thanks, Mark -- I'll shake down that thread here in a bit. -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Tuesday, March 23, 2010 5:54 PM To: Tomcat Users List Subject: Re: DB connection error -Tomcat 6 config On 23/03/2010 22:39, Propes, Barry L wrote: > I got thi

JSP with a form and importing another form

2010-03-24 Thread Odyssée TREMOULIS
Hi all ! If I post a form in the jsp then it execute the doPost of the right servlet. If the servlet detects an error in the form, I send back to the jsp. All is OK. But... If the jsp has an ( /form2 is a servlet redirecting to another jsp, and c:import is the 'core' taglib), Tomcat do the i

Re: GC behavior elucidation

2010-03-24 Thread Ken Bowen
ChuckthanksKen On Mar 24, 2010, at 9:51 AM, Caldarale, Charles R wrote: From: Ken Bowen [mailto:kbo...@als.com] Subject: GC behavior elucidation My gclog shows routine GCs approx every 3-4 mins that look like this: 2010-03-17T01:28:05.888-0400: 543717.992: [GC 543717.992: [DefNew: 622

Re: OT: Howto exclude files/folders i .war

2010-03-24 Thread Pid
On 24/03/2010 13:08, Søren Blidorf wrote: Can anybody tell me how to exclude files/folders in my .war. I am using Jbuilder 2006. Soren, DK Probably a question for the JBuilder community rather than the Tomcat community, no? p -

Re: apache-tomcat-6.0.26 (log4j:WARN No appenders)

2010-03-24 Thread Pid
On 24/03/2010 12:44, Manoj Kumar wrote: Hi, I executed a sample on apache-tomcat-6.0.26 as follows : [man...@localhost axis-1_4]$ java -cp $AXISCLASSPATH samples.stock.GetQuote -lhttp://localhost:8080/axis/servlet/AxisServlet -uuser1 -wpass1 XXX log4j:WARN No appenders could be found fo

RE: GC behavior elucidation

2010-03-24 Thread Caldarale, Charles R
> From: Ken Bowen [mailto:kbo...@als.com] > Subject: GC behavior elucidation > > My gclog shows routine GCs approx every 3-4 mins that look like this: > 2010-03-17T01:28:05.888-0400: 543717.992: > [GC 543717.992: > [DefNew: 6222K->487K(6528K), 0.0030010 secs] > 44060K->38706K(64832K), 0.003092

GC behavior elucidation

2010-03-24 Thread Ken Bowen
Hi all, I've been working on the memory behavior of a small Tomcat 6.0.20/Java 1.6 app running in constrained space (288MB total on a VPS running CentOS 5). Earlier advice from the list enabled me to track down the most glaring culprit memory leaks. The app is currently lightly used, bu

OT: Howto exclude files/folders i .war

2010-03-24 Thread Søren Blidorf
Can anybody tell me how to exclude files/folders in my .war. I am using Jbuilder 2006. Soren, DK

RE: The requested resource ... is not available

2010-03-24 Thread Caldarale, Charles R
> From: mehar300 [mailto:mehar...@yahoo.com] > Subject: The requested resource ... is not available > > i installed apache-tomcat-6.0.20 and set path variable accordingly What do you mean by "path variable"? If you're referring to the system PATH environment variable, it need not be set to any

RE: The requested resource ... is not available

2010-03-24 Thread Caldarale, Charles R
> From: Mercy [mailto:techme...@gmail.com] > Subject: Re: The requested resource ... is not available > > or check the path is right or not in $CATALINA_HOME/conf/context.xml. The above file must never, never have a path attribute in it. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND

RE: path in context.xml

2010-03-24 Thread Caldarale, Charles R
> From: Søren Blidorf [mailto:so...@nolas.dk] > Subject: path in context.xml > > I am trying to configure context in a META-INF context.xml which > is new to me. > > I have set my path to "myPath" The path attribute is illegal when the element is in META-INF/context.xml. You must rename your

apache-tomcat-6.0.26 (log4j:WARN No appenders)

2010-03-24 Thread Manoj Kumar
Hi, I executed a sample on apache-tomcat-6.0.26 as follows : [man...@localhost axis-1_4]$ java -cp $AXISCLASSPATH samples.stock.GetQuote -lhttp://localhost:8080/axis/servlet/AxisServlet -uuser1 -wpass1 XXX log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectReso

Re: Compiling JSP with SMAP

2010-03-24 Thread TWönlìnè
@Mercy, Thanks I managed to create SMAP files, using this code in my BUILD.XML - which compiles JSPs Now it is creating .SMAP files. Now a new problem arise, How to read a .SMAP file, I know its map from JSP to JAVA but how the numbers are associated,

Re: Compiling JSP with SMAP

2010-03-24 Thread Mercy
Hi TWönlìnè, Did you a project named "Server" with a sub folder whose name is like "Tomcat v6.0 Server at localhost-config"? If you had, please set these values into web.xml in. Kind regards, Mercy TWönlìnè wrote: I'm using apache-tomcat-6.0.20 with JASPER 2 I need to compile a

Re: The requested resource ... is not available

2010-03-24 Thread Mercy
You could access http://localhost:8080/myapp/myfile.html, or check the path is right or not in $CATALINA_HOME/conf/context.xml. Mercy mehar300 wrote: hi i installed apache-tomcat-6.0.20 and set path variable accordingly then i access http://localhost:8080/ and it shows default apache tomcat

The requested resource ... is not available

2010-03-24 Thread mehar300
hi i installed apache-tomcat-6.0.20 and set path variable accordingly then i access http://localhost:8080/ and it shows default apache tomcat page. but as if try to access http://localhost:8080/myfile.html then it display error type Status report message /myfile.html description The requ

path in context.xml

2010-03-24 Thread Søren Blidorf
I am trying to configure context in a META-INF context.xml which is new to me. I have set my path to "myPath" and when I am deploying my "myWar.war" I thought that my app would be called myPath but instead, as usual, it is called myWar. What am I doing wrong??? What is path for??? Soren, DK --

Compiling JSP with SMAP

2010-03-24 Thread TWönlìnè
I'm using apache-tomcat-6.0.20 with JASPER 2 I need to compile a web project (Eclipse WAR application) which is JSP to JAVA source files. I'm successfully generating JAVA files from JSP files (Used JASPER 2), but now i need to get mapping from JSP lines to JAVA lines. I tried using SMAP featu

Re: can't seem to migrate this app over to a new server

2010-03-24 Thread Goo Sam Kong
Hi John, You need to enable HTTPS connector, refer to SSL Support section in http://tomcat.apache.org/tomcat-5.5-doc/config/http.html to enable SSL in server.xml. On 24 March 2010 14:22, joon yoo wrote: > We're in the process of extricating ourselves from a host who developed and > managed our a

Re: can't seem to migrate this app over to a new server

2010-03-24 Thread Peter Crowther
The SSL configuration for a Tomcat 5.5 server is described at http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html. To quote from the top of that file, this assumes you're not using APR (Apache Portable Runtime). APR is not the default configuration as I recall - if you don't know that you are