Re: Single error page for multiple web applications

2013-12-31 Thread Serge Fonville
Hello Maarten,

When I was in the same boat, I found
http://stackoverflow.com/questions/13914575/how-to-build-server-level-custom-error-page-in-tomcatand
http://wiki.apache.org/tomcat/FAQ/Miscellaneous#Q6 both very helpful.

I found these by googling
https://www.google.nl/?gws_rd=crei=ALNzUtHWPKKN4wTVv4DgAw#q=tomcat+webapp+error+pagesafe=off

HTH

Kind regards/met vriendelijke groet,

Serge Fonville

http://www.sergefonville.nl


2013/12/31 Maarten van Hulsentop maar...@vanhulsentop.nl

 Hello,

 We are using Tomcat to host a number of web applications as a uniform
 solution. We trying to implement something that seems to be an odd
 requirement, even though it is really a use case for us.

 We would like to define a single [default] error page for all web
 applications residing on this Tomcat instance. After some experimentation
 and googling around, it seems that there is no clear-cut solution for this.
 I see a few options;

 - Let the global conf/web.xml define error pages for all web applications
 at once. However these are always relative to the web application context,
 and require every web application to pack the error pages again, which is a
 duplicate of resources and defeats the DRY principle.
 - An Error reporting valve can be implemented to handle error pages. Simply
 extend ErrorReportValve delivered from Tomcat and implement the report()
 method. But then how should this report method behave?
 1-  It could build up a HTML page from java code directly (as is being done
 in the Tomcat default implementation of the ErrorReportValve). The downside
 of this would be that it is not possible to style the page afterwards.
 2-  It could fetch the HTML page from a location specified in configuration
 (system property or otherwise) and stream it to the client. But is it
 possible to have dynamic behavior in that case (jsp behavior). I think we
 would need a RequestDispatcher for that and that is supposed to be in
 context i presume.
 3-  It could fetch the ROOT context (which has to be crossContext=true then
 i assume) and delegate the handling of errors to a page in the root
 context. This one would have my preference, as it allows the configuration
 of a single error page, while trying to stick (mimic) as much of the normal
 J2EE behavior as possible. But it also seems to be the most tricky one.
 Also, i am not sure on the crossContext setting. Documentation points out
 that it should not be set on security conscious environments. My experience
 is that security is always important, so does this make it a no-no or is
 this a theoretical security risk?

 Please share your opinions about this, things i missed, or (even better!)
 your solution :)

 Thank you in advance!
 Regards,

 Maarten van Hulsentop



Re: How to store session in database

2013-05-24 Thread Serge Fonville
Hi,

Does
http://www.intelligrape.com/blog/2010/07/21/tomcat-6-session-persistence-through-jdbcstore/
help
answer your question?

HTH

Kind regards/met vriendelijke groet,

Serge Fonville

http://www.sergefonville.nl

Convince Microsoft!
They need to add TRUNCATE PARTITION in SQL Server
https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table


2013/5/24 杨华杰 yhj...@gmail.com

 Hi

 Basically I want to configure a tomcat cluster.

 I am using tomcat 6 and tomcat 7 and I want to store the session in
 database.

 I am looking to this document
 http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html . But
 unfortunately I didn't find any document to store session in database. Is
 there any? Just let me know which document I can refer.




 Regards,
 Hua Jie



Re: runtime.exec cmd.exe /C net use

2013-03-24 Thread Serge Fonville
Hi,

See the second reply on SO
http://stackoverflow.com/questions/182750/map-a-network-drive-to-be-used-by-a-service

HTH

Kind regards/met vriendelijke groet,

Serge Fonville

http://www.sergefonville.nl

Convince Microsoft!
They need to add TRUNCATE PARTITION in SQL Server
https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table


2013/3/24 Harris, Jeffrey E. jeffrey.har...@mantech.com



  -Original Message-
  From: Patrick Flaherty [mailto:pflah...@rampageinc.com]
  Sent: Sunday, March 24, 2013 3:37 PM
  To: Tomcat Users List
  Subject: Re: runtime.exec cmd.exe /C net use
 
 
  On Mar 24, 2013, at 2:56 PM, André Warnier wrote:
 
   Harris, Jeffrey E. wrote:
   -Original Message-
   From: Patrick Flaherty [mailto:pflah...@rampageinc.com]
   Sent: Sunday, March 24, 2013 12:18 PM
   To: Tomcat Users List
   Subject: Re: runtime.exec cmd.exe /C net use
  
  
   On Mar 24, 2013, at 10:24 AM, Harris, Jeffrey E. wrote:
  
  
   -Original Message-
   From: Patrick Flaherty [mailto:pflah...@rampageinc.com]
   Sent: Sunday, March 24, 2013 10:20 AM
   To: Tomcat Users List
   Subject: Re: runtime.exec cmd.exe /C net use
  
  
   On Mar 23, 2013, at 10:00 PM, David Kerber wrote:
  
   (**) Maybe this is a hint to the OP : what happens if you ignore the
   result of the first command call, and try the same command a second
   time ?
   And I agree : there a bit of hocus-pocus here, but then many things
   are, in a Windows environment.
  
  You are not hearing me. The drives are mapped and set to reconnect at
  logon. Therefore if I reboot my machine the network drive mapping are
  in place after logging in. I *do not* try and map a drive from within
  my app. My app has full access to the network shares as soon as my app
  is up. No problem with network shares and my app ! My app needs to read
  and write to those network share to function and has no problems.
 

 I think we have a failure to communicate here.

 Mappings set to reconnect are NOT the same as having access to a share.
 If you have access to the share, it is does not depending on a mapping.
  The
 mapping only assigns a particular drive letter to a UNC.

 Within your application, do you actually access the mappings by letter, or
 by
 UNC?

  The problem is after I'm up and running, I try to run cmd.exe /C net
  use from within the app it does not return any mapped drives. it
  returns:
  net use
  New connections will be remembered.
 
  There are no entries in the list.
 

 We understand that.  What we are trying to tell you if you want those
 mappings
 to appear (regardless of whether they are already mapped or not), we think
 you
 need to dynamically map them within your application.  Otherwise, we think
 you
 will continue to experience the situation you describe above.

  Again, the return above happen only when running as a service  but
  works fine when tomcat starts from startup.bat in a console. Works fine
  means it returns drive letter, unc equivalent etc ... basically what
  you normally see when you have mapped network drives and run net use
  from cmd.exe.
 
  It make no sense I know but I'm at a loss.

 I think it makes sense (pending further information on how you actually
 access the
 shares from within your application) because the application is not
 actually using
 a mapped drive, but using its access rights from a UNC.

 
  Thanks again
  Pat
 
 
 
   -
   To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
   For additional commands, e-mail: users-h...@tomcat.apache.org
  


 This e-mail and any attachments are intended only for the use of the
 addressee(s) named herein and may contain proprietary information. If you
 are not the intended recipient of this e-mail or believe that you received
 this email in error, please take immediate action to notify the sender of
 the apparent error by reply e-mail; permanently delete the e-mail and any
 attachments from your computer; and do not disseminate, distribute, use, or
 copy this message and any attachments.

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: tomcat 7 eliminate connection

2011-03-27 Thread Serge Fonville
Hi,

http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Request_Filters

I found deny=192\.168\.1\.\d+ would cover it.

If not, please clarify further

HTH
Kind regards/met vriendelijke groet,

Serge Fonville

http://www.sergefonville.nl

Convince Google!!
They need to add GAL support on Android
http://code.google.com/p/android/issues/detail?id=4602


2011/3/27 Henry Lu z...@umich.edu

 based upon the documentation,  in the context tag, we can set something
 like the following:

 Valve className=org.apache.catalina.valves.RemoteAddrValve
allow=127\.0\.0\.1/

 to only allow local access. Can we using wild card or a set of url/ip
 addrss access? Could someone give me some examples for allowing:

 123.122.*
 111.*
 101.202.1.*

 -Henry


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: md5

2010-05-06 Thread Serge Fonville
newline?

On Thu, May 6, 2010 at 4:56 PM, János Löbb janos.l...@yale.edu wrote:
 Folks,

 What am I doing wrong here ?

 bash-3.2# md5 -s apache-tomcat-6.0.26.zip
 MD5 (apache-tomcat-6.0.26.zip) = d0892b5662287d18c06b167c4bba249d
 bash-3.2# cat apache-tomcat-6.0.26.zip.md5.txt
 6bf77c1c820a0e7c1a1fb6463c0a2a1d

 t was downloadad yesterday from the Tomcat site.

 Thanks ahead,

 János


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org





-- 
http://www.sergefonville.nl

Convince Google!!
They need to support Adsense over SSL
https://www.google.com/adsense/support/bin/answer.py?hl=enanswer=10528
http://www.google.com/support/forum/p/AdSense/thread?tid=1884bc9310d9f923hl=en

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Does Tomcat http work on port 80?

2009-10-09 Thread Serge Fonville
Hi,

Yesterday on the JBoss users forum I posted the question how to setup http
 for Tomcat on port 80 internal to JBoss 5.1.0GA under Windows 2000 Prof.
 Although I got some answers (Yes) in the end it seemed as if you could
 configure it but it did not work. Worked great on other port numbers but on
 port 80 all I got was a white page in the browser but with no source while
 on the other ports I got the expected html I created. I started getting the
 answer on the forum port 80 is special and would not work under Linux unless
 you setup special privilegs.


Please refer to the topic

So simple question should port 80 work?

Well known ports require root

Also, I found no access files created for port 8080 of Tomcat of JBoss. Does
 Tomcat create http access files normally?

 What do you mean by these?
Tomcat does not support .htaccess\

Also ;-)
http://en.lmgtfy.com/?q=tomcat+port+80+linux

HTH

Regards,

Serge Fonville

-- 
http://www.sergefonville.nl

Convince Google!!
They need to support Adsense over SSL
https://www.google.com/adsense/support/bin/answer.py?hl=enanswer=10528
http://www.google.com/support/forum/p/AdSense/thread?tid=1884bc9310d9f923hl=en


Re: Does Tomcat http work on port 80?

2009-10-09 Thread Serge Fonville
On Fri, Oct 9, 2009 at 4:28 PM, Peter Crowther
peter.crowt...@melandra.comwrote:

 2009/10/9 Serge Fonville serge.fonvi...@gmail.com:
  Hi,
 
  Yesterday on the JBoss users forum I posted the question how to setup
 http
  for Tomcat on port 80 internal to JBoss 5.1.0GA under Windows 2000 Prof.
 [...]
  Well known ports require root
 [...]
  http://en.lmgtfy.com/?q=tomcat+port+80+linux

 Serge, the OP is on Windows 2000 Professional ;-).


I noticed too late :-(

-- 
http://www.sergefonville.nl

Convince Google!!
They need to support Adsense over SSL
https://www.google.com/adsense/support/bin/answer.py?hl=enanswer=10528
http://www.google.com/support/forum/p/AdSense/thread?tid=1884bc9310d9f923hl=en


Re: [ANN] Compile Tomcat Web apps into native Windows/Linux executables (beta)

2009-09-22 Thread Serge Fonville
Hi,


 I think it's not a good idea especially when application are subject to
 modification frequetly or if we plan to deploy a new application on the
 server.
 Tomcat has a very interesting feature which allows user to load application
 on fly without closing the server. But If I compile tomcat and webapps into
 single package, I will lost this feature.

 I see that's a very limited functionnality.


I can imagine such functionality be very userfull for ISV, since upgrading
those is often more tedious anyway.
Apart from that I see little to no use of such a product

Regards,

Serge Fonville

On Tue, Sep 22, 2009 at 3:20 PM, ramzi khlil ramzi.atv...@gmail.com wrote:

 Hi,

 I think it's not a good idea especially when application are subject to
 modification frequetly or if we plan to deploy a new application on the
 server.
 Tomcat has a very interesting feature which allows user to load application
 on fly without closing the server. But If I compile tomcat and webapps into
 single package, I will lost this feature.

 I see that's a very limited functionnality.

 Regards
 Ramzi

 On Tue, Sep 22, 2009 at 7:41 AM, Excelsior Java Team 
 j...@excelsior-usa.com
  wrote:

  Please help us beta test Apache Tomcat support in the forthcoming
 Excelsior
  JET 7.0 release.
 
  Excelsior JET is a compliant Java SE 6 implementation (JVM) with an
  ahead-of-time native code compiler. Version 7.0 will enable you to
 compile
  Apache Tomcat together with your Web applications into a native code
  executable and distribute it without the original class/WAR files and
  without dependency on the JDK.
 
  The latest Excelsior JET 7.0 beta 2 supports Tomcat 5.0, 5.5, and 6.0 and
  is available for Windows and Linux.
 
  More information and sample app (Pebble 2.3.2 on Tomcat 6.0):
  http://www.excelsior-usa.com/protect-java-web-applications.html
 
  Beta downloads (no registration required):
  http://www.excelsior-usa.com/jetdlbeta.html
 
  We are eagerly awaiting your feedback and questions at
  j...@excelsior-usa.com.
 
  Thank you and best regards,
 
  Dmitry Leskov
  Excelsior LLC
 
 



Re: How to install an updated third party SSL certificate for B2B transactions

2009-09-09 Thread Serge Fonville
Hi,

 keytool error: java.lang.Exception: Public keys in reply and keystore don't
 match

http://lmgtfy.com/?q=Public+keys+in+reply+and+keystore+don%27t+matchl=1

Start with that, read the thread and maybe it helps

HTH

Regards,

Serge Fonville

On Wed, Sep 9, 2009 at 5:07 PM, David Uctaa duc...@gmail.com wrote:
 I believe all I need to do is import the new certificate into the keystore.
 The certificate from our trading partner appears to be getting used for
 verifying data which has been signed by them and sent to us.

 So I execute the following statement to try to import the new certificate:

 keytool -import -trustcacerts -file path_to_file_with_.der_extension
 -keystore .keystore
  -alias tomcat

 I am asked for the keystore password, and I enter it

 I then receive the following error:

 keytool error: java.lang.Exception: Public keys in reply and keystore don't
 match

 Thoughts on what I'm doing wrong?

 Many thanks.
 On Tue, Sep 8, 2009 at 10:20 AM, Peter Crowther peter.crowt...@melandra.com
 wrote:

 2009/9/8 David Uctaa duc...@gmail.com

  I have inherited a Tomcat 5.5 installation running on Windows XP.  There
  are
  processes on this box which do server-to-server connections with a third
  party via HTTPS over SSL.  We have installed the third party's SSL
  certificate on our server, and they have done likewise with ours.  We use
  their certificate for recognizing messages that they have signed and
  encrypted, etc.


 OK.  So the first step is to work out what piece of code uses their
 certificate.

 It's unlikely to be Tomcat, which probably uses your certificate to
 identify itself to them - but it's possible.

 It's more likely to be one or more B2B web applications (webapps) running
 inside Tomcat, which probably check returns from them to make sure the
 correct cert has been seen from their server.

  They have now updated their certificate and sent it to us.
  But I do not know how or where to update this on our system.  Do I need
 to
  do something with the keystore?  Are there resources online which will
 give
  me the how-tos on this?  I've googled around and only managed to confuse
  myself further.
 

 I think it'll stay confusing until you answer the above question.  You'll
 have to find / create / mind-read the documentation about which part of the
 system needs to know about which certificates.  I suspect finding that out,
 or simply finding the architecture diagram that shows what apps are hosted
 in what containers and how they communicate, would be very useful to you!

 Once you've got more information, you can then ask far more targeted
 questions.  They might be of the Tomcat users if that's relevant, or they
 might be of some other group that knows about the technology in your B2B
 webapps.

 Hope that helps.  I'm not trying to fob you off; I just think we all need
 some more information about what's on the box!

 - Peter



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Running tomcat as limited user (MS Windows)

2009-08-24 Thread Serge Fonville
 Clue for anyone else who comes across this: you have to switch off
 file sharing to be able to even see the place you need to make the
 changes - http://support.microsoft.com/kb/308419. FFS, MS...


 Ah - you hadn't said Windows XP, so I'd assumed a server-class OS!  Yes, XP
 comes with brain-damaged simple file sharing turned on by default, which
 both hides and breaks the normal Windows file permissions model.

If your not running professional but home edition.
You will probably need cacls and net to perform the required operations.
cacls to change permissions and net to alter groups and users.
To take ownership, this can only easily be done through the gui (the
security tab and click away...windows style ;-))

HTH

Regards,

Serge Fonville

On Mon, Aug 24, 2009 at 9:34 AM, Peter
Crowtherpeter.crowt...@melandra.com wrote:
 2009/8/24 Gary workinginb...@gmail.com

 Clue for anyone else who comes across this: you have to switch off
 file sharing to be able to even see the place you need to make the
 changes - http://support.microsoft.com/kb/308419. FFS, MS...


 Ah - you hadn't said Windows XP, so I'd assumed a server-class OS!  Yes, XP
 comes with brain-damaged simple file sharing turned on by default, which
 both hides and breaks the normal Windows file permissions model.

 Glad you found it.

 - Peter


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Custom 404 page when webapp stopped

2009-08-20 Thread Serge Fonville
Hi,

Likely someone has a better idea...

You could create a general error page that redirect (transparently) to
a page of the webapp when available, if not, display another
If this is the default page for all webapps, it should be solved.
You will probably need to create a valve of some sort.
Don't ask me for details I honestly don't know.

Hopefully someone else can be more helpful, it's just a suggestion

HTH

Regards,

Serge Fonville

On Thu, Aug 20, 2009 at 3:25 PM, llgl...@portaildulibre.fr wrote:
 Hi,

  I have a webapp that needs to be down if we are doing some maintenance. I
 use the manager to make the application unavailable but in this case the 404
 customized error-page is not displayed.

 I modified the default web.xml (in conf/) to add the error-page 404,  but it
 doesn't seems to be resolved when the context is stopped.

 If I type an URL that doesn't exists, that doesn't map to any context, I get
 the right error page. But if it match a context path of a webapp that is
 stopped, I have the Tomcat default error page. Is there a way to fix this?

 Thanks

 Tomcat 6.0.20


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Clearing the catalina.out file

2009-08-14 Thread Serge Fonville
 catalina.out

Why type more ;-)

HTH

Serge
On Fri, Aug 14, 2009 at 3:58 PM, Dan Denton dden...@remitpro.com wrote:

 echo   catalina.out (without the outside quotes) works for us.

 Dan

 -Original Message-
 From: Susan Richards [mailto:richa...@matc.edu]
 Sent: Friday, August 14, 2009 8:53 AM
 To: users@tomcat.apache.org
 Subject: Clearing the catalina.out file

 Do I need to stop the web server in order to clear out this file?  What's a
 good unix command to do this?

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Clearing the catalina.out file

2009-08-14 Thread Serge Fonville
Susan,

Tomcat does not lock the file, since it is write only, clearing it has no
impact on the service.
I recall having a catalina.out that reached 4GB withon the hour due to a
read only filesystem.
Clearing it while it is running had no impact.

Googling also tends to be helpful...

HTH

Regards,

Serge Fonville

On Fri, Aug 14, 2009 at 5:06 PM, Susan Richards richa...@matc.edu wrote:

 No, but I will do it with a test server first since no one knows the
 answer.

  Christopher Schultz ch...@christopherschultz.net 8/14/2009 9:47 AM
 
  -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Susan,

 On 8/14/2009 10:19 AM, Susan Richards wrote:
  What about stopping the web server?  Required?  Thanks for the answers.

 This seems like an easy thing to just try. Have you?

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkqFeO0ACgkQ9CaO5/Lv0PDC/QCfUB467qz5nrD6MIVzJhdhE/A6
 kLAAoKV1CdlJOseqGJmgi1yjp0r97KCp
 =oIX8
 -END PGP SIGNATURE-

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Clearing the catalina.out file

2009-08-14 Thread Serge Fonville
Susan,


 If I had time to learn how logrotate works I wouldn't need to post to the
 list and waste your time, but if you're going to reply to a question, why
 answer only part of it?  If you know the answer, why spend the time telling
 me to try it out?  I will have learned either way and won't have to ask
 again.  Sorry.  I support many other applications and if you have time to
 explain how logrotate works, it's been on my to do list for a while.  I do
 appreciate the help.


Just an idea
http://www.apache.org/info/support.cgi
Regards,

Serge Fonville


Re: Beginner

2009-08-06 Thread Serge Fonville
Hi,

Have you read http://tomcat.apache.org/tomcat-6.0-doc/index.html?
The / urlpath correspoinds with $webappsdir/ROOT
For every webapp a directory under $webappsdir is used

HTH

Regards,

Serge Fonville

On Thu, Aug 6, 2009 at 2:24 PM, Mohamed Shahmohamed.s...@tecnotree.com wrote:
 Hi,

 I am new to apache tomcat.
  May I know which is the root directory for source files like html,jsp. I 
 guess it is webapps.
 How to call the files using browser. http://localhost:8080/mywork/name.jsp  
 Is this right way to use?
 Then How to check if the service runs?  I don't have admin rights but I 
 called in startup.bat using command prompt and set the catalina_home variable 
 to apache directory.

 Kindly Guide me.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Need some SSL Config help.

2009-07-27 Thread Serge Fonville
 Just an update.  I decided to change up what I was doing.  Instead of
 starting with SSL on tomcat, I ported Apache and Tomcat to work together on
 my local test server.  Now I am going to do the APR.  Do I need to configure
 SSL on both Apache and Tomcat or just Tomcat?

If all connections go via httpd. just httpd. otherwise both

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



WebdavServlet custom directory

2009-07-15 Thread Serge Fonville
Hi,

I am currently in the process of setting up a webdav resource on
glassfish. I noticed it uses
org.apache.catalina.servlets.WebdavServlet .
I was wondering if it was possible to define a different source
directory for all the files. I do not want to share the webapp dir.

Is this at all possible with this implementation or do I need to use
another one?

I am running Glassfish 2.1 as a service on Windows Vista x64 SP1 on port 8080

Thanks in advance.

Regards,

Serge Fonville

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: mod_jk on Windows 2008 x64

2009-07-07 Thread Serge Fonville
 I install the Apache Webserver in 32-bit
 Tomcat in 32 Bit, with 64-Bit tomcat6.exe
 Java JDK from Sun site in 64-bit Version
 mod_jk Binaries from the 32-bit folder of Tomcat FTP Server because there is 
 no 64-bit mod_jk.

How do you install Tomcat in 32bit with an x64 exe and jdk?
Also, have you tried compiling the software?

HTH

Regards,

Serge Fonville

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: mod_jk on Windows 2008 x64

2009-07-07 Thread Serge Fonville
 Correct me if neccessary, but Tomcat is still available in 32bit, but to 
 start with a 64-bit JRE the exe has to replace with a 64-Bit version. In some 
 forums I found entries, that I have to copy from SVN repository the current 
 tomcat5.exe, renamed it to Tomcat6.exe and everything works.
 But there is no problem with the tomcat server, the server is still running 
 and available through Port 8080. But the mod_jk will not work.

I may be wrong, but with Java, there is nog 64 or 32 bit, it is WORA,
so I do not see how recompiling the java source would be useful if
chaning platform...

And for Mod_JK, since that is a module for apache (I believe) it can
be 32-bit just fine...
Why exactly do you think you need it to be x64?

How much memory is in the machine?
What have you already tried?

HTH

Regards,

Serge Fonville

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Where does System.out.println go by default

2009-07-07 Thread Serge Fonville
 The taglib works fine. It logs some
 messages to System.out, but I can not find them... Could it be that
 tomcat  (5.5 on debian lenny) swallows this
 kind of logging by default?

 I am aware that this kind of logging is *bad*, but I need to access
 these logs asap.

I'd google for: tomcat stdout

http://tomcat.apache.org/tomcat-5.5-doc/logging.html

HTH

Regards,

Serge Fonville

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat 6 service on local computer could not sta rt (1067 error)‏

2009-06-30 Thread Serge Fonville
 Could not start the Apache Tomcat 6 service on Local Computer. Error 1067: 
 The process terminated unexpectedly.

Just a few

What is your exact location of the JDK and is it different if you do
not specify it in the path.
what is your JAVA_HOME set to
If you revert the changes, does the problem go away
Have you seen this behaviour on other systems
What tomcat version are you using
Where did you install tomcat
Did you try a manual installation (zip) instead of using the installer

If you clear the log file
Could you post everything form start to error?

Also, when I have the time I'll post a step by step I use to install
tomcat under windows

HTH

Regards,

Serge Fonville

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Which Do I SSL - httpd or Tomcat?

2009-06-02 Thread Serge Fonville
Hi,

    Thank you for reading and replying. Can I assume from your reply that if I 
 am not on a secure LAN that I should SSL httpd and both Tomcat servers?

It depends, is your tomcat accessible directly instead of through httpd?

HTH

Regards,

Serge Fonville

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: hello world

2009-05-29 Thread Serge Fonville
 http://localhost:8080/webapps/Hello/Hello.html.  Sorry for the misprint.

 This must be the longest-running thread about a Hello World application
 ever, in any programming language.
 :-)

It looks to me that you should remove the webapps from the url.

What is your local path
What is the server.xml like
How did you deploy the app
How have you changed the default config...

HTH

Serge Fonville

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Compile JSP before the first request arrives

2009-05-27 Thread Serge Fonville
Hi

 Some JSP containers (as per section 8.4.2 of the JSP 1.2 specification)
 support the capability of precompiling a JSP page.

 To precompile a JSP page, access the page with a query string of
 ?jsp_precompile

How is this different from just accessing the page after deploying it?

And can this also be done for an entire webapp instead of a single page?

Regards,

Serge Fonville

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Default servlet url mapping issue

2009-05-20 Thread Serge Fonville
Have you tried a different order?

On Wed, May 20, 2009 at 3:17 PM, Viktoras Agejevas v.ageje...@gmail.com wrote:
 Hi,

 I have a weird default servlet url mapping issue
 (Tomcat 6.0.18 with fully default configuration).

 Here's my web.xml configuration:

 web-app ... v2.5
 servlet-mapping
      servlet-nameAnyServlet/servlet-name
      url-pattern/*/url-pattern
 /servlet-mapping
 servlet-mapping
      servlet-namedefault/servlet-name
      url-pattern/resources/css/*/url-pattern
 /servlet-mapping
 /web-app

 1. If I request http://localhost:8080/whatever
   AnyServlet handles the request. - OK
 2. If I request http://localhost:8080/resources/css/style.css
   I get a Tomcat 404 error page. - NOT OK
 3. If I request http://localhost:8080/resources/resources/css/style.css
   I get the style.css file. - NOT OK

 Directory layout is:

 webapps
  |--ROOT
  |       |--resources
  |       |       |--css
  |       |            |--style.css
  |       |--WEB-INF
  |       |       |--web.xml

 If I run the same example in Jetty everything works as expected.

 I don't know if it's a bug in Tomcat or some Tomcat misconfiguration
 but it clearly violates Servlet specification...
 Any ideas about the issue?

 Thanks,
 Viktoras

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Default servlet url mapping issue

2009-05-20 Thread Serge Fonville
Just out of interest, but where, how and why does it violate the spec?

On Wed, May 20, 2009 at 3:33 PM, Mark Thomas ma...@apache.org wrote:
 Viktoras Agejevas wrote:
 Hi,

 I have a weird default servlet url mapping issue
 (Tomcat 6.0.18 with fully default configuration).

 Here's my web.xml configuration:

 web-app ... v2.5
 servlet-mapping
       servlet-nameAnyServlet/servlet-name
       url-pattern/*/url-pattern
 /servlet-mapping
 servlet-mapping
       servlet-namedefault/servlet-name
       url-pattern/resources/css/*/url-pattern
 /servlet-mapping
 /web-app

 1. If I request http://localhost:8080/whatever
    AnyServlet handles the request. - OK
 2. If I request http://localhost:8080/resources/css/style.css
    I get a Tomcat 404 error page. - NOT OK
 3. If I request http://localhost:8080/resources/resources/css/style.css
    I get the style.css file. - NOT OK

 Directory layout is:

 webapps
   |--ROOT
   |       |--resources
   |       |       |--css
   |       |            |--style.css
   |       |--WEB-INF
   |       |       |--web.xml

 If I run the same example in Jetty everything works as expected.

 I don't know if it's a bug in Tomcat or some Tomcat misconfiguration
 but it clearly violates Servlet specification...
 Any ideas about the issue?

 You can't map the default servlet to anything other than /*. It isn't
 designed to work in the manner you are using it.

 Mark



 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: What happened to the Tomact 6 Monitor?

2009-03-02 Thread Serge Fonville
Hi,



 Now, I reboot my machine.  When the machine gets to the Window desktop a

red X dialog box displays stating  Acess is denied.  Unable to open the

server 'Tomcat6'. I am repeating the message here letter for letter exactly


as it is shown in the dialogue box that pops up.  So I click OK


Since you get a security dialog, my first guess is you are not logged on as
an administrator.
is this correct?
Also, is tomcat started? (check task manager and look in services.msc)
What are the (applicable) permissions on the directory tomcat is installed?

I have had this same behavior several times.


So not every time then?
All these times, was it on the same machine or different machines?

Hope this helps.

Regards,

Serge Fonville

On Mon, Mar 2, 2009 at 3:21 PM, Gary Marshall gwj...@gmail.com wrote:

 All:

 I have a Vista machine stoked with maximum memory. The following has
 occurred each time I complete an install of Tomcat 6.0 followed by a reboot
 of my computer.

 I downloaded and successfully installed Tomcat6 setting the checkbox on the
 component page that generaates during install that sets Tomcat to start
 automatically with Windows . Each install resulted in a Tomcat icon placed
 in the system tray at the lower right in Windows, which allows me to stop
 and start Tomcat as needed.

 Now, I reboot my machine.  When the machine gets to the Window desktop a
 red X dialog box displays stating  Acess is denied.  Unable to open the
 server 'Tomcat6'. I am repeating the message here letter for letter
 exactly
 as it is shown in the dialogue box that pops up.  So I click OK

 Now at the Windows desktop, the Tomcat Monitor icon is not in the system
 tray.   In order to start Tomcat I have to click on Start - All Progbrams
 - Apache Tomcat 6.0 - Tomcat Manager.  This brings up the logon dialog
 and
 then I am in the Tomcat manager panel.  However I cannot stop Tomcat since
 I
 cannot open the Monitor, since the icon that existed in the system tray
 after the install and before the reboot is not there anymore.

 I have had this same behavior several times.

 Can anybody tell me what I am missing? Do I need to set some property or
 setting someplace in order to get the Tomcat Monitor be on the system tray
 and available for my use at all times?

 Thanks to all for your assistance.

 gary



Re: friendly urls

2009-03-01 Thread Serge Fonville
 * I would really like to go with option 2 but as I said I am new to this,
 so
 anyone who could confirm this and point me in the right direction would be
 awesome!


When I googled tomcat friendly urls, the first link was
http://www.coderanch.com/t/85405/Tomcat/Setting-Friendly-URLs-applications-Tomcat

Hope this helps.

Regards,

Serge Fonville


Re: remember me authentication?

2009-02-26 Thread Serge Fonville

 Does Tomcat provide default support in some way to implement a 'remember
 me' feature for form based authentication? This should not be dependent on a
 user's browser remembering the username/password, but by a checkbox you can
 check/clear on the logon jsp.


if you google for 'jsp cookie' you will find
http://www.roseindia.net/jsp/jspcookies.shtml

If so, where do I find it? If not, how can I implement it? My guess is that
 I store the user credentials in a cookie, but how do I get every jsp/servlet
 in my application that requires authentication to automatically retrieve
 this and skip authentication? Sounds like a lot of overhead, unless Tomcat
 can take care of it.


In any jsp page you can use include directives and inline java (scriptlet).
Alternatively you can implement java beans to perform the authentication
decisions.

Any web application that uses authentication needs to perform these steps at
every request (page view)

Hope this helps.

Regards,

Serge Fonville


Re: Expired Self-Signed Certificates?

2009-02-17 Thread Serge Fonville
Hi,

We have noticed that our expired self-signed certificates are still

functioning with no error messages.


What error messages would you expect?Is there nothing displayed prior to
showing the page?

Regards,

Serge Fonville


Re: Problem starting Tomcat Windows service

2009-02-10 Thread Serge Fonville
Hi,
Perhaps
http://www.nabble.com/Tomcat-5.5-and-x64-Windows-to8430335.html#a20310083 might
help.

Yo can download the x64 version of the service exe and use that instead.

Hope this helps

Regards,

Serge Fonville

On Tue, Feb 10, 2009 at 2:37 PM, André Warnier a...@ice-sa.com wrote:

 Hi.

 A colleague recently downloaded the Tomcat 5.5.27 service installer from
 the official Tomcat site and tried to install it on a Windows XP
 workstation. But considering that this is a 64-bit XP system, the Tomcat
 service refused to start.
 (The installed Java is a Sun java 1.6.0 64-bit JDK or JRE).

 Being an assiduous reader of this forum, I of course knew why, and
 following the usually excellent advice given here, I told him to de-install
 the service version, and instead download and install the zip version, and
 consequently install it as a service using the service.bat script.
 That part worked nicely.
 However, when trying to start the service later on, something goes awry,
 and the service does not start.  The Windows Event logger is pretty useless,
 mentioning an error of type 0/0 or similar.
 In the Tomcat logs directory however, I find the file
 jakarta_service.20090210, with the contents below.

 Anyone have any idea what's wrong ?
 (I have this suspicion that even with the zip version, I need to get the
 64-bit version of procrun somewhere else, yes ?)


 [2009-02-10 12:29:00] [info] Procrun (2.0.4.0) started
 [2009-02-10 12:29:00] [info] Running Service...
 [2009-02-10 12:29:00] [info] Starting service...
 [2009-02-10 12:29:01] [174  javajni.c] [error] %1 is not a valid Win32
 application.
 [2009-02-10 12:29:01] [994  prunsrv.c] [error] Failed creating java
 C:\Program Files\Java\jdk1.6.0_12\jre\bin\server\jvm.dll
 [2009-02-10 12:29:01] [1269 prunsrv.c] [error] ServiceStart returned 1
 [2009-02-10 12:29:01] [info] Run service finished.
 [2009-02-10 12:29:01] [info] Procrun finished.




 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: virtual hosts

2009-01-28 Thread Serge Fonville
Hi,

Is your dns properly configured?
And what does your environment look like?

Regards,

Serge Fonville

On Wed, Jan 28, 2009 at 1:28 PM, Josh Pollara
jpoll...@millennialmedia.comwrote:

 Does Tomcat support wildcard virtual hosts?

 I'm looking to do something like this:

  Host name=example.com  appBase=webapps
Alias*.example.com/Alias
  /Host

 This does not work though. Any suggestions?

 -josh




Re: virtual hosts

2009-01-28 Thread Serge Fonville
I tried it at my dev machine and added an alias to the host section for
*.domain.tldevery attempt to access a tomcat host on a resolvable address
works.

Hope this helps.

Regards,

Serge Fonville

On Wed, Jan 28, 2009 at 1:53 PM, Josh Pollara
jpoll...@millennialmedia.comwrote:

 I am making a transition from apache http - tomcat. DNS is all configured
 correctly etc. example.com and *.example.com point to the same place.

 I'm quite certain that tomcat does not support wildcard virtual hosts, I
 just wanted to confirm with someone who was positive.

 -Original Message-
 From: Serge Fonville [mailto:serge.fonvi...@gmail.com]
 Sent: Wed 1/28/2009 4:50 AM
 To: Tomcat Users List
 Subject: Re: virtual hosts

 Hi,

 Is your dns properly configured?
 And what does your environment look like?

 Regards,

 Serge Fonville

 On Wed, Jan 28, 2009 at 1:28 PM, Josh Pollara
 jpoll...@millennialmedia.comwrote:

  Does Tomcat support wildcard virtual hosts?
 
  I'm looking to do something like this:
 
   Host name=example.com  appBase=webapps
 Alias*.example.com/Alias
   /Host
 
  This does not work though. Any suggestions?
 
  -josh
 
 




Re: virtual hosts

2009-01-28 Thread Serge Fonville
On Wed, Jan 28, 2009 at 2:16 PM, Serge Fonville serge.fonvi...@gmail.com
 wrote:

 I tried it at my dev machine and added an alias to the host section for
 *.domain.tldevery attempt to access a tomcat host on a resolvable address
 works.


Sorry, my bad.
I had only configured a default host.

Probably then the only way to do this would put httpd in front of tomcat.

Regards,

Serge Fonville


Re: virtual hosts

2009-01-28 Thread Serge Fonville
Alternatively you may be able to create a wildcard CNAME in dns
Hope this helps.

Regards,

Serge Fonville

On Wed, Jan 28, 2009 at 2:25 PM, Serge Fonville serge.fonvi...@gmail.comwrote:

 On Wed, Jan 28, 2009 at 2:16 PM, Serge Fonville serge.fonvi...@gmail.com
  wrote:

 I tried it at my dev machine and added an alias to the host section for
 *.domain.tldevery attempt to access a tomcat host on a resolvable address
 works.


 Sorry, my bad.
 I had only configured a default host.

 Probably then the only way to do this would put httpd in front of tomcat.

 Regards,

 Serge Fonville



Re: by passing virtualhost when accessing an app?

2009-01-06 Thread Serge Fonville
Perhaps you can make the app available as a subdirectory of a domain,
(similar as how google does it) that way you can point them to
http://example.com/example.org to access the app you would normally access
as example.org
Hope this helps,

Regards,

Serge Fonville

On Tue, Jan 6, 2009 at 2:04 PM, Angelo Chen angelochen...@yahoo.com.hkwrote:


 that's what i'm doing now, i was just hoping maybe there are ways without
 updating the hosts files, reason is, when you ask somebody to try out your
 app from a certain website and told them to update the hosts file, 9 out of
 10 will not do it, of course this happens only during development when the
 domain is not yet pointed at the app.


 Gregor Schneider wrote:
 
  Why don't you simple add the entry
 
  127.0.0.1 www.myapp.com myapp.com
 
  into your /etc/hosts or *sic* in WIndows into
  C:\WINDOWS\system32\drivers\etc\hosts?
 
  Works for me
 
  Cheers
 
  Gregor
  --
  just because your paranoid, doesn't mean they're not after you...
  gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
  gpgp-key available @ http://pgpkeys.pca.dfn.de:11371
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

 --
 View this message in context:
 http://www.nabble.com/by-passing-virtualhost-when-accessing-an-app--tp21308824p21309955.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: HelloWorld servlet, or just about

2008-12-19 Thread Serge Fonville
On Fri, Dec 19, 2008 at 10:35 PM, André Warnier a...@ice-sa.com wrote:

 Dear experts,

 I love Tomcat, and I find all the people on this list kind, helpful, in
 short marvelous.

 I have dabbled in servlet filters before, but I never wrote an actual
 servlet.  And now I need to write the tiniest of one.

 It just needs to return, as plain text, not Hello World, but the result
 of request.getUserPrincipal.getName().
 That's it.

 Would anyone be as kind as to point me to a clean nice example, such that I
 could just replace Hello World by the above ?

 Better yet (but I don't want to abuse your patience), just paste the code
 right here below :

 (space intentionally left blank)


If you don't mind my asking, how much java experience do you have?

Regards,

Serge Fonville


Re: Tomcat not displaying jsp files.

2008-12-08 Thread Serge Fonville
Have you created a ROOT directory in your appBase?
Regards,

Serge Fonville

On Mon, Dec 8, 2008 at 2:27 PM, Gaurav Pruthi [EMAIL PROTECTED] wrote:

 Hi,

 I am facing a strange issue infact from past one year. I am using tomcat
 virtual hosting but i am not able to run jsp pages in the root directory.
 Every time i have to create a directory in the AppBase and have to put all
 the jsp pages into it so that they could get executed.

 Here are my VirtualHost configured in server.xml file.

 Host name=www.mydomain.com debug=0
 appBase=/usr/local/tomcat/webapps/www.mydomain.com unpackWARs=true
 Valve className=org.apache.catalina.valves.AccessLogValve
 directory=/usr/local/tomcat/logs
 prefix=www.mydomain.com.access. suffix=.log pattern=common
 resolveHosts=false/
 Context path=/servlet docBase=servlet debug=0 reloadable=true
 crossContext=true
 Logger className=org.apache.catalina.logger.FileLogger
 directory=/usr/local/tomcat/logs prefix=www.mydomain.com.access
 suffix=.log timestamp=true/
 /Context
 Aliasmydomain.com/Alias
 /Host


 When i am keeping jsp files in
 /usr/local/tomcat/webapps/www.mydomain.com/Folder, blank page is
 displayed.

 But If i am keeping jsp file in /usr/local/tomcat/webapps/
 www.mydomain.com/newfolder/ directory, then page is displayed.

 Using apache-tomcat 6.0.16

 Kindly let me know if any other information is required

 I am totally confused on this issue. I checked on the net but in vain.



 Kindly Help.





 Thanks  Regards,
 Gaurav Pruthi



Re: dinamically adding virtual hosts

2008-12-05 Thread Serge Fonville
On Fri, Dec 5, 2008 at 11:42 AM, Rodrigo Asensio [EMAIL PROTECTED] wrote:

 Hello, I'm stick to tomcat and I want to keep using it, I do at linux with
 native libs and it rocks. Now I found this problem, I want to add virtual
 hosts without restart the server, is that possible ?
 I didn't found any command at the manager to do this and it is logic since
 the manager belongs to a host.


I googled for 'tomcat dynamically adding virtual hosts' and found
http://markmail.org/message/hrfaj2abha6y4ko2#query:tomcat%20dynamically%20adding%20virtual%20hosts+page:1+mid:tfllnmifnpjvrl5a+state:results
This suggests you should look in the admin app
From there it should be possible to find the information you need

Perhaps a little more detail is useful:
What exact linux version are you using
What tomcat version and where did you get it
What does your current configuration look like
What have you already tried
What is your end goal

Regards,

Serge Fonville


Re: dinamically adding virtual hosts

2008-12-05 Thread Serge Fonville
On Fri, Dec 5, 2008 at 11:58 AM, Mark Thomas [EMAIL PROTECTED] wrote:

 Rodrigo Asensio wrote:
  Hello, I'm stick to tomcat and I want to keep using it, I do at linux
 with
  native libs and it rocks. Now I found this problem, I want to add virtual
  hosts without restart the server, is that possible ?
  I didn't found any command at the manager to do this and it is logic
 since
  the manager belongs to a host.

 Try the host manager.

 Mark


 As Mark said:

Use the host manager
it can be accessed http://localhost:8080/host-manager/html (assuming default
install
you need to logon using a user that has the admin role

Hope this helps

Regards,

Serge Fonville


Re: tomcat 5.5.20 security issue

2008-11-24 Thread Serge Fonville
Just a few questions off the top off my head:Where do you get the error
How did you configure tomcat
When do you get the error
What applications do you already have
What is your OS
What is the end goal you want
What variables have you set
Why tomcat 5.5.20 (instead of 6)

It seems a library can not be found.
Are all the required libraries installed in the tomcat lib directory or in
your WEB_INF/lib?

Regards,

Serge Fonville

On Mon, Nov 24, 2008 at 2:45 PM, aymen83 [EMAIL PROTECTED] wrote:


 Hi,

 I'm trying to run a web service on tomcat 5.5.20 but I have this error. I'm
 not expert in tomcat so if someone can help me?



 java.lang.NoClassDefFoundError:
 com/sun/org/apache/xml/internal/security/Init

at

 com.sun.xml.wss.impl.SecurableSoapMessage.clinit(SecurableSoapMessage.java:75)

at

 com.sun.xml.wss.ProcessingContext.setSOAPMessage(ProcessingContext.java:198)

at

 com.sun.xml.wss.impl.misc.XWSSProcessor2_0Impl.createProcessingContext(XWSSProcessor2_0Impl.java:132)

at

 org.springframework.ws.soap.security.xwss.XwsSecurityInterceptor.validateMessage(XwsSecurityInterceptor.java:159)

at

 org.springframework.ws.soap.security.AbstractWsSecurityInterceptor.handleRequest(AbstractWsSecurityInterceptor.java:104)

at

 org.springframework.ws.server.MessageDispatcher.dispatch(MessageDispatcher.java:208)

at

 org.springframework.ws.server.MessageDispatcher.receive(MessageDispatcher.java:163)

at

 org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport.handleConnection(WebServiceMessageReceiverObjectSupport.java:88)

at

 org.springframework.ws.transport.http.WebServiceMessageReceiverHandlerAdapter.handle(WebServiceMessageReceiverHandlerAdapter.java:57)

at

 org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)

at

 org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)

at

 org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:523)

at

 org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:463)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

at

 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

at

 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

at

 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

at

 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

at

 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

at

 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

at

 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

at

 org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperValve.java:150)

at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

at

 org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)

at

 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

at

 org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)

at

 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

at java.lang.Thread.run(Thread.java:595)
 thanks in advance
 --
 View this message in context:
 http://www.nabble.com/tomcat-5.5.20-security-issue-tp20661073p20661073.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: tomcat virtual host

2008-11-20 Thread Serge Fonville
Inside your webappsdir (which is defined in the appBase attribute inside the
host element) you either create directories for each webapp or place *.war
files directly in it.The ROOT directory (or war) corresponds with no
ulrpath.
For every new application you are adding you either add a war or a directory
inside the webappsdir
Every host can have it's own appBase.

Hope this helps.

Regards,

Serge Fonville

On Thu, Nov 20, 2008 at 5:07 PM, [EMAIL PROTECTED] wrote:


 - Mail Original -
 De: Charles R Caldarale [EMAIL PROTECTED]
 À: Tomcat Users List users@tomcat.apache.org
 Envoyé: Jeudi 20 Novembre 2008 16:23:40 GMT +01:00 Amsterdam / Berlin /
 Berne / Rome / Stockholm / Vienne
 Objet: RE: tomcat virtual host

  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Subject: Re: tomcat virtual host
 
  But if i do this, how can i access de tomcat manager ? with
  other name, but the examples will work ?

 By using their URLs?

 http://mysvn:8080/manager/html
 http://mysvn:8080/examples

 But, if a want to add a second application web , for example mysvn2 and i
 do not remove the mysvn,
 that is why I would like to use the virtual host.

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: How do I configure server.xml for Tomcat to recognize my application directory?

2008-11-18 Thread Serge Fonville
Change appBase to the absolute path 'c:\public_html'
Inside the appBase create a Directory ROOT (with capitals)

Regards,

Serge Fonville

On Tue, Nov 18, 2008 at 6:26 PM, [EMAIL PROTECTED] wrote:

 How do I configure server.xml for Tomcat to recognize the following setup?

 Tomcat is in
 C:\Program Files\Apache Software Foundation\Tomcat 6.0

 The application is in
 C:\public_html

 The directory structure of the application is
 C:\public_html\index.html
 C:\public_html\WEB-INF\
 C:\public_html\WEB-INF\web.xml
 C:\public_html\META-INF
 C:\public_html\META-INF\context.xml

 What should server.xml look like?

 I tried the following, but it did not work.  Upon navigating to 
 http://localhost; or http://localhost/index.html; the error message is:
 The requested resource () is not available.

 It seems the the problem might be the directory structure, and appBase, and
 docBase.


 Server port=8005 shutdown=SHUTDOWN

   Listener className=org.apache.catalina.core.AprLifecycleListener
 SSLEngine=on/
   Listener className=org.apache.catalina.core.JasperListener/
   Listener
 className=org.apache.catalina.mbeans.ServerLifecycleListener/
   Listener
 className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/

   Service name=Catalina

  Connector port=80 protocol=HTTP/1.1
 address=127.0.0.1 connectionTimeout=2
 redirectPort=443/

  Connector port=443 protocol=HTTP/1.1 address=127.0.0.1
 SSLEnabled=true
 reads=150 scheme=https secure=true
 clientAuth=false sslProtocol=TLS
 keystoreFile=conf/testkeys
 keystorePass=test12/

  Engine name=Catalina defaultHost=localhost

 Host name=localhost  appBase=/public_html
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false

Context path= docBase=/public_html
/Context

 /Host

  /Engine

   /Service

 /Server


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Tomcatx.x and vista

2008-11-17 Thread Serge Fonville
Use http://support.microsoft.com/kb/294807
http://support.microsoft.com/kb/294807 to
disable these great pages ;-)
Regards,

Serge Fonville

On Mon, Nov 17, 2008 at 3:54 PM, André Warnier [EMAIL PROTECTED] wrote:

 Caldarale, Charles R wrote:

 From: Chuck Hodge [mailto:[EMAIL PROTECTED]
 Subject: Re: Tomcatx.x and vista

 Have not made any changes to server.xml.


 Tomcat normally listens to HTTP requests on port 8080, and AJP requests
 (from IIS or httpd) on port 8009.  If you have IIS configured to listen on
 port 8080, then Tomcat will not be able to start.  If IIS is listening on
 port 80 (its default), then requests to 8080 should go straight to Tomcat;
 IIS is not involved.

 So what is your setup really?

  The message appears as the only content of index.html. It
 is probably just an error response by IIS.


 It's certainly not coming from Tomcat.

 Try taking IIS out of the game while setting up Tomcat.  Once you have
 Tomcat running properly standalone, then try configuring IIS to work with
 it.  (Or, if you're not using IIS for something else, configure Tomcat to
 use port 80 for HTTP and don't bother running IIS at all.)

 Also check to make sure the Vista firewall or other network protection
 isn't messing things up.

  Additional info :
 Internet Explorer has a detestable habit (among many others) : for some
 HTTP errors, if the error page sent back by the server is below a certain
 number of bytes (it varies according to the error code), IE will substitute
 its own error page.
 Which makes it all the more difficult to see where the error is coming
 from.
 I do not know of a way to disable this in IE, but if you make sure that the
 error pages on the server are at least 1025 bytes in size, they will get
 displayed.
 Unfortunately, I don't know off-hand where the standard Tomcat error pages
 are located.




 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Deploying On Production Server

2008-11-14 Thread Serge Fonville
Inside server.xml you can change the port number from (default) 8080
to 80Restart
the tomcat service and it is running on the default HTTP port

Regards,

Serge Fonville

On Fri, Nov 14, 2008 at 9:40 AM, Zaki Akhmad [EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hi,

 I am trying to deploying my application with tomcat on my production
 server. How do I make people that accessing my web server, no longer
 should enter the tomcat port number? Just http://ip-address not
 http://ip-address:port-number

 - --
 Zaki Akhmad


 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (GNU/Linux)
 Comment: http://getfiregpg.org

 iEYEARECAAYFAkkdOR4ACgkQT4k8JfIMt5eoSgCaArJWQgPdM5/ab73uYwPZ2KBB
 6LgAoJds/Q0ljihIt5Pu4YuH5h6LQh/G
 =cjEX
 -END PGP SIGNATURE-

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Debian + Apache 2.2 + Tomcat 5.5

2008-11-14 Thread Serge Fonville
When deploying an application you can either place a war in the webapps
directory, copy the files to a directory in the webapps directory of if you
are hosting a simple website use the ROOT directory in you webapps
directory.It is advisable to change the appBase attribute in the host
element inside your server.xml

Regards,

Serge Fonville

On Fri, Nov 14, 2008 at 11:14 AM, Alexander Diedler [EMAIL PROTECTED]wrote:

 Hello,
 I have a problem to integrate my own Application into the Tomcat Server.
 The mod_jk works fine. If I open http://127.0.0.1 I see the Tomcat Start
 Page.
 Where I have to place my webapp and where I have to change some files to
 make my Application available onto the server?
 I have a Debian 4.05 with Apache 2.2.5 and Tomcat 5.5.20 from Debian .deb
 packages installed per default.


 Greetings
 Alexander Diedler




Re: default web app

2008-11-08 Thread Serge Fonville
Perhaps you should use virtual hosts then.

Regards,

Serge Fonville

On Sat, Nov 8, 2008 at 11:34 PM, Stefano Nichele
[EMAIL PROTECTED]wrote:

 Since in some case I must install others applications that I can't check it
 and maybe someones of that is ROOT; in such case, I would like just to
 change some configuration files instead of renaming the whole application.
 I know that it's a strange requirement, but that is.

 ste


 Caldarale, Charles R wrote:

 From: Stefano Nichele [mailto:[EMAIL PROTECTED]
 Subject: default web app

 the only restriction is that I can't rename it in ROOT.



 Why not?  That's the simplest thing to do.

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]







 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Tomcat Native library for Windows

2008-11-07 Thread Serge Fonville
Could you post your server xml (excluding comments) since I have the same
situation working fine.

On Fri, Nov 7, 2008 at 11:51 AM, zmeeagain [EMAIL PROTECTED] wrote:


 What I failed to report is that, now that the AprLifecycleListener is
 initialised and the library is loaded, I can't access Tomcat anymore!!!
 Hitting localhost:8080 gives me (Firefox):

 Connection Interrupted

 The document contains no data.

 The network link was interrupted while negotiating a connection. Please try
 again.

 As soon as I remove tcnative-1.dll and restart Tomcat, everything is back
 to
 normal again. Is there something more I need to do? BTW, no errors appear
 in
 catalina log file.


 zmeeagain wrote:
 
  It's an Intel Core2 Duo E4500 at 2.2 GHz, running Vista Business 64 bit.
  Anyhow, your comment made think that ia64 is not my architecture. And
  indeed, version 1.1.14 of tcnative-1.dll is available for amd and x64
  architectures (instead of amd and ia64 as in some previous versions).
 That
  last one did the trick or me:
 
  INFO: Loaded APR based Apache Tomcat Native library 1.1.14.
  6 Nov 2008 11:09:10 am org.apache.catalina.core.AprLifecycleListener init
  INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters
  [false], random [true].
 

 --
 View this message in context:
 http://www.nabble.com/Tomcat-Native-library-for-Windows-tp19279526p20378334.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Tomcat Native library for Windows

2008-11-07 Thread Serge Fonville
I looked at your server.xml and compared it to mine. I see no difference
that would cause this.I use tomcat 6.0.18 with JDK 5
Have you set all variables correctly JAVA_HOME,CATALINA_HOME,PATH
Did you use the x64 tomca6.exe and tomcat6w.exe
Have you tried other browsers (ie,opera,chrome,mozilla)
you could also telnet to your tomcat server for http:
GET / HTTP/1.1
host: localhost

(two enters)

On Fri, Nov 7, 2008 at 1:16 PM, zmeeagain [EMAIL PROTECTED] wrote:


 My server.xml:  http://www.nabble.com/file/p20379495/server.xml server.xml


 Serge Fonville wrote:
 
  Could you post your server xml (excluding comments) since I have the same
  situation working fine.
 
  On Fri, Nov 7, 2008 at 11:51 AM, zmeeagain [EMAIL PROTECTED] wrote:
 
 
  What I failed to report is that, now that the AprLifecycleListener is
  initialised and the library is loaded, I can't access Tomcat anymore!!!
  Hitting localhost:8080 gives me (Firefox):
 
  Connection Interrupted
 
  The document contains no data.
 
  The network link was interrupted while negotiating a connection. Please
  try
  again.
 
  As soon as I remove tcnative-1.dll and restart Tomcat, everything is
 back
  to
  normal again. Is there something more I need to do? BTW, no errors
 appear
  in
  catalina log file.
 
 
  zmeeagain wrote:
  
   It's an Intel Core2 Duo E4500 at 2.2 GHz, running Vista Business 64
  bit.
   Anyhow, your comment made think that ia64 is not my architecture. And
   indeed, version 1.1.14 of tcnative-1.dll is available for amd and x64
   architectures (instead of amd and ia64 as in some previous versions).
  That
   last one did the trick or me:
  
   INFO: Loaded APR based Apache Tomcat Native library 1.1.14.
   6 Nov 2008 11:09:10 am org.apache.catalina.core.AprLifecycleListener
  init
   INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters
   [false], random [true].
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Tomcat-Native-library-for-Windows-tp19279526p20378334.html
  Sent from the Tomcat - User mailing list archive at Nabble.com.
 
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Tomcat-Native-library-for-Windows-tp19279526p20379495.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Tomcat Native library for Windows

2008-11-06 Thread Serge Fonville
As far as I know Vista x64 does not run on an ItaniumPerhaps you instead
wanted amd64

Regards,

Serge Fonville

On Thu, Nov 6, 2008 at 9:07 AM, zmeeagain [EMAIL PROTECTED] wrote:


 I too had and still have the same problem:

 6 Nov 2008 9:48:57 am org.apache.catalina.core.AprLifecycleListener init
 INFO: The APR based Apache Tomcat Native library which allows optimal
 performance in production environments was not found on the
 java.library.path: C:\Program

 Files\Java\jdk1.6.0_07\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows[...]

 I am using Vista 64bit on 64bit Intel, and a 64bit JDK (C:\Program
 Files\Java\jdk1.6.0_07\). I have downloaded both openssl.exe and
 tcnative-1.dll from
 http://tomcat.heanet.ie/native/1.1.9/binaries/win64/ia64/ (supposedly the
 correct version?) and saved them in C:\Program Files\Java\jdk1.6.0_07\bin\
 but Tomcat keeps complaining... I have run out of ideas.


 Brian Clark-10 wrote:
 
  Thanks for the suggestions. I just re-downloaded the file and now it
  works. I guess it was corrupted during the original download or
 something.
  Go figure.
 
  Brian
 
 
 
  - Original Message 
  From: Caldarale, Charles R [EMAIL PROTECTED]
  To: Tomcat Users List users@tomcat.apache.org
  Sent: Tuesday, September 2, 2008 7:19:32 PM
  Subject: RE: Tomcat Native library for Windows
 
  From: Brian Clark [mailto:[EMAIL PROTECTED]
  Subject: Re: Tomcat Native library for Windows
 
  Hmmm...on Windows, what is the difference between
  java.library.path and the Windows environmental variable PATH?
 
  By default, none.
 
  I have my Java Classpath set to this, which contains
  my bootstrap.jar.
 
  Hopefully that's what shows in the tomcat6w.exe program, not something
  you're setting in the system environment variables.  (If you do have a
  CLASSPATH environment variable, get rid of it - it will only break
  things.)
 
  Should I just set, via JAVA_OPTS, my java.library.path to the
  same directory, since that's where I put my tcnative-1.dll file?
  -Djava.library.path=C:\Program Files\Apache Software
  Foundation\Tomcat 6.0\bin
 
  Don't bother, the JVM is already looking there, as shown by the INFO
  message.
 
  I don't want to break anything. Setting the java.library.path
  won't make Tomcat stop looking at other libraries in other
  locations (like the built-in /lib directory) will it?
 
  No, it won't break anything, but it's also not going to make it work.
  The
  java.library.path is used for native library DLLs only, not for classes.
 
  Check for ownership and access permissions on the file - insure that the
  account the Tomcat service is running under can access the DLL.
 
  By any chance, is this a 64-bit version of Windows Server?  If so, and
  you're using a 64-bit JVM, you'll need the 64-bit version of the DLL.
 
  - Chuck
 
 
  THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
  MATERIAL and is thus for use only by the intended recipient. If you
  received this in error, please contact the sender and delete the e-mail
  and its attachments from all computers.
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Tomcat-Native-library-for-Windows-tp19279526p20356642.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Tomcat multiple sub domain names configuration

2008-11-06 Thread Serge Fonville
Either create a new host in server.xml with a different appBase or check for
the request url and perform a redirect
Regards,

Serge Fonville

On Thu, Nov 6, 2008 at 1:28 PM, Ridwan [EMAIL PROTECTED] wrote:

 Hi,

 I Need some help. I have Java applications running in Apache Tomcat
 6.0.16 from port 80 from a Windows 2003 server. It can be accessed say
 by the URL http://site1.mycompany.net/MyApplication where MyApplication
 is actually a Java application folder name under the
 $CATALINA_HOME/webapps/ path. It hosts few other Java application
 folders under the same.

 But now I want the URL http://site2.mycompany.net to go directly to the
 $CATALINA_HOME/webapps/MyApplication folder. How do I do it?

 Both the sub domains of mycompany.net, that is, site1.mycompany.net and
 site2.mycompany.net point to the same IP address of the server. Now
 typing both of those will just bring the Tomcat's home page from the
 $CATALINA_HOME/webapps/ROOT folder.

 Thanks and Regards
 Ridwan Ahmed
 Web Systems Manager



 

 This email has been scanned for all viruses by the MessageLabs SkyScan
 service. For more information on a proactive anti-virus service working
 around the clock, around the globe, visit http://www.messagelabs.com
 

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: SSL setup help

2008-11-05 Thread Serge Fonville
Hi,
To configure tomcat using SSL on Windows I use:
multi-host tomcat ssl on windows
download and install java 1.5 jdk
set JAVA_HOME to the root of the JDK directory
add JAVA_HOME\bin to the path
install Visual C++ 2008 redistributable
download and install openssl
http://www.openssl.org -- related --binaries (at the top)
place the files in c:\program files\openssl
set OPENSSL_HOME to c:\program files\openssl
add OPENSSL_HOME\bin to the path
search for an openssl.cnf on google
download and install tomcat
download tomcat and extract to c:\program files\apache software
foundation\tomcat
set CATALINE_HOME to c:\program files\apache software foundation\tomcat
download tomcat native and extract to CATALINA_HOME\bin
add CATALINA_HOME\bin to the path
set CLASSPATH to
.;%CATALINA_HOME%\libservlet-api.jar;%CATALINA_HOME%\lib\jsp-api.jar
cd %CATALINA_HOME\conf
mkdir ssl
cd ssl
genrsa -aes256 -out key.pem 8192
Enter pass phrase for key.pem: proactix
req -new -key key.pem -sha1 -x509 -out cert.pem

Connector protocol=org.apache.coyote.http11.Http11AprProtocol
port=443
enableLookups=true disableUploadTimeout=true
acceptCount=100  maxThreads=200
scheme=https secure=true SSLEnabled=true
SSLCertificateFile=${catalina.home}/conf/ssl/cert.pem
SSLCertificateKeyFile=${catalina.home}/conf/ssl/key.pem
SSLPassword=proactix
sslProtocol=TLSv1/

The same should be similar on Linux

Regards,

Serge Fonville

On Wed, Nov 5, 2008 at 4:29 PM, Michael A. Tucker 
[EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 I'm trying to setup SSL on a web app that I have running on a server.  I
 created my keystore.key file and then uncommented this section in my
 server.xml file:

  Connector port=8443 protocol=HTTP/1.1 SSLEnabled=true
 maxThreads=150 scheme=https secure=true
 
  keystoreFile=${/usr/local/jre1.6.0_06/bin/keystore.key}/.keystore
 keystorePass=changeit
 clientAuth=false sslProtocol=TLS

 Now when I go to https://localhost:8443/ I get failed to connect page
 load error.  I think I'm not doing something wrong in the server.xml
 file, but I'm not sure what.  I already have another program running on
 443 so could that interfere?  I also don't know what APR means in the
 SSL doc.
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFJEbv2iSj9VAB3NO8RAkyLAJ0ZhVqiOz0cKuZILoYMYQTjojD8awCfXjHY
 pI7vAxr3JZan3Mq87uzrhMU=
 =8iED
 -END PGP SIGNATURE-

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Tomcat 5.5 and x64 Windows

2008-11-03 Thread Serge Fonville
Hi,

I have tomcat running on Windows Vista Home Premium x64 in native 64-bit.
Heres what I did:
Installed x64 jdk 5
Downloaded the tomcat zip
Browsed the svn for the amd64 tomcat6 en tomcat6w EXEs (i used tomcat
6.0.18)
then installed the service as normal: service install
What exactly have you done?

Regards,

Serge Fonville
On Mon, Nov 3, 2008 at 9:24 PM, robainp [EMAIL PROTECTED] wrote:


 Have the same problem.
 want to install tomcat service on windows 64 running on xeon processor.

 installed the microsoft library

 http://www.microsoft.com/downloads/details.aspx?familyid=90548130-4468-4BBC-9673-D6ACABD5D13Bdisplaylang=en

 also downloaded amd64 tomcat files.
 but still cannot run the tomcat5.exe files.

 any ideas?

 Thanks




 Darren Kukulka wrote:
 
  Martin/Mladen,
 
  I ended up installing .Net Framework 2.0 x64 as this was the prescribed
  method for resolving large numbers of Error 32 and 59 messages within the
  Windows system log.
 
  Mladen is probably right that the msvcrt80 runtime is the crux of the fix
  for this but for now I'm just happy that it works!
 
  Martin - I only have .Net 2.0 x64 installed on my system.
 
  Darren.
 
  -Original Message-
  From: Mladen Turk [mailto:[EMAIL PROTECTED]
  Sent: 25 January 2007 07:03
  To: Tomcat Users List
  Subject: Re: Tomcat 5.5 and x64 Windows
 
  Martin Skøtt wrote:
  Hi Darren,
 
  Good to hear that you solved - I hope you will spend a couple of minutes
  on providing some extra information.
 
 
  You don't actually need the .NET to be installed,
  but rather the msvcrt80 runtime.
  Download
  Microsoft Visual C++ 2005 Redistributable Package (x64)
 
 http://www.microsoft.com/downloads/details.aspx?familyid=90548130-4468-4BBC-9673-D6ACABD5D13Bdisplaylang=en
 
  It should be enough.
 
  Regards,
  Mladen.
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  Connaught honoured AIM 'Decade of Excellence' Award
 
  Connaught awarded Partnering Contractor of the Year 2005
 
  Connaught wins AIM 'Company of the Year' award 2004
 
  West of England Business of the Year Award Winner 2003
 
  Why not visit our website http://www.connaught.plc.uk
  Disclaimer:
 
  The information transmitted is intended only for the person or entity to
  which it is addressed and may contain confidential and/or privileged
  material. Any review, retransmission, dissemination or other use of, or
  taking of any action in reliance upon, this information by persons or
  entities other than the intended recipient is prohibited. If you received
  this in error, please contact the sender and delete this message.
 
 
 
  Connaught plc, Head Office 01392 444546
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Tomcat-5.5-and-x64-Windows-tp8430335p20310083.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Tomcat 5.5 and x64 Windows

2008-11-03 Thread Serge Fonville
A XEON has the same instruction set (both emt64)
Where exactly did you download the exe?


On Mon, Nov 3, 2008 at 9:43 PM, robainp [EMAIL PROTECTED] wrote:


 near about the same. i am running windows server on xeon 64bit though, I
 think thats where the problem is. which processor are you running? is there
 a build for xeon 64bit that I can download somehwere ?

 jdk 64 1.5.0_15
 tomcat5.5 zip
 download tomcat5.5 amd64
 tomcat5.exe wont run

 error i get.
 [2008-11-03 14:40:56] [427  prunsrv.c] [error]
 The system cannot find the file specified.
 [2008-11-03 14:40:56] [1336 prunsrv.c] [error]
 Load configuration failed




 Serge Fonville wrote:
 
  Hi,
 
  I have tomcat running on Windows Vista Home Premium x64 in native 64-bit.
  Heres what I did:
  Installed x64 jdk 5
  Downloaded the tomcat zip
  Browsed the svn for the amd64 tomcat6 en tomcat6w EXEs (i used tomcat
  6.0.18)
  then installed the service as normal: service install
  What exactly have you done?
 
  Regards,
 
  Serge Fonville
  On Mon, Nov 3, 2008 at 9:24 PM, robainp [EMAIL PROTECTED] wrote:
 
 
  Have the same problem.
  want to install tomcat service on windows 64 running on xeon processor.
 
  installed the microsoft library
 
 
 http://www.microsoft.com/downloads/details.aspx?familyid=90548130-4468-4BBC-9673-D6ACABD5D13Bdisplaylang=en
 
  also downloaded amd64 tomcat files.
  but still cannot run the tomcat5.exe files.
 
  any ideas?
 
  Thanks
 
 
 
 
  Darren Kukulka wrote:
  
   Martin/Mladen,
  
   I ended up installing .Net Framework 2.0 x64 as this was the
 prescribed
   method for resolving large numbers of Error 32 and 59 messages within
  the
   Windows system log.
  
   Mladen is probably right that the msvcrt80 runtime is the crux of the
  fix
   for this but for now I'm just happy that it works!
  
   Martin - I only have .Net 2.0 x64 installed on my system.
  
   Darren.
  
   -Original Message-
   From: Mladen Turk [mailto:[EMAIL PROTECTED]
   Sent: 25 January 2007 07:03
   To: Tomcat Users List
   Subject: Re: Tomcat 5.5 and x64 Windows
  
   Martin Skøtt wrote:
   Hi Darren,
  
   Good to hear that you solved - I hope you will spend a couple of
  minutes
   on providing some extra information.
  
  
   You don't actually need the .NET to be installed,
   but rather the msvcrt80 runtime.
   Download
   Microsoft Visual C++ 2005 Redistributable Package (x64)
  
 
 http://www.microsoft.com/downloads/details.aspx?familyid=90548130-4468-4BBC-9673-D6ACABD5D13Bdisplaylang=en
  
   It should be enough.
  
   Regards,
   Mladen.
  
   -
   To start a new topic, e-mail: users@tomcat.apache.org
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
   Connaught honoured AIM 'Decade of Excellence' Award
  
   Connaught awarded Partnering Contractor of the Year 2005
  
   Connaught wins AIM 'Company of the Year' award 2004
  
   West of England Business of the Year Award Winner 2003
  
   Why not visit our website http://www.connaught.plc.uk
   Disclaimer:
  
   The information transmitted is intended only for the person or entity
  to
   which it is addressed and may contain confidential and/or privileged
   material. Any review, retransmission, dissemination or other use of,
 or
   taking of any action in reliance upon, this information by persons or
   entities other than the intended recipient is prohibited. If you
  received
   this in error, please contact the sender and delete this message.
  
  
  
   Connaught plc, Head Office 01392 444546
  
   -
   To start a new topic, e-mail: users@tomcat.apache.org
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/Tomcat-5.5-and-x64-Windows-tp8430335p20310083.html
  Sent from the Tomcat - User mailing list archive at Nabble.com.
 
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 

 --
 View this message in context:
 http://www.nabble.com/Tomcat-5.5-and-x64-Windows-tp8430335p20310418.html
  Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Tomcat 5.5 and x64 Windows

2008-11-03 Thread Serge Fonville
I googled for tomcat 5.5 x64 (without the quotes)
And at the second result I found
http://svn.apache.org/viewvc/tomcat/connectors/trunk/procrun/bin/
Hope this helps
On Mon, Nov 3, 2008 at 9:55 PM, André Warnier [EMAIL PROTECTED] wrote:

 Hi guys.
 Sorry to talk out of turn maybe, but if you do not know this already, two
 bits of information :
 - tomcat5/6.exe and tomcat5/6w.exe are but renamed versions of what you
 find in Apache Commons Daemon (prunsrv and ...).  Somewhere around there may
 lurk 64-bit versions of these programs.
 - I seem to remember a thread earlier (within the last month or so) in this
 forum where one of the luminaries (Mark or Chuck or..) indicated some
 location where a 64-bit version of these programs could be obtained on the
 Tomcat site.

 HTH



 Serge Fonville wrote:

 A XEON has the same instruction set (both emt64)
 Where exactly did you download the exe?


 On Mon, Nov 3, 2008 at 9:43 PM, robainp [EMAIL PROTECTED] wrote:

 near about the same. i am running windows server on xeon 64bit though, I
 think thats where the problem is. which processor are you running? is
 there
 a build for xeon 64bit that I can download somehwere ?

 jdk 64 1.5.0_15
 tomcat5.5 zip
 download tomcat5.5 amd64
 tomcat5.exe wont run

 error i get.
 [2008-11-03 14:40:56] [427  prunsrv.c] [error]
 The system cannot find the file specified.
 [2008-11-03 14:40:56] [1336 prunsrv.c] [error]
 Load configuration failed




 Serge Fonville wrote:

 Hi,

 I have tomcat running on Windows Vista Home Premium x64 in native
 64-bit.
 Heres what I did:
 Installed x64 jdk 5
 Downloaded the tomcat zip
 Browsed the svn for the amd64 tomcat6 en tomcat6w EXEs (i used tomcat
 6.0.18)
 then installed the service as normal: service install
 What exactly have you done?

 Regards,

 Serge Fonville
 On Mon, Nov 3, 2008 at 9:24 PM, robainp [EMAIL PROTECTED] wrote:

 Have the same problem.
 want to install tomcat service on windows 64 running on xeon processor.

 installed the microsoft library



 http://www.microsoft.com/downloads/details.aspx?familyid=90548130-4468-4BBC-9673-D6ACABD5D13Bdisplaylang=en

 also downloaded amd64 tomcat files.
 but still cannot run the tomcat5.exe files.

 any ideas?

 Thanks




 Darren Kukulka wrote:

 Martin/Mladen,

 I ended up installing .Net Framework 2.0 x64 as this was the

 prescribed

  method for resolving large numbers of Error 32 and 59 messages within

 the

 Windows system log.

 Mladen is probably right that the msvcrt80 runtime is the crux of the

 fix

 for this but for now I'm just happy that it works!

 Martin - I only have .Net 2.0 x64 installed on my system.

 Darren.

 -Original Message-
 From: Mladen Turk [mailto:[EMAIL PROTECTED]
 Sent: 25 January 2007 07:03
 To: Tomcat Users List
 Subject: Re: Tomcat 5.5 and x64 Windows

 Martin Skøtt wrote:

 Hi Darren,

 Good to hear that you solved - I hope you will spend a couple of

 minutes

 on providing some extra information.

 You don't actually need the .NET to be installed,
 but rather the msvcrt80 runtime.
 Download
 Microsoft Visual C++ 2005 Redistributable Package (x64)


 http://www.microsoft.com/downloads/details.aspx?familyid=90548130-4468-4BBC-9673-D6ACABD5D13Bdisplaylang=en

  It should be enough.

 Regards,
 Mladen.

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 Connaught honoured AIM 'Decade of Excellence' Award

 Connaught awarded Partnering Contractor of the Year 2005

 Connaught wins AIM 'Company of the Year' award 2004

 West of England Business of the Year Award Winner 2003

 Why not visit our website http://www.connaught.plc.uk
 Disclaimer:

 The information transmitted is intended only for the person or entity

 to

 which it is addressed and may contain confidential and/or privileged
 material. Any review, retransmission, dissemination or other use of,

 or

  taking of any action in reliance upon, this information by persons or
 entities other than the intended recipient is prohibited. If you

 received

 this in error, please contact the sender and delete this message.



 Connaught plc, Head Office 01392 444546

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 --
 View this message in context:


 http://www.nabble.com/Tomcat-5.5-and-x64-Windows-tp8430335p20310083.html

 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 --
 View this message in context:
 http://www.nabble.com/Tomcat-5.5-and-x64-Windows

Re: Custom Error Messages (5xx and 4xx)

2008-11-03 Thread Serge Fonville
Hi,

Look at http://java.sun.com/developer/EJTechTips/2003/tt0114.html,
especially the text
The string isErrorPage=true causes the Web container to define a new
implicit variable, exception, that the JSP page can use in scriptlets or
in custom tags. For example, the error page for the current example uses the
exception object to report the name of the class that caused the
exception:
Basically when at the top of the jsp you specify isErrorPage=true, you have
a variable exception that contains the thrown exception

Hope this helps

Regards,

Serge Fonville
On Mon, Nov 3, 2008 at 10:31 PM, Rob Mercer [EMAIL PROTECTED]wrote:

 Hey all,

I'm trying to setup custom error messages in Tomcat
 6.0.14. I've got the following entry in web.xml:



 !-- Error configuration  --

  error-page

error-code404/error-code

location/error_pages/404.jsf/location

  /error-page



  error-page

error-code500/error-code

location/error_pages/500.jsf/location

  /error-page

 



 And I've got a much less scary set of pages setup but I was wondering if
 there was a way to get the stack trace and error message information to
 shoot to the support team if the user clicked an email the support team
 about this error message.  Any ideas on how I'd go about that?



 Additionally, is there a way to setup a 5xx page? Just a page that
 handled all 500 pages? Like a web.xml shorthand?





 Thanks ahead of time!



 Rob M




Re: How to find tomcat's- window service parameters

2008-10-31 Thread Serge Fonville
Hi,
All options that are passed to tomcat can be configured through catalina.bat
Also, if you enable jmx you can monitor the details you specified.
By executing tomcat[major]w.exe you get an application that interfaces with
tomcat to show information (including a few things you asked)
if all you want to do is increase the heap size, this can be done in
catalina.bat by adding -Xms and -Xmx to the java_opts

Any additional information about your environment would be helpful to answer
your questions

Regards,

Serge Fonville

On Fri, Oct 31, 2008 at 11:12 AM, Thangavel Sankaranarayanan 
[EMAIL PROTECTED] wrote:


 Hi All,


 I have a tomcat on a windows2000 server .
 It is run as a window service.

 I want to find the service parameters like.My main idea is that i want to
 increase the heap size of JVM.








   service_name:   The name of the service.
   jvm_library:The location of the JVM DLL under which to run the
   service.
   jvm_option: An option to use when starting the JVM, such as:
   -Djava.class.path=c:\classes or -Xmx128m.
   start_class:The class to load when starting the service.
   start_method:   The method to call in the start_class. default: main
   start_parameter:A parameter to pass in to the start_method.
   stop_class: The class to load when stopping the service.
   stop_method:The method to call in the stop_class. default: main
   stop_parameter: A parameter to pass in to the stop_method.
   out_log_file:   A file to redirect System.out into.
   err_log_file:   A file to redirect System.err into.
   current_dir:The current working directory for the service.
   Relative paths will be relative to this directory.
   extra_path: Path additions, for native DLLs etc.








 Regards,
 Thangavel Sankaranarayanan.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Problem to install APR Tomcat Native Library

2008-10-31 Thread Serge Fonville
In tomcat 6 you need to specify an executor to define minSpareThreads
and maxSpareThreads (altough this isn't required, IIRC/AFAIK)
http://tomcat.apache.org/tomcat-6.0-doc/config/http.html(search
for executor)
http://tomcat.apache.org/tomcat-6.0-doc/config/executor.html

Regards,

Serge Fonville

On Fri, Oct 31, 2008 at 4:45 PM, Juha Laiho [EMAIL PROTECTED] wrote:

 [EMAIL PROTECTED] wrote:
  However I get the following warnings when starting up Tomcat:
 
  WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting
 property 'minSpareThreads' to '25' did not find a matching property.
  Oct 31, 2008 1:04:09 PM org.apache.catalina.startup.SetAllPropertiesRule
 begin
  WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting
 property 'maxSpareThreads' to '75' did not find a matching property.
  Oct 31, 2008 1:04:09 PM org.apache.catalina.startup.SetAllPropertiesRule
 begin
 
  So it seems these properties are not supported by the APR protocol, but I
 can't confirm that reading the documentation. Also, the example for the APR
 SSL connector at
 
  http://tomcat.apache.org/tomcat-6.0-doc/apr.html#HTTPS
 
  includes these properties:
 
  Connector port=443 maxHttpHeaderSize=8192
 maxThreads=150 minSpareThreads=25 maxSpareThreads=75
 enableLookups=false disableUploadTimeout=true
 acceptCount=100 scheme=https secure=true
 SSLEnabled=true
 SSLCertificateFile=${catalina.base}/conf/localhost.crt
 
  SSLCertificateKeyFile=${catalina.base}/conf/localhost.key /
 
  So why do I get these warnings? Should I remove the minSpareThreads and
 minSpareThreads properties or replace them by other ones?

 It looks like the documentation has been left unchanged from Tomcat 5.5.

 If you compare the HTTP connector configuration parameters described in
 Tomcat 5.5 and Tomcat 6.0 documentation, you'll see that those two
 parameters do exist in 5.5 documentation, but not in 6.0 documentation:
 http://tomcat.apache.org/tomcat-5.5-doc/config/http.html
 http://tomcat.apache.org/tomcat-6.0-doc/config/http.html

 However, I didn't see in changelog a mention about these two having been
 removed, but apparently they no longer exist.
 --
 ..Juha

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Problem to install APR Tomcat Native Library

2008-10-31 Thread Serge Fonville
Thanks, I didn't know that.
I stand corrected

Regards,

Serge Fonville


On Fri, Oct 31, 2008 at 6:06 PM, Caldarale, Charles R 
[EMAIL PROTECTED] wrote:

  From: Serge Fonville [mailto:[EMAIL PROTECTED]
  Subject: Re: Problem to install APR Tomcat Native Library
 
  In tomcat 6 you need to specify an executor to define minSpareThreads
  and maxSpareThreads (altough this isn't required, IIRC/AFAIK)
  http://tomcat.apache.org/tomcat-6.0-doc/config/http.html(search
  for executor)
  http://tomcat.apache.org/tomcat-6.0-doc/config/executor.html

 Not true; the plan was to migrate thread pool usage from connectors to
 executors, but most of the 6.0 connectors still support the min and max
 thread settings - with the exception of the APR connector, which (AFAICT)
 has actually never supported the attributes.  The 6.0 doc was updated
 prematurely.

 Note this message about performance problems with Executor, from one of
 the main contributors:
 http://marc.info/?l=tomcat-userm=118002259402411w=2

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-30 Thread Serge Fonville
You can define a CATALINA_HOME/BASE in the startup file(catalina.bat/sh).
(all it does now is use the global environment variable because it isn't
specified inside the file)You could define a HOME1 and HOME2 variable, but
that would require a lot more changes inside the startup file.

To be sure, specify it near the top (before used)
That way the alternate value only applies inside that instance

Does this help?

Regards,

Serge Fonville

On Wed, Oct 29, 2008 at 8:16 PM, dOE [EMAIL PROTECTED] wrote:

 Guys, please don't give up on me yet, I am going to go read up on the
 documentation tonight to see what else I need to do to get this site
 working.

 I think my focus will be more for the Win32 rather 'nix because it more of
 a
 priority.

 On Wed, Oct 29, 2008 at 2:17 PM, dOE [EMAIL PROTECTED] wrote:

  Now this needs to be replicated on a Win32 system as well following this
  how can this be done?  The service can not be started by a command-line
  script (ideally).
 
 
  On Wed, Oct 29, 2008 at 2:02 PM, Hassan Schroeder 
  [EMAIL PROTECTED] wrote:
 
  On Wed, Oct 29, 2008 at 10:23 AM, dOE [EMAIL PROTECTED] wrote:
 
   perhaps this is where my problem is at this stage.  I would need a
   Catalina_Home2 and have that pointing to *server2 *...? I am
 guessing,
  but
   would this mean I need to edit every mention of Catalina_Home to
   Catalina_Home2 in the *.properties files?
 
  No, just start the second instance from a shell with the appropriate
  value for CATALINA_HOME defined.
 
  --
  Hassan Schroeder  [EMAIL PROTECTED]
 
 
 



Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-30 Thread Serge Fonville
If you have two completely separate installations, you should specify a
catalina home in the batch file that starts the instance, if just the config
an apps are separate, specify a catalina base in the startup fileAlso you
could use http://www.linuxjournal.com/article/8561 for a more step by step
approach to configuring multiple instances
You should be able to create a service for each instance (specify the
service name with the service.bat)
I found all the links so far by googling for 'tomcat multiple instances
windows' (without the quotes)

Regards,

Serge Fonville

On Thu, Oct 30, 2008 at 12:37 PM, dOE [EMAIL PROTECTED] wrote:

 Thanks for the reply Serge,

 On Win32 I have the CATALINA_HOME set to pont to where Tomcat is installed,
 and were server1 resides.  To configure CATALINA_BASE the same way, but
 pont
 to another directory that ONLY contains *conf*, *webapps*, *logs*, *temp*,
 and *work*?  What would need to be in the conf - *server.xml*, *web.xml*,
 and possibly *tomcat-users.xml*?

 On Thu, Oct 30, 2008 at 3:45 AM, Serge Fonville [EMAIL PROTECTED]
 wrote:

  You can define a CATALINA_HOME/BASE in the startup file(catalina.bat/sh).
  (all it does now is use the global environment variable because it isn't
  specified inside the file)You could define a HOME1 and HOME2 variable,
 but
  that would require a lot more changes inside the startup file.
 
  To be sure, specify it near the top (before used)
  That way the alternate value only applies inside that instance
 
  Does this help?
 
  Regards,
 
  Serge Fonville
 
 
  On Wed, Oct 29, 2008 at 8:16 PM, dOE [EMAIL PROTECTED] wrote:
 
  Guys, please don't give up on me yet, I am going to go read up on the
  documentation tonight to see what else I need to do to get this site
  working.
 
  I think my focus will be more for the Win32 rather 'nix because it more
 of
  a
  priority.
 
  On Wed, Oct 29, 2008 at 2:17 PM, dOE [EMAIL PROTECTED] wrote:
 
   Now this needs to be replicated on a Win32 system as well following
 this
   how can this be done?  The service can not be started by a
 command-line
   script (ideally).
  
  
   On Wed, Oct 29, 2008 at 2:02 PM, Hassan Schroeder 
   [EMAIL PROTECTED] wrote:
  
   On Wed, Oct 29, 2008 at 10:23 AM, dOE [EMAIL PROTECTED] wrote:
  
perhaps this is where my problem is at this stage.  I would need a
Catalina_Home2 and have that pointing to *server2 *...? I am
  guessing,
   but
would this mean I need to edit every mention of Catalina_Home to
Catalina_Home2 in the *.properties files?
  
   No, just start the second instance from a shell with the appropriate
   value for CATALINA_HOME defined.
  
   --
   Hassan Schroeder  [EMAIL PROTECTED]
  
  
  
 
 
 



Re: Disjoint Base64 Encoded String

2008-10-29 Thread Serge Fonville
A + is automatically converted to a space.If you want to use base64 either
convert it client side or indeed urlencode it so that it can only be
interpreted as it is intended and no 'intelligent' interpretation is done

Regards,

Serge Fonville

On Wed, Oct 29, 2008 at 2:01 PM, Jeng Yu [EMAIL PROTECTED] wrote:

 Hi Friends,

 I am seeing a problem with my servlet running in
 Tomcat and I'm a bit baffled.

 When I post a base64 encoded string that has a +
 character in it from a client to my servlet (via
 form post), the string becomes disjointed at +
 character making  it two strings. That is, the +
 character gets replaced by a  , which makes the
 string two base64 encoded strings at the servlet
 end.

 I've had to do an ugly hack of scanning the base64
 encoded string first to replace   with + before
 I can decode the original string properly in the
 servlet. There's gotta be a better way!

 Certainly, I'm missing something here. What is it,
 Urlencode it? I thought that is implicitly done.

 Thanks,

 Jeng





 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-29 Thread Serge Fonville
There is an address attribute inside the connector that specifies the
address of the listening socket
http://tomcat.apache.org/tomcat-6.0-doc/config/http.html
http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html

Hope this helps

Regards,

Serge Fonville

On Wed, Oct 29, 2008 at 2:06 PM, dOE [EMAIL PROTECTED] wrote:

 I have a server that I am hosting multiple Tomcat servers from, and the
 issue I am running into is... - I have multiple IP's bound to the servers
 interface, Tomcat _1 has port 8080 specified as its connector port.  The
 second Tomcat_2 has port 8180 set as its conector port in its server.xml,
 but regardless of these custom ports I am only able to reach Tomcat_1
 through 8080, and 8180.  Is it possible to hard code the IP you want that
 particular instance to listen on?



Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-29 Thread Serge Fonville
Place inside a Service elementConnector port=80 protocol=HTTP/1.1
connectionTimeout=2
redirectPort=443
address=127.0.0.1/
and the output of netstat contains an entry for 127.0.0.1:80 instead of the
usual 0.0.0.0:80

Regards,

Serge Fonville

On Wed, Oct 29, 2008 at 2:31 PM, dOE [EMAIL PROTECTED] wrote:

 Serge thanks for the reply...

 so to hard code the IP its just a matter of ONLY adding Connector
 address='
 192.168.1.1'  ?

 The online document site does not give any syntax examples.

 On Wed, Oct 29, 2008 at 9:17 AM, Serge Fonville [EMAIL PROTECTED]
 wrote:

  There is an address attribute inside the connector that specifies the
  address of the listening socket
  http://tomcat.apache.org/tomcat-6.0-doc/config/http.html
  http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html
 
  Hope this helps
 
  Regards,
 
  Serge Fonville
 
  On Wed, Oct 29, 2008 at 2:06 PM, dOE [EMAIL PROTECTED] wrote:
 
  I have a server that I am hosting multiple Tomcat servers from, and the
  issue I am running into is... - I have multiple IP's bound to the
 servers
  interface, Tomcat _1 has port 8080 specified as its connector port.  The
  second Tomcat_2 has port 8180 set as its conector port in its
 server.xml,
  but regardless of these custom ports I am only able to reach Tomcat_1
  through 8080, and 8180.  Is it possible to hard code the IP you want
 that
  particular instance to listen on?
 
 
 



Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-29 Thread Serge Fonville
You say the page not found errors are good...The configuration of the
connectors looks ok
Are there any errors in the logs and have you configured an identiefieable
error page for both instances? (error-page inside web.xml)
That way you can determine which tomcat is serving the error.
Do the other connectors have an address defined
The fact you get a 400 indicates that a tomcat is responding, you now only
have to determine if it is the right one and what causes the error (what
type of content are you serving, static dynamic)


Regards,

Serge Fonville


On Wed, Oct 29, 2008 at 3:49 PM, dOE [EMAIL PROTECTED] wrote:

 Hi Serge,

 Below are the values from both of my server.xml files.  I specified the
 address that the port should listen on, and I am unable to open *
 http://192.168.100.2:8080* (GOOD!).  When I attempt to open *
 http://192.168.100.2:8180* I get a 400, and *http://192.168.100.1:8180*
  the
 request returns Page Cannot Be Found(GOOD!).

 192.168.100.1 has ports 8080, 8009
 192.168.100.2 has ports 8180, 8109

 The correct ports are open, its just that I can not open the site on
 192.168.100.2 through Tomcat.
 Should I have only edited one server.xml, rather than hard coding the IP in
 both?

 (Server 1) 192.168.100.1
 !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
Connector port=8080
maxThreads=150
minSpareThreads=25
maxSpareThreads=75
enableLookups=false
redirectPort=8443
acceptCount=100
debug=0
connectionTimeout=2
disableUploadTimeout=true
address=192.168.100.1 /

 (Server 2) 192.168.100.2
 !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8180 --
Connector port=8180
maxThreads=150
minSpareThreads=25
maxSpareThreads=75
enableLookups=false
redirectPort=8543
acceptCount=100
debug=0
connectionTimeout=2
disableUploadTimeout=true
address=192.168.100.2 /










 On Wed, Oct 29, 2008 at 9:40 AM, Serge Fonville [EMAIL PROTECTED]
 wrote:

  Place inside a Service elementConnector port=80 protocol=HTTP/1.1
  connectionTimeout=2
   redirectPort=443
  address=127.0.0.1/
  and the output of netstat contains an entry for 127.0.0.1:80 instead of
  the usual 0.0.0.0:80
 
  Regards,
 
  Serge Fonville
 
  On Wed, Oct 29, 2008 at 2:31 PM, dOE [EMAIL PROTECTED] wrote:
 
  Serge thanks for the reply...
 
  so to hard code the IP its just a matter of ONLY adding Connector
  address='
  192.168.1.1'  ?
 
  The online document site does not give any syntax examples.
 
  On Wed, Oct 29, 2008 at 9:17 AM, Serge Fonville 
 [EMAIL PROTECTED]
  wrote:
 
   There is an address attribute inside the connector that specifies the
   address of the listening socket
   http://tomcat.apache.org/tomcat-6.0-doc/config/http.html
   http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html
  
   Hope this helps
  
   Regards,
  
   Serge Fonville
  
   On Wed, Oct 29, 2008 at 2:06 PM, dOE [EMAIL PROTECTED] wrote:
  
   I have a server that I am hosting multiple Tomcat servers from, and
 the
   issue I am running into is... - I have multiple IP's bound to the
  servers
   interface, Tomcat _1 has port 8080 specified as its connector port.
   The
   second Tomcat_2 has port 8180 set as its conector port in its
  server.xml,
   but regardless of these custom ports I am only able to reach Tomcat_1
   through 8080, and 8180.  Is it possible to hard code the IP you want
  that
   particular instance to listen on?
  
  
  
 
 
 



Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-29 Thread Serge Fonville
You seem to be missing libraries.Have you defined separate catalina_bases
for each instance
and are all the required libs in the classpath
Have you read 
http://azeditech.com/tomcat/multiple-tomcat-instances.html;http://azeditech.com/tomcat/multiple-tomcat-instances.html

Any additional information about your environment would be nice.

Regards,

Serge Fonville

P.s. just a note, please do not use caps, it greatly reduces the readability
;-)

On Wed, Oct 29, 2008 at 5:19 PM, dOE [EMAIL PROTECTED] wrote:

 You say the page not found errors are good...
 *IT IS GOOD BECAUSE IT TELLS ME THE SERVER IS BEING HIT.  PRIOR TO YOUR
 HELP
 THE WRONG SERVER WAS OPENING ON ALL PORTS AND IP's NO LONGER THE CASE.
 *
 The configuration of the connectors looks ok

 Are there any errors in the logs and have you configured an identifiable
 error page for both instances? (error-page inside web.xml)

 *THE ERROR LOG IS BARK ABOUT: *StandardContext[/balancer]Exception
 starting filter BalancerFilter  java.lang.NoClassDefFoundError:
 org/apache/commons/digester/Digester* (UNRELATED).   THE SERVER (server 2)
 IS NOT SERVING ANY PAGES, TRIED TO VIEW A GIF THROUGH URL AND IT WOULD NOT
 LOAD.  HONESTLY DO NOT HAVE THE SKILLS TO FIGURE OUT HOW TO GET
 ERROR-PAGE
 TO WORK RIGHT.*

 That way you can determine which tomcat is serving the error.

 Do the other connectors have an address defined
 *CONNECTORS I ASSUME YOU ARE REFERRING TO ARE PORTS 8009, AND 8109, BOTH
 HAVE ADDRESSES HARD CODED IN SERVER.XML*.

 The fact you get a 400 indicates that a tomcat is responding, you now only
 have to determine if it is the right one and what causes the error (what
 type of content are you serving, static dynamic)

 *I AM SITES ARE ALL JSP PAGES (I BELIEVE THAT TEY ARE ALL DYNAMIC) not a
 web dev*


 On Wed, Oct 29, 2008 at 11:03 AM, Serge Fonville
 [EMAIL PROTECTED]wrote:

  You say the page not found errors are good...The configuration of the
  connectors looks ok
  Are there any errors in the logs and have you configured an identifiable
  error page for both instances? (error-page inside web.xml)
  That way you can determine which tomcat is serving the error.
  Do the other connectors have an address defined
  The fact you get a 400 indicates that a tomcat is responding, you now
 only
  have to determine if it is the right one and what causes the error (what
  type of content are you serving, static dynamic)
 
 
  Regards,
 
  Serge Fonville
 
 
  On Wed, Oct 29, 2008 at 3:49 PM, dOE [EMAIL PROTECTED] wrote:
 
  Hi Serge,
 
  Below are the values from both of my server.xml files.  I specified the
  address that the port should listen on, and I am unable to open *
  http://192.168.100.2:8080* (GOOD!).  When I attempt to open *
  http://192.168.100.2:8180* I get a 400, and *http://192.168.100.1:8180*
   the
  request returns Page Cannot Be Found(GOOD!).
 
  192.168.100.1 has ports 8080, 8009
  192.168.100.2 has ports 8180, 8109
 
  The correct ports are open, its just that I can not open the site on
  192.168.100.2 through Tomcat.
  Should I have only edited one server.xml, rather than hard coding the IP
  in
  both?
 
  (Server 1) 192.168.100.1
  !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
 Connector port=8080
 maxThreads=150
 minSpareThreads=25
 maxSpareThreads=75
 enableLookups=false
 redirectPort=8443
 acceptCount=100
 debug=0
 connectionTimeout=2
 disableUploadTimeout=true
 address=192.168.100.1 /
 
  (Server 2) 192.168.100.2
  !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8180 --
 Connector port=8180
 maxThreads=150
 minSpareThreads=25
 maxSpareThreads=75
 enableLookups=false
 redirectPort=8543
 acceptCount=100
 debug=0
 connectionTimeout=2
 disableUploadTimeout=true
 address=192.168.100.2 /
 
 
 
 
 
 
 
 
 
 
  On Wed, Oct 29, 2008 at 9:40 AM, Serge Fonville 
 [EMAIL PROTECTED]
  wrote:
 
   Place inside a Service elementConnector port=80
 protocol=HTTP/1.1
   connectionTimeout=2
redirectPort=443
   address=127.0.0.1/
   and the output of netstat contains an entry for 127.0.0.1:80 instead
 of
   the usual 0.0.0.0:80
  
   Regards,
  
   Serge Fonville
  
   On Wed, Oct 29, 2008 at 2:31 PM, dOE [EMAIL PROTECTED] wrote:
  
   Serge thanks for the reply...
  
   so to hard code the IP its just a matter of ONLY adding Connector
   address='
   192.168.1.1'  ?
  
   The online document site does not give any syntax examples.
  
   On Wed, Oct 29, 2008 at 9:17 AM, Serge Fonville 
  [EMAIL PROTECTED]
   wrote:
  
There is an address attribute inside the connector that specifies
 the
address of the listening socket
http://tomcat.apache.org/tomcat-6.0-doc/config/http.html
http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html
   
Hope this helps
   
Regards,
   
Serge Fonville
   
On Wed, Oct 29, 2008 at 2:06 PM, dOE [EMAIL PROTECTED] wrote:
   
I have a server that I am hosting

Re:

2008-10-28 Thread Serge Fonville
You can build it on windows, since ant for windows can be downloaded the
same as for any other platform it is available for
the fact tomcat was installed as a service has no impact on what can and
can't be loaded inside tomcat
since tomcat loads it's configuration file on startup and has all libraies
in its classpath avaiable to it.
the rest can be found on the tomcat website about logging (which yoiu
clearly already found)

Perhaps you got a specific error during building.
If so, what was it and what steps did you take (before,during,after)

Regards,

Serge Fonville
On Tue, Oct 28, 2008 at 11:17 AM, Hisham Farahat [EMAIL PROTECTED]wrote:

 I have used Softerra LDAP Admin and it worked while tomcat did not.

 How can i increase the verbosity ? i tried to configure log4j, but i could
 not build the extra component (extra.xml) because i'm on windows machine
 and
 i've installed tomcat using windows service installer.
 Any ideas?

 thanks for your help!! *using windows service instdalle**log4jl*

 On Mon, Oct 27, 2008 at 1:13 PM, Serge Fonville [EMAIL PROTECTED]
 wrote:

  Perhaps if you download Symas OpenLDAP 2.3 (CDS v3) Silver
  Editionjavascript:uiform_click('xanchor_2212_5') (Requires
  registration) (an ldap server for windows), you can use the accompanying
  uilities to try and do the same tomcat does.That way you can try to
  determine if there is anything related to the configuration that is
  incorrect.
  Also if you increase the verbosity of the
  logginghttp://tomcat.apache.org/tomcat-6.0-doc/logging.htmlyou might
   be able to determine what exactly went wrong.
 
  Hope this helps
 
  Regards,
 
  Serge Fonville
 
  Links:
 
 
  On Mon, Oct 27, 2008 at 10:33 AM, Hisham Farahat 
 [EMAIL PROTECTED]
  wrote:
 
   It is on a separate server, running windows server 2003.
   And no wrong passwords attempts, it happens from the 1st attempt.
  
   Sorry for the title thing :)
  
   On Mon, Oct 27, 2008 at 12:20 PM, André Warnier [EMAIL PROTECTED] wrote:
  
Hisham Farahat wrote:
   
 Dear All,
I have a problem with my web application. I configured tomcat 6.0 to
authenticate users through Realm ( LDAP), it connects to an active
directory
server. Everything seems OK, but sometimes the connection could not
 be
established ( Connection refused ) and it continues with this state
  for
   ~
10
minutes. Stopping and starting tomcat again won't affect anything, I
should
restart the machine so that users can access the web application
   normally
(
or just wait for 10 minutes). How can I solve this problem?
Regards,
   
   
As someone else asked, you need to provide some additional details,
  such
   as
:
- is this Tomcat running on your workstation ? else on what ?
   
With only the explanation above, I would guess that the LDAP server
   somehow
(maybe after a few unsuccesful attempts with bad passwords ?), puts
  your
Tomcat server on some blacklist, and refuses connections from it.
Maybe when you reboot the machine, it gets a different IP address and
  is
thus no longer on the blacklist at first ?
   
It does not sound like a specific Tomcat issue though.
   
   
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
  
   --
   Hisham Farahat
  
 



 --
 Hisham Farahat



Re:

2008-10-28 Thread Serge Fonville
I would start looking at the logs of the AD server
It seems the AD server has refused the connection, so maybe there is a more
clear error there
I meant the errors you had when building commons for log4j (since you said
you couldn't build it)
Have you tried manually connecting to the AD server with a commandline LDAP
client
Perhaps you can try to telnet to the address you connect to
Since these errors at this time not yet make sense, perhaps it is advisable
to run wireshark on the AD server and perform a netstat to verify sockets
are listeneing as you would expect.
Is the tomcat host and the AD server the same system (have you tried on
another system) windows has it quirks(not being able to connecto to the
local IP for example
Regards,

Serge Fonville
On Tue, Oct 28, 2008 at 1:13 PM, Hisham Farahat [EMAIL PROTECTED]wrote:

 Ok, i used the normal logger with ALL messages showing out, here is the
 part
 of the log where the error occurred:

 Oct 28, 2008 2:21:07 PM org.apache.catalina.realm.JNDIRealm getRoles
 FINER:   Found role Infonet-Admins
 Oct 28, 2008 2:24:07 PM org.apache.catalina.core.StandardHostValve custom
 FINE: Processing ErrorPage[errorCode=401, location=/401.jsp]
 Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm getUserBySearch
 FINER:   entry found for tomcat with dn
 CN=tomcat,CN=Users,DC=company,DC=com
 Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm bindAsUser
 FINER:   validating credentials by binding as the user
 Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm bindAsUser
 FINER:   binding as CN=tomcat,CN=Users,DC=company,DC=com
 Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm
 checkCredentials
 FINER: Username tomcat successfully authenticated
 Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm getRoles
 FINER:   getRoles(CN=tomcat,CN=Users,DC=company,DC=com)
 Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm
 addAttributeValues
 FINER:   retrieving values for attribute description
 Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm
 addAttributeValues
 FINER:   retrieving values for attribute description
 Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm
 addAttributeValues
 FINER:   retrieving values for attribute description
 Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm getRoles
 FINER:   Returning 3 roles
 Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm getRoles
 FINER:   Found role admin
 Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm getRoles
 FINER:   Found role manager
 Oct 28, 2008 2:24:13 PM org.apache.catalina.realm.JNDIRealm getRoles
 FINER:   Found role Infonet-Admins
 Oct 28, 2008 2:33:22 PM org.apache.catalina.core.ApplicationDispatcher
 doForward
 FINE:  Disabling the response for futher output
 Oct 28, 2008 2:33:26 PM org.apache.catalina.realm.JNDIRealm authenticate
 SEVERE: Exception performing authentication
 javax.naming.PartialResultException [Root exception is
 javax.naming.CommunicationException: company.com:389 [Root exception is
 java.net.ConnectException: Connection refused: connect]]
at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(Unknown Source)
at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreReferrals(Unknown
 Source)
at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(Unknown Source)
at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreReferrals(Unknown
 Source)
at com.sun.jndi.ldap.LdapNamingEnumeration.hasMoreImpl(Unknown Source)
at com.sun.jndi.ldap.LdapNamingEnumeration.hasMore(Unknown Source)
at
 org.apache.catalina.realm.JNDIRealm.getUserBySearch(JNDIRealm.java:1097)
at org.apache.catalina.realm.JNDIRealm.getUser(JNDIRealm.java:992)
at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:941)
at org.apache.catalina.realm.JNDIRealm.authenticate(JNDIRealm.java:810)
at

 org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:258)
at

 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:417)
at

 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at

 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at

 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at

 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
 Caused by: javax.naming.CommunicationException: company.com:389 [Root
 exception is java.net.ConnectException: Connection refused: connect]
at com.sun.jndi.ldap.LdapReferralContext.init(Unknown Source

Re:

2008-10-27 Thread Serge Fonville
I would need a little bit more information about your environment

Have you looked at te loggingHow is your network functioning
How is the realm configured
Has it always been like this or at some point
Are there specific times of day it occurs
How is the memory usage of tomcat
How busy is tomcat
What OS is it running on
Can you use ldap manually without errors

Regards,

Serge Fonville


On Mon, Oct 27, 2008 at 9:18 AM, Hisham Farahat [EMAIL PROTECTED]wrote:

  Dear All,
 I have a problem with my web application. I configured tomcat 6.0 to
 authenticate users through Realm ( LDAP), it connects to an active
 directory
 server. Everything seems OK, but sometimes the connection could not be
 established ( Connection refused ) and it continues with this state for ~
 10
 minutes. Stopping and starting tomcat again won't affect anything, I should
 restart the machine so that users can access the web application normally (
 or just wait for 10 minutes). How can I solve this problem?
 Regards,
 --
 Hisham Farahat



Re:

2008-10-27 Thread Serge Fonville
Perhaps if you download Symas OpenLDAP 2.3 (CDS v3) Silver
Editionjavascript:uiform_click('xanchor_2212_5') (Requires
registration) (an ldap server for windows), you can use the accompanying
uilities to try and do the same tomcat does.That way you can try to
determine if there is anything related to the configuration that is
incorrect.
Also if you increase the verbosity of the
logginghttp://tomcat.apache.org/tomcat-6.0-doc/logging.htmlyou might
be able to determine what exactly went wrong.

Hope this helps

Regards,

Serge Fonville

Links:


On Mon, Oct 27, 2008 at 10:33 AM, Hisham Farahat [EMAIL PROTECTED]wrote:

 It is on a separate server, running windows server 2003.
 And no wrong passwords attempts, it happens from the 1st attempt.

 Sorry for the title thing :)

 On Mon, Oct 27, 2008 at 12:20 PM, André Warnier [EMAIL PROTECTED] wrote:

  Hisham Farahat wrote:
 
   Dear All,
  I have a problem with my web application. I configured tomcat 6.0 to
  authenticate users through Realm ( LDAP), it connects to an active
  directory
  server. Everything seems OK, but sometimes the connection could not be
  established ( Connection refused ) and it continues with this state for
 ~
  10
  minutes. Stopping and starting tomcat again won't affect anything, I
  should
  restart the machine so that users can access the web application
 normally
  (
  or just wait for 10 minutes). How can I solve this problem?
  Regards,
 
 
  As someone else asked, you need to provide some additional details, such
 as
  :
  - is this Tomcat running on your workstation ? else on what ?
 
  With only the explanation above, I would guess that the LDAP server
 somehow
  (maybe after a few unsuccesful attempts with bad passwords ?), puts your
  Tomcat server on some blacklist, and refuses connections from it.
  Maybe when you reboot the machine, it gets a different IP address and is
  thus no longer on the blacklist at first ?
 
  It does not sound like a specific Tomcat issue though.
 
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Hisham Farahat



Re: Tomcat server with two websites with two different authentications

2008-10-27 Thread Serge Fonville
In Tomcat there is already a host defined (localhost)Copy that block and you
have a new host (change the path though)
And look at the docs about realms, virtual hosts, engine and services and
their nesting

Regards,

Serge Fonville

On Mon, Oct 27, 2008 at 12:09 PM, Hisham Farahat [EMAIL PROTECTED]wrote:

 Thanks for your reply.
 How can i configure the virtual hosts in tomcat?

 On Mon, Oct 27, 2008 at 1:49 PM, Tim Funk [EMAIL PROTECTED] wrote:

  You need to configure a Realm per Virtual Host (or if different webapps
 in
  the same vhost need different authentication schemes - the Realm element
 can
  be per context too)
 
  http://tomcat.apache.org/tomcat-6.0-doc/config/realm.html
 
  -Tim
 
  Hisham Farahat wrote:
 
  Dear All,
  Can i configure tomcat to host to different websites? How can i do it?
 any
  directions?
  Moreover i need to have two different authentication methods for the two
  websites, (e.g. one using LDAP and the other using normal tomcat user
 list
  (
  tomcat-users.xml)
 
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Hisham Farahat



Re: Tomcat Cluster and NFS mounted webapp

2008-10-27 Thread Serge Fonville
Even though I have little experience with tomcat clusteringFor this
situation I would specify one work directory in the config files (located on
nfs) that points to a local directory
that way everything can be shared except the work directory

Hope this helps

Regards,

Serge Fonville

On Mon, Oct 27, 2008 at 5:16 PM, forum123 [EMAIL PROTECTED] wrote:



 markt-2 wrote:
 
 
  Sharing the bin, common, server, shared and webapps directories is fine.
  Sharing conf could be OK if you are careful
  Sharing logs, temp and work is likely to cause problems.
 
  Did you look into using CATALINA_HOME/CATALINA_BASE?
 
 

 Yes, we use CATALINA_HOME/CATALINA_BASE to have the Tomcat binaries
 installed in a separate location while the current instance in another
 location.

 How do I set so that just the work directory is different per instance?
 There's probably a catalina variable for this?  Haven't found it...

 I can write a small startup script that will determine the hostname and use
 a different work (in the same CATALINA_BASE) directory but different name
 like work1 and work2.  Each app server would get its own work
 directory.
 --
 View this message in context:
 http://www.nabble.com/Tomcat-Cluster-and-NFS-mounted-webapp-tp20176721p20190968.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Question about Tomcat context

2008-10-24 Thread Serge Fonville
Hi Jerome.

If you save everything that is specific to the context in that context, they
operate as separate.
Regards,

Serge Fonville

On Fri, Oct 24, 2008 at 12:02 PM, Jerome Lepage - AKEROZ 
[EMAIL PROTECTED] wrote:


 Hi, Thanks for quick answers

 My app is a Cms
 The sources, wars, deploy method is the same.
 Only a Environement String (pointing to a specific config dir) is
 différent with Context.

 I don't want to they share anything at all, because is not same customers
 for each context.
 So for security reason, i don't want to share (even i loose memory and
 space).

 My customers don't have access to tomcat at all (except the app off
 course).
 I will deploy, upgrade, remove, etc.. so if easyer it's better, but i don't
 really care about that.

 I have already separate context for previous version of my app.
 But i'm (was) not sure for sharing rules of tomcat in Singleton or
 Hibernate case.
 (Because the goal of a singleton by definition is to have unique instance)
 I was affraid in test, who i have see my Log4J logs in wrong directory
 (maybe it's because is in common/lib dir)

 So if i understand well, if the library(s) is not in common/lib but in
 WEB-INF/lib they don't share context ?

 Thanks again for your time and answers..

 Jerome Lepage
 AKEROZ


 - Original Message -
 From: Serge Fonville [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Friday, October 24, 2008 11:37 AM
 Subject: Re: Question about Tomcat context


 First a few questions;
 What does the app do
 Do the deployed applications differ
 What is the reason you want them separate
 Do they share anything, reaml,db,files,
 Do you need to be able to update them easily (all in one go)
 How do you intend to deploy them, war, copy, remote
 Is it an option to upgrade to Tomcat 6.0

 That said:

 By simply copying the same files to different contexts you have the same
 application available multiple times under different URLs.

 Regards,

 Serge Fonville

 On Fri, Oct 24, 2008 at 11:25 AM, Jerome Lepage - AKEROZ 
 [EMAIL PROTECTED] wrote:

 
  Hi @ll,
 
  I have developped a web application on Tomcat (5.0.28).
  My webapp use Hibernate 3 and i have a Singleton pattern too.
 
  I want have my webapp deployed N time in same Tomcat Server.
  But i don't want to share context, hibernate and Singleton from one
 webapp
  to other.
  (Like database access is not the same)
 
  I have see in tomcat doc, the share context parameters but i don't have
  tried at this time.
  (Or maybe in différent tomcat vhost)
 
  My question is, is it possible or not, and if yes how (almost a direction
  or a clue will be perfect).
 
  Thanks by advance for your time.
 
  Jerome Lepage
  AKEROZ



Re: Question about Tomcat context

2008-10-24 Thread Serge Fonville
First a few questions;
What does the app do
Do the deployed applications differ
What is the reason you want them separate
Do they share anything, reaml,db,files,
Do you need to be able to update them easily (all in one go)
How do you intend to deploy them, war, copy, remote
Is it an option to upgrade to Tomcat 6.0

That said:

By simply copying the same files to different contexts you have the same
application available multiple times under different URLs.

Regards,

Serge Fonville

On Fri, Oct 24, 2008 at 11:25 AM, Jerome Lepage - AKEROZ 
[EMAIL PROTECTED] wrote:


 Hi @ll,

 I have developped a web application on Tomcat (5.0.28).
 My webapp use Hibernate 3 and i have a Singleton pattern too.

 I want have my webapp deployed N time in same Tomcat Server.
 But i don't want to share context, hibernate and Singleton from one webapp
 to other.
 (Like database access is not the same)

 I have see in tomcat doc, the share context parameters but i don't have
 tried at this time.
 (Or maybe in différent tomcat vhost)

 My question is, is it possible or not, and if yes how (almost a direction
 or a clue will be perfect).

 Thanks by advance for your time.

 Jerome Lepage
 AKEROZ


Re: Obfuscating a Servlet

2008-10-24 Thread Serge Fonville
Hi,
Obfuscation makes it harder to reverse engineer your code, nothing more.
If your code is of interest, there a people who can reverse engineer it.
If you want to make sure people can't read your code.
Use a wrapper to encrypt it and decrypt it through a value you can provide
through the context.
Combining these would prove even more effective.
Still if it can be executed at some time it will be bytecode and can be
decompiled as such.
Preventing others to read the code has usually more to do with good
protection on OS level and storing source in a safe place.

Hope this helps

Regards,

Serge

On Fri, Oct 24, 2008 at 12:28 PM, Jeng Yu [EMAIL PROTECTED] wrote:

 Hi All,

 I just wanted to know if I can first obfuscate my
 selvlet
 with ProGuard before I deploy it in Tomcat
 environment.

 Will doing this really protect my servlet and make it
 really difficult for someone to reverse engineer or
 decompile it, as people seem to say?

 Thank you.

 Jeng




 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Are multiple contexts of the same code code base visible to each other?

2008-10-24 Thread Serge Fonville
Unless specifically coded to do so, no thread can talk to another by default
since there is no way of talking to another instance with an unknown name or
identifier

On Fri, Oct 24, 2008 at 7:09 PM, Jonathan Mast
[EMAIL PROTECTED]wrote:

 Suppose I have 1 webapp named code-stuff that sits in my webapps
 directory.  Now lets say i set up 2 subdomains of my website,
 foo.mysite.comand
 bar.mysite.com and each have an context that points to code-stuff.  Will
 code in these two contexts be visible to each other?  I know Tomcat copies
 to its work/ directory to 2 copies of code-stuff, but I want to know
 whether
 in memory, Tomcat has 2 separate instances of code-stuff running?

 Tomcat 5.5
 Java 1.4.2

 Thanks,
 jhm



Re: SSL Host

2008-10-10 Thread Serge Fonville
Chris,
Thanks a lot for your reply.

I read both and what I still don't get is:
How do I specify a connector to a host?

it seems connectors cannot be nested inside an engine nor in a host and
connectors can contain neither
Otherwise I would create two engines one with ssl and the other without and
specify the hosts herein
or with each host, specify which connectors it can use
or specify the applicable hosts inside a connector

Those three aren't possibe (according to the docs)

I would like https://localhost/ and http://localhost/ to refer to the same
appbase
and have http://*.autumn.nl/ to refer to one appbase and
https://secure.autumn.nl/ to another appbase
basically having three appbases, secure.autumn.nl, localhost and
*.autumn.nlwhich then contain contexts as usual

How would I go about this then?

Thanks in advance,

Serge Fonville

On Fri, Oct 10, 2008 at 4:28 PM, Christopher Schultz 
[EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Serge,

 Serge Fonville wrote:
  I have Tomcat 6.0.18 with the native dll installed
  I have two hosts presently (more to come)
  localhost and autumn.nl
  What I want now is
 
  *.autumn.nl accessble only via http

 You need a Host name=autumn.nl with an HTTP Connector only. Also,
 you need to set this Host as the defaultHost for your Engine.

  secure.autumn.nl accessible only via https

 You need a Host name=secure.autumn.nl with an HTTPS Connector only.

  localhost accessible via both

 Another Host name=localhost with both kinds of connectors.

 See
 http://tomcat.apache.org/tomcat-6.0-doc/config/host.html
 and
 http://tomcat.apache.org/tomcat-6.0-doc/config/engine.html

 Note that for each Host you have, you will need separate deployment
 directories and each application will be deployed separately for each
 host. So, if you have 2 applications to deploy over these 3 domains,
 you'll get 6 running applications.

 There /are/ other ways of achieving your goal. Here are some ideas that
 will allow you to have only a single instance of each of your
 applications running:

 1. Run Apache httpd out front to handle SSL and your security desires. I
 suspect you already know how to configure this.

 2. Use filters in your application (or valves directly in Tomcat) to
 inspect requests and reject those that match certain criteria (such as
 SSL access to (^secure).autumn.nl. You can use a tool like
 http://tuckey.org/urlrewrite/ to do this quite easily.

 I'm sure there are other ways.

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iEYEARECAAYFAkjvZo4ACgkQ9CaO5/Lv0PBNpQCfaQscn9zwpv+lgUW+AdDNhuF8
 VmgAn2KfcNZaz7iu7sMk2xvScMEWhQ/m
 =XiAQ
 -END PGP SIGNATURE-

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: SSL Host

2008-10-10 Thread Serge Fonville
Chuck,
Thanks for your answer.

I tried and it works

Just one thing;
If I access https://*.autumn.nl (which shouldn't exist, I get the
defaulthost, instead I wan't to get a 404 of some sort, indicating that that
site does not exist?
Do I need to add a 404-host to either engine as a default host service which
just throws a 404 or something

Thanks a lot so far,

Serge Fonville

On Fri, Oct 10, 2008 at 5:27 PM, Caldarale, Charles R 
[EMAIL PROTECTED] wrote:

  From: Serge Fonville [mailto:[EMAIL PROTECTED]
  Subject: Re: SSL Host
 
  I read both and what I still don't get is:
  How do I specify a connector to a host?

 You can't.  You would need multiple Service elements, each with its own
 nested Connector and corresponding Host elements.

 Alternatively, to keep the configuration much simpler, use valves as Chris
 suggested to accept or reject requests based on whatever rules you like.

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Too many open files

2008-10-08 Thread Serge Fonville
I'm recently new to tomcat, but still I hope I am able to help a little.On
one end, any connection object should be nulled so the garbage collector can
pick it up.
On the other end, in server.xml define an executor and refer it in the
connector, that way, you can specify the idle time and the maximum amount of
threads you want.

Hope this helps...

Serge

On Wed, Oct 8, 2008 at 11:24 PM, Mohit Anchlia [EMAIL PROTECTED]wrote:

 So I tried all the options. I also changed the code to use connection
 pooling with only 2 connections but still there are bunch of
 CLOSE_WAITS. As soon as I stop tomcat all of them go away. I am not
 able to figure out why there are so many CLOSE_WAITS hanging around
 when I just have 2 connections in my pool.

 On Wed, Oct 8, 2008 at 6:14 AM, Konstantin Kolinko
 [EMAIL PROTECTED] wrote:
  2008/10/8 Mohit Anchlia [EMAIL PROTECTED]:
  I can see you can't wait to hear the debate. Anyhow, I am using
  HttpClient from apache commons and I do have .getReleaseConnection().
 
 
  See comment #22 here:
  https://issues.apache.org/bugzilla/show_bug.cgi?id=28727#c22
  and the message thread that it refers, [1]:
 
  [1]
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg04338.html
 
  I do not know, if that applies to your case. That message thread ([1]) is
  of December 2003, thus I do not know whether it is still applicable.
 
  Just my 0.02 EUR.
 
  Best regards,
  Konstantin Kolinko
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




SSL Host

2008-10-07 Thread Serge Fonville
Recently I tried to switch from tomcat to jetty (I read it would be faster,
so what the heck, I give it a try).
Well, I can say, I am definitely sticking with tomcat, it is a lot easier to
setup en the docs are way better.

I have it running with two hosts and ssl enabled.
Each ssl site gets its own page (which seems odd to me)

What I would like to know is: how do I setup tomcat to serve a different
host on ssl and normal on the same socket.
In apache this is easy, just define a new virtual host, set the documentroot
and voila, it just works.
It seems to me it should be possible by combining listener, connector and
host in some way, but I can not find out how I should do that.

Thanks a lot in advance

Serge Fonville


Re: SSL Host

2008-10-07 Thread Serge Fonville
Chris,
Thanks for you repsons.

You are right, I'll clarify (add an actual example)

I have Tomcat 6.0.18 with the native dll installed
I have two hosts presently (more to come)
localhost and autumn.nl
What I want now is

*.autumn.nl accessble only via http
secure.autumn.nl accessible only via https
localhost accessible via both

Presently I have two hosts which are both accessible via http and https
This scenario is easily resolved in httpd, but how should it be done in
tomcat.

Thanks so far

Serge


On Tue, Oct 7, 2008 at 8:54 PM, Christopher Schultz 
[EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Serge,

 Serge Fonville wrote:
  What I would like to know is: how do I setup tomcat to serve a different
  host on ssl and normal on the same socket.

 Do you mean the same port? You can't have HTTP and HTTPS on the same
 port: no product can do that. What you might be really asking for is
 HTTP on one port with HTTPS on another port, with redirects set up so
 you can easily go from HTTP - HTTPS.

  In apache this is easy, just define a new virtual host, set the
 documentroot
  and voila, it just works.

 Maybe you could post a sample Apache httpd config and we can get a
 better idea of what you're trying to do.

  It seems to me it should be possible by combining listener, connector and
  host in some way, but I can not find out how I should do that.

 I think you really just want two connectors:

 Connector port=80 redirectPort=443 ... / (this is the http one)
 Connector port=443 /   (this is the https one)

 See the default server.xml for examples of all the attributes for these
 elements, or the full documentation at
 http://tomcat.apache.org/tomcat-5.5-doc/config/http.html

 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iEYEARECAAYFAkjrsFAACgkQ9CaO5/Lv0PBejQCeMBpizfHbDnCga3QqxUj4Jwsz
 JDsAoL8OCw8Zv9qsQ7MoAla5Tl+9gEV7
 =IDSk
 -END PGP SIGNATURE-

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Tomcat outputs php to stderr

2008-09-30 Thread Serge Fonville
Thank you so far, I will definitely look into Quercus.

Still, I would like to understand why output is sent to stderr and if it can
be solved (I recall running PHP and tomcat in the past) without problems


On Tue, Sep 30, 2008 at 12:04 AM, Johnny Kewl [EMAIL PROTECTED] wrote:


 - Original Message - From: Serge Fonville 
 [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Monday, September 29, 2008 6:00 PM
 Subject: Tomcat outputs php to stderr



 Hi,
 I am developing a ticket system which should use servlets to connect to
 the
 various resources.
 Currently I am a php developer and busy to learn JSP/TLD/Servlets
 I installed Tomcat 6.0.18 with PHP 5.2.6 on Windows Vista Business (the
 production server will be running either Gentoo or CentOS).

 Installation went fine, no errors. just one thing I couldn't resolve.
 All output generated by php goes directly to the stderr log file instead
 of
 the browser (JSP and servlets work fine)

 I used

 http://blog.taragana.com/index.php/archive/running-php-5x-on-windows-using-tomcat-4x-or-5x/
 and http://wiki.apache.org/tomcat/UsingPhp to configure the two.

 I started reading about listeners, log4j and servlet mappings.
 This seemed over the top to me, so I decided to just ask the  question
 here.

 Any help is greatly appreciated



 Dont do it this way... run PHP on Apache httpd... its the PHP container...
 and do your servlet stuff in TC... its a good servlet container.
 Then put Apache httpd in front of TC... read up on the JK connector... and
 then to the browser its *one system*
 Thats how they do it ;)

 If you insist on wanting the Java PHP layer... Resin is probably the
 best... they not calling into a PHP engine, they rewrote it in Java...
 whether they up to date with all modules is the question?

 Anyway... just trying to show you that you dont have to change a thing...
 join em ;)

 Have fun..

 ---
 HARBOR : http://www.kewlstuff.co.za/index.htm
 The most powerful application server on earth.
 The only real POJO Application Server.
 See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
 ---


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Tomcat outputs php to stderr

2008-09-29 Thread Serge Fonville
Hi,
I am developing a ticket system which should use servlets to connect to the
various resources.
Currently I am a php developer and busy to learn JSP/TLD/Servlets
I installed Tomcat 6.0.18 with PHP 5.2.6 on Windows Vista Business (the
production server will be running either Gentoo or CentOS).

Installation went fine, no errors. just one thing I couldn't resolve.
All output generated by php goes directly to the stderr log file instead of
the browser (JSP and servlets work fine)

I used
http://blog.taragana.com/index.php/archive/running-php-5x-on-windows-using-tomcat-4x-or-5x/
 and http://wiki.apache.org/tomcat/UsingPhp to configure the two.

I started reading about listeners, log4j and servlet mappings.
This seemed over the top to me, so I decided to just ask the  question here.

Any help is greatly appreciated