Re: Max connections

2008-10-13 Thread Mark Thomas
Martin Gainty wrote:
 in $TOMCAT_HOME/conf/server.xml Connector implements the acceptCount 
 attribute
 http://tomcat.apache.org/tomcat-4.1-doc/config/coyote.html

acceptCount is not the right attribute to do this. That is also the 4.1
doc. The OP didn't say what version they were using.

 From: [EMAIL PROTECTED]

 How can I limit number of connections to Tomcat server from outside
 world?
You want the maxThreads attribute of the connector element.

 Like jboss has jmx console does tomcat has something like that?
Recent JDKs have jconsole. Tomcat has the JMX Proxy Servlet:
http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Using%20the%20JMX%20Proxy%20Servlet

Mark



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



IIS Connector truncate HTTP Header 5.5.23

2008-10-13 Thread Alexander Diedler
Hello everybody,
There are a issue, that I think it is not easy to fix.
We have a Tomcat, which is connected to a IIS as Frontendserver. But the IIS 
seems to be not to get the full header. The connector truncate the Header to 
2KB. In the server.xml it is possible to increase the header space, but nothing 
happens to the Connector.
Has anybody some ideas to solve this issue?

Greetings
Alex D.




Re: IIS Connector truncate HTTP Header 5.5.23

2008-10-13 Thread Mark Thomas
Alexander Diedler wrote:
 Hello everybody,
 There are a issue, that I think it is not easy to fix.
 We have a Tomcat, which is connected to a IIS as Frontendserver. But the IIS 
 seems to be not to get the full header. The connector truncate the Header to 
 2KB. In the server.xml it is possible to increase the header space, but 
 nothing happens to the Connector.
 Has anybody some ideas to solve this issue?

Try 5.5.27.

What version of isapi.dll are you using?

Mark



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



AddResource: how to prevent adding session id to stylesheet URL

2008-10-13 Thread Dave
Hi,
We are using AddResource to add stylesheet dynamically, like:
 
addResource.addStyleSheet(context, AddResource.HEADER_BEGIN, /main.css);
 
In the generated HTML, the current session id is in the URL, like:
 
link rel=stylesheet 
href=/main.css;jsessionid=965804C1F45636F4BBD825591EE74E3C type=text/css /
 
This breaks web browser caching. Style sheet is static. We want browser to 
cache it for one month. But adding session id breaks browser caching because 
session id is dynamic and the stylesheet url will change from one session to 
another.
 
Is there a way to prevent session id being added to the URL?  we use 
cookie-based session tracking , if cookie is disabled, URL rewriting session  
tracking will be used.
 
Thanks for help.
Dave



  

Re: question : encounter java.net.SocketTimeoutException: Read timed out occasionally

2008-10-13 Thread Johnny Kewl


- Original Message - 
From: James Wang [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, October 13, 2008 7:11 AM
Subject: Re: question : encounter java.net.SocketTimeoutException: Read 
timed out occasionally




Hi Mark,

In order to find out if the problem of Request.getParameter(parm) return
null (missing post
body part) is related to http keep-alive,  We've tried to reduce
the KeepaliveTimeout setting in
Apache httpd server from 15 seconds to 5 seconds,  the strange thing
happened, We found
the null parameter count was raised from 400/per-day (in average) to 900
times/per-day.
The next step we are going to disable the keep-alive and see what will
happen, will let you
know the result for reference.

If disabling keeplive could resolve this problem, the mysterious part then
is why the
the browser get stuck on uploading the post body part always.


James, what is actually doing the post?... Ajax?
Look I dont know, but it smells like a data size problem...
Something like a header size is saying... you going to get 500 bytes and 
only 499 come in... so now the browser is waiting for the stupid server to 
reply, and the server thinks the stupid browser is just slow... eventually 
TCP sockets say... good bye, you guys are just too slow.
So socket time out, I think, is not the real issue... some header size is 
wrong... maybe something subtle like its multibyte and the header size is 
calculating bytes.
If you click twice and then the 1st param comes in... it sounds very much 
like a header size calc is out...

I dont know... but thats what I'd be looking for...

---
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
---
If you cant pay in gold... get lost...




-
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: Error while starting the CATLINA/TOMCAT Server: Cant configure sessionPool

2008-10-13 Thread Mark Thomas
Fabrizio Calselli wrote:
 
 please could any of you help me trying so solve the CATALINA/TOMACT
 problem I am getting?
 
 Initialization Problem
 
 Message: Cant configure SessionPool
 
 Description:
 org.apache.avalon.framework.configuration.ConfigurationException: Cant
 configure SessionPool
 
 Sender: org.apache.cocoon.servlet.CocoonServlet
 
 Source: Cocoon Servlet
 
 cause
 
 java.lang.NullPointerException

That looks like a cocoon problem. You will probably get more useful
answers from http://cocoon.apache.org/

Mark


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



Error while starting the CATLINA/TOMCAT Server: Cant configure sessionPool

2008-10-13 Thread Fabrizio Calselli

Hi everyone,


 


please could any of you help me trying so solve the CATALINA/TOMACT
problem I am getting?


Thank you in advance.


 


Kind Regards,


Fabrizio


 


Initialization Problem


Message: Cant configure SessionPool

Description:
org.apache.avalon.framework.configuration.ConfigurationException: Cant
configure SessionPool

Sender: org.apache.cocoon.servlet.CocoonServlet

Source: Cocoon Servlet

cause

java.lang.NullPointerException

request-uri

/cocoon2-2/botform/schufaweb/vpb/new_gen

full exception chain stacktrace

org.apache.avalon.framework.configuration.ConfigurationException: Cant
configure SessionPool
at
com.botcare.sessionmgmt.SessionPool.configure(SessionPool.java:66)
at
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerU
til.java:201)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
e(DefaultComponentFactory.java:289)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initial
ize(ThreadSafeComponentHandler.java:108)
at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initiali
ze(ExcaliburComponentManager.java:524)
at
org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonCom
ponentManager.java:566)
at
org.apache.avalon.framework.container.ContainerUtil.initialize(Container
Util.java:244)
at org.apache.cocoon.Cocoon.initialize(Cocoon.java:336)
at
org.apache.avalon.framework.container.ContainerUtil.initialize(Container
Util.java:244)
at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:
1429)
at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:499)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:1029)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:4013)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4357
)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at
org.apache.catalina.core.StandardService.start(StandardService.java:480)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: java.lang.NullPointerException
at
com.botcare.metadata.factories.ProcessIDFactory.getItem(ProcessIDFactory
.java:62)
at
com.botcare.metadata.core.NamedCacheElement.getItem(NamedCacheElement.ja
va:40)
at
com.botcare.metadata.core.CacheManager.getCachedObject(CacheManager.java
:44)
at
com.botcare.metadata.core.AbstractMDALFacade.getProcessID(AbstractMDALFa
cade.java:121)
at
com.botcare.metadata.core.AbstractMDALFacade.initializeCacheManager(Abst
ractMDALFacade.java:111)
at
com.botcare.metadata.core.AbstractMDALFacade.initialize(AbstractMDALFaca
de.java:80)
at
com.botcare.sessionmgmt.ClientInfo.reconfigure(ClientInfo.java:163)
at
com.botcare.sessionmgmt.SessionPool.configure(SessionPool.java:59)
... 27 more

stacktrace

java.lang.NullPointerException
at
com.botcare.metadata.factories.ProcessIDFactory.getItem(ProcessIDFactory
.java:62)
at
com.botcare.metadata.core.NamedCacheElement.getItem(NamedCacheElement.ja
va:40)
at
com.botcare.metadata.core.CacheManager.getCachedObject(CacheManager.java
:44)
at
com.botcare.metadata.core.AbstractMDALFacade.getProcessID(AbstractMDALFa
cade.java:121)
at
com.botcare.metadata.core.AbstractMDALFacade.initializeCacheManager(Abst
ractMDALFacade.java:111)
at
com.botcare.metadata.core.AbstractMDALFacade.initialize(AbstractMDALFaca
de.java:80)
at
com.botcare.sessionmgmt.ClientInfo.reconfigure(ClientInfo.java:163)
at
com.botcare.sessionmgmt.SessionPool.configure(SessionPool.java:59)
at
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerU
til.java:201)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
e(DefaultComponentFactory.java:289)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initial

Re: [OT] Why can NOT run Tomcat on my Laptop

2008-10-13 Thread David Smith

Caldarale, Charles R wrote:

From: André Warnier [mailto:[EMAIL PROTECTED]
Subject: Re: [OT] Why can NOT run Tomcat on my Laptop

Allowing spaces in directory and file names was a nutty
idea which has cost more over time than the Iraq war and
current financial debacle combined.



(I'll assume the above is sarcastic, and not meant to be factual.  A couple of 
trillion dollars is a lot of money, regardless of the exchange rate.)

Actually, spaces have been allowed in file names since reasonably early in UNIX 
history; however, since UNIX users back then were smarter than the average 
Microsoft, spaces and other odd characters were avoided unless obfuscation was 
desired.  The nutty idea wasn't allowing spaces but instead requiring their use 
for any and all normal activities - for that Microsoft should be awarded the 
opposite of the Nobel peace prize.

 - 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]

  

That would be the Darwin award :-)

--David

-
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: apache virtual hosts using different tomcat on different servers

2008-10-13 Thread Nicola Burns
Thanks Christopher  Mikolaj for your very helpful information.

I move my 'JkMount *.jsp workerA' information from mod_jk.conf into my virtual 
hosts tag and restart apache.
When I attempt to access my url test1.foo.com, apache tell me it cannot find my 
home.do page to login (not found in this server, but when I simply move this 
back to the mod_jk.conf file again, I can login? 

The only thing I leave in the mod_jk.conf file is the location of the 
log/worker.properties files. Is this a windows relative path issue?


Thanks,
Nicola

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
Sent: 10 October 2008 20:36
To: Tomcat Users List
Subject: Re: apache virtual hosts using different tomcat on different servers

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nicola,

Nicola Burns wrote:
 Is it possible to have the following scenario configured?

Executive summary: different back-end Tomcat servers for different
VistualHosts.

The answer is of course you can!

It sounds like you want this:

VirtualHost test1.foo.com
workerA - localhost:jboss

VirtualHost test2.foo.com
workerB - server2:jboss

 test1.foo.com works. Test2.foo.com goes to the same application because
 they are both reading from the localhost mod-jk.conf.

mod-jk.conf isn't something standard, so whatever you have has been
home-built. I suspect that you have all your mod_jk configuration in
there, including JkMount statements, and that you are including it at
the top-level.

You have to separate your JkMount statements into your VirtualHosts.

For example, I have a global mod_jk.conf file and it looks like this:

LoadModule jk_module /usr/lib/apache2/modules/mod_jk-1.2.26.so
JkLogFile /var/log/apache2/mod_jk.log
JkWorkersFile /usr/lib/apache2/modules/jk_workers.properties
JkShmFile /var/log/apache2/jk-runtime-status


That's it! Everything else goes into the appropriate VirtualHost along
with the rest of the config for that VH.

Note that the workers configuration is shared. That means that
workers.properties must contain the configuration for all workers across
all virtual hosts. Maybe something like this:

workers.list=workerA,workerB

workerA.host=localhost
workerA.port=[your jboss port]

workerB.host=server2
workerB.port=[your jboss port]

Then, you need something in each VirtualHost that looks like this (your
configuration may vary wildly, but this should get you started):

VirtualHost test1.foo.com
   ... other VH configuration ...
   JkMount *.jsp workerA
/VirtualHost

VirtualHost test2.foo.com
   ... other VH configuration ...
   JkMount *.jsp workerB
/VirtualHost

With regard to Mikolaj's comments, mod_jk just has a different style of
defining endpoints than mod_proxy_ajp. Technically, mod_jk does not
require workers.properties, nor does it require mod-jk.conf.

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

iEYEARECAAYFAkjvrogACgkQ9CaO5/Lv0PDRsgCfSTIG1xxGriYilkyXNwrY+6c7
qEoAoJWNFsiOpSFttrqRKdZ6OPDGwY51
=wBnJ
-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: Error while starting the CATLINA/TOMCAT Server: Cant configure sessionPool

2008-10-13 Thread Kusuma Pabba

Fabrizio Calselli wrote:

Hi everyone,


 



please could any of you help me trying so solve the CATALINA/TOMACT
problem I am getting?


Thank you in advance.


 



Kind Regards,


Fabrizio


 



Initialization Problem


Message: Cant configure SessionPool

Description:
org.apache.avalon.framework.configuration.ConfigurationException: Cant
configure SessionPool

Sender: org.apache.cocoon.servlet.CocoonServlet

Source: Cocoon Servlet

cause

java.lang.NullPointerException

request-uri

/cocoon2-2/botform/schufaweb/vpb/new_gen

full exception chain stacktrace

org.apache.avalon.framework.configuration.ConfigurationException: Cant
configure SessionPool
at
com.botcare.sessionmgmt.SessionPool.configure(SessionPool.java:66)
at
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerU
til.java:201)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
e(DefaultComponentFactory.java:289)
at
org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initial
ize(ThreadSafeComponentHandler.java:108)
at
org.apache.avalon.excalibur.component.ExcaliburComponentManager.initiali
ze(ExcaliburComponentManager.java:524)
at
org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonCom
ponentManager.java:566)
at
org.apache.avalon.framework.container.ContainerUtil.initialize(Container
Util.java:244)
at org.apache.cocoon.Cocoon.initialize(Cocoon.java:336)
at
org.apache.avalon.framework.container.ContainerUtil.initialize(Container
Util.java:244)
at
org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:
1429)
at
org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:499)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:1029)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:4013)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4357
)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at
org.apache.catalina.core.StandardService.start(StandardService.java:480)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: java.lang.NullPointerException
at
com.botcare.metadata.factories.ProcessIDFactory.getItem(ProcessIDFactory
.java:62)
at
com.botcare.metadata.core.NamedCacheElement.getItem(NamedCacheElement.ja
va:40)
at
com.botcare.metadata.core.CacheManager.getCachedObject(CacheManager.java
:44)
at
com.botcare.metadata.core.AbstractMDALFacade.getProcessID(AbstractMDALFa
cade.java:121)
at
com.botcare.metadata.core.AbstractMDALFacade.initializeCacheManager(Abst
ractMDALFacade.java:111)
at
com.botcare.metadata.core.AbstractMDALFacade.initialize(AbstractMDALFaca
de.java:80)
at
com.botcare.sessionmgmt.ClientInfo.reconfigure(ClientInfo.java:163)
at
com.botcare.sessionmgmt.SessionPool.configure(SessionPool.java:59)
... 27 more

stacktrace

java.lang.NullPointerException
at
com.botcare.metadata.factories.ProcessIDFactory.getItem(ProcessIDFactory
.java:62)
at
com.botcare.metadata.core.NamedCacheElement.getItem(NamedCacheElement.ja
va:40)
at
com.botcare.metadata.core.CacheManager.getCachedObject(CacheManager.java
:44)
at
com.botcare.metadata.core.AbstractMDALFacade.getProcessID(AbstractMDALFa
cade.java:121)
at
com.botcare.metadata.core.AbstractMDALFacade.initializeCacheManager(Abst
ractMDALFacade.java:111)
at
com.botcare.metadata.core.AbstractMDALFacade.initialize(AbstractMDALFaca
de.java:80)
at
com.botcare.sessionmgmt.ClientInfo.reconfigure(ClientInfo.java:163)
at
com.botcare.sessionmgmt.SessionPool.configure(SessionPool.java:59)
at
org.apache.avalon.framework.container.ContainerUtil.configure(ContainerU
til.java:201)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstanc
e(DefaultComponentFactory.java:289)
at

RE: question : encounter java.net.SocketTimeoutException: Read timed out occasionally

2008-10-13 Thread Martin Gainty

agreed
there is a framework setup to handle Ajax calls based on pageLoad, timers, 
listen topics
http://struts.apache.org/2.x/docs/ajax-and-javascript-recipes.html

ping me offline for details
Martin Gainty 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Subject: Re: question : encounter java.net.SocketTimeoutException: Read timed 
 out occasionally
 Date: Mon, 13 Oct 2008 13:10:55 +0200
 
 
 - Original Message - 
 From: James Wang [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Monday, October 13, 2008 11:35 AM
 Subject: Re: question : encounter java.net.SocketTimeoutException: Read 
 timed out occasionally
 
 
  Hi Johnny,
 
  Yes, We are using ajax to make the post requests, and the header do 
  include
  content-length information that was calculated by ajax automatically, but
  the
  strange thing is sometime it get stuck at the begin of uploading http 
  body(0
  byte
  was transfered always in this case) until AJP connector timeout, actually 
  we
  have revised a little bit on tomcat source code, below is our finding we
  made
  the change on org.apache.catalina.connector.Request.java for your 
  reference
  :
 
  protected void parseParameters() {
 
 :  :   :  :
 :  :   :  :
 
 if (actualLen == len) {
 parameters.processParameters(formData, 0, len);
 }
 else { // added by me
 context.getLogger().error(formData Len error len : +
  len +   actualLen : + actualLen);
 }
 } catch (Throwable t) {
 context.getLogger().warn
 (sm.getString(coyoteRequest.parseParameters), t);
 }
 }
 
 }
 
  Following was the Tomcat log, actualLen always return 0,
  the first line showing the content-length is 32 but the returned
  actual length is 0.
 
  SEVERE: formData Len error len :32  actualLen :0
  SEVERE: formData Len error len :379  actualLen :0
  SEVERE: formData Len error len :32  actualLen :0
  SEVERE: formData Len error len :41  actualLen :0
  SEVERE: formData Len error len :60  actualLen :0
  SEVERE: formData Len error len :74  actualLen :0
  SEVERE: formData Len error len :145  actualLen :0
  SEVERE: formData Len error len :60  actualLen :0
 
  Thanks  Best Regards.
  James Wang
  On Mon, Oct 13, 2008 at 4:34 PM, Johnny Kewl [EMAIL PROTECTED] wrote:
 
 James... dont know... couple of thing you can do... get wire shark and 
 actually watch whats on the wire... if the header is coming in and no body 
 is sent, it aint tomcat...
 My Ajax is stale... if you doing it yourself, then its very like a 
 javascript issue cant remember details but its not unusual in the Ajax 
 stuff to see...
 ... if(IE) do it all different...
 ... I think you working on the wrong side... its that Ajax, is my guess
 
 My guess is that it works with Firefox perfectly... but not on IE and you 
 dont have a debugger for that... welcome to Javascript ;) on diff browsers 
 its a nightmare ;)
 Good luck, or maybe post the Ajax snippet and see if the guys can spot it...
 
 ---
 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
 ---
 If you cant pay in gold... get lost...
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

Re: [OT] Why can NOT run Tomcat on my Laptop

2008-10-13 Thread André Warnier

David Smith wrote:

Caldarale, Charles R wrote:

... for that Microsoft should be awarded the opposite of the

Nobel peace prize.

 - Chuck
  

That would be the Darwin award :-)

--David


Now, call me thick, but that one I don't get.


-
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: [OT] Why can NOT run Tomcat on my Laptop

2008-10-13 Thread Caldarale, Charles R
 From: André Warnier [mailto:[EMAIL PROTECTED]
 Subject: Re: [OT] Why can NOT run Tomcat on my Laptop

  That would be the Darwin award :-)

 Now, call me thick, but that one I don't get.

Might be a USA thing:
http://www.darwinawards.com/

 - 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: question : encounter java.net.SocketTimeoutException: Read timed out occasionally

2008-10-13 Thread Johnny Kewl


- Original Message - 
From: James Wang [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, October 13, 2008 11:35 AM
Subject: Re: question : encounter java.net.SocketTimeoutException: Read 
timed out occasionally




Hi Johnny,

Yes, We are using ajax to make the post requests, and the header do 
include

content-length information that was calculated by ajax automatically, but
the
strange thing is sometime it get stuck at the begin of uploading http 
body(0

byte
was transfered always in this case) until AJP connector timeout, actually 
we

have revised a little bit on tomcat source code, below is our finding we
made
the change on org.apache.catalina.connector.Request.java for your 
reference

:

protected void parseParameters() {

   :  :   :  :
   :  :   :  :

   if (actualLen == len) {
   parameters.processParameters(formData, 0, len);
   }
   else { // added by me
   context.getLogger().error(formData Len error len : +
len +   actualLen : + actualLen);
   }
   } catch (Throwable t) {
   context.getLogger().warn
   (sm.getString(coyoteRequest.parseParameters), t);
   }
   }

   }

Following was the Tomcat log, actualLen always return 0,
the first line showing the content-length is 32 but the returned
actual length is 0.

SEVERE: formData Len error len :32  actualLen :0
SEVERE: formData Len error len :379  actualLen :0
SEVERE: formData Len error len :32  actualLen :0
SEVERE: formData Len error len :41  actualLen :0
SEVERE: formData Len error len :60  actualLen :0
SEVERE: formData Len error len :74  actualLen :0
SEVERE: formData Len error len :145  actualLen :0
SEVERE: formData Len error len :60  actualLen :0

Thanks  Best Regards.
James Wang
On Mon, Oct 13, 2008 at 4:34 PM, Johnny Kewl [EMAIL PROTECTED] wrote:


James... dont know... couple of thing you can do... get wire shark and 
actually watch whats on the wire... if the header is coming in and no body 
is sent, it aint tomcat...
My Ajax is stale... if you doing it yourself, then its very like a 
javascript issue cant remember details but its not unusual in the Ajax 
stuff to see...

... if(IE) do it all different...
... I think you working on the wrong side... its that Ajax, is my guess

My guess is that it works with Firefox perfectly... but not on IE and you 
dont have a debugger for that... welcome to Javascript ;) on diff browsers 
its a nightmare ;)

Good luck, or maybe post the Ajax snippet and see if the guys can spot it...

---
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
---
If you cant pay in gold... get lost...



-
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 running TC 6.0.18 with CATALINA_BASE

2008-10-13 Thread Pavel Savara
The fix is http://svn.apache.org/viewvc?view=revrevision=685715
The catalina.sh change is the only one you need to apply.
Pavel

On Fri, 2008-10-10 at 15:16 -0400, Christopher Schultz wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 All,
 
 I've been running multiple TC 4.1 and 5.5 instances using CATALINA_BASE
 for years, and I'm starting to play with TC 6.x. I use ant to run
 bin/startup.sh (actually, I usually go right for catalina.sh start,
 but I went to using startup.sh just to simplify things a bit) and it
 does not seem to be working for me.
 
 Here are the steps I went through:
 
 0. I'm using Sun JDK 1.5.0_13-b05 on Gentoo Linux kernel 2.6.
 
 1. Installed the tar.gz version of TC 6.0.18 directly from the TC site
(installed into /usr/local/apache-tomcat-6.0.18)
 
 2. Created a deployment directory (/home/chris/app/connector-test/8785)
and installed the following directories and files:
 /home/chris/app/connector-test/
 /home/chris/app/connector-test/8785
 /home/chris/app/connector-test/8785/conf
 /home/chris/app/connector-test/8785/conf/web.xml
 /home/chris/app/connector-test/8785/conf/server.xml
 /home/chris/app/connector-test/8785/webapps
 /home/chris/app/connector-test/8785/logs
 /home/chris/app/connector-test/8785/temp
 
 web.xml and server.xml are identical to the config files from the
 distro. All files and directories are owned and writable/executable by
 the user who will be launching Tomcat.
 
 3. Started tomcat using my ant tomcat-start target:
 
 echo===
 Starting Tomcat
 ===
 JAVA_HOME is ${app.java-home}
 CATALINA_BASE is ${app.home.dir}
 /echo
 
 exec os=Linux executable=${app.tomcat-home}/bin/startup.sh
   env key=JAVA_HOME value=${app.java-home} /
   env key=CATALINA_BASE value=${app.home.dir} /
 /exec
 
 I added some 'echo' statements to catalina.sh to display the command
 ultimately being run, and this is the output:
 
 tomcat-start:
  [echo] ===
  [echo] Starting Tomcat
  [echo] ===
  [echo] JAVA_HOME is /usr
  [echo] CATALINA_BASE is /home/chris/app/connector-test/8785
  [exec] running command: /usr/bin/java
 - -Djava.endorsed.dirs=/usr/local/apache-tomcat-6.0.18/endorsed -classpath
 :/usr/local/apache-tomcat-6.0.18/bin/bootstrap.jar
 - -Dcatalina.base=/home/chris/app/connector-test/8785
 - -Dcatalina.home=/usr/local/apache-tomcat-6.0.18
 - -Djava.io.tmpdir=/home/chris/app/connector-test/8785/temp
 org.apache.catalina.startup.Bootstrap start 
 /home/chris/app/connector-test/8785/logs/catalina.out 21 
 
 BUILD SUCCESSFUL
 Total time: 1 second
 
 All the paths are correct and the command looks good to me.
 
 The result is that I get this and only this in
 /home/chris/app/connector-test/8785/logs/catalina.out:
 Exception in thread main java.lang.NoClassDefFoundError:
 
 That's right: no exception stack trace. No nothing. Just that one line
 of output, and the process dies.
 
 When running directly from the deployment directory (i.e. NOT using
 CATALINA_BASE), startup works as expected. Here is the output from the
 standard launch:
 Using CATALINA_BASE:   /usr/local/apache-tomcat-6.0.18
 Using CATALINA_HOME:   /usr/local/apache-tomcat-6.0.18
 Using CATALINA_TMPDIR: /usr/local/apache-tomcat-6.0.18/temp
 Using JRE_HOME:   /etc/java-config-2/current-system-vm
 running command: /etc/java-config-2/current-system-vm/bin/java
 - -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
 -
 -Djava.util.logging.config.file=/usr/local/apache-tomcat-6.0.18/conf/logging.properties
 - -Djava.endorsed.dirs=/usr/local/apache-tomcat-6.0.18/endorsed -classpath
 :/usr/local/apache-tomcat-6.0.18/bin/bootstrap.jar
 - -Dcatalina.base=/usr/local/apache-tomcat-6.0.18
 - -Dcatalina.home=/usr/local/apache-tomcat-6.0.18
 - -Djava.io.tmpdir=/usr/local/apache-tomcat-6.0.18/temp
 org.apache.catalina.startup.Bootstrap start 
 /usr/local/apache-tomcat-6.0.18/logs/catalina.out 21 
 
 Obviously there are some differences, here. First, JAVA_HOME is set
 differently, but that does not seem to be a problem since they actually
 point to the same place (Gentoo has some very configurable Java
 installation options).
 
 Also, the logging configuration looks different. catalina.sh sniffs for
 $CATALINA_BASE/conf/logging.properties and adds configuration as
 necessary. Since I have no logging.properties, this is also no surprise.
 
 catalina.base, catalina.home, and the classpath all look correct and
 there appear to be no obvious problems.
 
 Does anyone have any suggestions?
 
 Thanks,
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.9 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iEYEARECAAYFAkjvqhcACgkQ9CaO5/Lv0PDiEQCeMptOzf9KLvvxplUQin1TBAq8
 N10An3gvFy7bIgIetrMS6Wi0dRamjRHd
 =ihJl
 -END PGP SIGNATURE-
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, 

Re: [OT] Why can NOT run Tomcat on my Laptop

2008-10-13 Thread David Smith

André Warnier wrote:

David Smith wrote:

Caldarale, Charles R wrote:

... for that Microsoft should be awarded the opposite of the

Nobel peace prize.

 - Chuck
  

That would be the Darwin award :-)

--David


Now, call me thick, but that one I don't get.


Google for the Darwin Awards.  It's awards for people who through their 
own stupidity remove themselves from the gene pool.


--David


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



polish dialectic signs lturn into #

2008-10-13 Thread Raghu
I have developed JSP Struts Polish Application in UTF-8  encoding.

 

Application interacts with SAP for polish data .I am able to insert the data
into SAP from jsp application running on tomcat.

 

Application which is working on windows version of polish system (windows XP
)is not working on Linux System.

 

Polish dialectic signs like ą,ć,ś,ó,ź,ł,ę are turn into # symbols.

 

Any advice to make the application work on both windows and Linux.

 

Regards,
Raghu

 



Re: apache virtual hosts using different tomcat on different servers

2008-10-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nicola,

Nicola Burns wrote:
 I move my 'JkMount *.jsp workerA' information from mod_jk.conf into
 my virtual hosts tag and restart apache. When I attempt to access my
 url test1.foo.com, apache tell me it cannot find my home.do page to
 login (not found in this server, but when I simply move this back to
 the mod_jk.conf file again, I can login?

Can you post your mod_jk configuration? Please post both mod_jk.conf
/and/ the JkMount directives you are using (and indicate which virtual
hosts they are in).

 The only thing I leave in the mod_jk.conf file is the location of the
 log/worker.properties files. Is this a windows relative path issue?

It's possible, but not likely. Provide a complete path if you are
concerned about it. Also, you could look at your log file to see if
there are any mod_jk startup errors.

- -chris

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

iEYEARECAAYFAkjzXowACgkQ9CaO5/Lv0PCGqACfYZWToZE+/bx5yDJHXCs4jkg0
E+UAoI9tk2mE7ELg2UBVnPszSFM7MNM6
=wWdS
-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: polish dialectic signs lturn into #

2008-10-13 Thread Mark Thomas
Raghu wrote:
 I have developed JSP Struts Polish Application in UTF-8  encoding.
 
  
 
 Application interacts with SAP for polish data .I am able to insert the data
 into SAP from jsp application running on tomcat.
 
  
 
 Application which is working on windows version of polish system (windows XP
 )is not working on Linux System.
 
  
 
 Polish dialectic signs like ą,ć,ś,ó,ź,ł,ę are turn into # symbols.
 
  
 
 Any advice to make the application work on both windows and Linux.

http://wiki.apache.org/tomcat/FAQ/CharacterEncoding

Mark


 
  
 
 Regards,
 Raghu
 
  
 
 



-
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 running TC 6.0.18 with CATALINA_BASE

2008-10-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Pavel and Konstantin,

Thanks for the references. This appears to be exactly what's happening
to me. I'll patch catalina.sh and re-try.

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

iEYEARECAAYFAkjzXwwACgkQ9CaO5/Lv0PDvnQCeLiCXK43yKm0N1Sos2PGao1dS
/2IAn3d6XT4Wi6wy5D9SZQfUO0pQ2Uu4
=SJes
-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: Problem running TC 6.0.18 with CATALINA_BASE

2008-10-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Konstantin,

Konstantin Kolinko wrote:
 2008/10/10 Christopher Schultz [EMAIL PROTECTED]:
 (..)
 The result is that I get this and only this in
 /home/chris/app/connector-test/8785/logs/catalina.out:
 Exception in thread main java.lang.NoClassDefFoundError:

 
 It is a known issue with 6.0.18, see
 https://issues.apache.org/bugzilla/show_bug.cgi?id=45585

Hmm... this claims to be fixed in 5.5.27 and later, and it's working
for me on 5.5.26 with no conf/logging.properties.

I did copy $CATALINA_HOME/conf/logging.properties to
$CATALINA_BASE/conf/logging.properties and it appears to work. New
command line is:

/etc/java-config-2/current-system-vm/bin/java
- -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-
-Djava.util.logging.config.file=/home/chris/app/connector-test/8785/conf/logging.properties
- -Djava.endorsed.dirs=/usr/local/apache-tomcat-6.0.18/endorsed -classpath
:/usr/local/apache-tomcat-6.0.18/bin/bootstrap.jar
- -Dcatalina.base=/home/chris/app/connector-test/8785
- -Dcatalina.home=/usr/local/apache-tomcat-6.0.18
- -Djava.io.tmpdir=/home/chris/app/connector-test/8785/temp
org.apache.catalina.startup.Bootstrap start 
/home/chris/app/connector-test/8785/logs/catalina.out 21 

I also confirmed that removing $CATALINA_BASE/conf/logging.properties
and setting LOGGING_CONFIG=-Dnop results in success with the following
command line:

/etc/java-config-2/current-system-vm/bin/java -Dnop
- -Djava.endorsed.dirs=/usr/local/apache-tomcat-6.0.18/endorsed -classpath
:/usr/local/apache-tomcat-6.0.18/bin/bootstrap.jar
- -Dcatalina.base=/home/chris/app/connector-test/8785
- -Dcatalina.home=/usr/local/apache-tomcat-6.0.18
- -Djava.io.tmpdir=/home/chris/app/connector-test/8785/temp
org.apache.catalina.startup.Bootstrap start 
/home/chris/app/connector-test/8785/logs/catalina.out 21 

So, this appears to be my problem, but two things confuse me:

1. The command-line looks just fine to me in the first place.
and
2. TC 5.5.26 is working without a problem.

shrug

I'm happy enough to have it working. Thanks!

 The message with no class name is caused by passing an
 empty argument to /usr/bin/java.

The command-line I posted appears to be valid, including
org.apache.catalina.startup.Bootstrap as the startup class.

 Also, you are missing /work subdirectory in your ${catalina.base}. Maybe
 it is auto-created, but just in case.

Yes, TC auto-creates the work subdirectory.

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

iEYEARECAAYFAkjzaZIACgkQ9CaO5/Lv0PD+YgCfRzeSMkMHZ9UP65YH5rZELAnc
EuYAnihL8kJ49P/mjO4TSlUClUVSeZ2+
=MK1l
-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: Non-secure HTTP connector with secure=true requires a keystore?

2008-10-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mark,

Mark Thomas wrote:
 That looks like a bug to me. Please add to to bugzilla so it doesn't get
 lost and forgotten about.

Done. Thanks.

https://issues.apache.org/bugzilla/show_bug.cgi?id=45997

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

iEYEARECAAYFAkjzavEACgkQ9CaO5/Lv0PB0wgCgt/MUBpo3VYL2yck/Z/J8sPpe
uOUAoJq4XxNXggEp2ugeYpq9264/OEwa
=Afz9
-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: question : encounter java.net.SocketTimeoutException: Read timed out occasionally

2008-10-13 Thread Johnny Kewl


- Original Message - 
From: Johnny Kewl [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, October 13, 2008 10:34 AM
Subject: Re: question : encounter java.net.SocketTimeoutException: Read 
timed out occasionally





- Original Message - 
From: James Wang [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, October 13, 2008 7:11 AM
Subject: Re: question : encounter java.net.SocketTimeoutException: Read 
timed out occasionally




Hi Mark,

In order to find out if the problem of Request.getParameter(parm) 
return

null (missing post
body part) is related to http keep-alive,  We've tried to reduce
the KeepaliveTimeout setting in
Apache httpd server from 15 seconds to 5 seconds,  the strange thing
happened, We found
the null parameter count was raised from 400/per-day (in average) to 900
times/per-day.
The next step we are going to disable the keep-alive and see what will
happen, will let you
know the result for reference.

If disabling keeplive could resolve this problem, the mysterious part 
then

is why the
the browser get stuck on uploading the post body part always.


James, what is actually doing the post?... Ajax?
Look I dont know, but it smells like a data size problem...
Something like a header size is saying... you going to get 500 bytes and 
only 499 come in... so now the browser is waiting for the stupid server to 
reply, and the server thinks the stupid browser is just slow... eventually 
TCP sockets say... good bye, you guys are just too slow.
So socket time out, I think, is not the real issue... some header size is 
wrong... maybe something subtle like its multibyte and the header size is 
calculating bytes.
If you click twice and then the 1st param comes in... it sounds very much 
like a header size calc is out...

I dont know... but thats what I'd be looking for...


Another thing you can try... if its Ajax, is set it to http1.0
It will work... but there will be some data missing...
Then you'll know for sure its a data size issue...

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
---
If you cant pay in gold... get lost... 



-
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 : encounter java.net.SocketTimeoutException: Read timed out occasionally

2008-10-13 Thread James Wang
Hi Johnny,

Yes, We are using ajax to make the post requests, and the header do include
content-length information that was calculated by ajax automatically, but
the
strange thing is sometime it get stuck at the begin of uploading http body(0
byte
was transfered always in this case) until AJP connector timeout, actually we
have revised a little bit on tomcat source code, below is our finding we
made
the change on org.apache.catalina.connector.Request.java for your reference
:

protected void parseParameters() {

:  :   :  :
:  :   :  :

if (actualLen == len) {
parameters.processParameters(formData, 0, len);
}
else { // added by me
context.getLogger().error(formData Len error len : +
len +   actualLen : + actualLen);
}
} catch (Throwable t) {
context.getLogger().warn
(sm.getString(coyoteRequest.parseParameters), t);
}
}

}

Following was the Tomcat log, actualLen always return 0,
the first line showing the content-length is 32 but the returned
actual length is 0.

SEVERE: formData Len error len :32  actualLen :0
SEVERE: formData Len error len :379  actualLen :0
SEVERE: formData Len error len :32  actualLen :0
SEVERE: formData Len error len :41  actualLen :0
SEVERE: formData Len error len :60  actualLen :0
SEVERE: formData Len error len :74  actualLen :0
SEVERE: formData Len error len :145  actualLen :0
SEVERE: formData Len error len :60  actualLen :0

Thanks  Best Regards.
James Wang
On Mon, Oct 13, 2008 at 4:34 PM, Johnny Kewl [EMAIL PROTECTED] wrote:


 - Original Message - From: James Wang [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Monday, October 13, 2008 7:11 AM
 Subject: Re: question : encounter java.net.SocketTimeoutException: Read
 timed out occasionally


 Hi Mark,

 In order to find out if the problem of Request.getParameter(parm) return
 null (missing post
 body part) is related to http keep-alive,  We've tried to reduce
 the KeepaliveTimeout setting in
 Apache httpd server from 15 seconds to 5 seconds,  the strange thing
 happened, We found
 the null parameter count was raised from 400/per-day (in average) to 900
 times/per-day.
 The next step we are going to disable the keep-alive and see what will
 happen, will let you
 know the result for reference.

 If disabling keeplive could resolve this problem, the mysterious part then
 is why the
 the browser get stuck on uploading the post body part always.


 James, what is actually doing the post?... Ajax?
 Look I dont know, but it smells like a data size problem...
 Something like a header size is saying... you going to get 500 bytes and
 only 499 come in... so now the browser is waiting for the stupid server to
 reply, and the server thinks the stupid browser is just slow... eventually
 TCP sockets say... good bye, you guys are just too slow.
 So socket time out, I think, is not the real issue... some header size is
 wrong... maybe something subtle like its multibyte and the header size is
 calculating bytes.
 If you click twice and then the 1st param comes in... it sounds very much
 like a header size calc is out...
 I dont know... but thats what I'd be looking for...

 ---
 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
 ---
 If you cant pay in gold... get lost...





 -
 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: Max connections

2008-10-13 Thread Mohit Anchlia
I didn't understand the description of attribute
maxKeepAliveRequests, it says:

The maximum number of HTTP requests which can be pipelined until the
connection is closed by the server.

Does it mean total number of keep alive connections allowed at one
time. When we say connection is closed, does it mean for new
requests?

On Sun, Oct 12, 2008 at 5:38 PM, Martin Gainty [EMAIL PROTECTED] wrote:

 in $TOMCAT_HOME/conf/server.xml Connector implements the acceptCount 
 attribute
 http://tomcat.apache.org/tomcat-4.1-doc/config/coyote.html

 Martin
 __
 Disclaimer and confidentiality note
 Everything in this e-mail and any attachments relates to the official 
 business of Sender. This transmission is of a confidential nature and Sender 
 does not endorse distribution to any party other than intended recipient. 
 Sender does not necessarily endorse content contained within this 
 transmission.


 Date: Sun, 12 Oct 2008 17:27:08 -0700
 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Subject: Max connections

 How can I limit number of connections to Tomcat server from outside
 world? Like jboss has jmx console does tomcat has something like that?

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


 _
 Want to do more with Windows Live? Learn 10 hidden secrets from Jamie.
 http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

-
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: AddResource: how to prevent adding session id to stylesheet URL

2008-10-13 Thread Hassan Schroeder
On Mon, Oct 13, 2008 at 12:32 AM, Dave [EMAIL PROTECTED] wrote:

 We are using AddResource to add stylesheet dynamically, like:

 addResource.addStyleSheet(context, AddResource.HEADER_BEGIN, /main.css);

So, wouldn't this be a question for (guessing) a MyFaces list?  :-)

Doesn't seem remotely Tomcat-related.

H*
-- 
Hassan Schroeder  [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]



Using S/MIME encryption in Tomcat5.5 fails

2008-10-13 Thread Celik, Servet (ext MA)
Hi *,

I try to encrypt outgoing mails from my webapplication with S/MIME. 

Therefore I make use of the BouncyCastleProvider and created an example
according to http://javamail-crypto.sourceforge.net/. Afterwards I
introduced Bouncycaste as securityprovider by adding the line
security.provider.7=org.bouncycastle.jce.provider.BouncyCastleProvider to
the file 
JAVA_HOME/jre/lib/security/java.security.

When I start the class as a standalone JavaApplication everything works
fine, but putting it into my webapplication and calling it raises a
NoSuchProviderException 
(DEBUG: setDebug: JavaMail version 1.3.1
java.security.NoSuchProviderException: No provider configured for S/MIME at
net.suberic.crypto.EncryptionManager.getEncryptionUtils(Unknown Source)).

Here is a list of libraries, that I include in the lib-directory of the
created WAR-file:
 - activation.jar
 - bcmail-jdk15-141.jar
 - bcprov-ext-jdk15-141.jar
 - bcprov-jdk15-141.jar
 - cryptomail.jar
 - javamail-crypto_060622.jar
 - javamail-crypto-bouncycastle-smime_060622.jar
 - mail.jar
 - mailapi.jar
 - smtp.jar

I also tried to put them into commons/lib but the exception is still thrown.
I use Java1.5_14 and Tomcat5.5. 

Thanks in advance for your effort. Any help will be apreciated.

Cheers,
  Servet

 

-
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: apache virtual hosts using different tomcat on different servers

2008-10-13 Thread Nicola Burns
Hi Chris,

My mod_jk.conf setting are below, no error reported in the mod_jk.log file when 
I have the following in either virtual hosts tag or in mod_jk.conf. I am only 
testing with test1.foo.com, apache is running on the localhost and my jboss app 
is on a remote server, worker82

Nicola 

LoadModule jk_module modules/mod_jk.so
# Where to find workers.properties
JkWorkersFile conf/ctp/workers.properties

# Where to put jk logs
JkLogFile d:/tools/apache2/logs/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevelinfo
# Select the log format
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
# Option to mount and point apache to jboss on 212.147.152.81 (this is a remote 
server where my jboss app is running)
# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format
JkRequestLogFormat %w %V %T
JkShmFile logs/jk.shm

Location /jkstatus/
JkMount status
  Order deny,allow
  Deny from all
  Allow from 127.0.0.1
/Location

# Mount my app for test1.foo.com on worker82
JkMount /ctp/* worker82
JkMount /vengine/* worker82
JkUnMount /ctp/images/* worker82
JkUnMount /ctp/editor/* worker82
JkUnMount /ctp/css/* worker82
JkMount /cerplay/* worker82
JkMount /coplay/* worker82
JkMount /login/j_security_check worker82
JkMount /webservices/webservice worker82

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED] 
Sent: 13 October 2008 15:43
To: Tomcat Users List
Subject: Re: apache virtual hosts using different tomcat on different servers

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nicola,

Nicola Burns wrote:
 I move my 'JkMount *.jsp workerA' information from mod_jk.conf into
 my virtual hosts tag and restart apache. When I attempt to access my
 url test1.foo.com, apache tell me it cannot find my home.do page to
 login (not found in this server, but when I simply move this back to
 the mod_jk.conf file again, I can login?

Can you post your mod_jk configuration? Please post both mod_jk.conf
/and/ the JkMount directives you are using (and indicate which virtual
hosts they are in).

 The only thing I leave in the mod_jk.conf file is the location of the
 log/worker.properties files. Is this a windows relative path issue?

It's possible, but not likely. Provide a complete path if you are
concerned about it. Also, you could look at your log file to see if
there are any mod_jk startup errors.

- -chris

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

iEYEARECAAYFAkjzXowACgkQ9CaO5/Lv0PCGqACfYZWToZE+/bx5yDJHXCs4jkg0
E+UAoI9tk2mE7ELg2UBVnPszSFM7MNM6
=wWdS
-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: Max connections

2008-10-13 Thread Caldarale, Charles R
 From: Mohit Anchlia [mailto:[EMAIL PROTECTED]
 Subject: Re: Max connections

 I didn't understand the description of attribute
 maxKeepAliveRequests, it says:

 The maximum number of HTTP requests which can be pipelined until the
 connection is closed by the server.

 Does it mean total number of keep alive connections allowed at one
 time. When we say connection is closed, does it mean for new
 requests?

You might want to read the HTTP 1.1 RFC to become familiar with the terminology.

The maxKeepAliveRequests parameter is the limit on the number of requests 
handled over a single HTTP connection; when that limit is reached, the server 
closes the connection and the client must initiate a new one.

Mark T already gave you the answer to your original question.

 - 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: Using S/MIME encryption in Tomcat5.5 fails

2008-10-13 Thread Martin Gainty

I dont believe the default BC jars have S/MIME capability
I would download bcmailJDK.jar and place in your /lib folder
from
http://www.bouncycastle.org/latest_releases.html

let me know if this helps..
Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Subject: Using S/MIME encryption in Tomcat5.5 fails
 Date: Mon, 13 Oct 2008 18:13:46 +0200
 
 Hi *,
 
 I try to encrypt outgoing mails from my webapplication with S/MIME. 
 
 Therefore I make use of the BouncyCastleProvider and created an example
 according to http://javamail-crypto.sourceforge.net/. Afterwards I
 introduced Bouncycaste as securityprovider by adding the line
 security.provider.7=org.bouncycastle.jce.provider.BouncyCastleProvider to
 the file 
 JAVA_HOME/jre/lib/security/java.security.
 
 When I start the class as a standalone JavaApplication everything works
 fine, but putting it into my webapplication and calling it raises a
 NoSuchProviderException 
 (DEBUG: setDebug: JavaMail version 1.3.1
 java.security.NoSuchProviderException: No provider configured for S/MIME at
 net.suberic.crypto.EncryptionManager.getEncryptionUtils(Unknown Source)).
 
 Here is a list of libraries, that I include in the lib-directory of the
 created WAR-file:
  - activation.jar
  - bcmail-jdk15-141.jar
  - bcprov-ext-jdk15-141.jar
  - bcprov-jdk15-141.jar
  - cryptomail.jar
  - javamail-crypto_060622.jar
  - javamail-crypto-bouncycastle-smime_060622.jar
  - mail.jar
  - mailapi.jar
  - smtp.jar
 
 I also tried to put them into commons/lib but the exception is still thrown.
 I use Java1.5_14 and Tomcat5.5. 
 
 Thanks in advance for your effort. Any help will be apreciated.
 
 Cheers,
   Servet
 
  
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_
See how Windows connects the people, information, and fun that are part of your 
life.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/

Re: Max connections

2008-10-13 Thread Mohit Anchlia
I am using tomcat 6

On Sun, Oct 12, 2008 at 11:29 PM, Mark Thomas [EMAIL PROTECTED] wrote:
 Martin Gainty wrote:
 in $TOMCAT_HOME/conf/server.xml Connector implements the acceptCount 
 attribute
 http://tomcat.apache.org/tomcat-4.1-doc/config/coyote.html

 acceptCount is not the right attribute to do this. That is also the 4.1
 doc. The OP didn't say what version they were using.

 From: [EMAIL PROTECTED]

 How can I limit number of connections to Tomcat server from outside
 world?
 You want the maxThreads attribute of the connector element.

 Like jboss has jmx console does tomcat has something like that?
 Recent JDKs have jconsole. Tomcat has the JMX Proxy Servlet:
 http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Using%20the%20JMX%20Proxy%20Servlet

 Mark



 -
 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: Max connections

2008-10-13 Thread Mohit Anchlia
so if I can use JMX can I also set debug level dynamically? I am using
tomcat 6.0

On Mon, Oct 13, 2008 at 9:55 AM, Mohit Anchlia [EMAIL PROTECTED] wrote:
 I am using tomcat 6

 On Sun, Oct 12, 2008 at 11:29 PM, Mark Thomas [EMAIL PROTECTED] wrote:
 Martin Gainty wrote:
 in $TOMCAT_HOME/conf/server.xml Connector implements the acceptCount 
 attribute
 http://tomcat.apache.org/tomcat-4.1-doc/config/coyote.html

 acceptCount is not the right attribute to do this. That is also the 4.1
 doc. The OP didn't say what version they were using.

 From: [EMAIL PROTECTED]

 How can I limit number of connections to Tomcat server from outside
 world?
 You want the maxThreads attribute of the connector element.

 Like jboss has jmx console does tomcat has something like that?
 Recent JDKs have jconsole. Tomcat has the JMX Proxy Servlet:
 http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Using%20the%20JMX%20Proxy%20Servlet

 Mark



 -
 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: [OT] Why can NOT run Tomcat on my Laptop

2008-10-13 Thread André Warnier

David Smith wrote:

André Warnier wrote:

David Smith wrote:

Caldarale, Charles R wrote:

... for that Microsoft should be awarded the opposite of the

Nobel peace prize.

 - Chuck
  

That would be the Darwin award :-)

--David


Now, call me thick, but that one I don't get.


Google for the Darwin Awards.  It's awards for people who through their 
own stupidity remove themselves from the gene pool.


--David


Ok, got it, thanks.  Too late for me 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]



Re: polish dialectic signs lturn into #

2008-10-13 Thread André Warnier

Mark Thomas wrote:

Raghu wrote:

I have developed JSP Struts Polish Application in UTF-8  encoding.

 


Application interacts with SAP for polish data .I am able to insert the data
into SAP from jsp application running on tomcat.

 


Application which is working on windows version of polish system (windows XP
)is not working on Linux System.

 


Polish dialectic signs like ą,ć,ś,ó,ź,ł,ę are turn into # symbols.

 


Any advice to make the application work on both windows and Linux.


http://wiki.apache.org/tomcat/FAQ/CharacterEncoding

Mark

I will not discuss Mark's opinion (that would be dialectic), but to the 
OP, the word usually used for these letters is diacritic.

See here : http://en.wikipedia.org/wiki/Diacritic

In addition to what the above Tomcat wiki indicates, you may want to 
check the locale of the process which runs Tomcat.

I have found that setting
LC_CTYPE=xx ; export LC_CTYPE
prior to the java command starting Tomcat under Unix/Linux, changes the 
way in which some webapps react to character sets.
(They should not, if they are properly written, but in the practice they 
often do).


There is a lot more to say on this subject, but if the above is enough 
to resolve your problem, we'll leave that for another time.



-
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: polish dialectic signs lturn into #

2008-10-13 Thread Joseph Millet
If any of the above are not working you through this ...
I understand you rely on some DB layer for inserts, so that you seem to
acknowledge that inserts perform ok and that you get proper unicode stored -
you should then investigate how your application connects to that data
store, i.e. it's likely you have a charset that defaults to utf-8 using
windows (beware windows rather like UCS-2) - behaviour that changes under
Linux - when you're getting the DB connection.

Joseph

2008/10/13 André Warnier [EMAIL PROTECTED]

 Mark Thomas wrote:

 Raghu wrote:

 I have developed JSP Struts Polish Application in UTF-8  encoding.


 Application interacts with SAP for polish data .I am able to insert the
 data
 into SAP from jsp application running on tomcat.


 Application which is working on windows version of polish system (windows
 XP
 )is not working on Linux System.


 Polish dialectic signs like ą,ć,ś,ó,ź,ł,ę are turn into # symbols.


 Any advice to make the application work on both windows and Linux.


 http://wiki.apache.org/tomcat/FAQ/CharacterEncoding

 Mark

  I will not discuss Mark's opinion (that would be dialectic), but to the
 OP, the word usually used for these letters is diacritic.
 See here : http://en.wikipedia.org/wiki/Diacritic

 In addition to what the above Tomcat wiki indicates, you may want to check
 the locale of the process which runs Tomcat.
 I have found that setting
 LC_CTYPE=xx ; export LC_CTYPE
 prior to the java command starting Tomcat under Unix/Linux, changes the way
 in which some webapps react to character sets.
 (They should not, if they are properly written, but in the practice they
 often do).

 There is a lot more to say on this subject, but if the above is enough to
 resolve your problem, we'll leave that for another time.



 -
 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 Accelerator - Front ending Tomcat

2008-10-13 Thread Mike Koponick

Hello Everyone,

I have not been a frequent administrator of Tomcat, but it seems that
I am becoming one!

So, Here is my setup, I using an SSL accelerator in front of a Tomcat
server running two instances. When I try to access the website, the
webserver (rightfully so) redirects me to another page on the same
machine for the same instance. Thusly, I do not have the https URL
any longer, but have http instead, of course this kills the
connection.

So, I was wondering if anyone has had any experience setting up this
type of environment. It seems to me that Tomcat doesn't know that
this is a secure connection.

Any information is good information.

Thanks!

Mike


-
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 Accelerator - Front ending Tomcat

2008-10-13 Thread Martin Gainty

all your SSL/nonSSL connections are all defined in 
$TOMCAT_HOME/conf/server.xml
if you provide information on who/what/why/how specific security features you 
want your website to implement
we can be of point you in the right direction
check out
http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html
also pay attention to redirectPort of the NON-ssl connector *usually 8443*

a very simple primer located here
http://techtracer.com/2007/09/12/setting-up-ssl-on-tomcat-in-3-easy-steps/

Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


 From: [EMAIL PROTECTED]
 Subject: SSL Accelerator - Front ending Tomcat
 Date: Mon, 13 Oct 2008 15:53:35 -0700
 To: users@tomcat.apache.org
 
 Hello Everyone,
 
 I have not been a frequent administrator of Tomcat, but it seems that
 I am becoming one!
 
 So, Here is my setup, I using an SSL accelerator in front of a Tomcat
 server running two instances. When I try to access the website, the
 webserver (rightfully so) redirects me to another page on the same
 machine for the same instance. Thusly, I do not have the https URL
 any longer, but have http instead, of course this kills the
 connection.
 
 So, I was wondering if anyone has had any experience setting up this
 type of environment. It seems to me that Tomcat doesn't know that
 this is a secure connection.
 
 Any information is good information.
 
 Thanks!
 
 Mike
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_
Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008

mod_proxy_balancer

2008-10-13 Thread AD
hello,
 If i have a tomcat app deployed at http://localhost:8080/myapp1/  and
http://localhost:8080/myapp2/ and i want 2 virtualhosts in apache to map /
to each one of these apps, is this possible?

Trying something like

Proxy balancer://app1/
BalancerMember ajp://localhost:8009/app1/
BalancerMember ajp://localhost:8009/app1/
/Proxy

Proxy balancer://tomcat_1_1/
BalancerMember ajp://localhost:8009/app2/
BalancerMember ajp://localhost:8009/app2/
/Proxy

Then in each virtualhost

HTTP Virtualhost 1:
ProxyPass / balancer://app1
ProxyPassReverse / balancer://app1

HTTP Virtualhost 2:
ProxyPass / balancer://app1
ProxyPassReverse / balancer://app1

but getting path errors all over.

 Thx
 Adam


Re: SSL Accelerator - Front ending Tomcat

2008-10-13 Thread Brian Clark
I don't know if this will actually help Mike do what he wants to do. I don't 
think he needs to know about Tomcat SSL configuration.

I think we do exactly what Mike wants to do...we have a network load balancer 
with SSL accelerator in front of all of our Tomcat instances. All of our 
incoming SSL connections terminate on the load balancer. The load balancer acts 
as a sort of reverse proxy to Tomcat. The Tomcat instances do not have any SSL 
configuration whatsoever--communications between the load balancer and Tomcat 
is via HTTP. Some load balancers support re-encrypting traffic between the load 
balancer and the web/app server. You could setup your environment like this, 
and it might solve your problem. We didn't do it this way though. 

To make this work in our environment, we had to engineer our applications to be 
SSL-aware, even though Tomcat wasn't. To do this, we did two major pieces of 
engineering effort: 
 1) Used relative links in our apps as much as possible. If you could make 
all of your URL's relative, then you wouldn't have any problems, as there would 
never be any miscommunication between the browser, the load balancer and Tomcat.
 2) Whenever we generated full URL's inside of an SSL-enabled application, 
we had to make sure that our code generated an HTTPS URL, and not an HTTP URL. 
You don't normally have to do this, as Tomcat can do it for you. But since 
Tomcat isn't aware that the connection is SSL-enabled, you have to write code 
to force the kind of URL that you want. For our HTTP apps, we had to make sure 
that HTTP URL's were generated. 

Hope this helps. 

Brian



- Original Message 
From: Martin Gainty [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, October 13, 2008 7:20:48 PM
Subject: RE: SSL Accelerator - Front ending Tomcat


all your SSL/nonSSL connections are all defined in 
$TOMCAT_HOME/conf/server.xml
if you provide information on who/what/why/how specific security features you 
want your website to implement
we can be of point you in the right direction
check out
http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html
also pay attention to redirectPort of the NON-ssl connector *usually 8443*

a very simple primer located here
http://techtracer.com/2007/09/12/setting-up-ssl-on-tomcat-in-3-easy-steps/

Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 


 From: [EMAIL PROTECTED]
 Subject: SSL Accelerator - Front ending Tomcat
 Date: Mon, 13 Oct 2008 15:53:35 -0700
 To: users@tomcat.apache.org
 
 Hello Everyone,
 
 I have not been a frequent administrator of Tomcat, but it seems that
 I am becoming one!
 
 So, Here is my setup, I using an SSL accelerator in front of a Tomcat
 server running two instances. When I try to access the website, the
 webserver (rightfully so) redirects me to another page on the same
 machine for the same instance. Thusly, I do not have the https URL
 any longer, but have http instead, of course this kills the
 connection.
 
 So, I was wondering if anyone has had any experience setting up this
 type of environment. It seems to me that Tomcat doesn't know that
 this is a secure connection.
 
 Any information is good information.
 
 Thanks!
 
 Mike
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

_
Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008


  

Re: mod_proxy_balancer

2008-10-13 Thread Hassan Schroeder
On Mon, Oct 13, 2008 at 7:17 PM, AD [EMAIL PROTECTED] wrote:

  If i have a tomcat app deployed at http://localhost:8080/myapp1/  and
 http://localhost:8080/myapp2/ and i want 2 virtualhosts in apache to map /
 to each one of these apps, is this possible?

Possible? Sure. Good idea? Probably not.

 Trying something like

Did your editor just drop into mode.new().generateRandomStuff()?

Do you want to use port 8080 (http) or 8009 (ajp)?

Proxy balancer://whatever
BalancerMember http://localhost:3000
/Proxy


-- 
Hassan Schroeder  [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: mod_proxy_balancer

2008-10-13 Thread Hassan Schroeder
Rats, sorry, copy/paste failure there, mail sent prematurely ...

Assuming port 8080 --

Proxy balancer://whatever
  BalancerMember http://localhost:8080/app1/
  BalancerMember http://localhost:8080/app2/
/Proxy

And that would be configured the same for both virtual hosts.

  ProxyPass / balancer://whatever/
  ProxyPassReverse / balancer://whatever/

HTH,
-- 
Hassan Schroeder  [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]



server.xml configuration

2008-10-13 Thread gjj391

I seem to have a bit of a issue when installing railo in tomcat. Hoping
someone here has seen this. This is alot more about tomcat than it is railo
though.

I have deployed railo as a war file through the tomcat manager. I am using
mod_jk to bypass apache and have tomcat serve everything.

you can see here:   www.gj-dev.com www.gj-dev.com   that it successfully
works. But when I add a sub directory to the railo directory things start
breaking. Please see here  www.gj-dev.com/test/test.cfm
www.gj-dev.com/test/test.cfm  It is as if the railo classes are not being
invoked.

My code in server.xml that is having this domain pointed straight to the
railo directory is as follows:
 Host appBase=webapps/railo name=gj-dev.com
  Aliaswww.gj-dev.com/Alias
  Context path= docBase=/
  /Host

My directory structure is from tomcat is

tomcat/
   webapps/
   railo/
  index.cfm
  WEB-INF
  test/
   test.cfm
-- 
View this message in context: 
http://www.nabble.com/server.xml-configuration-tp19966939p19966939.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]