Changing webserver from Tomcat 5.0 to 6.0.18

2009-05-07 Thread Ties
Hi, A website is running on server A (Tomcat 5.0) and it has to move to server B (Tomcat 6.0.18). I have configured everything which should be configured. But somehow the server is not able to locate the webapp. The apaches httpd.conf (on Server A) shows the following: JkMount

Re: Form-based Container Security with SSL

2009-05-07 Thread Guojun Zhu
Dear Chris, Thank you very much. I can get the link redirect. But the tomcat's container security seems to happen before it. Here is the stuff in the web.xml. When I type http://localhost:8080/InformProject/pages/login.jsp, it will redirect to https://localhost:8443/. The browser will ale

Re: Performance with many small requests

2009-05-07 Thread Xie Xiaodong
Hello, IMHO, it would be better to use java concurrency package now than to use the old synchronize mechanism. The old mechanism is to low level and error prone. I think you could have a thread pool and some handler pattern to handle the request from your customer. 2009/5/8 Andre-John Mas >

Re: Performance with many small requests

2009-05-07 Thread Andre-John Mas
On 7-May-2009, at 19:05, David Kerber wrote: Andre-John Mas wrote: That would be my impression too. It is best to avoid making the synchronized scope so large, unless there is a very good reason. David, do you have any reason for this? Beyond the counter, what other stuff do you synchro

Re: Performance with many small requests

2009-05-07 Thread David Kerber
Andre-John Mas wrote: On 7-May-2009, at 17:28, Peter Crowther wrote: From: David kerber [mailto:dcker...@verizon.net] The tomcat application simply takes the post request, does a checksum verification of it, decrypts the lightly-encrypted data, and writes it to a log file with the timestamps a

Re: After deployment to tomcat: entity class not found

2009-05-07 Thread Xie Xiaodong
Hello, This class "MyClass", could not be found. Maybe you should include the package name in your configuration files. 2009/5/7 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 excepti

Re: How to make request parameters available to a login.jsp?

2009-05-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gregor, On 5/7/2009 7:12 AM, Gregor Schneider wrote: > Chris, maybe you'll get the hang of this Valve if I explain the > business-requirement I had: I think I understand your business requirement. It's your code I don't understand. > Now let's assum

I am getting a Context initialization failed error

2009-05-07 Thread dave massie
I am setting up tomcat and shibboleth to do SSO sign on with google apps. I am trying to use tomcat as a stand alone web server with NO apache httpd. I am following the iDp installation instructions at: https://spaces.internet2.edu/display/SHIB2/IdPApacheTomcatPrepare. I am using the google inst

Re: Performance with many small requests

2009-05-07 Thread Andre-John Mas
On 7-May-2009, at 17:28, Peter Crowther wrote: From: David kerber [mailto:dcker...@verizon.net] The tomcat application simply takes the post request, does a checksum verification of it, decrypts the lightly-encrypted data, and writes it to a log file with the timestamps and site identifiers I

RE: Performance with many small requests

2009-05-07 Thread Peter Crowther
> From: David kerber [mailto:dcker...@verizon.net] > The tomcat application simply takes the post request, > does a checksum verification of it, decrypts the > lightly-encrypted data, > and writes it to a log file with the timestamps and site identifiers I > mentioned above. Pretty simple processi

RE: SSL Mysterious Self Signed Certificate

2009-05-07 Thread Andrews, Wayne
Hi I created a new keystore, inported the root certificate from thawte, then the signed cert. The browser displays some self signed cert that has expired. Cheers W -Original Message- From: Jonathan Mast [mailto:jhmast.develo...@gmail.com] Sent: Friday, 8 May 2009 2:59 AM To: Tomcat

Performance with many small requests

2009-05-07 Thread David kerber
I'm having performance issues with my installation of TC 5.5.15, Java 1.5.0_12, on Windows 2003 server 32 bit, dual-cpu dual-core (4 cores total), 4GB physical RAM. Tomcat startup params: JvmMs = 256 JvmMx = 512 JvmSs = 0 This was the original entry in my server.xml, which has been running for t

Re: how to build an multi lingual website

2009-05-07 Thread Andre-John Mas
If Apache is handling your static content, and you are simply using Tomcat to serve dynamic content, then you can use the request.getLocale() method to find out what language the visitors browser is suggesting. For example: String lang = request.getLocale().getLanguage(); if ( "es".eq

how to build an multi lingual website

2009-05-07 Thread Andrew Davidson
Hi I do you know how I can build a multi lingual website? My main website is in English. I want to have a landing page in Spanish that describes my website and invites the user to click through the English version of the web site. Any idea how I set this up using Tomcat? The bulk of our web si

Session Replication problem

2009-05-07 Thread sudhakar p
Hi I am trying to configure Clustering/Session Replication in Tomcat 6.0.18 and am getting this message when I start the tomcat 6.0.18 server. *INFO org.apache.catalina.tribes.membership.McastService - Binding to multicast address, failed. Binding to port only* Tomact log: 2009-05-01 12:00:06,

changing location of conf/Catalina

2009-05-07 Thread Dmitry Beransky
Hi, I want to lock down the core Tomcat installation by making it read-only (and updateable only through a SCM). I've figured out how to relocate temp, work, logs, webapps directories, all of which get modified as part of Tomcat's standard operation. The last directory left inside the core that

RE: SSL Mysterious Self Signed Certificate

2009-05-07 Thread Mark_Despain
Can you clarify on "mysterious self-signed certificate displayed within the browser"? Also, into what did you import the "relevant root certs and SSL cert"? The keystore? W is right. If your certificate is was not issued (signed) by a CA that the browser trusts, then the browser will not t

Tomcat / Java JNI and Classloading issues

2009-05-07 Thread scarlson
Hello Everyone, I am attempting to integrate a Java JNI Library with Tomcat and GWT. I have had good sucess as far as initial proto-typing. I am aware of the classloaders (common, shared, and webapp), but seem to be missing something big here. I basically have problems cleanly using this Java OP

Re: SSL Mysterious Self Signed Certificate

2009-05-07 Thread Jonathan Mast
Its my understanding that all Self-signed certs generate the creepy browser messages. Not sure though. Were the imported root certs issued by a well known CA? On Wed, May 6, 2009 at 10:43 PM, Andrews, Wayne wrote: > > Hi > > I have an issue whereby on a windows installation of Tomcat; I have a

RE: tomcat6 configuration best practice?

2009-05-07 Thread Caldarale, Charles R
> From: Kevin Jackson [mailto:foamd...@gmail.com] > Subject: Re: tomcat6 configuration best practice? > > We are using httpd as we serve *many* static files too Tomcat will server static files every bit as well as httpd (especially since you're using APR). > Do we need both the context.xml file

Re: Connector Issue - Tomcat 6.0/IIS 6.0

2009-05-07 Thread samr
Accessing the same url from localhost:8080 displays the page without any problem. I have attached the IIS_Redirect log when accessing the url :http://localhost/examples/jsp/jsp2/el/basic-arithmetic.jsp The IIS Log from W3SVC for the same is: #Software: Microsoft Internet Information Services 6

Re: tomcat6 configuration best practice?

2009-05-07 Thread Kevin Jackson
> Why are you using httpd?  If everything is being forwarded to Tomcat, adding > httpd just slows things down and makes your life more complicated. We are using httpd as we serve *many* static files too and not every request is being forwarded to Tomcat - we have our reasons for using apache as a

RE: Multiple Context and Websites

2009-05-07 Thread Caldarale, Charles R
> From: Alexander Diedler [mailto:adied...@tecracer.de] > Subject: AW: Multiple Context and Websites > > AD : But we want to use different Hostnames, it cannot be placed in the > localhost? Just using different host names is a DNS issue; it does not require multiple elements in Tomcat. You onl

Re: Multiple Context and Websites

2009-05-07 Thread Hassan Schroeder
On Thu, May 7, 2009 at 5:56 AM, Alexander Diedler wrote: > Tomcat1.de and tomcat2.de point to the same Tomcat 6.0.18 server (edit > Windows hosts-File). http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html HTH, -- Hassan Schroeder hassan.schroe...@gmail.c

RE: Multiple Context and Websites

2009-05-07 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:mgai...@hotmail.com] > Subject: RE: Multiple Context and Websites > > Inetpub is the default folder for IIS > try re-installing tomcat to a new folder and point the docBase to be > based off of catalina.home (which is your new Tomcat folder) > > privileged=

AW: Multiple Context and Websites

2009-05-07 Thread Alexander Diedler
-Ursprüngliche Nachricht- Von: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Gesendet: Donnerstag, 7. Mai 2009 15:20 An: Tomcat Users List Betreff: RE: Multiple Context and Websites > From: Alexander Diedler [mailto:adied...@tecracer.de] > Subject: Multiple Context and Websit

RE: tomcat6 configuration best practice?

2009-05-07 Thread Caldarale, Charles R
> From: Kevin Jackson [mailto:foamd...@gmail.com] > Subject: tomcat6 configuration best practice? > > - apache httpd 2.0.2 Why are you using httpd? If everything is being forwarded to Tomcat, adding httpd just slows things down and makes your life more complicated. > Currently we have the foll

RE: Multiple Context and Websites

2009-05-07 Thread Martin Gainty
Inetpub is the default folder for IIS try re-installing tomcat to a new folder and point the docBase to be based off of catalina.home (which is your new Tomcat folder) Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung/

RE: Multiple Context and Websites

2009-05-07 Thread Caldarale, Charles R
> From: Alexander Diedler [mailto:adied...@tecracer.de] > Subject: Multiple Context and Websites > > In the /conf/Catalina/localhost/ there are tomcat1.xml  with this code: > > docBase="C:\Inetpub\tomcat\Webseite1" distributable="true"> Take out the path attribute; it's not allowed. > and tomc

RE: Weekly restart of Tomcat service

2009-05-07 Thread Jack, Brandy
It looks like the version of Java is 1.5.0_11 Brandy Jack I/S Dept Database Management ofc: (918) 615-7743 cel: (918) 527-4027 -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Wednesday, May 06, 2009 4:45 PM To: Tomcat Users List Subject: RE: Weekl

Multiple Context and Websites

2009-05-07 Thread Alexander Diedler
Hello, Something stupid to me, but it will not works. I want to have several webapps managed by Manager. Tomcat1.de and tomcat2.de point to the same Tomcat 6.0.18 server (edit Windows hosts-File). In the /conf/Catalina/localhost/ there are tomcat1.xml with this code: and tomcat2.xml :

Re: How to make request parameters available to a login.jsp?

2009-05-07 Thread Pid
Gregor Schneider wrote: > Pid, > > On Thu, May 7, 2009 at 2:01 PM, Pid wrote: >> Alternative: >> >> I don't have this to hand anymore since the original site was changed >> and I'm not the dev for it anymore, but we put a frame-busting >> javascript on the login page instead, it loaded our prefer

Re: How to make request parameters available to a login.jsp?

2009-05-07 Thread Gregor Schneider
Pid, On Thu, May 7, 2009 at 2:01 PM, Pid wrote: > Alternative: > > I don't have this to hand anymore since the original site was changed > and I'm not the dev for it anymore, but we put a frame-busting > javascript on the login page instead, it loaded our preferred start URL > instead of just bus

Re: How to make request parameters available to a login.jsp?

2009-05-07 Thread Pid
Gregor Schneider wrote: > Chris, > > On Thu, May 7, 2009 at 4:07 AM, Christopher Schultz > wrote: >> A few questions: >> > Chris, maybe you'll get the hang of this Valve if I explain the > business-requirement I had: > > My primary target was to cirumvent the problem having a framed > web-app, w

Re: How to make request parameters available to a login.jsp?

2009-05-07 Thread Gregor Schneider
Chris, On Thu, May 7, 2009 at 4:07 AM, Christopher Schultz wrote: > > A few questions: > Chris, maybe you'll get the hang of this Valve if I explain the business-requirement I had: My primary target was to cirumvent the problem having a framed web-app, where some content is requested after the s

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

Re: Requesting a SSL client certificate using ACTION_REQ_SSL_CERTIFICATE

2009-05-07 Thread André Cruz
On May 7, 2009, at 9:18 , Mark Thomas wrote: André Cruz wrote: Hello. I have a specific page in my site that uses ssl client certificates for authentication and the application itself does the cert validation. As the rest of the site does not use them I have clientAuth="false" in my con

Tomcat Cluster issue

2009-05-07 Thread dhanesh kk
List, I am trying a transparent failover cluster with 2 separate TC-6.0.8 nodes with a apache2.2 node as LoadBalancer with mod_proxy_ajp JDK 1.5.0_15 and platform Debian. I used224.0.0.1 as the multicast addresss is it okay ? I am seeing these outputs for catalina.out in on

Re: Tomcat Configuration in Eclipse

2009-05-07 Thread André Warnier
Hi. Please do not copy me of every message you send to the list. I already get the list message, so this makes it an extra identical message each time. Just click "reply", not "reply all". Thanks. ados1...@gmail.com wrote: Interesting Things are happening with my Tomcat. ... --

tomcat6 configuration best practice?

2009-05-07 Thread Kevin Jackson
Hi, I'm currently trying to understand the best practices for tomcat6 application deployments given certain restrictions: 1 - We deploy exploded dirs only, not WAR files 2 - We need to be able to hot deploy jsps (but not classes/jars) without restarting tomcat 3 - The application must be the ROOT

Re: Requesting a SSL client certificate using ACTION_REQ_SSL_CERTIFICATE

2009-05-07 Thread Mark Thomas
André Cruz wrote: > Hello. > > I have a specific page in my site that uses ssl client certificates for > authentication and the application itself does the cert validation. As > the rest of the site does not use them I have clientAuth="false" in my > connector otherwise the browsers keep asking fo

Re: Connector Issue - Tomcat 6.0/IIS 6.0

2009-05-07 Thread Rainer Jung
Your log snippet indicates, that the request was successfully forwarded to Tomcat and Tomcat returned with 404. Since you left out to much from the log, we can't say for sure, whether thew request in the redirector log is the same, as the 200 request in the IIS log. If you can provide access to mo