Re: FW: Issue with tomcat 6 connector
Hi All, I used the inbuild reverse proxy feature in sun java system webserver 7. This works perfect than the connector. Also very simple. We can just redirect in UI. Wow. I tried it before but it was having few issues with sso headers. Now all looks good. All the pages are loading perfect. Thanks for all your help. Regards, Krish On Mon, Mar 21, 2011 at 10:12 AM, Krish kris...@gmail.com wrote: Hi, Can somebody help me with this issue. Appreciate your help or let me know what would be the best solution to implement this. Thanks. On Sun, Mar 20, 2011 at 11:17 PM, Krish kris...@gmail.com wrote: Martin, Thanks for the email. Please find the answers for your questions. Before that this is connector between sun one webserevr and Tomcat 6 not websphere. a)which OS will you be targetting? Windows 2003 b)which JVM are you implementing? Sun Java 1.6 c)which version Tomcat will you be targetting? Tomcat 6.0.20 d)explain what you want to accomplish I am trying to establish a connector between sun java system webserver 7 and tomcat 6. I used the below documentation to configure http://tomcat.apache.org/connectors-doc/webserver_howto/nes.html Redirection is working fine but jsp is not serving. that is the only problem here. If you could help me in that that would be great. On Sun, Mar 20, 2011 at 2:23 PM, Martin Gainty mgai...@hotmail.comwrote: From: mgai...@hotmail.com To: users@tomcat.apache.org Subject: RE: Issue with tomcat 6 connector Date: Sun, 20 Mar 2011 08:59:57 -0400 looks like you're trying to install WebSphere Application Server plugin first you want to gain an understanding of how connectors work so you should read: http://tomcat.apache.org/connectors-doc i would suggest one of 2 avenues: 1)request the functionality you desire be installed to on existing jk connector but look at workers.properties and uriworkers.properties and determine first if the functionality currently exists to support your requirement. 2)Use the configuration, layout identified by placement of folders and files and construct a new connector and build the connector on your OS a)which OS will you be targetting? b)which JVM are you implementing? c)which version Tomcat will you be targetting? d)explain what you want to accomplish cheers, Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sat, 19 Mar 2011 21:13:13 -0700 Subject: Re: Issue with tomcat 6 connector From: kris...@gmail.com To: mgai...@hotmail.com CC: users@tomcat.apache.org HI Martin, Thanks for the email. I hope you require my magus conf. Here you go. # # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. # Init fn=load-modules shlib=j2eeplugin.dll Init fn=load-modules shlib=D:/Agent/144703-01/web_agents/sjsws_agent/lib/ames6.dll funcs=web_agent_init,validate_session_policy,append_post_data,process_notification Init fn=web_agent_init dsameconfdir=D:/Agent/144703-01/web_agents/sjsws_agent/Agent_002/config LateInit=yes Init fn=pool-init disable=false Init fn=load-modules funcs=jk_init,jk_service shlib=C:/Program Files/Oracle/WebServer7/https-dca-app-170/config/nsapi_redirect.dll shlib_flags=(global|now) Init fn=jk_init worker_file=C:/Program Files/Oracle/WebServer7/https-dca-app-170/config/workers.properties log_level=debug log_file=C:/Program Files/Oracle/WebServer7/https-dca-app-170/logs/nsapi.log shm_file=C:/Program Files/Oracle/WebServer7/https-dca-app-170/config/logs/jk_shm Krish On Sat, Mar 19, 2011 at 9:03 PM, Martin Gainty mgai...@hotmail.com wrote: you're routing jsp to jk-service what is jk-service Martin Gainty __ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk
Re: FW: Issue with tomcat 6 connector
Martin, Thanks for the email. Please find the answers for your questions. Before that this is connector between sun one webserevr and Tomcat 6 not websphere. a)which OS will you be targetting? Windows 2003 b)which JVM are you implementing? Sun Java 1.6 c)which version Tomcat will you be targetting? Tomcat 6.0.20 d)explain what you want to accomplish I am trying to establish a connector between sun java system webserver 7 and tomcat 6. I used the below documentation to configure http://tomcat.apache.org/connectors-doc/webserver_howto/nes.html Redirection is working fine but jsp is not serving. that is the only problem here. If you could help me in that that would be great. On Sun, Mar 20, 2011 at 2:23 PM, Martin Gainty mgai...@hotmail.com wrote: From: mgai...@hotmail.com To: users@tomcat.apache.org Subject: RE: Issue with tomcat 6 connector Date: Sun, 20 Mar 2011 08:59:57 -0400 looks like you're trying to install WebSphere Application Server plugin first you want to gain an understanding of how connectors work so you should read: http://tomcat.apache.org/connectors-doc i would suggest one of 2 avenues: 1)request the functionality you desire be installed to on existing jk connector but look at workers.properties and uriworkers.properties and determine first if the functionality currently exists to support your requirement. 2)Use the configuration, layout identified by placement of folders and files and construct a new connector and build the connector on your OS a)which OS will you be targetting? b)which JVM are you implementing? c)which version Tomcat will you be targetting? d)explain what you want to accomplish cheers, Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sat, 19 Mar 2011 21:13:13 -0700 Subject: Re: Issue with tomcat 6 connector From: kris...@gmail.com To: mgai...@hotmail.com CC: users@tomcat.apache.org HI Martin, Thanks for the email. I hope you require my magus conf. Here you go. # # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. # Init fn=load-modules shlib=j2eeplugin.dll Init fn=load-modules shlib=D:/Agent/144703-01/web_agents/sjsws_agent/lib/ames6.dll funcs=web_agent_init,validate_session_policy,append_post_data,process_notification Init fn=web_agent_init dsameconfdir=D:/Agent/144703-01/web_agents/sjsws_agent/Agent_002/config LateInit=yes Init fn=pool-init disable=false Init fn=load-modules funcs=jk_init,jk_service shlib=C:/Program Files/Oracle/WebServer7/https-dca-app-170/config/nsapi_redirect.dll shlib_flags=(global|now) Init fn=jk_init worker_file=C:/Program Files/Oracle/WebServer7/https-dca-app-170/config/workers.properties log_level=debug log_file=C:/Program Files/Oracle/WebServer7/https-dca-app-170/logs/nsapi.log shm_file=C:/Program Files/Oracle/WebServer7/https-dca-app-170/config/logs/jk_shm Krish On Sat, Mar 19, 2011 at 9:03 PM, Martin Gainty mgai...@hotmail.com wrote: you're routing jsp to jk-service what is jk-service Martin Gainty __ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet tartalma miatt. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund
Re: FW: Issue with tomcat 6 connector
Hi, Thanks for the reply. I changed the obj.conf as u suggested. Still it is same. It is not recognizing any jsp file. It says 404 file not found error. It only looks for html pages. Regards, Krish On Sun, Mar 20, 2011 at 11:40 PM, Konstantin Kolinko knst.koli...@gmail.com wrote: 2011/3/21 Krish kris...@gmail.com: Martin, Thanks for the email. Please find the answers for your questions. Before that this is connector between sun one webserevr and Tomcat 6 not websphere. a)which OS will you be targetting? Windows 2003 b)which JVM are you implementing? Sun Java 1.6 c)which version Tomcat will you be targetting? Tomcat 6.0.20 d)explain what you want to accomplish I am trying to establish a connector between sun java system webserver 7 and tomcat 6. I used the below documentation to configure http://tomcat.apache.org/connectors-doc/webserver_howto/nes.html You have: NameTrans fn=assign-name from=/*.jsp/ name=jknsapi According to the examples on the above mentioned page you should not have trailing / after *.jsp. BTW, I think that you have seen it: The file obj.conf seems to be sensitive to leading white space in lines, especially in the Object element. (It looks like the two last Object in your conf are intentionally misconfigured with a typo in ppath attribute name). Redirection is working fine but jsp is not serving. that is the only problem here. If you could help me in that that would be great. On Sun, Mar 20, 2011 at 2:23 PM, Martin Gainty mgai...@hotmail.com wrote: -- Krish - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Krish
Re: FW: Issue with tomcat 6 connector
Hi, Can somebody help me with this issue. Appreciate your help or let me know what would be the best solution to implement this. Thanks. On Sun, Mar 20, 2011 at 11:17 PM, Krish kris...@gmail.com wrote: Martin, Thanks for the email. Please find the answers for your questions. Before that this is connector between sun one webserevr and Tomcat 6 not websphere. a)which OS will you be targetting? Windows 2003 b)which JVM are you implementing? Sun Java 1.6 c)which version Tomcat will you be targetting? Tomcat 6.0.20 d)explain what you want to accomplish I am trying to establish a connector between sun java system webserver 7 and tomcat 6. I used the below documentation to configure http://tomcat.apache.org/connectors-doc/webserver_howto/nes.html Redirection is working fine but jsp is not serving. that is the only problem here. If you could help me in that that would be great. On Sun, Mar 20, 2011 at 2:23 PM, Martin Gainty mgai...@hotmail.comwrote: From: mgai...@hotmail.com To: users@tomcat.apache.org Subject: RE: Issue with tomcat 6 connector Date: Sun, 20 Mar 2011 08:59:57 -0400 looks like you're trying to install WebSphere Application Server plugin first you want to gain an understanding of how connectors work so you should read: http://tomcat.apache.org/connectors-doc i would suggest one of 2 avenues: 1)request the functionality you desire be installed to on existing jk connector but look at workers.properties and uriworkers.properties and determine first if the functionality currently exists to support your requirement. 2)Use the configuration, layout identified by placement of folders and files and construct a new connector and build the connector on your OS a)which OS will you be targetting? b)which JVM are you implementing? c)which version Tomcat will you be targetting? d)explain what you want to accomplish cheers, Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sat, 19 Mar 2011 21:13:13 -0700 Subject: Re: Issue with tomcat 6 connector From: kris...@gmail.com To: mgai...@hotmail.com CC: users@tomcat.apache.org HI Martin, Thanks for the email. I hope you require my magus conf. Here you go. # # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. # Init fn=load-modules shlib=j2eeplugin.dll Init fn=load-modules shlib=D:/Agent/144703-01/web_agents/sjsws_agent/lib/ames6.dll funcs=web_agent_init,validate_session_policy,append_post_data,process_notification Init fn=web_agent_init dsameconfdir=D:/Agent/144703-01/web_agents/sjsws_agent/Agent_002/config LateInit=yes Init fn=pool-init disable=false Init fn=load-modules funcs=jk_init,jk_service shlib=C:/Program Files/Oracle/WebServer7/https-dca-app-170/config/nsapi_redirect.dll shlib_flags=(global|now) Init fn=jk_init worker_file=C:/Program Files/Oracle/WebServer7/https-dca-app-170/config/workers.properties log_level=debug log_file=C:/Program Files/Oracle/WebServer7/https-dca-app-170/logs/nsapi.log shm_file=C:/Program Files/Oracle/WebServer7/https-dca-app-170/config/logs/jk_shm Krish On Sat, Mar 19, 2011 at 9:03 PM, Martin Gainty mgai...@hotmail.com wrote: you're routing jsp to jk-service what is jk-service Martin Gainty __ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet tartalma miatt. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir
Re: Issue with tomcat 6 connector
Hi Michael, I can't even access the jsp's under document root as well. Only html's work. I just followed this documentation. No jsp's work. That is the whole problem. Please let me know the correct configuration. http://tomcat.apache.org/connectors-doc/webserver_howto/nes.html Regards, Krish On Sun, Mar 20, 2011 at 1:43 AM, Michael Ludwig mil...@gmx.de wrote: Krish schrieb am 19.03.2011 um 17:31 (-0700): I am using tomcat 6.0.20. In the frontend i have sun one webserver 7 using nsapi_redirect-1.2.31 connector. My OS is windows server 2003 32bit. I am trying to create a connector using the document below. http://tomcat.apache.org/connectors-doc/webserver_howto/nes.html my tomcat is ssl enabled and my sun one webserver 7 is http. Unrelated, but why would you need SSL in Tomcat when you're fronting it with Sun One Webserver? here is the configuration in obj.conf. I can get the tomcat base html pages. But jsp is not working. Look at this mapping: NameTrans fn=assign-name from=/*.jsp/ name=jknsapi Are you sure it applies to all JSPs? I'd presume it applies only to JSPs directly beneatht the document root. -- Michael Ludwig - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Krish
Re: Issue with tomcat 6 connector
Hi, I am not able to get you. i am not using any apache here. Regards, Krish On Sun, Mar 20, 2011 at 4:14 AM, André Warnier a...@ice-sa.com wrote: Probably in some way, the same ever recurring issue of allowing Apache to bypass Tomcat and get to the JSP pages directly. Krish wrote: Hi Michael, I can't even access the jsp's under document root as well. Only html's work. I just followed this documentation. No jsp's work. That is the whole problem. Please let me know the correct configuration. http://tomcat.apache.org/connectors-doc/webserver_howto/nes.html Regards, Krish On Sun, Mar 20, 2011 at 1:43 AM, Michael Ludwig mil...@gmx.de wrote: Krish schrieb am 19.03.2011 um 17:31 (-0700): I am using tomcat 6.0.20. In the frontend i have sun one webserver 7 using nsapi_redirect-1.2.31 connector. My OS is windows server 2003 32bit. I am trying to create a connector using the document below. http://tomcat.apache.org/connectors-doc/webserver_howto/nes.html my tomcat is ssl enabled and my sun one webserver 7 is http. Unrelated, but why would you need SSL in Tomcat when you're fronting it with Sun One Webserver? here is the configuration in obj.conf. I can get the tomcat base html pages. But jsp is not working. Look at this mapping: NameTrans fn=assign-name from=/*.jsp/ name=jknsapi Are you sure it applies to all JSPs? I'd presume it applies only to JSPs directly beneatht the document root. -- Michael Ludwig - 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 -- Krish
Issue with tomcat 6 connector
Hi, I am using tomcat 6.0.20. In the frontend i have sun one webserver 7 using nsapi_redirect-1.2.31 connector. My OS is windows server 2003 32bit. I am trying to create a connector using the document below. http://tomcat.apache.org/connectors-doc/webserver_howto/nes.html my tomcat is ssl enabled and my sun one webserver 7 is http. here is the configuration in obj.conf. I can get the tomcat base html pages. But jsp is not working. Appreciate your help in this. # # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. # # You can edit this file, but comments and formatting changes # might be lost when you use the administration GUI or CLI. Object name=default AuthTrans fn=match-browser browser=*MSIE* ssl-unclean-shutdown=true NameTrans fn=ntrans-j2ee name=j2ee NameTrans fn=pfx2dir from=/mc-icons dir=C:/Program Files/Oracle/WebServer7/lib/icons name=es-internal NameTrans fn=assign-name from=/* name=jknsapi NameTrans fn=assign-name from=/*.jsp/ name=jknsapi NameTrans fn=assign-name from=/servlet/* name=jknsapi NameTrans fn=assign-name from=/twpoc/* name=jknsapi PathCheck fn=uri-clean PathCheck fn=check-acl acl=default PathCheck fn=find-pathinfo PathCheck fn=find-index-j2ee PathCheck fn=find-index index-names=index.html,index.jsp,home.html PathCheck fn=validate_session_policy ObjectType fn=type-j2ee ObjectType fn=type-by-extension ObjectType fn=force-type type=text/plain Service method=(GET|HEAD) type=magnus-internal/directory fn=index-common Service method=(GET|HEAD|POST) type=*~magnus-internal/* fn=send-file Service method=TRACE fn=service-trace Error fn=error-j2ee AddLog fn=flex-log /Object Object name=j2ee Service fn=service-j2ee method=* /Object Object name=es-internal PathCheck fn=check-acl acl=es-internal /Object Object name=cgi ObjectType fn=force-type type=magnus-internal/cgi Service fn=send-cgi /Object Object name=jknsapi ObjectType fn=force-type type=text/plain Service fn=jk_service method=* worker=worker1 /Object Object name=send-precompressed PathCheck fn=find-compressed /Object Object name=compress-on-demand Output fn=insert-filter filter=http-compression /Object Object ppath=*/dummypost/sunpostpreserve* Service type=text/* method=(GET|POST) fn=append_post_data /Object Object ppath=*/UpdateAgentCacheServlet* Service type=text/* method=(POST) fn=process_notification /Object Thanks
Re: Issue with tomcat 6 connector
HI Martin, Thanks for the email. I hope you require my magus conf. Here you go. # # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. # Init fn=load-modules shlib=j2eeplugin.dll Init fn=load-modules shlib=D:/Agent/144703-01/web_agents/sjsws_agent/lib/ames6.dll funcs=web_agent_init,validate_session_policy,append_post_data,process_notification Init fn=web_agent_init dsameconfdir=D:/Agent/144703-01/web_agents/sjsws_agent/Agent_002/config LateInit=yes Init fn=pool-init disable=false Init fn=load-modules funcs=jk_init,jk_service shlib=C:/Program Files/Oracle/WebServer7/https-dca-app-170/config/nsapi_redirect.dll shlib_flags=(global|now) Init fn=jk_init worker_file=C:/Program Files/Oracle/WebServer7/https-dca-app-170/config/workers.properties log_level=debug log_file=C:/Program Files/Oracle/WebServer7/https-dca-app-170/logs/nsapi.log shm_file=C:/Program Files/Oracle/WebServer7/https-dca-app-170/config/logs/jk_shm Krish On Sat, Mar 19, 2011 at 9:03 PM, Martin Gainty mgai...@hotmail.com wrote: you're routing jsp to jk-service what is jk-service Martin Gainty __ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet tartalma miatt. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sat, 19 Mar 2011 17:31:35 -0700 Subject: Issue with tomcat 6 connector From: kris...@gmail.com To: users@tomcat.apache.org Hi, I am using tomcat 6.0.20. In the frontend i have sun one webserver 7 using nsapi_redirect-1.2.31 connector. My OS is windows server 2003 32bit. I am trying to create a connector using the document below. http://tomcat.apache.org/connectors-doc/webserver_howto/nes.html my tomcat is ssl enabled and my sun one webserver 7 is http. here is the configuration in obj.conf. I can get the tomcat base html pages. But jsp is not working. Appreciate your help in this. # # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. # # You can edit this file, but comments and formatting changes # might be lost when you use the administration GUI or CLI. Object name=default AuthTrans fn=match-browser browser=*MSIE* ssl-unclean-shutdown=true NameTrans fn=ntrans-j2ee name=j2ee NameTrans fn=pfx2dir from=/mc-icons dir=C:/Program Files/Oracle/WebServer7/lib/icons name=es-internal NameTrans fn=assign-name from=/* name=jknsapi NameTrans fn=assign-name from=/*.jsp/ name=jknsapi NameTrans fn=assign-name from=/servlet/* name=jknsapi NameTrans fn=assign-name from=/twpoc/* name=jknsapi PathCheck fn=uri-clean PathCheck fn=check-acl acl=default PathCheck fn=find-pathinfo PathCheck fn=find-index-j2ee PathCheck fn=find-index index-names=index.html,index.jsp,home.html PathCheck fn=validate_session_policy ObjectType fn=type-j2ee ObjectType fn=type-by-extension ObjectType fn=force-type type=text/plain Service method=(GET|HEAD) type=magnus-internal/directory fn=index-common Service method=(GET|HEAD|POST) type=*~magnus-internal/* fn=send-file Service method=TRACE fn=service-trace Error fn=error-j2ee AddLog fn=flex-log /Object Object name=j2ee Service fn=service-j2ee method=* /Object Object name=es-internal PathCheck fn=check-acl acl=es-internal /Object Object name=cgi ObjectType fn=force-type type=magnus-internal/cgi Service fn=send-cgi /Object Object name=jknsapi ObjectType fn=force-type type=text/plain Service fn=jk_service method=* worker
Re: Accessing a Tomcat webapp from a PHP webapp
Sent from my iPhone On Feb 18, 2010, at 6:32 PM, Christopher Schultz ch...@christopherschultz.net wrote: access? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Restriciting maximum post size in Tomcat
I set the maxPostSize=1000 in the server.xml and started the server. If i post 1000 i dont get a error. ( Connector port=8080 maxPostSize=1000 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true/ ) How to get this feature to work. I have searched all over the place and dont have answers. I have tried 5.5.17 15 tomcat. I use a FORM to POST a file of large size. Thanks for any help Rgds Krish - 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: Restriciting maximum post size in Tomcat
hi , this works. I had set wrong encoding in the FORM. It should be application/x-www-form-urlencoded Tx, Krishnakumar On 8/22/06, Krish B [EMAIL PROTECTED] wrote: I set the maxPostSize=1000 in the server.xml and started the server. If i post 1000 i dont get a error. ( Connector port=8080 maxPostSize=1000 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true/ ) How to get this feature to work. I have searched all over the place and dont have answers. I have tried 5.5.17 15 tomcat. I use a FORM to POST a file of large size. Thanks for any help Rgds Krish
maxPostSize in Tomcat
hi, I am trying to use maxPostSize of tomcat in 5.5.15. I edited the server.xml and added maxPostSize = 4MB Connector port=8080 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true maxPostSize=4097152 / I am able to post a file of size 4 MB ( 16MB etc.. ). I was supposed to get an error Post too large but dont seem to get it. I think i have not configured it correctly... Any pointers of how to get this right would be great. Regards KK
Re: maxPostSize in Tomcat
hi Mark, Yes. I used apache httpclient to POST a large file to a servlet in Tomcat. I expected tomcat to throw a error as size was cet to 4 MB. Any thoughts where i am wrong... Regards KK On 8/19/06, Mark Thomas [EMAIL PROTECTED] wrote: Krish B wrote: hi, I am trying to use maxPostSize of tomcat in 5.5.15. I edited the server.xml and added maxPostSize = 4MB Connector port=8080 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true maxPostSize=4097152 / I am able to post a file of size 4 MB ( 16MB etc.. ). I was supposed to get an error Post too large but dont seem to get it. I think i have not configured it correctly... Config looks fine. I have tested this and it works. I can't see any code changes since 5.5.15 that relate to this? Any pointers of how to get this right would be great. Did you restart Tomcat after making the change? Are you connecting via port 8080? 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]
Re: maxPostSize in Tomcat
Hi Mark, I restarted Tomcat after making the change i am using port 8080. Regards KK On 8/19/06, Krish B [EMAIL PROTECTED] wrote: hi Mark, Yes. I used apache httpclient to POST a large file to a servlet in Tomcat. I expected tomcat to throw a error as size was cet to 4 MB. Any thoughts where i am wrong... Regards KK On 8/19/06, Mark Thomas [EMAIL PROTECTED] wrote: Krish B wrote: hi, I am trying to use maxPostSize of tomcat in 5.5.15. I edited the server.xml and added maxPostSize = 4MB Connector port=8080 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true maxPostSize=4097152 / I am able to post a file of size 4 MB ( 16MB etc.. ). I was supposed to get an error Post too large but dont seem to get it. I think i have not configured it correctly... Config looks fine. I have tested this and it works. I can't see any code changes since 5.5.15 that relate to this? Any pointers of how to get this right would be great. Did you restart Tomcat after making the change? Are you connecting via port 8080? 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]
Re: maxPostSize in Tomcat
Hi, I tried doing the same using a FORM input input type=file name=file-upload This also works and i dont get an error for large file sizes more than the limit. Regards KK On 8/19/06, Krish B [EMAIL PROTECTED] wrote: Hi Mark, I restarted Tomcat after making the change i am using port 8080. Regards KK On 8/19/06, Krish B [EMAIL PROTECTED] wrote: hi Mark, Yes. I used apache httpclient to POST a large file to a servlet in Tomcat. I expected tomcat to throw a error as size was cet to 4 MB. Any thoughts where i am wrong... Regards KK On 8/19/06, Mark Thomas [EMAIL PROTECTED] wrote: Krish B wrote: hi, I am trying to use maxPostSize of tomcat in 5.5.15. I edited the server.xml and added maxPostSize = 4MB Connector port=8080 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true maxPostSize=4097152 / I am able to post a file of size 4 MB ( 16MB etc.. ). I was supposed to get an error Post too large but dont seem to get it. I think i have not configured it correctly... Config looks fine. I have tested this and it works. I can't see any code changes since 5.5.15 that relate to this? Any pointers of how to get this right would be great. Did you restart Tomcat after making the change? Are you connecting via port 8080? 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]
Not getting error for posting large data
hi, I am not getting a error when i POST large amounts of data in tomcat 5.5.15 I started the server after changing server.xml Connector port=8080 maxPostSize=1 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true/ I used a FORM to post data maxPostSize But i dont get a error. The request is processed by the servlet. I think my configuration is wrong... Any help in correcting this Regards Krish
Startup exception in Tomcat
hi, I get an exception sometimes during tomcat startup. I saw a few posts related to this but am not able to resolve the same. java.util.ConcurrentModificationException at java.util.HashMap.onEntry(HashMap.java:205) at java.util.HashMap.transfer(HashMap.java:510) at java.util.HashMap.resize(HashMap.java:500) at java.util.HashMap.addEntry(HashMap.java:800) at java.util.HashMap.put(HashMap.java:441) at org.apache.commons.modeler.Registry.addManagedBean(Registry.j ava:457) at org.apache.commons.modeler.Registry.loadDescriptors(Registry. java:938) at org.apache.commons.modeler.Registry.findManagedBean(Registry. java:719) at org.apache.commons.modeler.Registry.findManagedBean(Registry. java:1047) at org.apache.commons.modeler.Registry.registerComponent(Registr y.java:859) at org.apache.coyote.http11.Http11Protocol$JmxHttp11ConnectionHa ndler.init( Http11Protocol.java:175) The Registry class is being called in Http11protocol.java class Registry.getRegistry(null, null).registerComponent( rp, rpName, null); and these are not synchronized. Any suggestions on how to solve this issue? Regards Krishn
Tomcat releases
hi, I have a couple of basic question about tomcat releases. 1) 5.5.17 is in beta. Will there be a release of 5.5.17 final and then work will go on to release 5.5.18. 2) When will Tomcat 6.0 be releases\d? Will there be more 5.5.X releases before 6.0? Regards Krish
Tomcat on other JVM
hi, can i run Tomcat on Non - Sun JVM e.g) IBM. Regards Krish