RE: IIS-ISAPI issue with OPTIONS request.
Note that the extension URI seems to point to a slightly different dll than the one configured. extension_uri=/tomcat/isapi_redirect.dll isapi_redirector.dll (1.2.14) -Original Message- From: Nayak, Usha- Kalpana [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 16, 2005 1:23 PM To: tomcat-user@jakarta.apache.org Subject: IIS-ISAPI issue with OPTIONS request. Importance: High Hi, I have Tomcat redirector plugin DLL, isapi_redirector.dll (1.2.14) plugin installed in IIS. I am using this redirector to connect IIS with JBoss. I have configured isapi to redirect uri with /tc/* using workers.properties and uriworkermap.properties. Also, Using the IIS management console, added a new virtual directory to my IIS web site. The name of the virtual directory given is tomcat and the isapi_redirector.dll seems to be loaded i.e I see green arrow. BTW, I have a created a directory and it has isapi_redirector.dll, workers.properties, uriworkermap.properties, isapi_redirector-1.2.14.reg. Contents of isapi_redirector-1.2.14.reg : Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0] extension_uri=/tomcat/isapi_redirect.dll log_file=C:\\Temp\\jk_iis.log log_level=debug worker_file=E:\\isapi_redirect1.2.14\\workers.properties worker_mount_file=E:\\isapi_redirect1.2.14\\uriworkermap.properties Contents of uriworkermap.properties: # Send all /tc requests to node1 /tc/*=node1 Contents of workers.properties: worker.list=node1 worker.node1.port=8009 worker.node1.host=beaorchardj01.net.plm.eds.com worker.node1.type=ajp13 But when a request of the below form is sent: OPTIONS /tc/FileAccess/ HTTP/1.1 I receive the below message: HTTP/1.1 500 Server Error Server: Microsoft-IIS/5.1 Date: Fri, 12 Aug 2005 22:10:57 GMT Connection: close Content-Type: text/html Content-Length: 87 htmlheadtitleError/title/headbodyThe parameter is incorrect. /body/html I seem to have no problem connecting to JBoss with request like POST, GET, SEARCH. In ISAPI logs for OPTIONS: [Fri Aug 12 09:14:23 2005] [0352:4100] [debug] HttpFilterProc::jk_isapi_plugin.c (747): Filter started [Fri Aug 12 09:14:23 2005] [0352:4100] [debug] HttpFilterProc::jk_isapi_plugin.c (813): Virtual Host redirection of /beaorchardj01.net.plm.eds.com/tc/FileAccess/ [Fri Aug 12 09:14:23 2005] [0352:4100] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/beaorchardj01.net.plm.eds.com/tc/FileAccess/' from 1 maps [Fri Aug 12 09:14:23 2005] [0352:4100] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/tc/*' [Fri Aug 12 09:14:23 2005] [0352:4100] [debug] HttpFilterProc::jk_isapi_plugin.c (820): Default redirection of /tc/FileAccess/ [Fri Aug 12 09:14:23 2005] [0352:4100] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/tc/FileAccess/' from 1 maps [Fri Aug 12 09:14:23 2005] [0352:4100] [debug] map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context URI '/tc/*' [Fri Aug 12 09:14:23 2005] [0352:4100] [debug] map_uri_to_worker::jk_uri_worker_map.c (475): Found a wildchar match node1 - /tc/* [Fri Aug 12 09:14:23 2005] [0352:4100] [debug] HttpFilterProc::jk_isapi_plugin.c (830): check if [/tc/FileAccess/] is points to the web-inf directory [Fri Aug 12 09:14:23 2005] [0352:4100] [debug] HttpFilterProc::jk_isapi_plugin.c (848): [/tc/FileAccess/] is a servlet url - should redirect to node1 don't see below statements from isapi for OPTIONS: [Fri Aug 12 09:14:23 2005] [0352:3556] [debug] wc_get_worker_for_name::jk_worker.c (111): found a worker node1 [Fri Aug 12 09:14:23 2005] [0352:3556] [debug] HttpExtensionProc::jk_isapi_plugin.c (1003): got a worker for name node1 In IIS logs: #Software: Microsoft Internet Information Services 5.1 #Version: 1.0 #Date: 2005-08-12 16:09:39 #Fields: time c-ip cs-method cs-uri-stem sc-status 17:29:38 134.244.174.103 POST /tc/controller/gatewayPostserviceInvoke_link 200 17:33:01 134.244.174.103 OPTIONS /tc/FileAccess/ 500 Please help... This is very urgent. BTW, I have IIS 5.1 and working on WinXp Professional Version 2002 Sp2 thanks... Usha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: MailSessionFactory problems in 5.5.9
Here is an example from what I do: server.xml: ?xml version='1.0' encoding='utf-8'? Server Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/ GlobalNamingResources Environment description= name=com.skillsoft.mgs.sso.TL type=java.lang.Boolean value=true/ Environment description=Hibernate dialect: net.sf.Hibernate.dialect.[SQLServerDialect|OracleDialect|Oracle9Dialect] name=hibernate.dialect override=false type=java.lang.String value=net.sf.hibernate.dialect.SQLServerDialect/ Environment name=simpleValue type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated and saved name=UserDatabase type=org.apache.catalina.UserDatabase/ Resource name=com/skillsoft/ilt/jdbc type=javax.sql.DataSource/ Resource name=com/skillsoft/mgs/mail/session type=javax.mail.Session/ ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams ResourceParams name=com/skillsoft/ilt/jdbc parameter nameurl/name valuejdbc:jtds:sqlserver://localhost:1433;useCursors=true;useLOBs=false/value /parameter parameter namevalidationQuery/name valueSELECT TOP 1 iltVersion FROM iltVersion/value /parameter parameter namemaxIdle/name value50/value /parameter parameter namemaxActive/name value100/value /parameter parameter namedriverClassName/name valuenet.sourceforge.jtds.jdbc.Driver/value /parameter parameter namemaxWait/name value5000/value /parameter parameter nameusername/name valuesa/value /parameter parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namepassword/name value/value /parameter parameter namedefaultCatalog/name valuesp62107Master/value /parameter parameter nameinitialSize/name value25/value /parameter /ResourceParams ResourceParams name=com/skillsoft/mgs/mail/session parameter namemail.smtp.port/name value25/value /parameter parameter namemail.smtp.host/name value10.20.30.40/value !-- Changed to protect the innocent. -- /parameter parameter namemail.smtp.sendpartial/name valuetrue/value /parameter /ResourceParams /GlobalNamingResources Service name=Catalina Connector URIEncoding=UTF-8 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true port=8080 redirectPort=8443 /Connector Connector URIEncoding=UTF-8 debug=9 disableUploadTimeout=true maxProcessors=0 port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 /Connector Engine defaultHost=localhost jvmRoute=dkoesxp8009 name=Catalina Host appBase=webapps name=localhost Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_log. suffix=.txt timestamp=true/ /Host Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.UserDatabaseRealm/ /Engine /Service /Server context.xml: ?xml version='1.0' encoding='utf-8'? Context crossContext=true displayName=SkillPort ILT Add-On (Unofficial Version) docBase=D:/Projects/ILT path=/ilt reloadable=true workDir=D:/Projects/ILT/work Valve className=org.apache.catalina.valves.RequestDumperValve/ Environment description= name=com.skillsoft.mgs.sso.TL type=java.lang.Boolean value=true/ ResourceLink global=hibernate.dialect name=hibernate.dialect type=java.lang.String/ ResourceLink global=com/skillsoft/ilt/jdbc name=com/skillsoft/ilt/jdbc type=javax.sql.DataSource/ ResourceLink global=com/skillsoft/mgs/mail/session name=com/skillsoft/mgs/mail/session type=javax.mail.Session/ /Context -Original Message- From: Brian Bonner [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 4:25 PM To: Tomcat Users List Subject: Re: MailSessionFactory problems in 5.5.9 P.S. I'm using jdk 1.5.0_04 with Eclipse 3.1 and WTP 0.7 with Spring 1.2.2 as my dev environment. Brian Brian Bonner wrote: Hello, I'm trying to use the org.apache.naming.factory.MailSessionFactory in 5.5.9 with Spring's JndiObjectFactoryBean and I'm experiencing problems. I want to configure a global mail configuration and then use a resource-link to link one or more apps to the resource. i.e. Resource name=GlobalMailSession auth=Container
RE: MailSessionFactory problems in 5.5.9
Nope, 5.0.28 -Original Message- From: Brian Bonner [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 4:50 PM To: Tomcat Users List Subject: Re: MailSessionFactory problems in 5.5.9 Thanks, Derrick, that's how I used to have it in 4.1.29. Are you using 5.5.x? Brian Derrick Koes wrote: Here is an example from what I do: server.xml: ?xml version='1.0' encoding='utf-8'? Server Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / GlobalNamingResources Environment description= name=com.skillsoft.mgs.sso.TL type=java.lang.Boolean value=true/ Environment description=Hibernate dialect: net.sf.Hibernate.dialect.[SQLServerDialect|OracleDialect|Oracle9Dialect] name=hibernate.dialect override=false type=java.lang.String value=net.sf.hibernate.dialect.SQLServerDialect/ Environment name=simpleValue type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated and saved name=UserDatabase type=org.apache.catalina.UserDatabase/ Resource name=com/skillsoft/ilt/jdbc type=javax.sql.DataSource/ Resource name=com/skillsoft/mgs/mail/session type=javax.mail.Session/ ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams ResourceParams name=com/skillsoft/ilt/jdbc parameter nameurl/name valuejdbc:jtds:sqlserver://localhost:1433;useCursors=true;useLOBs=false/value /parameter parameter namevalidationQuery/name valueSELECT TOP 1 iltVersion FROM iltVersion/value /parameter parameter namemaxIdle/name value50/value /parameter parameter namemaxActive/name value100/value /parameter parameter namedriverClassName/name valuenet.sourceforge.jtds.jdbc.Driver/value /parameter parameter namemaxWait/name value5000/value /parameter parameter nameusername/name valuesa/value /parameter parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namepassword/name value/value /parameter parameter namedefaultCatalog/name valuesp62107Master/value /parameter parameter nameinitialSize/name value25/value /parameter /ResourceParams ResourceParams name=com/skillsoft/mgs/mail/session parameter namemail.smtp.port/name value25/value /parameter parameter namemail.smtp.host/name value10.20.30.40/value !-- Changed to protect the innocent. -- /parameter parameter namemail.smtp.sendpartial/name valuetrue/value /parameter /ResourceParams /GlobalNamingResources Service name=Catalina Connector URIEncoding=UTF-8 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true port=8080 redirectPort=8443 /Connector Connector URIEncoding=UTF-8 debug=9 disableUploadTimeout=true maxProcessors=0 port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 /Connector Engine defaultHost=localhost jvmRoute=dkoesxp8009 name=Catalina Host appBase=webapps name=localhost Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_log. suffix=.txt timestamp=true/ /Host Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.UserDatabaseRealm/ /Engine /Service /Server context.xml: ?xml version='1.0' encoding='utf-8'? Context crossContext=true displayName=SkillPort ILT Add-On (Unofficial Version) docBase=D:/Projects/ILT path=/ilt reloadable=true workDir=D:/Projects/ILT/work Valve className=org.apache.catalina.valves.RequestDumperValve/ Environment description= name=com.skillsoft.mgs.sso.TL type=java.lang.Boolean value=true/ ResourceLink global=hibernate.dialect name=hibernate.dialect type=java.lang.String/ ResourceLink global=com/skillsoft/ilt/jdbc name=com/skillsoft/ilt/jdbc type=javax.sql.DataSource/ ResourceLink global=com/skillsoft/mgs/mail/session name=com/skillsoft/mgs/mail/session type=javax.mail.Session/ /Context -Original Message- From: Brian Bonner [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 4:25 PM To: Tomcat Users List Subject: Re: MailSessionFactory problems in 5.5.9 P.S. I'm using jdk 1.5.0_04 with Eclipse 3.1 and WTP 0.7 with Spring 1.2.2 as my dev environment. Brian Brian Bonner wrote: Hello, I'm trying to use
RE: Session ID's
Use HttpServletResponse.encodeURL(String url) -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 10:04 AM To: Tomcat Users List Subject: Session ID's Is there a configuration setting such that every local URL will be encoded with a session id if one is present? I have developed a site that uses cookies to hold the session id and am getting complaints from users that do not have cookies enabled. Thanks Charles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: IIS6 Win2003 ISAPI config
I'm using 1.2.14-ish. I've noticed jkstatus sometimes works, sometimes not with IIS 6. workers.properties: # #-- DEFAULT worket list -- #- # # # The workers that your plugins should create and work with # The name of the worker can contain only the alphanumeric characters # [a-z][A-Z][0-9] and is case insensitive. # # Add 'inprocess' if you want JNI connector worker.list=loadbalancer,loadbalancer2,jkstatus # #-- DEFAULT ajp13 WORKER DEFINITION -- #- # # # Defining a worker named ajp13 and of type ajp13 # Note that the name and the type do not have to match. # worker.qailt005:8009.port=8009 worker.qailt005:8009.host=qailt005 worker.qailt005:8009.type=ajp13 worker.qailt005:8009.cache_timeout=600 # # Specifies the load balance factor when used with # a load balancing worker. # Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. worker.qailt005:8009.lbfactor=1 # # Specify the size of the open connection cache. worker.qailt005:8009.cachesize=100 # worker.qailt006:8009.port=8009 worker.qailt006:8009.host=qailt006 worker.qailt006:8009.type=ajp13 worker.qailt006:8009.cache_timeout=600 # # Specifies the load balance factor when used with # a load balancing worker. # Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. worker.qailt006:8009.lbfactor=1 # # Specify the size of the open connection cache. worker.qailt006:8009.cachesize=100 worker.dwqa2:8009.port=8009 worker.dwqa2:8009.host=dwqa2 worker.dwqa2:8009.type=ajp13 worker.dwqa2:8009.lbfactor=1 worker.dwqa2:8009.cachesize=100 worker.dwqa2:8009.cache_timeout=600 worker.dwqa3:8009.port=8009 worker.dwqa3:8009.host=dwqa3 worker.dwqa3:8009.type=ajp13 worker.dwqa3:8009.lbfactor=1 worker.dwqa3:8009.cachesize=100 worker.dwqa3:8009.cache_timeout=600 # #-- DEFAULT LOAD BALANCER WORKER DEFINITION -- #- # # # The loadbalancer (type lb) workers perform wighted round-robin # load balancing with sticky sessions. # Note: # If a worker dies, the load balancer will check its state #once in a while. Until then all work is redirected to peer #workers. # These workers should not appear in the worker.list property! worker.loadbalancer.type=lb worker.loadbalancer.balance_workers=qailt005:8009,qailt006:8009 worker.loadbalancer.sticky_session=1 worker.loadbalancer.method=T worker.loadbalancer2.type=lb worker.loadbalancer2.balance_workers=dwqa2:8009,dwqa3:8009 worker.loadbalancer2.sticky_session=1 worker.jkstatus.type=status uriworkermap.properties: /iltlbtesting=loadbalancer /iltlbtesting/*=loadbalancer /iltscripting=loadbalancer /iltscripting/*=loadbalancer /iltlbtestingalt=loadbalancer /iltlbtestingalt/*=loadbalancer /dmlbilt=loadbalancer /dmlbilt/*=loadbalancer /DM6247QA6201=loadbalancer2 /DM6247QA6201/*=loadbalancer2 /lb6255Master_arm=loadbalancer2 /lb6255Master_arm/*=loadbalancer2 /QA6201CFLB6247DM=loadbalancer2 /QA6201CFLB6247DM/*=loadbalancer2 /QA6201CFLB6255DM=loadbalancer2 /QA6201CFLB6255DM/*=loadbalancer2 /DM42=loadbalancer2 /DM42/*=loadbalancer2 /jkstatus=jkstatus /jkstatus/*=jkstatus -Original Message- From: Sumpter, Chuck [mailto:[EMAIL PROTECTED] Sent: Thursday, July 21, 2005 10:36 AM To: tomcat-user@jakarta.apache.org Subject: IIS6 Win2003 ISAPI config Jk1.2 in this environment works fine, except for jkstatus. I've worked through the how-to's and examples on the Tomcat connectors site, including the workers how-to. The jkstatus page gets a 404 every time. Does anyone have example workers.properties and uriworkermap.properties that they would be willing to post? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: connecting IIS and Tomcat
One thing that might help: The name of the worker can contain only the alphanumeric characters [a-z][A-Z][0-9] and is case insensitive. http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html -Original Message- From: Brereton, Stephen [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 12:43 PM To: 'tomcat-user@jakarta.apache.org' Subject: connecting IIS and Tomcat I'm in process of getting IIS to use Tomcat (for the obvious) but have hit a problem. As far as I can tell, the config files are all as they should be, but on restarting the server and requesting the page I want, a blank is returned and jk_IIS.log has this in it:: ### [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1018)]: Using registry. [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1020)]: Using log file G:\Program Files\Apache Software Foundation\Tomcat 5.0\logs\jk_iis.log. [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1021)]: Using log level 0. [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1022)]: Using extension uri /tomcat/isapi_redirector.dll. [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1023)]: Using worker file G:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\workers2.properties. [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1024)]: Using worker mount file G:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\uriworkermap.properties. [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1025)]: Using uri select 0. [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 7 [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=testWorker was added [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test/=raid was added [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /=raid was added [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test/tomcat/=raid was added [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test.york.gov.uk/tomcat/=raid was added [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test.york.gov.uk/=raid was added [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /raid/=raid was added [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 7 rules [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Jun 28 17:25:57 2005] [jk_worker.c (88)]: Into wc_open [Tue Jun 28 17:25:57 2005] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Tue Jun 28 17:25:57 2005] [jk_worker.c (228)]: build_worker_map, creating worker ajp12 [Tue Jun 28 17:25:57 2005] [jk_worker.c (148)]: Into wc_create_worker [Tue Jun 28 17:25:57 2005] [jk_worker.c (162)]: wc_create_worker, about to create instance ajp12 of ajp12 [Tue Jun 28 17:25:57 2005] [jk_ajp12_worker.c (283)]: Into ajp12_worker_factory [Tue Jun 28 17:25:57 2005] [jk_worker.c (171)]: wc_create_worker, about to validate and init ajp12 [Tue Jun 28 17:25:57 2005] [jk_ajp12_worker.c (200)]: Into jk_worker_t::validate [Tue Jun 28 17:25:57 2005] [jk_ajp12_worker.c (212)]: In jk_worker_t::validate for worker ajp12 contact is localhost:8007 [Tue Jun 28 17:25:57 2005] [jk_worker.c (187)]: wc_create_worker, done [Tue Jun 28 17:25:57 2005] [jk_worker.c (238)]: build_worker_map, removing old ajp12 worker [Tue Jun 28 17:25:57 2005] [jk_worker.c (250)]: build_worker_map, done [Tue Jun 28 17:25:57 2005] [jk_worker.c (111)]: wc_open, done 1 [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (655)]: Detected IIS = 5.0 [Tue Jun 28 17:25:58 2005] [jk_isapi_plugin.c (696)]: HttpFilterProc started [Tue Jun 28 17:25:58 2005] [jk_isapi_plugin.c (759)]: In HttpFilterProc Virtual Host redirection of /raid-test.york.gov.uk/tomcat/ [Tue Jun 28 17:25:58 2005] [jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker [Tue Jun 28 17:25:58 2005] [jk_uri_worker_map.c (477)]: Attempting to map URI '/raid-test.york.gov.uk/tomcat/' [Tue Jun 28 17:25:58 2005] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match raid - / [Tue Jun 28 17:25:58 2005] [jk_uri_worker_map.c (502)]: jk_uri_worker_map_t::map_uri_to_worker, Found a context match raid -
RE: connecting IIS and Tomcat
Then you won't mind commenting the others and re-trying.;-) Simplify first. BTW workers2.properties is unused for the JK connector. The JK2 connector uses it. It is safe to delete. -Original Message- From: Brereton, Stephen [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 12:52 PM To: 'Tomcat Users List' Subject: RE: connecting IIS and Tomcat Thanks for pointing that out, but the worker I'm trying to use is 'raid', and I'm somewhat confused why its picked up the URL of the site as part of the name - this is the (test) copy - hence the name. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: 28 June 2005 17:44 To: Tomcat Users List Subject: RE: connecting IIS and Tomcat One thing that might help: The name of the worker can contain only the alphanumeric characters [a-z][A-Z][0-9] and is case insensitive. http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html -Original Message- From: Brereton, Stephen [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 12:43 PM To: 'tomcat-user@jakarta.apache.org' Subject: connecting IIS and Tomcat I'm in process of getting IIS to use Tomcat (for the obvious) but have hit a problem. As far as I can tell, the config files are all as they should be, but on restarting the server and requesting the page I want, a blank is returned and jk_IIS.log has this in it:: ### [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1018)]: Using registry. [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1020)]: Using log file G:\Program Files\Apache Software Foundation\Tomcat 5.0\logs\jk_iis.log. [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1021)]: Using log level 0. [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1022)]: Using extension uri /tomcat/isapi_redirector.dll. [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1023)]: Using worker file G:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\workers2.properties. [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1024)]: Using worker mount file G:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\uriworkermap.properties. [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1025)]: Using uri select 0. [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 7 [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=testWorker was added [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test/=raid was added [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /=raid was added [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test/tomcat/=raid was added [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test.york.gov.uk/tomcat/=raid was added [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test.york.gov.uk/=raid was added [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /raid/=raid was added [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 7 rules [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Jun 28 17:25:57 2005] [jk_worker.c (88)]: Into wc_open [Tue Jun 28 17:25:57 2005] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Tue Jun 28 17:25:57 2005] [jk_worker.c (228)]: build_worker_map, creating worker ajp12 [Tue Jun 28 17:25:57 2005] [jk_worker.c (148)]: Into wc_create_worker [Tue Jun 28 17:25:57 2005] [jk_worker.c (162)]: wc_create_worker, about to create instance ajp12 of ajp12 [Tue Jun 28 17:25:57 2005] [jk_ajp12_worker.c (283)]: Into ajp12_worker_factory [Tue Jun 28 17:25:57 2005] [jk_worker.c (171)]: wc_create_worker, about to validate and init ajp12 [Tue Jun 28 17:25:57 2005] [jk_ajp12_worker.c (200)]: Into jk_worker_t::validate [Tue Jun 28 17:25:57 2005] [jk_ajp12_worker.c (212)]: In jk_worker_t::validate for worker ajp12 contact is localhost:8007 [Tue Jun 28 17:25:57 2005] [jk_worker.c (187)]: wc_create_worker, done [Tue Jun 28 17:25:57 2005] [jk_worker.c (238)]: build_worker_map, removing old ajp12 worker [Tue Jun 28 17:25:57 2005] [jk_worker.c (250)]: build_worker_map, done [Tue Jun 28 17:25:57 2005] [jk_worker.c (111)]: wc_open, done 1 [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (655)]: Detected IIS
RE: connecting IIS and Tomcat
Not unless you changed something in server.xml. You need to restart the WWW service (IIS). -Original Message- From: Brereton, Stephen [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 1:03 PM To: 'Tomcat Users List' Subject: RE: connecting IIS and Tomcat Take your point. BTW do I need to restart Tomcat each time? Bit confused on that one... -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: 28 June 2005 17:56 To: Tomcat Users List Subject: RE: connecting IIS and Tomcat Then you won't mind commenting the others and re-trying.;-) Simplify first. BTW workers2.properties is unused for the JK connector. The JK2 connector uses it. It is safe to delete. -Original Message- From: Brereton, Stephen [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 12:52 PM To: 'Tomcat Users List' Subject: RE: connecting IIS and Tomcat Thanks for pointing that out, but the worker I'm trying to use is 'raid', and I'm somewhat confused why its picked up the URL of the site as part of the name - this is the (test) copy - hence the name. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: 28 June 2005 17:44 To: Tomcat Users List Subject: RE: connecting IIS and Tomcat One thing that might help: The name of the worker can contain only the alphanumeric characters [a-z][A-Z][0-9] and is case insensitive. http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html -Original Message- From: Brereton, Stephen [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 12:43 PM To: 'tomcat-user@jakarta.apache.org' Subject: connecting IIS and Tomcat I'm in process of getting IIS to use Tomcat (for the obvious) but have hit a problem. As far as I can tell, the config files are all as they should be, but on restarting the server and requesting the page I want, a blank is returned and jk_IIS.log has this in it:: ### [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1018)]: Using registry. [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1020)]: Using log file G:\Program Files\Apache Software Foundation\Tomcat 5.0\logs\jk_iis.log. [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1021)]: Using log level 0. [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1022)]: Using extension uri /tomcat/isapi_redirector.dll. [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1023)]: Using worker file G:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\workers2.properties. [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1024)]: Using worker mount file G:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\uriworkermap.properties. [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1025)]: Using uri select 0. [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 7 [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=testWorker was added [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test/=raid was added [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /=raid was added [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test/tomcat/=raid was added [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test.york.gov.uk/tomcat/=raid was added [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /raid-test.york.gov.uk/=raid was added [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /raid/=raid was added [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 7 rules [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Jun 28 17:25:57 2005] [jk_worker.c (88)]: Into wc_open [Tue Jun 28 17:25:57 2005] [jk_worker.c (222)]: Into build_worker_map, creating 1 workers [Tue Jun 28 17:25:57 2005] [jk_worker.c (228)]: build_worker_map, creating worker ajp12 [Tue Jun 28 17:25:57 2005] [jk_worker.c (148)]: Into wc_create_worker [Tue Jun 28 17:25:57 2005] [jk_worker.c (162)]: wc_create_worker, about to create instance ajp12 of ajp12 [Tue Jun 28 17:25:57 2005] [jk_ajp12_worker.c (283)]: Into ajp12_worker_factory [Tue Jun 28 17:25:57 2005] [jk_worker.c (171)]: wc_create_worker, about to validate and init ajp12 [Tue Jun 28 17:25:57 2005] [jk_ajp12_worker.c (200
RE: connecting IIS and Tomcat
Your registry is incorrect. Try this. Modify values as appropriate. Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0] extension_uri=/jakarta/isapi_redirect.dll worker_file=C:\\jk-connector\\conf\\workers.properties worker_mount_file=C:\\jk-connector\\conf\\uriworkermap.properties log_file=E:\\files\\jk-logs\\isapi_filter.log log_level=info -Original Message- From: Brereton, Stephen [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 5:33 PM To: 'Tomcat Users List' Subject: RE: connecting IIS and Tomcat I've deleted workers2.properties and get: [Tue Jun 28 22:27:12 2005] [jk_isapi_plugin.c (1018)]: Using registry. [Tue Jun 28 22:27:12 2005] [jk_isapi_plugin.c (1020)]: Using log file G:\Program Files\Apache Software Foundation\Tomcat 5.0\logs\jk_iis.log. [Tue Jun 28 22:27:12 2005] [jk_isapi_plugin.c (1021)]: Using log level 0. [Tue Jun 28 22:27:12 2005] [jk_isapi_plugin.c (1022)]: Using extension uri /tomcat/isapi_redirector.dll. [Tue Jun 28 22:27:12 2005] [jk_isapi_plugin.c (1023)]: Using worker file G:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\workers2.properties. [Tue Jun 28 22:27:12 2005] [jk_isapi_plugin.c (1024)]: Using worker mount file G:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\uriworkermap.properties. [Tue Jun 28 22:27:12 2005] [jk_isapi_plugin.c (1025)]: Using uri select 0. [Tue Jun 28 22:27:12 2005] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [Tue Jun 28 22:27:12 2005] [jk_uri_worker_map.c (375)]: Into jk_uri_worker_map_t::uri_worker_map_open [Tue Jun 28 22:27:12 2005] [jk_uri_worker_map.c (396)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 2 [Tue Jun 28 22:27:12 2005] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=testWorker was added [Tue Jun 28 22:27:12 2005] [jk_uri_worker_map.c (321)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /raid/=raid was added [Tue Jun 28 22:27:12 2005] [jk_uri_worker_map.c (408)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 2 rules [Tue Jun 28 22:27:12 2005] [jk_uri_worker_map.c (422)]: jk_uri_worker_map_t::uri_worker_map_open, done [Tue Jun 28 22:27:12 2005] [jk_isapi_plugin.c (1074)]: Unable to read worker file G:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\workers2.properties. am I using the wrong JK? the one I've set up is dated 12/apr/04 -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: 28 June 2005 17:56 To: Tomcat Users List Subject: RE: connecting IIS and Tomcat Then you won't mind commenting the others and re-trying.;-) Simplify first. BTW workers2.properties is unused for the JK connector. The JK2 connector uses it. It is safe to delete. -Original Message- From: Brereton, Stephen [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 12:52 PM To: 'Tomcat Users List' Subject: RE: connecting IIS and Tomcat Thanks for pointing that out, but the worker I'm trying to use is 'raid', and I'm somewhat confused why its picked up the URL of the site as part of the name - this is the (test) copy - hence the name. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: 28 June 2005 17:44 To: Tomcat Users List Subject: RE: connecting IIS and Tomcat One thing that might help: The name of the worker can contain only the alphanumeric characters [a-z][A-Z][0-9] and is case insensitive. http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html -Original Message- From: Brereton, Stephen [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 12:43 PM To: 'tomcat-user@jakarta.apache.org' Subject: connecting IIS and Tomcat I'm in process of getting IIS to use Tomcat (for the obvious) but have hit a problem. As far as I can tell, the config files are all as they should be, but on restarting the server and requesting the page I want, a blank is returned and jk_IIS.log has this in it:: ### [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1018)]: Using registry. [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1020)]: Using log file G:\Program Files\Apache Software Foundation\Tomcat 5.0\logs\jk_iis.log. [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1021)]: Using log level 0. [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1022)]: Using extension uri /tomcat/isapi_redirector.dll. [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1023)]: Using worker file G:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\workers2.properties. [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1024)]: Using worker mount file G:\Program Files\Apache Software Foundation\Tomcat 5.0\conf\uriworkermap.properties. [Tue Jun 28 17:25:57 2005] [jk_isapi_plugin.c (1025)]: Using uri select 0. [Tue Jun 28 17:25:57 2005] [jk_uri_worker_map.c (172)]: Into jk_uri_worker_map_t
RE: Production ready JK release?
1.2.13 (relabled as 1.2.14?) is the most recent. -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 10:21 AM To: 'Tomcat Users List' Subject: RE: Production ready JK release? Always try the latest. 1.2.10 is the most recent. I use 1.2.8 without any problem. -Original Message- From: Markus Kobler [mailto:[EMAIL PROTECTED] Sent: June 9, 2005 7:52 AM To: tomcat-user@jakarta.apache.org Subject: Production ready JK release? Which JK connector should be considered a Stable release? The release notes don't make it clear. Thanks Markus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:42a82d88153431295917239! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
accept-language header dropped Tomcat 5.0.28
I have turned on the RequestDumper Valve, but I do not get the accept-language header. locale is set to en_US (not in my browser languages). I'm not sure if this is a problem or not. However, the request getLocale() method always returns en_US (default for the server) because there is no accept-language header. Tomcat 5.0.28 IIS 5.1 JK 1.2.14 Can anyone tell me why accept-language is not coming through?
RE: JK network error messages.
Probably client's abandoning requests. -Original Message- From: Findlay, Colin, VF-NZ [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 31, 2005 2:54 PM To: tomcat-user@jakarta.apache.org Subject: JK network error messages. Hi, We're receiving the following error messages in our isapi_redirect.log, but are unable to determine the cause. We're running Tomcat 5.0.28 with JK 1.2.10 IIS on Windows 2000 Advanced Server SP4. The server.xml workers.properties are pretty much the default out-of-the box copies (But I can post them if needed). All the error messages point towards some sort of network problem - yet the components are all on localhost. Any help would be hugely appreciated! [Wed Jun 01 02:56:19 2005] [error] write::jk_isapi_plugin.c (619): WriteClient failed with 2745 [Wed Jun 01 02:56:19 2005] [info] ajp_process_callback::jk_ajp_common.c (1363): Connection aborted or network problems [Wed Jun 01 02:56:19 2005] [info] ajp_service::jk_ajp_common.c (1706): Receiving from tomcat failed, because of client error without recovery in send loop 0 [Wed Jun 01 03:00:42 2005] [info] ajp_send_request::jk_ajp_common.c (1164): Socket is not connected any more (errno=0) [Wed Jun 01 03:00:42 2005] [info] ajp_send_request::jk_ajp_common.c (1186): Error sending request. Will try another pooled connection [Wed Jun 01 03:00:42 2005] [info] ajp_send_request::jk_ajp_common.c (1164): Socket is not connected any more (errno=0) [Wed Jun 01 03:00:42 2005] [info] ajp_send_request::jk_ajp_common.c (1186): Error sending request. Will try another pooled connection [Wed Jun 01 03:00:42 2005] [info] ajp_send_request::jk_ajp_common.c (1207): All endpoints are disconnected or dead [Wed Jun 01 03:00:42 2005] [info] ajp_service::jk_ajp_common.c (1724): Sending request to tomcat failed, recoverable operation attempt=1 [Wed Jun 01 03:16:12 2005] [error] write::jk_isapi_plugin.c (619): WriteClient failed with 2745 [Wed Jun 01 03:16:12 2005] [info] ajp_process_callback::jk_ajp_common.c (1363): Connection aborted or network problems [Wed Jun 01 03:16:12 2005] [info] ajp_service::jk_ajp_common.c (1706): Receiving from tomcat failed, because of client error without recovery in send loop 0 [Wed Jun 01 03:26:35 2005] [error] write::jk_isapi_plugin.c (619): WriteClient failed with 2746 [Wed Jun 01 03:26:35 2005] [info] ajp_process_callback::jk_ajp_common.c (1363): Connection aborted or network problems [Wed Jun 01 03:26:35 2005] [info] ajp_service::jk_ajp_common.c (1706): Receiving from tomcat failed, because of client error without recovery in send loop 0 [Wed Jun 01 03:32:15 2005] [error] write::jk_isapi_plugin.c (619): WriteClient failed with 2745 [Wed Jun 01 03:32:15 2005] [info] ajp_process_callback::jk_ajp_common.c (1363): Connection aborted or network problems [Wed Jun 01 03:32:15 2005] [info] ajp_service::jk_ajp_common.c (1706): Receiving from tomcat failed, because of client error without recovery in send loop 0 Regards Colin Findlay --- Have you seen our website? http://www.vodafone.co.nz Manage Your Account, check your Vodafone Mail and send web2TXT online: http://www.vodafone.co.nz/myvodafone CAUTION: This correspondence is confidential and intended for the named recipient(s) only. If you are not the named recipient and receive this correspondence in error, you must not copy, distribute or take any action in reliance on it and you should delete it from your system and notify the sender immediately. Thank you. Unless otherwise stated, any views or opinions expressed are solely those of the author and do not represent those of Vodafone New Zealand Limited. Vodafone New Zealand Limited 20 Viaduct Harbour Avenue, Private Bag 92161, Auckland 1030 Telephone + 64 9 355 2000 Facsimile + 64 9 355 2001 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jk 1.2.14 connector connection problem
I've run with this configuration elsewhere without error. I'm not certain what the issue is. I have this same problem without using the loadbalancer worker. I can't even get to jkstatus. Any help is greatly appreciated. server.xml ?xml version='1.0' encoding='utf-8'? Server Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/ GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated and saved name=UserDatabase type=org.apache.catalina.UserDatabase/ ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources Service name=Catalina Connector URIEncoding=UTF-8 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true port=8080 redirectPort=8443 /Connector Connector URIEncoding=UTF-8 port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler disableUploadTimeout=true maxProcessors=0 redirectPort=8443 debug=9 /Connector Engine defaultHost=localhost jvmRoute=djk name=Catalina Host appBase=webapps name=localhost Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_log. suffix=.txt timestamp=true/ /Host Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.UserDatabaseRealm/ /Engine /Service /Server workers.properties # +++ BEGIN CONFIGURATION ++ # # http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html # # The following configuration file describes a JK installation # which does round-robin, session-aware load balancing across all # defined workers. Having a single worker will balance the load on # that worker. This is the default, even if you don't spell it out, # but it is spelled out here for clarity. @TODO indicates a # configuration must be made here. @OPTIONAL indicates an optional # customization may be made. # # workers.properties - # # Copyright 1999-2004 The Apache Software Foundation # # Licensed under the Apache License, Version 2.0 (the License); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an AS IS BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # # This file provides jk derived plugins with the needed information to # connect to the different tomcat workers. Note that the distributed # version of this file requires modification before it is usable by a # plugin. # # As a general note, the characters $( and ) are used internally to define # macros. Do not use them in your own configuration!!! # # Whenever you see a set of lines such as: # x=value # y=$(x)\something # # the final value for y will be value\something # # Normaly all you will need to do is un-comment and modify the first three # properties, i.e. workers.tomcat_home, workers.java_home and ps. # Most of the configuration is derived from these. # # When you are done updating workers.tomcat_home, workers.java_home and ps # you should have 3 workers configured: # # - An ajp12 worker that connects to localhost:8007 # - An ajp13 worker that connects to localhost:8009 # - A jni inprocess worker. # - A load balancer worker # # However by default the plugins will only use the ajp12 worker. To have # the plugins use other workers you should modify the worker.list property. # # # You should configure your environment slash... ps=\ on NT and / on UNIX # and maybe something different elsewhere. # ps=\ # #-- ADVANCED MODE #- # # #-- DEFAULT worket list -- #- # # # The workers that your plugins should create and work with # The name of the worker can contain only the alphanumeric characters # [a-z][A-Z][0-9] and is case insensitive. # # Add 'inprocess' if you want JNI connector worker.list=loadbalancer,jkstatus # #-- DEFAULT ajp13 WORKER DEFINITION -- #- # # # Defining a worker named ajp13
RE: jk 1.2.14 connector connection problem
After verifying with Mladen that the setup was correct, the problem is still exhibited. -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: Thursday, May 26, 2005 2:39 PM To: Tomcat Users List Subject: Re: jk 1.2.14 connector connection problem Derrick Koes wrote: I've run with this configuration elsewhere without error. I'm not certain what the issue is. I have this same problem without using the loadbalancer worker. I can't even get to jkstatus. Any help is greatly appreciated. The problem is with the installation. You probably do not have /jakarta virtual directory set up correctly. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jk 1.2.14 connector connection problem
Nope, no dice. -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: Thursday, May 26, 2005 4:06 PM To: 'Tomcat Users List' Subject: RE: jk 1.2.14 connector connection problem Try the simpliest configuration in workers.properties # Define 1 real worker using ajp13 worker.list=worker1,status # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.reclycle_timeout=300 worker.status.type=status -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: May 26, 2005 3:59 PM To: Tomcat Users List Subject: RE: jk 1.2.14 connector connection problem After verifying with Mladen that the setup was correct, the problem is still exhibited. -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: Thursday, May 26, 2005 2:39 PM To: Tomcat Users List Subject: Re: jk 1.2.14 connector connection problem Derrick Koes wrote: I've run with this configuration elsewhere without error. I'm not certain what the issue is. I have this same problem without using the loadbalancer worker. I can't even get to jkstatus. Any help is greatly appreciated. The problem is with the installation. You probably do not have /jakarta virtual directory set up correctly. Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:42962a91309751699410697! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: isapi_redirect performance issues
I'm not certain if setting keep-alive will speed things up, but since you have a firewall you should probably use it. From the documentation: socket_keepalive False This directive should be used when you have a firewall between your webserver and the Tomcat engine, who tend to drop inactive connections. This flag will told Operating System to send KEEP_ALIVE message on inactive connections (interval depend on global OS settings, generally 120ms), and thus prevent the firewall to cut the connection. To enable keepalive set this property value to the number greater then 0. The problem with Firewall cutting inactive connections is that sometimes, neither webserver or tomcat have information about the cut and couldn't handle it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 12:12 PM To: Tomcat Users List Subject: Re: isapi_redirect performance issues I did the packet trace and here is some more information: There are more packets with IIS as compared to Apache with IIS the response body is in a separate packet than the packet containing the Status Code 200 and also I see HTTP/1.1 100 Continue messages sent by server to the client. In Apache the response body is in the same packed at the Status Code 200 packet and there are no HTTP/1.1 100 Continue packets. Any help/suggestions/ideas would be appreciated. Thanks Ahmed - Original Message - From: [EMAIL PROTECTED] Date: Monday, May 23, 2005 3:19 pm Subject: isapi_redirect performance issues We are using Tomcat 5.5.9 with IIS on the front end. IIS is serving all the static content and forwards the servlet requests to Tomcat using the latest version of isapi_redirect.dll and ajp13 protocol. After deploying the aplication over a server and accessing it through the internet I am noticing 8x to 10x performance slowdown when connecting to the application via port 80 as opposed to the direct port 8080. I tried using Apache WebServer in front instead of IIS and that works great the performance problem is ONLY when using IIS in the front. Unfortunately my application has to be deployed with IIS and only port 80 open in the firewall. I have been able to reproduce this problem by generating a small 250 characters html page in response to the GET request. With Apache or connecting to Tomcat directly it takes about 20ms for the test client to get the page. Connecting through IIS it takes about 173ms. Has anybody been successfully using the IIS/Tomcat integration over the internet? Is there anything that can be done to improve the performance? IIS is also serving the static pages with good performance so its not a problem with standalone IIS either. Any idea/suggestions? Thanks Ahmed --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
memory management
I found many questions and answers about this general topic, but my question is more specific I think. Tomcat 5 comes with a configuration utility which is installed on the start menu on Windows XP under Start--Programs--Apache Tomcat 5.0--Configure Tomcat. This pop-up has a Java tab which has two memory settings, Initial memory pool and Maximum memory pool. My question is does the tomcat Windows service obey these settings, or do I have to re-create the service with new memory parameters each time I want to increase the memory (add a web application for example). Thanks, Derrick
RE: Can't multipart post large(ish) files via Tomcat 5.0.28
Are you using struts? Make sure your controller element tempDir property value matches that of the web apps context element's workDir. The workDir is where uploaded files over a certain size (256KB is the default I think) will be written prior to their final destination. Perhaps Jboss has a working directory that needs to match as well. H. -Original Message- From: Gareth Williams [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 19, 2005 7:31 AM To: Tomcat Users List Subject: RE: Can't multipart post large(ish) files via Tomcat 5.0.28 Using commons-fileupload results in the same problem. I looked at the source, and the commons class FileUploadBase gets its input stream from the HttpServletRequest (as you would expect :) and hence I get the same errors/problematic behaviour. Whatever is going wrong would appear to be either within Tomcat or within the underlying windows socket tcp/ip stuff I am surprised nobody else seems to have hit this upload problem given the number of people using Tomcat5.0.28 + Jboss 3.2.6. Has anyone got any ideas? Cheers, Gareth # Winner - e-Government excellence 2004. Runner up - European Information Management awards 2004: - The Premier Project Award. - B2C Commerce Project Award. - CRM Project Award. For more information visit us at www.voxgen.com # Note: This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Vox Generation Limited and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of any such entity. Thank You. # # This e-mail message has been scanned for Viruses and Content and cleared by NetIQ MailMarshal # - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't multipart post large(ish) files via Tomcat 5.0.28
Commons-fileupload.jar -Original Message- From: Gareth Williams [mailto:[EMAIL PROTECTED] Sent: Friday, April 15, 2005 8:42 AM To: tomcat-user@jakarta.apache.org Subject: Can't multipart post large(ish) files via Tomcat 5.0.28 Hi, I am attempting to add file uploading to an app running under Jboss 3.2.6 + Tomcat 5.0.28. Started off using com.oreilly.servlet.MultipartRequest, and found problems uploading large 8KB files Decided to investigate by writing my own class that does nothing except read any available bytes from the HttpServletRequest's input stream (i.e. for now, I don't actually care about any the content uploaded, just the quantity)... public class MyStreamReader { private static final Logger log = Logger.getLogger(MyStreamReader.class); private InputStream inputStream; private byte[] buf = new byte[1024]; public MyStreamReader(HttpServletRequest request) throws IOException { log.debug(REQUEST CLASS: + request.getClass().getName()); this.inputStream = request.getInputStream(); log.debug(INPUT STREAM CLASS: + inputStream.getClass().getName()); } public void parse() throws IOException { int totalBytesRead = 0; boolean isEndOfStream = false; while (!isEndOfStream) { /* Do not use available() as it always returns 0! * int available = inputStream.available(); * log.debug(available: + available); */ // Try reading 1 byte at a time (yawn) int bytesRead = readSingleByte(); // Inconsistent behaviour also results from int bytesRead = readIntoByteArray(); if (bytesRead 0) { totalBytesRead += bytesRead; } else { isEndOfStream = (bytesRead == -1); } } log.debug(Reached END OF STREAM.); log.debug(TOTAL BYTES READ: + totalBytesRead); } int readIntoByteArray() throws IOException { return inputStream.read(buf); } int readSingleByte() throws IOException { int byteValue = inputStream.read(); return (byteValue == -1) ? -1 : 1; } } I then attempted to repeatedly upload a 961KB text file...the log output is as follows: 2005-04-15 12:02:36,072 DEBUG [com.voxgeneration.campaign.gui.VoxServlet] - processing multi-part request... 2005-04-15 12:02:36,072 DEBUG [com.voxgeneration.utilities.http.MyStreamReader] REQUEST CLASS: org.apache.coyote.tomcat5.CoyoteRequestFacade 2005-04-15 12:02:36,072 DEBUG [com.voxgeneration.utilities.http.MyStreamReader] INPUT STREAM CLASS: org.apache.coyote.tomcat5.CoyoteInputStream 2005-04-15 12:02:36,072 DEBUG [com.voxgeneration.utilities.http.MyStreamReader] Reached END OF STREAM. 2005-04-15 12:02:36,072 DEBUG [com.voxgeneration.utilities.http.MyStreamReader] TOTAL BYTES READ: 36172 2005-04-15 12:02:36,072 ERROR [com.voxgeneration.campaign.gui.CampaignServlet] - hmmm...upload failed. 2005-04-15 12:02:42,948 DEBUG [com.voxgeneration.campaign.gui.VoxServlet] - processing multi-part request... 2005-04-15 12:02:42,948 DEBUG [com.voxgeneration.utilities.http.MyStreamReader] REQUEST CLASS: org.apache.coyote.tomcat5.CoyoteRequestFacade 2005-04-15 12:02:42,948 DEBUG [com.voxgeneration.utilities.http.MyStreamReader] INPUT STREAM CLASS: org.apache.coyote.tomcat5.CoyoteInputStream 2005-04-15 12:02:42,963 DEBUG [com.voxgeneration.utilities.http.MyStreamReader] Reached END OF STREAM. 2005-04-15 12:02:42,963 DEBUG [com.voxgeneration.utilities.http.MyStreamReader] TOTAL BYTES READ: 37104 2005-04-15 12:02:42,963 ERROR [com.voxgeneration.campaign.gui.CampaignServlet] - hmmm...upload failed. 2005-04-15 12:15:31,084 DEBUG [com.voxgeneration.campaign.gui.VoxServlet] - processing multi-part request... 2005-04-15 12:15:31,084 DEBUG [com.voxgeneration.utilities.http.MyStreamReader] REQUEST CLASS: org.apache.coyote.tomcat5.CoyoteRequestFacade 2005-04-15 12:15:31,084 DEBUG [com.voxgeneration.utilities.http.MyStreamReader] INPUT STREAM CLASS: org.apache.coyote.tomcat5.CoyoteInputStream 2005-04-15 12:15:31,084 DEBUG [com.voxgeneration.utilities.http.MyStreamReader] Reached END OF STREAM. 2005-04-15 12:15:31,084 DEBUG [com.voxgeneration.utilities.http.MyStreamReader] TOTAL BYTES READ: 37006 2005-04-15 12:15:31,084 ERROR [com.voxgeneration.campaign.gui.CampaignServlet] - hmmm...upload failed. 2005-04-15 12:15:36,490 DEBUG [com.voxgeneration.campaign.gui.VoxServlet] - processing multi-part request... 2005-04-15 12:15:36,490 DEBUG [com.voxgeneration.utilities.http.MyStreamReader] REQUEST CLASS: org.apache.coyote.tomcat5.CoyoteRequestFacade 2005-04-15 12:15:36,490 DEBUG [com.voxgeneration.utilities.http.MyStreamReader] INPUT STREAM CLASS: org.apache.coyote.tomcat5.CoyoteInputStream 2005-04-15 12:15:36,506 DEBUG [com.voxgeneration.utilities.http.MyStreamReader] Reached END OF STREAM. 2005-04-15 12:15:36,506 DEBUG
JK cache size question
If I see many of the following log record, should I increase my cachesize higher than the default of 1? [Fri Mar 11 13:23:41 2005] [info] jk_ajp_common.c (1947): could not find empty cache slot from 1 for worker qailt002:8009. Rise worker cachesize The info from http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html: Cachesize defines the number of connections made to the AJP backend that are maintained as a connection pool. It does not limit the number of those connection. Cachesize property is useful when you're using JK in multi threaded web servers such as Apache 2.0 (worker), IIS and Netscape. The cachesize property should reflect the number of threads per child process. The JK 1.2.8 will discover the number of threads per child process on Apache 2 web server with worker-mpm. For other web servers to will have to set that value manually. What's a good number if running IIS 6.0? Thanks, Derrick
RE: Date parsing
You could do regular expression field validation. That is, client-side (javascript), build a regular expression object that finds a match for many formats and run the test function on the input string. If true, a match was found, and hence a legal date. The downside is that if you have many date formats, your regular expression could get pretty ugly. Here's the appropriate documentation for IE jscript. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/jscript7/html/jsjsgrpregexpsyntax.asp -Original Message- From: Charles P. Killmer [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 1:17 PM To: Tomcat Users List Subject: Date parsing I have an object with a TimeStamp member. This will be populated by users of a website and entered into a database. My problem is, I would like to allow the users to enter the date in a number of formats. Does anyone have any recommendations aside from multiple try catch blocks each trying to parse the given date with a different expected format? Thanks you for any help, Charles Killmer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with Xerces, Xalan with Tomcat 5.0
You need to use the endorsed standards override mechanism. http://java.sun.com/j2se/1.4.2/docs/guide/standards/ Put your DFC.jar in common/endorsed and re-try. -Original Message- From: Faine, Mark [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 4:22 PM To: tomcat-user@jakarta.apache.org Subject: Problem with Xerces, Xalan with Tomcat 5.0 I am trying to build a web (myfaces) application that uses a proprietary API called Documentum Foundation Classes. (DFC) DFC uses a patched version of Xalan that is provided with the API. Unfortunately it does not seem to work with Tomcat 5.x, only Tomcat 4.x I get the following error message: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.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: javax.xml.parsers.FactoryConfigurationError: Provider com.documentum.xerces_2_3_0.xerces.jaxp.DocumentBuilderFactoryImpl not found at javax.xml.parsers.DocumentBuilderFactory.newInstan ce(DocumentBuilderFactory.java:99) at org.apache.commons.modeler.util.DomUtil.readXml(DomUtil.java:284) com.documentum.xerces_2_3_0.xerces.jaxp.DocumentBuilderFactoryImpl is in my class path (it is inside dfc.jar) but it is still not being found. This may have something to do with the patched version of Xalan provided with the API or some incompatibility between versions of Xerces/Xalan supplied with Tomcat 4 and Tomcat 5 . I don't expect anyone to tell me how to fix a proprietary API, when they don't have access to the source but if anyone has any ideas or suggestions for how I should go about debugging this problem please let me know. I would really appreciate it. Thanks, -Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: open Excel 2000 bug
Try calling response.reset() before setting content type. ContactInfo NameDerrick Koes/Name TitleSenior Software Engineer/Title Company name=SkillSoft url=http://www.skillsoft.com/ AIMcodeauthor2001/AIM Email[EMAIL PROTECTED]/Email Phone(603) 821-3260/Phone Cell(603) 305-1753/Cell Fax/ Quote attributedTo=YodaNo, try not, do or do not, there is no try./Quote /ContactInfo -Original Message- From: Sun House [mailto:[EMAIL PROTECTED] Sent: Monday, January 24, 2005 7:33 AM To: tomcat-user@jakarta.apache.org Subject: open Excel 2000 bug Hi All, I have a JSP page that eventually opens Excel page. I got my content type set to be application/vnd.ms-excel I also work with FOP to serialize the Excel. I got this working for both Win 2000 and XP , and for Office XP and 2003, but for Office 2000 I got an Error generating the Ecxel. If i look at localhost access log, I see that the page is somehow been called 2 again times: GET /ExcelReportGenerationPage.jsp?reportName=ResourceExcelRep HTTP/1.1 200 5120 LOCK /ExcelReportGenerationPage.jsp?reportName%3DResourceExcelRep HTTP/1.1 500 2170 GET /eBopBrowser/jsp/ReportGenerationPage.jsp?reportName=ResourceExcelRep HTTP/1.1 200 5120 I know that 500 indicates an internal Error of the server, but i don't understand what is the lock doing here. I understand that it relates ot webDav - but why is it here? od i use WebDav without my knowledge? I use tomcat 5.027 How come in Excel 2000 i got this Error? I looked in Microsoft and FOP mailing lists as well with no success. Any one? Regards Sun House __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: reload log4j.properties on-the-fly?
Use the configureAndWatch method of a configurator in an initialization servlet. -Original Message- From: Andy Kriger [mailto:[EMAIL PROTECTED] Sent: Friday, January 21, 2005 2:06 PM To: tomcat-user@jakarta.apache.org Subject: Re: reload log4j.properties on-the-fly? Right - I have logging in WEB-INF/classes that I can reload by reloading the webapp (not a big deal). What I'd like is to be able to reload the Tomcat logging (which uses log4j in common/lib and configured in common/classes) without having to restart Tomcat. It's a bit extreme to restart the server just to change logging levels for an specific situation. On Fri, 21 Jan 2005 12:55:15 -0600, Mike Curwen [EMAIL PROTECTED] wrote: Ah, then it wouldn't work at all. I failed to see you say common/classes. It's probably the preferred option to put it in WEB-INF/classes though (not to mention a log4j.jar file per app in WEB-INF/lib). That way you can independantly control logging for each of your apps, plus your logging config won't interfere with Tomcat's internal logging (which many people experience, when they try to do the common/lib approach). Mike Curwen Product Manager Globally Boundless www.globallyboundless.com 204.885.7733 ext 227 -- -- Privacy Compliance: This e-mail message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. Any other distribution, copying or disclosure is strictly prohibited. If you have received this message in error, please notify us immediately by telephone (800) 665-1321 and reply to the sender via e-mail, confirming deletion of the original e-mail and any attachment(s). -- -- -Original Message- From: Andy Kriger [mailto:[EMAIL PROTECTED] Sent: Friday, January 21, 2005 12:26 PM To: Mike Curwen Subject: Re: reload log4j.properties on-the-fly? In the first case, since log4j.properties is in the global Tomcat classes dir - would that reload every Context? On Fri, 21 Jan 2005 12:19:48 -0600, Mike Curwen [EMAIL PROTECTED] wrote: There's two approaches. Configure tomcat to reload the context when class changes are made (log4j.properties being in the classes directory, will count as a class being changed, and then the whole context will reload). We do this all the time. Log4j can be used in a manner where config changes are discovered at run-time, though I've never tried it (and you should ask about in on the log4j-user list) Mike Curwen -Original Message- From: Andy Kriger [mailto:[EMAIL PROTECTED] Sent: Friday, January 21, 2005 12:03 PM To: tomcat-user@jakarta.apache.org Subject: reload log4j.properties on-the-fly? I am running Tomcat 5.5 with log4j logging (log4j.properties in common/classes). Is it possible to make changes to the log4j properties and have the changes reloaded on-the-fly instead of having to restart Tomcat in order to pick up changes? This would be very useful for those times debug level logging or specific class logging is needed where generally that level of logging is not required. thx andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: bug in tomcat 5.5 and sticky sessions because of problem with jvmRoute parameter?
However, I've found that the ':' characters works. -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: Thursday, January 20, 2005 10:47 AM To: Tomcat Users List Subject: Re: bug in tomcat 5.5 and sticky sessions because of problem with jvmRoute parameter? Christian Schuhegger wrote: hello, i've just tried to set-up tomcat 5.5 with apache2 and mod_jk version 1.2.8 in a load balancing set-up with sticky sessions. when i give as jvmRoute parameter the string tc1 my sessionids look like: BF20EF21CC52EA0659B1E079015D7B56.tc1.tc1 and i see in the mod_jk.log file that no worker with the name tc1.tc1 could be found! Hi, Take a look at: http://jakarta.apache.org/tomcat/connectors-doc/config/workers.html It clearly states that (big warning in red color) The name of the worker can contain only the alphanumeric characters [a-z][A-Z][0-9] and is case insensitive. So tc1.tc1 is illegal name for the worker. Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Updating webapps in a running production cluster.
This is how we update apps in time critical situations. Shut one down and update. Bring it back up. Shut the next down and update. Bring it back up and so on. -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Thursday, January 20, 2005 2:22 PM To: Tomcat Users List Subject: Updating webapps in a running production cluster. I apologize if I'm being impatient. Just was starting to wonder if my late night post had been missed by most folks. Does anyone have any ideas on how to update webapplications in a running Tomcat cluster without shutting down the entire cluster or bumping users off? I think I need to update them one at a time rather than all together. Thanks - Richard -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 19, 2005 5:39 PM To: tomcat-user@jakarta.apache.org Subject: Webapp Maintenance in a Cluster I am trying to setup a cluster of two Tomcat 5.0.19 servers behind a single instance of Apache. We currently use the JK connector to connect Apache2 and a singel Tomcat instance now, and would start to use it in load balancing mode with the two Tomcat instances. We will need to start using JBoss Cache to keep our Hibernate database caches synchronized. My objectives would be: 1) better through put (each Tomcat is on a separate machine) 2) failover if one Tomcat goes down. 3) the ability to do maintenance/fixes during the day without stopping all activity. My questions is about object #3. Currently if I deploy a fix (i.e. a new webapp.war file), it restarts the context and my users get bumped off - having to relogin, possibly loosing some work. Ideally I was thinking that if a fix needs to be applied during the day while users are using the system, I would: 1) Use the tomcat-deployer to stop one of the tomcat instances. 2) At this point all Tomcat traffic would be routed through the remaining Tomcat server. 3) Use the tomcat-deployer to deploy and then start a fixed version of the webapp. (Obviously the fixes are limite to logic changes, not database changes). Then I would repeat steps 1-3 for the second Tomcat instance. Does it work this way? I've been reading the documentation and a couple of articles and am not sure now. I am also trying to understand the deployer element for the cluster. This does not seem to be what I want as it will deploy the new war locally and then immediately deploy it to the other members of the cluster. BTW, the deployer element is not documented in my Tomcat 5.0.19 server.xml, but is in the later Tomcat 5.0.28. Does it work in 5.0.19. I can easily move to 5.0.28 in development, but our production machines are only certified to run 5.0.19 (SuSE Linux Enterprise Server 9). Thanks in advance for any advice/suggestions. - Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Updating webapps in a running production cluster.
Sorry, we're only JK2 load balanced (sticky sessions), sessions are not being replicated. Active sessions are forced to re-authenticate (load balance to a running box) when you bring one down. -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Thursday, January 20, 2005 3:15 PM To: Tomcat Users List Subject: RE: Updating webapps in a running production cluster. Derrick, Thank you for the response. When you say Shut one down and update do you mean to actually shutdown the entire Tomcat instance? .. or do you use the tomcat-deployer tool to do an ant stop undeploy deploy? BTW, I am assuming that you have clustering enabled in server.xml - right? Thanks again - Richard -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Thursday, January 20, 2005 12:47 PM To: Tomcat Users List Subject: RE: Updating webapps in a running production cluster. This is how we update apps in time critical situations. Shut one down and update. Bring it back up. Shut the next down and update. Bring it back up and so on. -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Thursday, January 20, 2005 2:22 PM To: Tomcat Users List Subject: Updating webapps in a running production cluster. I apologize if I'm being impatient. Just was starting to wonder if my late night post had been missed by most folks. Does anyone have any ideas on how to update webapplications in a running Tomcat cluster without shutting down the entire cluster or bumping users off? I think I need to update them one at a time rather than all together. Thanks - Richard -Original Message- From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 19, 2005 5:39 PM To: tomcat-user@jakarta.apache.org Subject: Webapp Maintenance in a Cluster I am trying to setup a cluster of two Tomcat 5.0.19 servers behind a single instance of Apache. We currently use the JK connector to connect Apache2 and a singel Tomcat instance now, and would start to use it in load balancing mode with the two Tomcat instances. We will need to start using JBoss Cache to keep our Hibernate database caches synchronized. My objectives would be: 1) better through put (each Tomcat is on a separate machine) 2) failover if one Tomcat goes down. 3) the ability to do maintenance/fixes during the day without stopping all activity. My questions is about object #3. Currently if I deploy a fix (i.e. a new webapp.war file), it restarts the context and my users get bumped off - having to relogin, possibly loosing some work. Ideally I was thinking that if a fix needs to be applied during the day while users are using the system, I would: 1) Use the tomcat-deployer to stop one of the tomcat instances. 2) At this point all Tomcat traffic would be routed through the remaining Tomcat server. 3) Use the tomcat-deployer to deploy and then start a fixed version of the webapp. (Obviously the fixes are limite to logic changes, not database changes). Then I would repeat steps 1-3 for the second Tomcat instance. Does it work this way? I've been reading the documentation and a couple of articles and am not sure now. I am also trying to understand the deployer element for the cluster. This does not seem to be what I want as it will deploy the new war locally and then immediately deploy it to the other members of the cluster. BTW, the deployer element is not documented in my Tomcat 5.0.19 server.xml, but is in the later Tomcat 5.0.28. Does it work in 5.0.19. I can easily move to 5.0.28 in development, but our production machines are only certified to run 5.0.19 (SuSE Linux Enterprise Server 9). Thanks in advance for any advice/suggestions. - Richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: some TC5 benchmark results for static file
So, are the results for tomcat? Looks like you did some requests for png image files and HTML. Where are the numbers for apache so we can compare? Thanks, Derrick -Original Message- From: Peter Lin [mailto:[EMAIL PROTECTED] Sent: Thursday, January 13, 2005 10:16 AM To: tomcat-user Subject: some TC5 benchmark results for static file I've started a series of benchmarks to measure tomcat5 performance for static files and compare it to apache2. Here are the results I have so far. I thought others might find it interesting. Server: Redhat Fedora Core 1 AMD 2hgz 1Gb ram jdk1.4.2 TC5.0.x ( have to double check the release number) client: gateway 450 laptop 1.4ghz centrino 1Gb ram Jmeter jdk1.4.2 keepalive is true peter PNG 1K --- protocol | samples | average | median | 90% line | min | max | error% | throughput | Kb/sec --- HTTP Request50002.4158 0 10 0 231 0.00% 1296.7/sec 1337.20 HTTP Request1 3.2866 0 10 0 490 0.00% 1384.8/sec 1428.13 HTTP Request15000 3.56353 0 10 0 36260.00% 1335.0/sec 1376.71 HTTP Request2 6.3406 0 20 0 120 0.00% 1352.1/sec 1394.33 HTTP Request25000 8.27288 0 20 0 281 0.00% 1309.1/sec 1350.02 HTTP Request3 4.6102 0 20 0 972 0.00% 1259.2/sec 1298.53 5k HTTP Request50002.9246 0 10 0 330 0.00% 1044.5/sec 5314.28 HTTP Request1 4.4717 0 10 0 11620.00% 1002.6/sec 5101.15 HTTP Request15000 6.7102 0 20 0 23730.00% 968.9/sec 4929.49 HTTP Request2 4.83515 0 10 0 15030.00% 950.1/sec 4834.10 HTTP Request25000 10.3578 0 30 0 19220.00% 933.6/sec 4749.89 HTTP Request3 5.86573 0 20 0 441 0.00% 939.4/sec 4779.46 10k HTTP Request50004.1644 0 10 0 742 0.00% 726.7/sec 7308.61 HTTP Request1 8.8132 10 20 0 181 0.00% 763.5/sec 7678.00 HTTP Request15000 7.7906 0 20 0 381 0.00% 718.0/sec 7221.14 HTTP Request2 10.8593 10 30 0 420 0.00% 705.2/sec 7091.88 HTTP Request25000 32.2276 30 50 0 110 0.00% 704.0/sec 7079.95 HTTP Request3 19.3326 10 50 0 16530.00% 686.8/sec 6906.56 20k HTTP Request50007.4202 0 10 0 400 0.00% 491.9/sec 9936.63 HTTP Request1 14.1984 10 20 0 982 0.00% 490.9/sec 9917.12 HTTP Request15000 17.698 10 40 0 531 0.00% 472.4/sec 9542.36 HTTP Request2 22.9608 20 50 0 471 0.00% 465.1/sec 9395.46 HTTP Request25000 32.8229 40 61 0 14320.00% 461.3/sec 9318.23 HTTP Request3 50.4059 50 90 0 701 0.00% 429.6/sec 8678.60 40k HTTP Request50007.9292 0 10 0 11310.00% 409.3/sec 8267.65 HTTP Request1 13.1405 10 21 0 10710.00% 493.6/sec 9971.46 HTTP Request15000 18.5959 10 30 0 19230.00% 517.0/sec 10444.56 HTTP Request2 32.9344 30 50 0 250 0.00% 510.8/sec 10318.30 HTTP Request25000 38.1564 40 60 0 13620.00% 493.4/sec 9966.44 HTTP Request3 52.4783 50 90 0 10010.00% 463.5/sec 9363.52 HTML 1K --- protocol | samples | average | median | 90% line | min | max | error% | throughput | Kb/sec --- HTTP Request50001.8508 0 10 0 170 0.00% 1545.6/sec 1714.64 HTTP Request1 3.0936 0 10 0 321 0.00% 1686.6/sec 1871.10 HTTP Request15000 3.3003 0 10 0 14220.00% 1638.8/sec 1818.05 HTTP Request2 2.5934 0 10 0 110 0.00% 1610.6/sec 1786.72 HTTP Request25000 3.99248 0 10 0 140 0.00% 1537.1/sec 1705.26 HTTP Request3 4.12513 0 10 0 831 0.00% 1473.5/sec 1634.72 5k HTTP Request50003.1068 0 10 0 390
RE: Socket Exception - Heavy load
Are you on a windows environment? -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 1:41 PM To: 'Tomcat Users List' Subject: Socket Exception - Heavy load Hi All, I am doing some performance tests. Under heavy load I get socket exceptions in my tomcat logs SEVERE: Error, processing connection java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:556) at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:494) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 614) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool java:644) at java.lang.Thread.run(Unknown Source) I guess it has something to do with jk2 and the sockets. It would be helpful if someone can explain this and why it is happening? My configuration is Apache 2.0.52 Tomcat 5.0.29 Jk2 - 1.2.8 Thanks shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Socket Exception - Heavy load
Windows is notorious for holding the socket binding for some time after the close is done. I expected that you would see a BindException, not a SocketException. This exception is thrown if a socket cannot be created and bound to the requested port. However, your error looks like the receiver dropped the connection. If the OutputStream was closed after you finished sending (before you started receiving), that's the cause of your problem, since closing the OutputStream also closes the socket. In any event it's the client that is closing the socket connection. BTW, 1.2.8 refers to a JK version not JK2 unless there is some really old version of JK2 of which I'm not aware. Perhaps Mladen Turk (JK expert) can help. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:17 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load Hi Mark, Thanks. I would remember this . Thanks shyam -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:10 PM To: Tomcat Users List Subject: Re: Socket Exception - Heavy load Please do not hijack another message thread. If you wish to post to the list create a new message and send it. DO NOT reply to a list message and change the subject. Thread aware mail clients still recognise this as a reply and do not show it as a new message. Mark [EMAIL PROTECTED] shyam wrote: Hi All, I am doing some performance tests. Under heavy load I get socket exceptions in my tomcat logs SEVERE: Error, processing connection java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:556) at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:494) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 614) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool java:644) at java.lang.Thread.run(Unknown Source) I guess it has something to do with jk2 and the sockets. It would be helpful if someone can explain this and why it is happening? My configuration is Apache 2.0.52 Tomcat 5.0.29 Jk2 - 1.2.8 Thanks shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Socket Exception - Heavy load
Sorry, I thought you had a socket write error. Looks like a read error. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:35 PM To: Tomcat Users List Cc: Tomcat Developers List Subject: RE: Socket Exception - Heavy load Windows is notorious for holding the socket binding for some time after the close is done. I expected that you would see a BindException, not a SocketException. This exception is thrown if a socket cannot be created and bound to the requested port. However, your error looks like the receiver dropped the connection. If the OutputStream was closed after you finished sending (before you started receiving), that's the cause of your problem, since closing the OutputStream also closes the socket. In any event it's the client that is closing the socket connection. BTW, 1.2.8 refers to a JK version not JK2 unless there is some really old version of JK2 of which I'm not aware. Perhaps Mladen Turk (JK expert) can help. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:17 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load Hi Mark, Thanks. I would remember this . Thanks shyam -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:10 PM To: Tomcat Users List Subject: Re: Socket Exception - Heavy load Please do not hijack another message thread. If you wish to post to the list create a new message and send it. DO NOT reply to a list message and change the subject. Thread aware mail clients still recognise this as a reply and do not show it as a new message. Mark [EMAIL PROTECTED] shyam wrote: Hi All, I am doing some performance tests. Under heavy load I get socket exceptions in my tomcat logs SEVERE: Error, processing connection java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:556) at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:494) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 614) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool java:644) at java.lang.Thread.run(Unknown Source) I guess it has something to do with jk2 and the sockets. It would be helpful if someone can explain this and why it is happening? My configuration is Apache 2.0.52 Tomcat 5.0.29 Jk2 - 1.2.8 Thanks shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Socket Exception - Heavy load
What is your wait_timeout set to? ContactInfo NameDerrick Koes/Name TitleSenior Software Engineer/Title Company name=SkillSoft url=http://www.skillsoft.com/ AIMcodeauthor2001/AIM Email[EMAIL PROTECTED]/Email Phone(603) 821-3260/Phone Cell(603) 305-1753/Cell Fax/ Quote attributedTo=YodaNo, try not, do or do not, there is no try./Quote /ContactInfo -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:38 PM To: Tomcat Developers List; Tomcat Users List Subject: RE: Socket Exception - Heavy load Sorry, I thought you had a socket write error. Looks like a read error. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:35 PM To: Tomcat Users List Cc: Tomcat Developers List Subject: RE: Socket Exception - Heavy load Windows is notorious for holding the socket binding for some time after the close is done. I expected that you would see a BindException, not a SocketException. This exception is thrown if a socket cannot be created and bound to the requested port. However, your error looks like the receiver dropped the connection. If the OutputStream was closed after you finished sending (before you started receiving), that's the cause of your problem, since closing the OutputStream also closes the socket. In any event it's the client that is closing the socket connection. BTW, 1.2.8 refers to a JK version not JK2 unless there is some really old version of JK2 of which I'm not aware. Perhaps Mladen Turk (JK expert) can help. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:17 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load Hi Mark, Thanks. I would remember this . Thanks shyam -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:10 PM To: Tomcat Users List Subject: Re: Socket Exception - Heavy load Please do not hijack another message thread. If you wish to post to the list create a new message and send it. DO NOT reply to a list message and change the subject. Thread aware mail clients still recognise this as a reply and do not show it as a new message. Mark [EMAIL PROTECTED] shyam wrote: Hi All, I am doing some performance tests. Under heavy load I get socket exceptions in my tomcat logs SEVERE: Error, processing connection java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:556) at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:494) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 614) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool java:644) at java.lang.Thread.run(Unknown Source) I guess it has something to do with jk2 and the sockets. It would be helpful if someone can explain this and why it is happening? My configuration is Apache 2.0.52 Tomcat 5.0.29 Jk2 - 1.2.8 Thanks shyam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Socket Exception - Heavy load
Do you see the problem when # worker.worker1.cachesize=200 # worker.worker1.cache_timeout=60 # worker.worker1.socket_keepalive=1 # worker.worker1.reclycle_timeout=60 # worker.worker1.retries=5 That is, defaults used for all these properties. BTW, you don't need an lbfactor unless this is actually a load balanced worker. Also, what do your JK logs say with debugging turned up around the time of the error? You have to set this in the registry for JK. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:49 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load I am including my workers.properties here # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=200 worker.worker1.cache_timeout=60 worker.worker1.socket_keepalive=1 worker.worker1.reclycle_timeout=60 worker.worker1.retries=5 this the server.xml configuration of tomcat !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 maxThreads=1000 / thanks shyam -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:43 PM To: Tomcat Developers List; Tomcat Users List Subject: RE: Socket Exception - Heavy load What is your wait_timeout set to? ContactInfo NameDerrick Koes/Name TitleSenior Software Engineer/Title Company name=SkillSoft url=http://www.skillsoft.com/ AIMcodeauthor2001/AIM Email[EMAIL PROTECTED]/Email Phone(603) 821-3260/Phone Cell(603) 305-1753/Cell Fax/ Quote attributedTo=YodaNo, try not, do or do not, there is no try./Quote /ContactInfo -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:38 PM To: Tomcat Developers List; Tomcat Users List Subject: RE: Socket Exception - Heavy load Sorry, I thought you had a socket write error. Looks like a read error. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:35 PM To: Tomcat Users List Cc: Tomcat Developers List Subject: RE: Socket Exception - Heavy load Windows is notorious for holding the socket binding for some time after the close is done. I expected that you would see a BindException, not a SocketException. This exception is thrown if a socket cannot be created and bound to the requested port. However, your error looks like the receiver dropped the connection. If the OutputStream was closed after you finished sending (before you started receiving), that's the cause of your problem, since closing the OutputStream also closes the socket. In any event it's the client that is closing the socket connection. BTW, 1.2.8 refers to a JK version not JK2 unless there is some really old version of JK2 of which I'm not aware. Perhaps Mladen Turk (JK expert) can help. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:17 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load Hi Mark, Thanks. I would remember this . Thanks shyam -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:10 PM To: Tomcat Users List Subject: Re: Socket Exception - Heavy load Please do not hijack another message thread. If you wish to post to the list create a new message and send it. DO NOT reply to a list message and change the subject. Thread aware mail clients still recognise this as a reply and do not show it as a new message. Mark [EMAIL PROTECTED] shyam wrote: Hi All, I am doing some performance tests. Under heavy load I get socket exceptions in my tomcat logs SEVERE: Error, processing connection java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:556) at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:494) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 614) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:807) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool java:644) at java.lang.Thread.run(Unknown Source) I guess it has something to do with jk2 and the sockets. It would be helpful if someone can explain this and why it is happening? My configuration is Apache 2.0.52 Tomcat 5.0.29 Jk2 - 1.2.8
RE: Socket Exception - Heavy load
maxThreads isn't a valid connector attribute, right? Did you mean maxProcessors? http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/ajp.html The maximum number of processors allowed. This should be set to a value that is greater than or equal to the maximum number of concurrent connections the remote web server can open to Tomcat simultaneously. For example, if the web server is Apache 1.x or 2.x Tomcat's maxProcessors should be set to the value of Apache's maxClients directive. A maxProcessors value of zero (0) signifies that the number of processors is unlimited. If not specified, this atttribute defaults to 20. Try setting to 0 if you have many concurrent active connections. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:58 PM To: Tomcat Users List Subject: RE: Socket Exception - Heavy load Do you see the problem when # worker.worker1.cachesize=200 # worker.worker1.cache_timeout=60 # worker.worker1.socket_keepalive=1 # worker.worker1.reclycle_timeout=60 # worker.worker1.retries=5 That is, defaults used for all these properties. BTW, you don't need an lbfactor unless this is actually a load balanced worker. Also, what do your JK logs say with debugging turned up around the time of the error? You have to set this in the registry for JK. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:49 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load I am including my workers.properties here # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=200 worker.worker1.cache_timeout=60 worker.worker1.socket_keepalive=1 worker.worker1.reclycle_timeout=60 worker.worker1.retries=5 this the server.xml configuration of tomcat !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 maxThreads=1000 / thanks shyam -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:43 PM To: Tomcat Developers List; Tomcat Users List Subject: RE: Socket Exception - Heavy load What is your wait_timeout set to? ContactInfo NameDerrick Koes/Name TitleSenior Software Engineer/Title Company name=SkillSoft url=http://www.skillsoft.com/ AIMcodeauthor2001/AIM Email[EMAIL PROTECTED]/Email Phone(603) 821-3260/Phone Cell(603) 305-1753/Cell Fax/ Quote attributedTo=YodaNo, try not, do or do not, there is no try./Quote /ContactInfo -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:38 PM To: Tomcat Developers List; Tomcat Users List Subject: RE: Socket Exception - Heavy load Sorry, I thought you had a socket write error. Looks like a read error. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:35 PM To: Tomcat Users List Cc: Tomcat Developers List Subject: RE: Socket Exception - Heavy load Windows is notorious for holding the socket binding for some time after the close is done. I expected that you would see a BindException, not a SocketException. This exception is thrown if a socket cannot be created and bound to the requested port. However, your error looks like the receiver dropped the connection. If the OutputStream was closed after you finished sending (before you started receiving), that's the cause of your problem, since closing the OutputStream also closes the socket. In any event it's the client that is closing the socket connection. BTW, 1.2.8 refers to a JK version not JK2 unless there is some really old version of JK2 of which I'm not aware. Perhaps Mladen Turk (JK expert) can help. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:17 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load Hi Mark, Thanks. I would remember this . Thanks shyam -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:10 PM To: Tomcat Users List Subject: Re: Socket Exception - Heavy load Please do not hijack another message thread. If you wish to post to the list create a new message and send it. DO NOT reply to a list message and change the subject. Thread aware mail clients still recognise this as a reply and do not show it as a new message. Mark [EMAIL PROTECTED] shyam wrote: Hi All, I am doing some performance tests. Under heavy load I get socket exceptions in my tomcat logs SEVERE: Error, processing connection java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method
RE: Socket Exception - Heavy load
Where are you getting your 1000 connection number? maxThreads? Try using maxProcessors=0 for infinite. This value should match The maximum number of processors allowed. This should be set to a value that is greater than or equal to the maximum number of concurrent connections the remote web server can open to Tomcat simultaneously. For example, if the web server is Apache 1.x or 2.x Tomcat's maxProcessors should be set to the value of Apache's maxClients directive. A maxProcessors value of zero (0) signifies that the number of processors is unlimited. If not specified, this atttribute defaults to 20. maxThreads is a configuration option for the Http connector, not the AJP connector. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/ajp.html Derrick -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 3:16 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load Hi Derrick, I tried the default settings and also my settings. I get the same error. I turned the jklog file and saw the below error [Fri Jan 07 15:10:53 2005] [error] ajp_service::jk_ajp_common.c (1673): Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=worker1 failed errno = 61. I checked tomcat and it is running. Probably something todo with the number of connections between apache and tomcat. Just for curiosity, how many connections does apache and tomcat have between them? The tomcat server.xml has a setting for a port 8009 of 1000 connections. But for 100 concurrent users doing heavy load is this the correct number of connections? thanks shyam -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:58 PM To: Tomcat Users List Subject: RE: Socket Exception - Heavy load Do you see the problem when # worker.worker1.cachesize=200 # worker.worker1.cache_timeout=60 # worker.worker1.socket_keepalive=1 # worker.worker1.reclycle_timeout=60 # worker.worker1.retries=5 That is, defaults used for all these properties. BTW, you don't need an lbfactor unless this is actually a load balanced worker. Also, what do your JK logs say with debugging turned up around the time of the error? You have to set this in the registry for JK. -Original Message- From: shyam [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:49 PM To: 'Tomcat Users List' Subject: RE: Socket Exception - Heavy load I am including my workers.properties here # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=200 worker.worker1.cache_timeout=60 worker.worker1.socket_keepalive=1 worker.worker1.reclycle_timeout=60 worker.worker1.retries=5 this the server.xml configuration of tomcat !-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -- Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 maxThreads=1000 / thanks shyam -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:43 PM To: Tomcat Developers List; Tomcat Users List Subject: RE: Socket Exception - Heavy load What is your wait_timeout set to? ContactInfo NameDerrick Koes/Name TitleSenior Software Engineer/Title Company name=SkillSoft url=http://www.skillsoft.com/ AIMcodeauthor2001/AIM Email[EMAIL PROTECTED]/Email Phone(603) 821-3260/Phone Cell(603) 305-1753/Cell Fax/ Quote attributedTo=YodaNo, try not, do or do not, there is no try./Quote /ContactInfo -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:38 PM To: Tomcat Developers List; Tomcat Users List Subject: RE: Socket Exception - Heavy load Sorry, I thought you had a socket write error. Looks like a read error. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Friday, January 07, 2005 2:35 PM To: Tomcat Users List Cc: Tomcat Developers List Subject: RE: Socket Exception - Heavy load Windows is notorious for holding the socket binding for some time after the close is done. I expected that you would see a BindException, not a SocketException. This exception is thrown if a socket cannot be created and bound to the requested port. However, your error looks like the receiver dropped the connection. If the OutputStream was closed after you finished sending (before you started receiving), that's the cause of your problem, since closing the OutputStream also closes the socket. In any event it's the client that is closing the socket connection. BTW, 1.2.8 refers to a JK version not JK2 unless there is some really old version of JK2 of which I'm not aware. Perhaps
RE: Need Consultant $$ [RE: Oracle 9i client connection to 8i database]
I think this depends largely on the type of connection you are making. If you are using the OCI driver (type 2), I believe you need the oracle client installed on the web application machine. If you are using the thin driver (type 4), I don't think you need the client software to be installed. Here are some samples from the oracle site. http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/files/9i_jdbc/index.html BTW, I think that if you use the oracle OCI connection pool classes you have to use the type 2 driver (OCI driver). Derrick ContactInfo NameDerrick Koes/Name TitleSenior Software Engineer/Title Company name=SkillSoft url=http://www.skillsoft.com/ AIMcodeauthor2001/AIM Email[EMAIL PROTECTED]/Email Phone(603) 821-3260/Phone Cell(603) 305-1753/Cell Fax/ Quote attributedTo=YodaNo, try not, do or do not, there is no try./Quote /ContactInfo -Original Message- From: Brad Rhoads [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 7:09 PM To: 'Tomcat Users List' Subject: Need Consultant $$ [RE: Oracle 9i client connection to 8i database] Importance: High Our web app needs to talk to oracle. All is well if the app runs on the db server. But at a client site and on our now on own network, if the app is on a different box, it can't get an oracle connection. It works fine on 2 boxes at other client sites. A related item seems to be that since the change in our network (we just added a fire wall, the app itself has not changed), we have to change the Net8 configuration to use a service name instead of a sid. The web app makes a connection using a sid. (I've been looking for way to change our connection to use a service name with no luck so far.) We've had a similar problem when the app was outside the firewall, the db was behind it, and the firewall didn't allow high-ports through. But in the case of our client and our own case, both machines are behind the firewall. I currently have the webapp running on the db server, but the client is very unhappy with this and my boss wants me to seek what ever help is necessary to resolve this problem. If you think you can help, please reply privately with your rate, availability. I think everything can be done remotely, but it might mean a trip to the client on Monday if we can't work it out by then. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IIS JK installer
Can this be used to install the DLL in IIS? If so, how? It seems that the install shield build builds fine without the dll file. Thanks, Derrick
RE: workers2.properties for mod_jk2.so and loadbalancing
# ++BEGIN INSTALLATION INSTRUCTIONS+ # # Jakarta ISAPI Connector Installation Steps # # I. Update the server's registry settings. This can be accomplished #using either of the following two steps: #1. Merge the registry file hosting.isapi_redirector2.reg #2. Manually add the following registry entries: # a. In the registry, create a new registry key named # HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\ # Jakarta Isapi Redirector\2.0 # b. [serverRoot] = [${JK2_HOME}/jk2-connector] # c. [extensionUri] = /jakarta/isapi_redirector2.dll # d. [workersFile] = [${JK2_HOME}/conf/workers2.properties] # e. [logLevel] = [INFO] # # II. Configure IIS #1. Using the IIS management console, add a new virtual directory to # your default web site. The name of the virtual directory must be # jakarta. Map this to C:\jk2-connector\bin\. # While creating this new virtual directory assign it with # execute access (scripts + executables) #2. Using the IIS management console, add isapi_redirector2.dll as a # filter to the default IIS web site. # The name of the filter does not matter. Use jakarta. # The path should be C:\jk2-connector\bin\isapi_redirector2.dll # # [ #Windows 2003 / IIS 6.0 ONLY: # #3. Add isapi_redirector2.dll to the list of allowed # Web Service Extensions #4. Check to be sure an application pool named 'jakarta' was created # under Application Pools\DefaultAppPool, and if not, create it. # ] # #5. Restart the IIS service (IIS Admin Service) # #6. Test by requesting http://host-name/jkstatus # # ---END INSTALLATION INSTRUCTIONS-- # +++ BEGIN CONFIGURATION ++ # # The following configuration file describes a JK2 installation # which does round-robin, session-aware load balancing across all # defined workers. Having a single work will balance the load on # that worker. This is the default, even if you don't spell it out, # but it is spelled out here for clarity. @TODO indicates a # configuration must be made here. @OPTIONAL indicates an optional # customization may be made. # # # Define the status worker, used with the URI: /jkstatus # This is useful for testing the health of the connector, and for # getting performance statistics # # @OPTIONAL: if you don't want a /jkstatus report, omit # [status:status] # # (1) Create a logger. # @OPTIONAL: You may customize the path if you wish. # [logger.file:0] level=INFO file=E:/files/jk2-logs/isapi_filter.log # # (2) Define a load balancer worker # @OPTIONAL: You may add debug=9 for triage, if needed # [lb:lb] stickySession=1 # # (3) Define a communication channel to tomcat # # @TODO: # 1. Replace @TODO-tomcat-id with the tomcat server host name # 2. Update the corresponding tomcat configuration file (${CATALINA_HOME/conf/server.xml): #Find the line 'Engine ... name=Catalina ...' and add the element #jvmRoute=@TODO-tomcat-id:8009 . The value of jvmRoute must #match the tomcatId below, or stick session load balancing will not work. # #** NB ** The value of the jvmRoute parameter must not contain # embedded dot characters (.) (i.e., the fully-qualified # domain name.) Doing so will cause JK2 load balancing to fail. # # @TODO: Change the host name as appropriate # # @OPTIONAL: You may add debug=9 for triage, if needed # [channel.socket:qailt002:8009] info=AJP13 forwarding over socket tomcatId=qailt002:8009 [channel.socket:qailt003:8009] info=AJP13 forwarding over socket tomcatId=qailt003:8009 # # (4) Define a worker which communicates over the channel above # # @TODO: Change the host name as appropriate # # @OPTIONAL: Changing the lbfactor affects the weighted round-robin # load balancing. Higher numbers means stronger machine which will # receive more of the requests. # # @OPTIONAL: You may add debug=9 for triage, if needed # [ajp13:qailt002:8009] channel=channel.socket:qailt002:8009 lbfactor=1 [ajp13:qailt003:8009] channel=channel.socket:qailt003:8009 lbfactor=1 # # @OPTIONAL: Repeat steps (3) and (4) here for every tomcat server # to participate in load balancing. At least one is required. # # For example, if the load on the single server defined above # is too great, configure a similar server, and repeat steps (3) and (4) # to include the new server in the load balancing. # # --- END CONFIGURATION -- # +++BEGIN MAPPING++ # # (5) Map URIs to be forwarded. # # @TODO: For each context deployed on the tomcat id(s) above, # define a mapping to be forwarded. # # @OPTIONAL: You may add debug=9 for triage, if needed # # @OPTIONAL: You may change the info= to be descriptive of this application. # [uri:/iltsp6150/*]
JK2 logging with IIS
The documentation for setting up a logger for JK2 is below. I've tried using logger.file and logger.win32 for my IIS configuration, but no luck. Can someone please send the right configuration steps to configure JK2 logging with IIS? I'm trying to locate a bug in JK (not present in JK2) by comparing logs as a first step. Maybe I have a registry setting missing. Registry: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0] serverRoot=C:\\jk2-connector extensionUri=/jakarta/isapi_redirector2.dll workersFile=C:\\jk2-connector\\conf\\workers2.properties logLevel=INFO Thanks, Derrick loggers Any connector based on jk2, at least has a default logger, that can be reached using the logger alias, the logger used is the more appropiate for the plataform/server combination, Apache2 under in any platform has logger.apache2 as default, IIS on his only platform uses logger.win32, and Any apache 1 install uses logger.file as default.., the config file lets you change that defaults, you can end using logger.file in IIs i.e The properties shared by all loggers are: Property name Default Description level INFO Text of the log level. Strings supported: EMERG, ERROR, INFO, DEBUG logger.file Property name Default Description file ${serverRoot}/logs/jk2.log Log file. XXX you may be able to change this at runtime, to implement rolling. logger.win32 logger used in the IIS server by default, it ends at native Application Event Log. logger.apache2 Logger used in Apache2 servers, it normally in ends in error.log
RE: [OT] HTTP Sniffers
I used to use naviscope. -Original Message- From: Didier McGillis [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 15, 2004 3:18 PM To: [EMAIL PROTECTED] Subject: [OT] HTTP Sniffers Considering this is a pretty knowledgable group is there a good free HTTP Sniffer application I can use, I need to see what the HTTP headers are returning on my site. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Recent JK connector 1.2.7 beta 3 +
I just accepted Mladen's recent change to JK/native/common, so I'm up to date on the bleeding edge. However, I find this in the isapi log file. [Wed Dec 15 16:05:33 2004] [1588:580] [error] jk_isapi_plugin.c (938): could not get a worker for name ajp13 Can anyone explain why? In version 1.2.6 of the JK connector I used to get info about each worker at startup. This is missing from the log now. My workers.properties file: # +++ BEGIN CONFIGURATION ++ # # The following configuration file describes a JK installation # which does round-robin, session-aware load balancing across all # defined workers. Having a single worker will balance the load on # that worker. This is the default, even if you don't spell it out, # but it is spelled out here for clarity. @TODO indicates a # configuration must be made here. @OPTIONAL indicates an optional # customization may be made. # # workers.properties - # # Copyright 1999-2004 The Apache Software Foundation # # Licensed under the Apache License, Version 2.0 (the License); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an AS IS BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # # This file provides jk derived plugins with the needed information to # connect to the different tomcat workers. Note that the distributed # version of this file requires modification before it is usable by a # plugin. # # As a general note, the characters $( and ) are used internally to define # macros. Do not use them in your own configuration!!! # # Whenever you see a set of lines such as: # x=value # y=$(x)\something # # the final value for y will be value\something # # Normaly all you will need to do is un-comment and modify the first three # properties, i.e. workers.tomcat_home, workers.java_home and ps. # Most of the configuration is derived from these. # # When you are done updating workers.tomcat_home, workers.java_home and ps # you should have 3 workers configured: # # - An ajp12 worker that connects to localhost:8007 # - An ajp13 worker that connects to localhost:8009 # - A jni inprocess worker. # - A load balancer worker # # However by default the plugins will only use the ajp12 worker. To have # the plugins use other workers you should modify the worker.list property. # # # OPTIONS ( very important for jni mode ) # # workers.tomcat_home should point to the location where you # installed tomcat. This is where you have your conf, webapps and lib # directories. # workers.tomcat_home=C:\jakarta-tomcat-5.0.28 # # workers.java_home should point to your Java installation. Normally # you should have a bin and lib directories beneath it. # workers.java_home=C:\j2sdk1.4.2_04 # # You should configure your environment slash... ps=\ on NT and / on UNIX # and maybe something different elsewhere. # ps=\ # #-- ADVANCED MODE #- # # #-- DEFAULT worket list -- #- # # # The workers that your plugins should create and work with # worker.list=loadbalancer # #-- DEFAULT ajp13 WORKER DEFINITION -- #- # # # Defining a worker named dkoesxp:8009 and of type ajp13 # Note that the name and the type do not have to match. # worker.dkoesxp:8009.port=8009 worker.dkoesxp:8009.host=dkoesxp worker.dkoesxp:8009.type=ajp13 # # Specifies the load balance factor when used with # a load balancing worker. # Note: # lbfactor must be 0 # Low lbfactor means less work done by the worker. worker.dkoesxp:8009.lbfactor=100 # # Specify the size of the open connection cache. #worker.dkoesxp:8009.cachesize # #-- DEFAULT LOAD BALANCER WORKER DEFINITION -- #- # # # The loadbalancer (type lb) workers perform wighted round-robin # load balancing with sticky sessions. # Note: # If a worker dies, the load balancer will check its state #once in a while. Until then all work is redirected to peer #workers. worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=dkoesxp:8009 worker.loadbalancer.sticky_session=1 ContactInfo NameDerrick Koes/Name TitleSenior Software Engineer/Title Company name=SkillSoft url=http://www.skillsoft.com/ AIMcodeauthor2001/AIM Email[EMAIL PROTECTED]/Email Phone(603)
RE: new isapi_redirector2.dll
I was a bit hasty in my response. How do you get Visual C++ to recognize the SDK files? Thanks, Derrick -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 14, 2004 1:14 PM To: Tomcat Users List Subject: RE: new isapi_redirector2.dll Thank you! ContactInfo NameDerrick Koes/Name TitleSenior Software Engineer/Title Company name=SkillSoft url=http://www.skillsoft.com/ AIMcodeauthor2001/AIM Email[EMAIL PROTECTED]/Email Phone(603) 305-1753/Phone Fax/ Quote attributedTo=YodaNo, try not, do or do not, there is no try./Quote /ContactInfo -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 14, 2004 12:09 PM To: [EMAIL PROTECTED] Subject: RE: new isapi_redirector2.dll SF_NOTIFY_AUTH_COMPLETE is part of the platform SDK. The errors you're getting suggests VC doesn't know where to find the SDK. [EMAIL PROTECTED] 12/14/2004 10:02:26 AM I think I've followed the steps to build JK2, but there are still errors in the jk_isapi_plugin.c file. The latest version from CVS is 1.64 (according to WinCVS). Should I just fix these, or is there a better alternative? Thanks, Derrick jk_isapi_plugin.c C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(160) : error C2065: 'SF_NOTIFY_AUTH_COMPLETE' : undeclared identifier C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(160) : warning C4018: '==' : signed/unsigned mismatch C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(229) : warning C4018: '==' : signed/unsigned mismatch C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231) : error C2065: 'PHTTP_FILTER_AUTH_COMPLETE_INFO' : undeclared identifier C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231) : error C2146: syntax error : missing ')' before identifier 'pvNotification' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231) : warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char *,void *,unsigned long *)' differs in levels of indirection from 'int ' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231) : error C2059: syntax error : ')' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234) : error C2146: syntax error : missing ')' before identifier 'pvNotification' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234) : warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char *,char *)' differs in levels of indirection from 'int ' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234) : error C2059: syntax error : ')' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237) : error C2146: syntax error : missing ')' before identifier 'pvNotification' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237) : warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char *,char *)' differs in levels of indirection from 'int ' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237) : error C2059: syntax error : ')' jk_jni_aprImpl.c -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: Friday, November 19, 2004 5:01 PM To: [EMAIL PROTECTED] Subject: new isapi_redirector2.dll I noticed there have been some commits since the last official release in March, so I've built a version based on the latest snapshot. I've also added a How to page for people interested in building it themselves. http://web.bvu.edu/staff/david/index.jsp?section=softwaresubsection=isapipage=overview - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: new isapi_redirector2.dll
I just had to move 'C:\Program Files\Microsoft SDK\include' higher in the directories list. -Original Message- From: Derrick Koes Sent: Tuesday, December 14, 2004 1:51 PM To: 'Tomcat Users List' Subject: RE: new isapi_redirector2.dll I was a bit hasty in my response. How do you get Visual C++ to recognize the SDK files? Thanks, Derrick -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 14, 2004 1:14 PM To: Tomcat Users List Subject: RE: new isapi_redirector2.dll Thank you! ContactInfo NameDerrick Koes/Name TitleSenior Software Engineer/Title Company name=SkillSoft url=http://www.skillsoft.com/ AIMcodeauthor2001/AIM Email[EMAIL PROTECTED]/Email Phone(603) 305-1753/Phone Fax/ Quote attributedTo=YodaNo, try not, do or do not, there is no try./Quote /ContactInfo -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 14, 2004 12:09 PM To: [EMAIL PROTECTED] Subject: RE: new isapi_redirector2.dll SF_NOTIFY_AUTH_COMPLETE is part of the platform SDK. The errors you're getting suggests VC doesn't know where to find the SDK. [EMAIL PROTECTED] 12/14/2004 10:02:26 AM I think I've followed the steps to build JK2, but there are still errors in the jk_isapi_plugin.c file. The latest version from CVS is 1.64 (according to WinCVS). Should I just fix these, or is there a better alternative? Thanks, Derrick jk_isapi_plugin.c C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(160) : error C2065: 'SF_NOTIFY_AUTH_COMPLETE' : undeclared identifier C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(160) : warning C4018: '==' : signed/unsigned mismatch C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(229) : warning C4018: '==' : signed/unsigned mismatch C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231) : error C2065: 'PHTTP_FILTER_AUTH_COMPLETE_INFO' : undeclared identifier C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231) : error C2146: syntax error : missing ')' before identifier 'pvNotification' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231) : warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char *,void *,unsigned long *)' differs in levels of indirection from 'int ' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231) : error C2059: syntax error : ')' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234) : error C2146: syntax error : missing ')' before identifier 'pvNotification' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234) : warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char *,char *)' differs in levels of indirection from 'int ' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234) : error C2059: syntax error : ')' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237) : error C2146: syntax error : missing ')' before identifier 'pvNotification' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237) : warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char *,char *)' differs in levels of indirection from 'int ' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237) : error C2059: syntax error : ')' jk_jni_aprImpl.c -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: Friday, November 19, 2004 5:01 PM To: [EMAIL PROTECTED] Subject: new isapi_redirector2.dll I noticed there have been some commits since the last official release in March, so I've built a version based on the latest snapshot. I've also added a How to page for people interested in building it themselves. http://web.bvu.edu/staff/david/index.jsp?section=softwaresubsection=isapipage=overview - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: new isapi_redirector2.dll
Thank you! ContactInfo NameDerrick Koes/Name TitleSenior Software Engineer/Title Company name=SkillSoft url=http://www.skillsoft.com/ AIMcodeauthor2001/AIM Email[EMAIL PROTECTED]/Email Phone(603) 305-1753/Phone Fax/ Quote attributedTo=YodaNo, try not, do or do not, there is no try./Quote /ContactInfo -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 14, 2004 12:09 PM To: [EMAIL PROTECTED] Subject: RE: new isapi_redirector2.dll SF_NOTIFY_AUTH_COMPLETE is part of the platform SDK. The errors you're getting suggests VC doesn't know where to find the SDK. [EMAIL PROTECTED] 12/14/2004 10:02:26 AM I think I've followed the steps to build JK2, but there are still errors in the jk_isapi_plugin.c file. The latest version from CVS is 1.64 (according to WinCVS). Should I just fix these, or is there a better alternative? Thanks, Derrick jk_isapi_plugin.c C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(160) : error C2065: 'SF_NOTIFY_AUTH_COMPLETE' : undeclared identifier C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(160) : warning C4018: '==' : signed/unsigned mismatch C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(229) : warning C4018: '==' : signed/unsigned mismatch C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231) : error C2065: 'PHTTP_FILTER_AUTH_COMPLETE_INFO' : undeclared identifier C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231) : error C2146: syntax error : missing ')' before identifier 'pvNotification' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231) : warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char *,void *,unsigned long *)' differs in levels of indirection from 'int ' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231) : error C2059: syntax error : ')' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234) : error C2146: syntax error : missing ')' before identifier 'pvNotification' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234) : warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char *,char *)' differs in levels of indirection from 'int ' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234) : error C2059: syntax error : ')' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237) : error C2146: syntax error : missing ')' before identifier 'pvNotification' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237) : warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char *,char *)' differs in levels of indirection from 'int ' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237) : error C2059: syntax error : ')' jk_jni_aprImpl.c -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: Friday, November 19, 2004 5:01 PM To: [EMAIL PROTECTED] Subject: new isapi_redirector2.dll I noticed there have been some commits since the last official release in March, so I've built a version based on the latest snapshot. I've also added a How to page for people interested in building it themselves. http://web.bvu.edu/staff/david/index.jsp?section=softwaresubsection=isapipage=overview - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sticky sessions and URL rewriting
Now that JK2 isn't supported, I'm attempting to get my code to work with JK. The issue I've come across is that if I use URL rewriting (i.e. no cookies), which I've always done, with JK (I blame it because it's the only new variable) Tomcat does not seem to pick up the session from the URL. First, is listed my configuration with JK2 and then the config from JK. I really can't explain why Tomcat doesn't do what I expect when I swap out connectors. JK2: # +++ BEGIN CONFIGURATION ++ # # The following configuration file describes a JK2 installation # which does round-robin, session-aware load balancing across all # defined workers. Having a single work will balance the load on # that worker. This is the default, even if you don't spell it out, # but it is spelled out here for clarity. @TODO indicates a # configuration must be made here. @OPTIONAL indicates an optional # customization may be made. # # # Define the status worker, used with the URI: /jkstatus # This is useful for testing the health of the connector, and for # getting performance statistics # # @OPTIONAL: if you don't want a /jkstatus report, omit # [status:status] # # (1) Create a logger. # @OPTIONAL: You may customize the path if you wish. # [logger.file:0] level=INFO file=D:/jakarta-tomcat-5.0.28/logs/isapi_filter.log # # (2) Define a load balancer worker # @OPTIONAL: You may add debug=9 for triage, if needed # [lb:lb] stickySession=1 # # (3) Define a communication channel to tomcat # # @TODO: # 1. Replace @TODO-tomcat-server with the tomcat server host name # 2. Update the corresponding tomcat configuration file (${CATALINA_HOME/conf/server.xml): #Find the line 'Engine ... name=Catalina ...' and add the element #jvmRoute=@TODO-tomcat-server:8009 . The value of jvmRoute must #match the tomcatId below, or stick session load balancing will not work. # #** NB ** The value of the jvmRoute parameter must not contain # embedded dot characters (.) (i.e., the fully-qualified # domain name.) Doing so will cause JK2 load balancing to fail. # # @TODO: Change the host name as appropriate # # @OPTIONAL: You may add debug=9 for triage, if needed # [channel.socket:dkoesxp:8009] info=AJP13 forwarding over socket tomcatId=dkoesxp:8009 # # (4) Define a worker which communicates over the channel above # # @TODO: Change the host name as appropriate # # @OPTIONAL: Changing the lbfactor affects the weighted round-robin # load balancing. Higher numbers means stronger machine which will # receive more of the requests. # # @OPTIONAL: You may add debug=9 for triage, if needed # [ajp13:dkoesxp:8009] channel=channel.socket:dkoesxp:8009 lbfactor=1 # # @OPTIONAL: Repeat steps (3) and (4) here for every tomcat server # to participate in load balancing. At least one is required. # # For example, if the load on the single server defined above # is too great, configure a similar server, and repeat steps (3) and (4) # to include the new server in the load balancing. # # --- END CONFIGURATION -- # +++BEGIN MAPPING++ # # (5) Map URIs to be forwarded. # # @TODO: For each context deployed on the tomcat-server(s) above, # define a mapping to be forwarded. # # @OPTIONAL: You may add debug=9 for triage, if needed # # @OPTIONAL: You may change the info= to be descriptive of this application. # [uri:/ilt/*] info=JK2-enabled-application installed under /ilt # --- END MAPPING-- # +++ /jkstatus MAPPING ++ # # @OPTIONAL: This provides a status report on the JK2 connector. Remove # if you don't want this available. # [uri:/jkstatus/*] worker=status:status # --- /jkstatus MAPPING -- JK (1.2.6): # +++ BEGIN CONFIGURATION ++ # # The following configuration file describes a JK installation # which does round-robin, session-aware load balancing across all # defined workers. Having a single worker will balance the load on # that worker. This is the default, even if you don't spell it out, # but it is spelled out here for clarity. @TODO indicates a # configuration must be made here. @OPTIONAL indicates an optional # customization may be made. # # workers.properties - # # Copyright 1999-2004 The Apache Software Foundation # # Licensed under the Apache License, Version 2.0 (the License); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an AS IS BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
RE: new isapi_redirector2.dll
I think I've followed the steps to build JK2, but there are still errors in the jk_isapi_plugin.c file. The latest version from CVS is 1.64 (according to WinCVS). Should I just fix these, or is there a better alternative? Thanks, Derrick jk_isapi_plugin.c C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(160) : error C2065: 'SF_NOTIFY_AUTH_COMPLETE' : undeclared identifier C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(160) : warning C4018: '==' : signed/unsigned mismatch C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(229) : warning C4018: '==' : signed/unsigned mismatch C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231) : error C2065: 'PHTTP_FILTER_AUTH_COMPLETE_INFO' : undeclared identifier C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231) : error C2146: syntax error : missing ')' before identifier 'pvNotification' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231) : warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char *,void *,unsigned long *)' differs in levels of indirection from 'int ' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(231) : error C2059: syntax error : ')' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234) : error C2146: syntax error : missing ')' before identifier 'pvNotification' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234) : warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char *,char *)' differs in levels of indirection from 'int ' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(234) : error C2059: syntax error : ')' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237) : error C2146: syntax error : missing ')' before identifier 'pvNotification' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237) : warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char *,char *)' differs in levels of indirection from 'int ' C:\cvs\jakarta-tomcat-connectors\jk\native2\server\isapi\jk_isapi_plugin.c(237) : error C2059: syntax error : ')' jk_jni_aprImpl.c -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: Friday, November 19, 2004 5:01 PM To: [EMAIL PROTECTED] Subject: new isapi_redirector2.dll I noticed there have been some commits since the last official release in March, so I've built a version based on the latest snapshot. I've also added a How to page for people interested in building it themselves. http://web.bvu.edu/staff/david/index.jsp?section=softwaresubsection=isapipage=overview - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.0.28 configuration question
IIS 6.0/ JK2/ Tomcat 5.0.28/ SQL Server My configuration is 1 W2K3 server running IIS and the JK2 connector, 2 W2K2 servers (load balanced) running my tomcat web app, and 1 running SQL Server. When the requests are long (over 2 minutes), occasionally they re-post multiple times. I see the re-post activity on TP threads. I don't see the request originate from 'jakarta' in the IIS log. So my guess is I've misconfigured Tomcat or JK2. Attached are my workers2.properties and a server.xml from one of the tomcats. Any help is appreciated. Is there a complete workers2.properties file anywhere? Everyone seems to use the pieces they need and delete the rest. I feel shaky, at best, with the configuration I'm using. # ++BEGIN INSTALLATION INSTRUCTIONS+ # # Jakarta ISAPI Connector Installation Steps # # I. Update the server's registry settings. This can be accomplished #using either of the following two steps: #1. Merge the registry file hosting.isapi_redirector2.reg #2. Manually add the following registry entries: # a. In the registry, create a new registry key named # HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\ # Jakarta Isapi Redirector\2.0 # b. [serverRoot] = [${JK2_HOME}/jk2-connector] # c. [extensionUri] = /jakarta/isapi_redirector2.dll # d. [workersFile] = [${JK2_HOME}/conf/workers2.properties] # e. [logLevel] = [INFO] # # II. Configure IIS #1. Using the IIS management console, add a new virtual directory to # your default web site. The name of the virtual directory must be # jakarta. Map this to C:\jk2-connector\bin\. # While creating this new virtual directory assign it with # execute access (scripts + executables) #2. Using the IIS management console, add isapi_redirector2.dll as a # filter to the default IIS web site. # The name of the filter does not matter. Use jakarta. # The path should be C:\jk2-connector\bin\isapi_redirector2.dll # # [ #Windows 2003 / IIS 6.0 ONLY: # #3. Add isapi_redirector2.dll to the list of allowed # Web Service Extensions #4. Create an application pool named 'jakarta' under # Application Pools\DefaultAppPool # ] # #5. Restart IIS # #6. Test by requesting http://host-name/jkstatus # # ---END INSTALLATION INSTRUCTIONS-- # +++ BEGIN CONFIGURATION ++ # # The following configuration file describes a JK2 installation # which does round-robin, session-aware load balancing across all # defined workers. Having a single work will balance the load on # that worker. This is the default, even if you don't spell it out, # but it is spelled out here for clarity. @TODO indicates a # configuration must be made here. @OPTIONAL indicates an optional # customization may be made. # # # Define the status worker, used with the URI: /jkstatus # This is useful for testing the health of the connector, and for # getting performance statistics # # @OPTIONAL: if you don't want a /jkstatus report, omit # [status:status] # # (1) Create a logger. # @OPTIONAL: You may customize the path if you wish. # [logger.file:0] level=DEBUG file=E:/files/jk2-logs/isapi_filter.log # # (2) Define a load balancer worker # @OPTIONAL: You may add debug=9 for triage, if needed # [lb:lb] stickySession=1 # # (3) Define a communication channel to tomcat # # @TODO: # 1. Replace @TODO-tomcat-server with the tomcat server host name # 2. Update the corresponding tomcat configuration file (${CATALINA_HOME/conf/server.xml): #Find the line 'Engine ... name=Catalina ...' and add the element #jvmRoute=@TODO-tomcat-server:8009 . The value of jvmRoute must #match the tomcatId below, or stick session load balancing will not work. # # @TODO: Change the host name as appropriate # # @OPTIONAL: You may add debug=9 for triage, if needed # [channel.socket:qailt002:8009] info=AJP13 forwarding over socket tomcatId=qailt002:8009 [channel.socket:qailt003:8009] info=AJP13 forwarding over socket tomcatId=qailt003:8009 # # (4) Define a worker which communicates over the channel above # # @TODO: Change the host name as appropriate # # @OPTIONAL: Changing the lbfactor affects the weighted round-robin # load balancing. Higher numbers means stronger machine which will # receive more of the requests. # # @OPTIONAL: You may add debug=9 for triage, if needed # [ajp13:qailt002:8009] channel=channel.socket:qailt002:8009 lbfactor=1 [ajp13:qailt003:8009] channel=channel.socket:qailt003:8009 lbfactor=1 # # @OPTIONAL: Repeat steps (3) and (4) here for every tomcat server # to participate in load balancing. At least one is required. # # For example, if the load on the single server defined above # is too great, configure a similar server, and repeat steps (3) and (4) # to include the new server in the load balancing. # #
J2EE Policy Agent and Web Policy Agent
Does anyone have any experience using either of these with Tomcat? If so, can you point me to a good resource? Thanks, Derrick
RE: Tomcat as W2K3 service
Using the resource as a global resource solves the problem. -Original Message- From: Derrick Koes Sent: Friday, November 05, 2004 7:56 AM To: '[EMAIL PROTECTED]' Subject: Tomcat as W2K3 service Configuration: W2K3 Server IIS 6.0 JK2 Tomcat 5.0.24 SQL Server 2000 Starting tomcat (and therefore my web application) as a service produces an undesireable side effect not seen when starting from command line or when using the tomcat manager to stop/start my web application. I have a startup servlet that uses the datasource configured in my context in its init method. So, JNDI and therefore my context need to be available on startup. JNDI does not appear to be available, or at least my context isn't available because I can't get my datasource. Has anyone else seen this in Tomcat 5.0.x? Does anyone have a workaround? My workaround right now is to stop/start my web application from the tomcat manager (http://localhost:8080/manager/html). This isn't the best because when the machine reboots this step must be done. I can't rely on the service starting. Thanks for the help. ?xml version='1.0' encoding='utf-8'? Server Listener className=org.apache.catalina.mbeans.ServerLifecycleListener/ Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/ !-- Using global resources fixes a bug when tomcat is run as a Windows Service. -- GlobalNamingResources Environment name=hibernate.dialect value=net.sf.hibernate.dialect.SQLServerDialect override=false type=java.lang.String description=Hibernate dialect: net.sf.Hibernate.dialect.[SQLServerDialect|OracleDialect|Oracle9Dialect]/ Resource name=com/skillsoft/mgs/mail/session type=javax.mail.Session/ Resource name=com/skillsoft/ilt/jdbc scope=Shareable type=javax.sql.DataSource/ ResourceParams name=com/skillsoft/ilt/jdbc parameter nameurl/name valuejdbc:microsoft:sqlserver://localhost:1433;SelectMethod=cursor;sendStringParameterAsUnicode=false;databaseName=MDB/value /parameter parameter namevalidationQuery/name valueSELECT iltVersion FROM iltVersion WHERE versionid IN (SELECT param_val FROM master_parameters WHERE param_name=apos;dbVersionapos;)/value /parameter parameter namemaxIdle/name value10/value /parameter parameter namemaxActive/name value10/value /parameter parameter namedriverClassName/name valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value /parameter parameter namemaxWait/name value5000/value /parameter parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameusername/name valuesa/value /parameter parameter namepassword/name value/value /parameter /ResourceParams ResourceParams name=com/skillsoft/mgs/mail/session parameter namemail.smtp.host/name !-- This will need to be replaced with a real SMTP server at installation. -- value@TODO/value /parameter parameter namemail.smtp.port/name value25/value /parameter parameter namemail.smtp.sendpartial/name valuetrue/value /parameter /ResourceParams Environment name=simpleValue type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated and saved name=UserDatabase type=org.apache.catalina.UserDatabase/ ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources Service name=Catalina Connector acceptCount=100 connectionTimeout=2 disableUploadTimeout=true port=8080 redirectPort=8443 /Connector Connector port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler disableUploadTimeout=true redirectPort=8443 /Connector Engine defaultHost=localhost jvmRoute=tomcat-server:8009 name=Catalina Host appBase=webapps name=localhost Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_log. suffix=.txt timestamp=true/ Valve className=org.apache.catalina.valves.RequestDumperValve debug=9/ /Host Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.UserDatabaseRealm/ /Engine /Service /Server ?xml version='1.0' encoding='utf-8'? Context path=/ilt docBase=P:/ILT workDir=D:/ILTWork crossContext=true reloadable=true debug=0 !-- The workDir attribute value MUST match the tempDir
Tomcat as W2K3 service
Configuration: W2K3 Server IIS 6.0 JK2 Tomcat 5.0.24 SQL Server 2000 Starting tomcat (and therefore my web application) as a service produces an undesireable side effect not seen when starting from command line or when using the tomcat manager to stop/start my web application. I have a startup servlet that uses the datasource configured in my context in its init method. So, JNDI and therefore my context need to be available on startup. JNDI does not appear to be available, or at least my context isn't available because I can't get my datasource. Has anyone else seen this in Tomcat 5.0.x? Does anyone have a workaround? My workaround right now is to stop/start my web application from the tomcat manager (http://localhost:8080/manager/html). This isn't the best because when the machine reboots this step must be done. I can't rely on the service starting. Thanks for the help. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Building isapi_redirector2.dll Win32 Release
I pulled the latest from CVS yesterday (11/02/04) and I think I have all the dependencies that I know of set up correctly, but the isapi Win32 Release still has errors. I'm not really certain what to do next. I want the file upload fix (~ 04/09/04) which is not available in the latest released dll (2.0.4 -- 03/26/04). I *may* be able to fix some of the errors with jk_isapi_plugin.c myself, but does anyone know where pcre.h exists? Yes, I know about M. Turk's dll http://jakarta.apache.org/~mturk/, but I'd like to be able to build the fix myself. Any assistance is appreciated. Below is the build out from building with MS Dev Studio Visual C++ 6.0 SP6. Configuration: isapi - Win32 Release Creating resources from ..\..\common\jk_logger_win32_message.mc MC: Compiling ..\..\common\jk_logger_win32_message.mc Compiling resources... Compiling... jk_channel.c jk_channel_apr_socket.c jk_channel_jni.c jk_channel_un.c jk_config.c jk_config_file.c jk_endpoint.c jk_env.c jk_handler_logon.c jk_handler_response.c jk_iis_thread_pool.c jk_isapi_plugin.c C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se rver\isapi\jk_isapi_plugin.c(160) : error C2065: 'SF_NOTIFY_AUTH_COMPLETE' : undeclared identifier C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se rver\isapi\jk_isapi_plugin.c(160) : warning C4018: '==' : signed/unsigned mismatch C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se rver\isapi\jk_isapi_plugin.c(229) : warning C4018: '==' : signed/unsigned mismatch C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se rver\isapi\jk_isapi_plugin.c(231) : error C2065: 'PHTTP_FILTER_AUTH_COMPLETE_INFO' : undeclared identifier C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se rver\isapi\jk_isapi_plugin.c(231) : error C2146: syntax error : missing ')' before identifier 'pvNotification' C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se rver\isapi\jk_isapi_plugin.c(231) : warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char *,void *,unsigned long *)' differs in levels of indirection from ' int ' C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se rver\isapi\jk_isapi_plugin.c(231) : error C2059: syntax error : ')' C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se rver\isapi\jk_isapi_plugin.c(234) : error C2146: syntax error : missing ')' before identifier 'pvNotification' C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se rver\isapi\jk_isapi_plugin.c(234) : warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char *,char *)' differs in levels of indirection from 'int ' C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se rver\isapi\jk_isapi_plugin.c(234) : error C2059: syntax error : ')' C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se rver\isapi\jk_isapi_plugin.c(237) : error C2146: syntax error : missing ')' before identifier 'pvNotification' C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se rver\isapi\jk_isapi_plugin.c(237) : warning C4047: '=' : 'int (__stdcall *)(struct _HTTP_FILTER_CONTEXT *,char *,char *)' differs in levels of indirection from 'int ' C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se rver\isapi\jk_isapi_plugin.c(237) : error C2059: syntax error : ')' jk_jni_aprImpl.c jk_logger_file.c jk_logger_win32.c jk_map.c jk_md5.c jk_msg_ajp.c jk_mutex.c jk_mutex_proc.c jk_mutex_thread.c jk_nwmain.c jk_objCache.c jk_pool_apr.c jk_registry.c jk_requtil.c jk_service_iis.c jk_shm.c jk_signal.c jk_uriEnv.c C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\co mmon\jk_uriEnv.c(35) : fatal error C1083: Cannot open include file: 'pcre.h': No such file or directory jk_uriMap.c C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\co mmon\jk_uriMap.c(42) : fatal error C1083: Cannot open include file: 'pcre.h': No such file or directory jk_user.c jk_vm_default.c jk_worker_ajp13.c jk_worker_jni.c jk_worker_lb.c jk_worker_run.c jk_worker_status.c jk_workerEnv.c Error executing cl.exe. isapi_redirector2.dll - 10 error(s), 9 warning(s) ContactInfo NameDerrick Koes/Name TitleSenior Software Engineer/Title Company name=SkillSoft url=http://www.skillsoft.com/ AIMcodeauthor2001/AIM Email[EMAIL PROTECTED]/Email Phone(603) 305-1753/Phone Fax/ Quote attributedTo=YodaNo, try not, do or do not, there is no try./Quote /ContactInfo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: File upload
For anyone who is interested, I found this interesting bug report on bugzilla describing the problem. Does anyone know a workaround for IIS adding 35 bytes? http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26890 -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 2:27 PM To: Tomcat Users List; Struts User Apache (E-mail) Subject: RE: File upload Upon reviewing some struts code and documentation, the memory threshold for a file to be parsed for upload is 256K (configurable). If the file is over that size, I believe the uploader puts it in a temp file. However, since the url to retrieve it for parsing is a relative path, the parser cannot find it. Can anyone verify this? Thanks, Derrick -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 11:52 AM To: Tomcat Users List Subject: File upload Configuration: Tomcat 5.0.24 IIS 5.0 JK2 connector Isapi_redirector2.dll Struts 1.1 Commons file upload 1.0 I seem to have an issue that when the file is a certain size it is written to a temp file on the file system before it is parsed by the multipart parser (at least that's what the exception message leads me to believe). However, since the working directory is my web app (/WEB-INF/ilt), the parser can't seem to find the file (not a fully qualified file name). This is a guess, but if correct I don't know how to fix the problem. Any help is appreciated. Belows is the stack trace and data from the request dumper valve: 2004-10-28 10:59:32 RequestDumperValve[/ilt]: === 2004-10-28 10:59:43 RequestDumperValve[/ilt]: REQUEST URI =/ilt/ilt/iltPerformUpload.do 2004-10-28 10:59:43 RequestDumperValve[/ilt]: authType=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: characterEncoding=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: contentLength=340147 2004-10-28 10:59:43 RequestDumperValve[/ilt]: contentType=multipart/form-data; boundary=---41184676334 2004-10-28 10:59:43 RequestDumperValve[/ilt]:contextPath=/ilt 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=com.skillsoft.mgs.sso.RedirectorServlet.ReturnToSkillPort=http:// dkoesxp/djk/home/index.cfm?selectdTab=0 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFMX_JSESSIONID=c8301990451098975559821 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFID=19459 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFTOKEN=98634115 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept=text/xml,application/xml,application/xhtml+xml,text/html;q =0.9,text/plain;q=0.8,image/png,*/*;q=0.5 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept-language=en-us,en;q=0.5 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=connection=keep-alive 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=host=dkoesxp 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=referer=http://dkoesxp/ilt/ilt/iltUpload.do;jsessionid=3048D443AD 4341273FB5FED42958E7C4 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=user-agent=Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=cookie=com.skillsoft.mgs.sso.RedirectorServlet.ReturnToSkillPort= http://dkoesxp/djk/home/index.cfm?selectdTab=0; CFMX_JSESSIONID=c8301990451098975559821; CFID=19459; CFTOKEN=98634115 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=content-length=340147 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=content-type=multipart/form-data; boundary=---41184676334 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept-encoding=gzip,deflate 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept-charset=ISO-8859-1,utf-8;q=0.7,*;q=0.7 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=keep-alive=300 2004-10-28 10:59:43 RequestDumperValve[/ilt]: locale=en_US 2004-10-28 10:59:43 RequestDumperValve[/ilt]: method=POST 2004-10-28 10:59:43 RequestDumperValve[/ilt]: pathInfo=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: protocol=HTTP/1.1 2004-10-28 10:59:43 RequestDumperValve[/ilt]:queryString=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: remoteAddr=10.20.3.42 2004-10-28 10:59:43 RequestDumperValve[/ilt]: remoteHost=10.20.3.42 2004-10-28 10:59:43 RequestDumperValve[/ilt]: remoteUser=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: requestedSessionId=3048D443AD4341273FB5FED42958E7C4 2004-10-28 10:59:43 RequestDumperValve[/ilt]: scheme=http 2004-10-28 10:59:43 RequestDumperValve[/ilt]: serverName=dkoesxp 2004-10-28 10:59:43 RequestDumperValve[/ilt]: serverPort=80 2004-10-28 10:59:43 RequestDumperValve[/ilt]: servletPath=/ilt/iltPerformUpload.do 2004-10-28 10:59:43 RequestDumperValve[/ilt]: isSecure=false 2004-10-28 10:59:43 RequestDumperValve[/ilt
File upload
Configuration: Tomcat 5.0.24 IIS 5.0 JK2 connector Isapi_redirector2.dll Struts 1.1 Commons file upload 1.0 I seem to have an issue that when the file is a certain size it is written to a temp file on the file system before it is parsed by the multipart parser (at least that's what the exception message leads me to believe). However, since the working directory is my web app (/WEB-INF/ilt), the parser can't seem to find the file (not a fully qualified file name). This is a guess, but if correct I don't know how to fix the problem. Any help is appreciated. Belows is the stack trace and data from the request dumper valve: 2004-10-28 10:59:32 RequestDumperValve[/ilt]: === 2004-10-28 10:59:43 RequestDumperValve[/ilt]: REQUEST URI =/ilt/ilt/iltPerformUpload.do 2004-10-28 10:59:43 RequestDumperValve[/ilt]: authType=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: characterEncoding=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: contentLength=340147 2004-10-28 10:59:43 RequestDumperValve[/ilt]: contentType=multipart/form-data; boundary=---41184676334 2004-10-28 10:59:43 RequestDumperValve[/ilt]:contextPath=/ilt 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=com.skillsoft.mgs.sso.RedirectorServlet.ReturnToSkillPort=http:// dkoesxp/djk/home/index.cfm?selectdTab=0 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFMX_JSESSIONID=c8301990451098975559821 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFID=19459 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFTOKEN=98634115 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept=text/xml,application/xml,application/xhtml+xml,text/html;q =0.9,text/plain;q=0.8,image/png,*/*;q=0.5 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept-language=en-us,en;q=0.5 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=connection=keep-alive 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=host=dkoesxp 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=referer=http://dkoesxp/ilt/ilt/iltUpload.do;jsessionid=3048D443AD 4341273FB5FED42958E7C4 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=user-agent=Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=cookie=com.skillsoft.mgs.sso.RedirectorServlet.ReturnToSkillPort= http://dkoesxp/djk/home/index.cfm?selectdTab=0; CFMX_JSESSIONID=c8301990451098975559821; CFID=19459; CFTOKEN=98634115 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=content-length=340147 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=content-type=multipart/form-data; boundary=---41184676334 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept-encoding=gzip,deflate 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept-charset=ISO-8859-1,utf-8;q=0.7,*;q=0.7 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=keep-alive=300 2004-10-28 10:59:43 RequestDumperValve[/ilt]: locale=en_US 2004-10-28 10:59:43 RequestDumperValve[/ilt]: method=POST 2004-10-28 10:59:43 RequestDumperValve[/ilt]: pathInfo=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: protocol=HTTP/1.1 2004-10-28 10:59:43 RequestDumperValve[/ilt]:queryString=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: remoteAddr=10.20.3.42 2004-10-28 10:59:43 RequestDumperValve[/ilt]: remoteHost=10.20.3.42 2004-10-28 10:59:43 RequestDumperValve[/ilt]: remoteUser=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: requestedSessionId=3048D443AD4341273FB5FED42958E7C4 2004-10-28 10:59:43 RequestDumperValve[/ilt]: scheme=http 2004-10-28 10:59:43 RequestDumperValve[/ilt]: serverName=dkoesxp 2004-10-28 10:59:43 RequestDumperValve[/ilt]: serverPort=80 2004-10-28 10:59:43 RequestDumperValve[/ilt]: servletPath=/ilt/iltPerformUpload.do 2004-10-28 10:59:43 RequestDumperValve[/ilt]: isSecure=false 2004-10-28 10:59:43 RequestDumperValve[/ilt]: --- 2004-10-28 10:59:43 StandardWrapperValve[action]: Servlet.service() for servlet action threw exception org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. \WEB-INF\ilt\temp\upload_0001.tmp (The system cannot find the path specified) at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase .java:429) at org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(Co mmonsMultipartRequestHandler.java:233) at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1209) at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcess or.java:821) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java: 254) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at
RE: File upload
The error occurs before execution makes it to my upload action. -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 12:02 PM To: Tomcat Users List Subject: RE: File upload you have the _exact_ same setup as we do here (except we are on 5.0.25). we upload files using a multipart form and file control. then in the struts action List items = null; try { DiskFileUpload upload = new DiskFileUpload(); items = upload.parseRequest(request); } catch (FileUploadException fuE) { logger.error(user.getUsername() + : error.checkin.parse; + fuE.getMessage()); errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(error.checkin.parse)); break DO_CHECKIN; } FileItem primaryFile = null; while (iterator.hasNext()) { FileItem item = (FileItem) iterator.next(); ... // capture the actual upload file if (! item.isFormField()) { primaryFile = item; } } this was out of the box tomcat/common fileupload/struts, so you must have configured something somewhere? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 28 October 2004 16:56 To: Tomcat Users List Subject: RE: File upload Hi, First question, as always: does it work on Tomcat standalone, i.e. removing IIS, JK2, and the redirector out of the mix (just for now, for testing)? Yoav Shapira http://www.yoavshapira.com -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 11:52 AM To: Tomcat Users List Subject: File upload Configuration: Tomcat 5.0.24 IIS 5.0 JK2 connector Isapi_redirector2.dll Struts 1.1 Commons file upload 1.0 I seem to have an issue that when the file is a certain size it is written to a temp file on the file system before it is parsed by the multipart parser (at least that's what the exception message leads me to believe). However, since the working directory is my web app (/WEB-INF/ilt), the parser can't seem to find the file (not a fully qualified file name). This is a guess, but if correct I don't know how to fix the problem. Any help is appreciated. Belows is the stack trace and data from the request dumper valve: 2004-10-28 10:59:32 RequestDumperValve[/ilt]: === 2004-10-28 10:59:43 RequestDumperValve[/ilt]: REQUEST URI =/ilt/ilt/iltPerformUpload.do 2004-10-28 10:59:43 RequestDumperValve[/ilt]: authType=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: characterEncoding=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: contentLength=340147 2004-10-28 10:59:43 RequestDumperValve[/ilt]: contentType=multipart/form-data; boundary=---41184676334 2004-10-28 10:59:43 RequestDumperValve[/ilt]:contextPath=/ilt 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=com.skillsoft.mgs.sso.RedirectorServlet.ReturnToSkillP ort=http:/ / dkoesxp/djk/home/index.cfm?selectdTab=0 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFMX_JSESSIONID=c8301990451098975559821 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFID=19459 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFTOKEN=98634115 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept=text/xml,application/xml,application/xhtml+xml, text/html; q =0.9,text/plain;q=0.8,image/png,*/*;q=0.5 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept-language=en-us,en;q=0.5 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=connection=keep-alive 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=host=dkoesxp 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=referer=http://dkoesxp/ilt/ilt/iltUpload.do;jsessionid =3048D443A D 4341273FB5FED42958E7C4 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=user-agent=Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=cookie=com.skillsoft.mgs.sso.RedirectorServlet.ReturnT oSkillPort = http://dkoesxp/djk/home/index.cfm?selectdTab=0; CFMX_JSESSIONID=c8301990451098975559821; CFID=19459; CFTOKEN=98634115 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=content-length=340147 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=content-type=multipart/form-data; boundary=---41184676334 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept-encoding=gzip,deflate 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept-charset=ISO-8859-1,utf-8;q=0.7,*;q=0.7 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=keep-alive=300 2004-10-28 10:59:43 RequestDumperValve[/ilt]: locale=en_US 2004-10-28 10:59:43 RequestDumperValve[/ilt]: method=POST 2004-10-28 10:59:43 RequestDumperValve[/ilt]: pathInfo=null 2004-10-28 10:59:43
RE: File upload
The stack trace shows that struts'org.apache.struts.upload.CommonsMultipartRequestHandler.handleReq uest(CommonsMultipartRequestHandler.java:233) invokes commons file upload. I honestly don't know how struts decides to do this. I'm assuming like any other application by examining the request header. I also assume this happens before struts determines what action to run, otherwise I'd be getting to my action. Derrick ContactInfo NameDerrick Koes/Name TitleSenior Software Engineer/Title Company name=SkillSoft url=http://www.skillsoft.com/ AIMcodeauthor2001/AIM Email[EMAIL PROTECTED]/Email Phone(603) 305-1753/Phone Fax/ Quote attributedTo=YodaNo, try not, do or do not, there is no try./Quote /ContactInfo -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 12:13 PM To: Tomcat Users List Subject: RE: File upload oh i see. i guess we don't use it in this way. org.apache.commons.fileupload.FileUploadException is being thrown before you hit the action you say? how do you involve common fileupload direct from the form post if you don't mind my asking? -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: 28 October 2004 17:08 To: Tomcat Users List Subject: RE: File upload The error occurs before execution makes it to my upload action. -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 12:02 PM To: Tomcat Users List Subject: RE: File upload you have the _exact_ same setup as we do here (except we are on 5.0.25). we upload files using a multipart form and file control. then in the struts action List items = null; try { DiskFileUpload upload = new DiskFileUpload(); items = upload.parseRequest(request); } catch (FileUploadException fuE) { logger.error(user.getUsername() + : error.checkin.parse; + fuE.getMessage()); errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(error.checkin.parse)); break DO_CHECKIN; } FileItem primaryFile = null; while (iterator.hasNext()) { FileItem item = (FileItem) iterator.next(); ... // capture the actual upload file if (! item.isFormField()) { primaryFile = item; } } this was out of the box tomcat/common fileupload/struts, so you must have configured something somewhere? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 28 October 2004 16:56 To: Tomcat Users List Subject: RE: File upload Hi, First question, as always: does it work on Tomcat standalone, i.e. removing IIS, JK2, and the redirector out of the mix (just for now, for testing)? Yoav Shapira http://www.yoavshapira.com -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 11:52 AM To: Tomcat Users List Subject: File upload Configuration: Tomcat 5.0.24 IIS 5.0 JK2 connector Isapi_redirector2.dll Struts 1.1 Commons file upload 1.0 I seem to have an issue that when the file is a certain size it is written to a temp file on the file system before it is parsed by the multipart parser (at least that's what the exception message leads me to believe). However, since the working directory is my web app (/WEB-INF/ilt), the parser can't seem to find the file (not a fully qualified file name). This is a guess, but if correct I don't know how to fix the problem. Any help is appreciated. Belows is the stack trace and data from the request dumper valve: 2004-10-28 10:59:32 RequestDumperValve[/ilt]: === 2004-10-28 10:59:43 RequestDumperValve[/ilt]: REQUEST URI =/ilt/ilt/iltPerformUpload.do 2004-10-28 10:59:43 RequestDumperValve[/ilt]: authType=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: characterEncoding=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: contentLength=340147 2004-10-28 10:59:43 RequestDumperValve[/ilt]: contentType=multipart/form-data; boundary=---41184676334 2004-10-28 10:59:43 RequestDumperValve[/ilt]: contextPath=/ilt 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=com.skillsoft.mgs.sso.RedirectorServlet.ReturnToSkillP ort=http:/ / dkoesxp/djk/home/index.cfm?selectdTab=0 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFMX_JSESSIONID=c8301990451098975559821 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFID=19459 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFTOKEN=98634115 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept=text/xml,application/xml,application/xhtml+xml, text/html; q =0.9,text/plain;q=0.8,image/png,*/*;q=0.5 2004-10-28 10:59:43 RequestDumperValve[/ilt
RE: File upload
As I mentioned in another reply, I never get to my action. And, yes my action mirrors the struts-upload.war example pretty closely. Multiple files may have been uploaded in my case, so I have to handle that. In the case posted, only one file was uploaded. Derrick ContactInfo NameDerrick Koes/Name TitleSenior Software Engineer/Title Company name=SkillSoft url=http://www.skillsoft.com/ AIMcodeauthor2001/AIM Email[EMAIL PROTECTED]/Email Phone(603) 305-1753/Phone Fax/ Quote attributedTo=YodaNo, try not, do or do not, there is no try./Quote /ContactInfo -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 12:04 PM To: Tomcat Users List Subject: Re: File upload Are you following the struts-upload.war example that comes with the Struts 1.1? In that example, the uploaded file size is checked. If a file is stored somewhere under the AppName/WEB-INF directory, you have to use the stream to read the file. --- Derrick Koes [EMAIL PROTECTED] wrote: Configuration: Tomcat 5.0.24 IIS 5.0 JK2 connector Isapi_redirector2.dll Struts 1.1 Commons file upload 1.0 I seem to have an issue that when the file is a certain size it is written to a temp file on the file system before it is parsed by the multipart parser (at least that's what the exception message leads me to believe). However, since the working directory is my web app (/WEB-INF/ilt), the parser can't seem to find the file (not a fully qualified file name). This is a guess, but if correct I don't know how to fix the problem. Any help is appreciated. Belows is the stack trace and data from the request dumper valve: 2004-10-28 10:59:32 RequestDumperValve[/ilt]: === 2004-10-28 10:59:43 RequestDumperValve[/ilt]: REQUEST URI =/ilt/ilt/iltPerformUpload.do 2004-10-28 10:59:43 RequestDumperValve[/ilt]: authType=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: characterEncoding=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: contentLength=340147 2004-10-28 10:59:43 RequestDumperValve[/ilt]: contentType=multipart/form-data; boundary=---41184676334 2004-10-28 10:59:43 RequestDumperValve[/ilt]: contextPath=/ilt 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=com.skillsoft.mgs.sso.RedirectorServlet.ReturnToSkillPort=http:// dkoesxp/djk/home/index.cfm?selectdTab=0 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFMX_JSESSIONID=c8301990451098975559821 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFID=19459 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFTOKEN=98634115 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept=text/xml,application/xml,application/xhtml+xml,text/html;q =0.9,text/plain;q=0.8,image/png,*/*;q=0.5 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept-language=en-us,en;q=0.5 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=connection=keep-alive 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=host=dkoesxp 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=referer=http://dkoesxp/ilt/ilt/iltUpload.do;jsessionid=3048D443AD 4341273FB5FED42958E7C4 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=user-agent=Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=cookie=com.skillsoft.mgs.sso.RedirectorServlet.ReturnToSkillPort= http://dkoesxp/djk/home/index.cfm?selectdTab=0; CFMX_JSESSIONID=c8301990451098975559821; CFID=19459; CFTOKEN=98634115 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=content-length=340147 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=content-type=multipart/form-data; boundary=---41184676334 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept-encoding=gzip,deflate 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept-charset=ISO-8859-1,utf-8;q=0.7,*;q=0.7 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=keep-alive=300 2004-10-28 10:59:43 RequestDumperValve[/ilt]: locale=en_US 2004-10-28 10:59:43 RequestDumperValve[/ilt]: method=POST 2004-10-28 10:59:43 RequestDumperValve[/ilt]: pathInfo=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: protocol=HTTP/1.1 2004-10-28 10:59:43 RequestDumperValve[/ilt]: queryString=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: remoteAddr=10.20.3.42 2004-10-28 10:59:43 RequestDumperValve[/ilt]: remoteHost=10.20.3.42 2004-10-28 10:59:43 RequestDumperValve[/ilt]: remoteUser=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: requestedSessionId=3048D443AD4341273FB5FED42958E7C4 2004-10-28 10:59:43 RequestDumperValve[/ilt]: scheme=http 2004-10-28 10:59:43 RequestDumperValve[/ilt]: serverName=dkoesxp 2004-10-28 10:59:43 RequestDumperValve[/ilt
RE: File upload
Upon reviewing some struts code and documentation, the memory threshold for a file to be parsed for upload is 256K (configurable). If the file is over that size, I believe the uploader puts it in a temp file. However, since the url to retrieve it for parsing is a relative path, the parser cannot find it. Can anyone verify this? Thanks, Derrick -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 11:52 AM To: Tomcat Users List Subject: File upload Configuration: Tomcat 5.0.24 IIS 5.0 JK2 connector Isapi_redirector2.dll Struts 1.1 Commons file upload 1.0 I seem to have an issue that when the file is a certain size it is written to a temp file on the file system before it is parsed by the multipart parser (at least that's what the exception message leads me to believe). However, since the working directory is my web app (/WEB-INF/ilt), the parser can't seem to find the file (not a fully qualified file name). This is a guess, but if correct I don't know how to fix the problem. Any help is appreciated. Belows is the stack trace and data from the request dumper valve: 2004-10-28 10:59:32 RequestDumperValve[/ilt]: === 2004-10-28 10:59:43 RequestDumperValve[/ilt]: REQUEST URI =/ilt/ilt/iltPerformUpload.do 2004-10-28 10:59:43 RequestDumperValve[/ilt]: authType=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: characterEncoding=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: contentLength=340147 2004-10-28 10:59:43 RequestDumperValve[/ilt]: contentType=multipart/form-data; boundary=---41184676334 2004-10-28 10:59:43 RequestDumperValve[/ilt]:contextPath=/ilt 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=com.skillsoft.mgs.sso.RedirectorServlet.ReturnToSkillPort=http:// dkoesxp/djk/home/index.cfm?selectdTab=0 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFMX_JSESSIONID=c8301990451098975559821 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFID=19459 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFTOKEN=98634115 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept=text/xml,application/xml,application/xhtml+xml,text/html;q =0.9,text/plain;q=0.8,image/png,*/*;q=0.5 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept-language=en-us,en;q=0.5 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=connection=keep-alive 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=host=dkoesxp 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=referer=http://dkoesxp/ilt/ilt/iltUpload.do;jsessionid=3048D443AD 4341273FB5FED42958E7C4 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=user-agent=Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=cookie=com.skillsoft.mgs.sso.RedirectorServlet.ReturnToSkillPort= http://dkoesxp/djk/home/index.cfm?selectdTab=0; CFMX_JSESSIONID=c8301990451098975559821; CFID=19459; CFTOKEN=98634115 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=content-length=340147 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=content-type=multipart/form-data; boundary=---41184676334 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept-encoding=gzip,deflate 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept-charset=ISO-8859-1,utf-8;q=0.7,*;q=0.7 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=keep-alive=300 2004-10-28 10:59:43 RequestDumperValve[/ilt]: locale=en_US 2004-10-28 10:59:43 RequestDumperValve[/ilt]: method=POST 2004-10-28 10:59:43 RequestDumperValve[/ilt]: pathInfo=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: protocol=HTTP/1.1 2004-10-28 10:59:43 RequestDumperValve[/ilt]:queryString=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: remoteAddr=10.20.3.42 2004-10-28 10:59:43 RequestDumperValve[/ilt]: remoteHost=10.20.3.42 2004-10-28 10:59:43 RequestDumperValve[/ilt]: remoteUser=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: requestedSessionId=3048D443AD4341273FB5FED42958E7C4 2004-10-28 10:59:43 RequestDumperValve[/ilt]: scheme=http 2004-10-28 10:59:43 RequestDumperValve[/ilt]: serverName=dkoesxp 2004-10-28 10:59:43 RequestDumperValve[/ilt]: serverPort=80 2004-10-28 10:59:43 RequestDumperValve[/ilt]: servletPath=/ilt/iltPerformUpload.do 2004-10-28 10:59:43 RequestDumperValve[/ilt]: isSecure=false 2004-10-28 10:59:43 RequestDumperValve[/ilt]: --- 2004-10-28 10:59:43 StandardWrapperValve[action]: Servlet.service() for servlet action threw exception org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. \WEB-INF\ilt\temp\upload_0001.tmp (The system cannot find the path specified) at org.apache.commons.fileupload.FileUploadBase.parseRequest
RE: File upload
Yep, taking IIS and the connector out of the picture produces the same problem. ContactInfo NameDerrick Koes/Name TitleSenior Software Engineer/Title Company name=SkillSoft url=http://www.skillsoft.com/ AIMcodeauthor2001/AIM Email[EMAIL PROTECTED]/Email Phone(603) 305-1753/Phone Fax/ Quote attributedTo=YodaNo, try not, do or do not, there is no try./Quote /ContactInfo -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 11:56 AM To: Tomcat Users List Subject: RE: File upload Hi, First question, as always: does it work on Tomcat standalone, i.e. removing IIS, JK2, and the redirector out of the mix (just for now, for testing)? Yoav Shapira http://www.yoavshapira.com -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 11:52 AM To: Tomcat Users List Subject: File upload Configuration: Tomcat 5.0.24 IIS 5.0 JK2 connector Isapi_redirector2.dll Struts 1.1 Commons file upload 1.0 I seem to have an issue that when the file is a certain size it is written to a temp file on the file system before it is parsed by the multipart parser (at least that's what the exception message leads me to believe). However, since the working directory is my web app (/WEB-INF/ilt), the parser can't seem to find the file (not a fully qualified file name). This is a guess, but if correct I don't know how to fix the problem. Any help is appreciated. Belows is the stack trace and data from the request dumper valve: 2004-10-28 10:59:32 RequestDumperValve[/ilt]: === 2004-10-28 10:59:43 RequestDumperValve[/ilt]: REQUEST URI =/ilt/ilt/iltPerformUpload.do 2004-10-28 10:59:43 RequestDumperValve[/ilt]: authType=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: characterEncoding=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: contentLength=340147 2004-10-28 10:59:43 RequestDumperValve[/ilt]: contentType=multipart/form-data; boundary=---41184676334 2004-10-28 10:59:43 RequestDumperValve[/ilt]:contextPath=/ilt 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=com.skillsoft.mgs.sso.RedirectorServlet.ReturnToSkillPort=http:/ / dkoesxp/djk/home/index.cfm?selectdTab=0 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFMX_JSESSIONID=c8301990451098975559821 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFID=19459 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFTOKEN=98634115 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept=text/xml,application/xml,application/xhtml+xml,text/html; q =0.9,text/plain;q=0.8,image/png,*/*;q=0.5 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept-language=en-us,en;q=0.5 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=connection=keep-alive 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=host=dkoesxp 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=referer=http://dkoesxp/ilt/ilt/iltUpload.do;jsessionid=3048D443A D 4341273FB5FED42958E7C4 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=user-agent=Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=cookie=com.skillsoft.mgs.sso.RedirectorServlet.ReturnToSkillPort = http://dkoesxp/djk/home/index.cfm?selectdTab=0; CFMX_JSESSIONID=c8301990451098975559821; CFID=19459; CFTOKEN=98634115 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=content-length=340147 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=content-type=multipart/form-data; boundary=---41184676334 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept-encoding=gzip,deflate 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept-charset=ISO-8859-1,utf-8;q=0.7,*;q=0.7 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=keep-alive=300 2004-10-28 10:59:43 RequestDumperValve[/ilt]: locale=en_US 2004-10-28 10:59:43 RequestDumperValve[/ilt]: method=POST 2004-10-28 10:59:43 RequestDumperValve[/ilt]: pathInfo=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: protocol=HTTP/1.1 2004-10-28 10:59:43 RequestDumperValve[/ilt]:queryString=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: remoteAddr=10.20.3.42 2004-10-28 10:59:43 RequestDumperValve[/ilt]: remoteHost=10.20.3.42 2004-10-28 10:59:43 RequestDumperValve[/ilt]: remoteUser=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: requestedSessionId=3048D443AD4341273FB5FED42958E7C4 2004-10-28 10:59:43 RequestDumperValve[/ilt]: scheme=http 2004-10-28 10:59:43 RequestDumperValve[/ilt]: serverName=dkoesxp 2004-10-28 10:59:43 RequestDumperValve[/ilt]: serverPort=80 2004-10-28 10:59:43 RequestDumperValve[/ilt]: servletPath=/ilt/iltPerformUpload.do 2004-10-28 10:59:43 RequestDumperValve[/ilt]: isSecure=false 2004-10-28 10:59:43 RequestDumperValve[/ilt
RE: File upload
Just in case someone else runs into this, the tomcat workDir and the struts-config tempDir property values MUST match. Otherwise, files greater than the threshold size (default 256K) won't be found for parsing. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 11:52 AM To: Tomcat Users List Subject: File upload Configuration: Tomcat 5.0.24 IIS 5.0 JK2 connector Isapi_redirector2.dll Struts 1.1 Commons file upload 1.0 I seem to have an issue that when the file is a certain size it is written to a temp file on the file system before it is parsed by the multipart parser (at least that's what the exception message leads me to believe). However, since the working directory is my web app (/WEB-INF/ilt), the parser can't seem to find the file (not a fully qualified file name). This is a guess, but if correct I don't know how to fix the problem. Any help is appreciated. Belows is the stack trace and data from the request dumper valve: 2004-10-28 10:59:32 RequestDumperValve[/ilt]: === 2004-10-28 10:59:43 RequestDumperValve[/ilt]: REQUEST URI =/ilt/ilt/iltPerformUpload.do 2004-10-28 10:59:43 RequestDumperValve[/ilt]: authType=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: characterEncoding=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: contentLength=340147 2004-10-28 10:59:43 RequestDumperValve[/ilt]: contentType=multipart/form-data; boundary=---41184676334 2004-10-28 10:59:43 RequestDumperValve[/ilt]:contextPath=/ilt 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=com.skillsoft.mgs.sso.RedirectorServlet.ReturnToSkillPort=http:// dkoesxp/djk/home/index.cfm?selectdTab=0 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFMX_JSESSIONID=c8301990451098975559821 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFID=19459 2004-10-28 10:59:43 RequestDumperValve[/ilt]: cookie=CFTOKEN=98634115 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept=text/xml,application/xml,application/xhtml+xml,text/html;q =0.9,text/plain;q=0.8,image/png,*/*;q=0.5 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept-language=en-us,en;q=0.5 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=connection=keep-alive 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=host=dkoesxp 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=referer=http://dkoesxp/ilt/ilt/iltUpload.do;jsessionid=3048D443AD 4341273FB5FED42958E7C4 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=user-agent=Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=cookie=com.skillsoft.mgs.sso.RedirectorServlet.ReturnToSkillPort= http://dkoesxp/djk/home/index.cfm?selectdTab=0; CFMX_JSESSIONID=c8301990451098975559821; CFID=19459; CFTOKEN=98634115 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=content-length=340147 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=content-type=multipart/form-data; boundary=---41184676334 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept-encoding=gzip,deflate 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=accept-charset=ISO-8859-1,utf-8;q=0.7,*;q=0.7 2004-10-28 10:59:43 RequestDumperValve[/ilt]: header=keep-alive=300 2004-10-28 10:59:43 RequestDumperValve[/ilt]: locale=en_US 2004-10-28 10:59:43 RequestDumperValve[/ilt]: method=POST 2004-10-28 10:59:43 RequestDumperValve[/ilt]: pathInfo=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: protocol=HTTP/1.1 2004-10-28 10:59:43 RequestDumperValve[/ilt]:queryString=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: remoteAddr=10.20.3.42 2004-10-28 10:59:43 RequestDumperValve[/ilt]: remoteHost=10.20.3.42 2004-10-28 10:59:43 RequestDumperValve[/ilt]: remoteUser=null 2004-10-28 10:59:43 RequestDumperValve[/ilt]: requestedSessionId=3048D443AD4341273FB5FED42958E7C4 2004-10-28 10:59:43 RequestDumperValve[/ilt]: scheme=http 2004-10-28 10:59:43 RequestDumperValve[/ilt]: serverName=dkoesxp 2004-10-28 10:59:43 RequestDumperValve[/ilt]: serverPort=80 2004-10-28 10:59:43 RequestDumperValve[/ilt]: servletPath=/ilt/iltPerformUpload.do 2004-10-28 10:59:43 RequestDumperValve[/ilt]: isSecure=false 2004-10-28 10:59:43 RequestDumperValve[/ilt]: --- 2004-10-28 10:59:43 StandardWrapperValve[action]: Servlet.service() for servlet action threw exception org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. \WEB-INF\ilt\temp\upload_0001.tmp (The system cannot find the path specified) at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase .java:429) at org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(Co mmonsMultipartRequestHandler.java