Re: Servlet 3.0, @WebFilter and ordering
Thanks everyone, Just wish there was an Ordered interface, or annotation, or attribute of @WebXXX annotations to which ordering can be applied, so that web.xml is not needed for such IMO basic feature. Regards, Stevo. On Wed, Feb 9, 2011 at 8:58 AM, Remy Maucherat remy.mauche...@gmail.com wrote: On Wed, Feb 9, 2011 at 7:46 AM, Konstantin Kolinko knst.koli...@gmail.com wrote: 2011/2/8 Christopher Schultz ch...@christopherschultz.net: On 2/8/2011 4:31 AM, Stevo Slavić wrote: I don't see support for ordering in @WebFilter annotation. Am I missing something? I don't see anything that would allow an ordering to be specified. Ordering is discussed in chapters 8.2.2 and 8.2.3 of the servlet 3.0 spec. In 8.2.3 it is explicitly written: As described above, when using annotations to define the listeners, servlets and filters, the order in which they are invoked is unspecified Well, but it is still defined a bit by the ordering of the JARs. But within the JAR, the order of processing of @WebFilter is undefined, which seems quite logical to me. (If you need ordering, use a SCI or listener and add the filters programmatically) Rémy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
More traces from tomcat 3.2.X
Dear users of tomcat, could you please advice me how to increase logs in tomcat 3.2.X? I know that it is unsupported version now but on the one of the our server I have a problem with high load of CPU when the servlet is exiting. I could not find any reason why the servelt consume high load of CPU. Is there any way how to specify in XML configuration files more logs during the calling servlets? Thank you in advance -- Best Regards / S pozdravem Petr Hracek - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Context.xml for multiple datasources
Hello Tomcat users, I need some help creating my context.xml file in a correct way. My application is based on Spring and Hibernate. I need to configure more than one datasource to access multiple databases at the same time. This is my working Spring datasource.xml: bean id=parentDataSource class=org.springframework.jdbc.datasource.DriverManagerDataSource abstract=true property name=driverClassName value=org.sqlite.JDBC / property name=username value=sa / /bean bean id=firstDataSource parent=parentDataSource property name=url value=jdbc:sqlite:C:\firstDatabase.db / /bean bean id=secondDataSource parent=parentDataSource property name=url value=jdbc:sqlite:C:\secondDatabase.db / /bean bean id=dataSource class=com.ax.dashboard.datasource.AxRoutingDataSource property name=targetDataSources map key-type=java.lang.String entry key=first value-ref=firstDatasource / entry key=second value-ref=secondDataSource / /map /property property name=defaultTargetDataSource ref=firstDatasource / /bean Is it possible to create a corresponding context to configure the databases outside my war file? I can't find any solution in the web. Thanks a lot. Regards, Stephan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat7 - Firefox - SWF Upload
The conf/context.xml is the default one from Tomcat7 distribution. My webapp context.xml just contains resources definitions such as jdbc pools. Where should I place this useHttpOnly flag, if this is the solution? My real question is about the jsessionid that is stated to be changed on tomcat7, so maybe swfupload is not able to track the session and run correctly. -- Da: Mark Thomas A: Tomcat Users List Data: 7 febbraio 2011 15.49.46 CET Oggetto: Re: Tomcat7 - Firefox - SWF Upload On 07/02/2011 14:13, Gabriele Bulfon wrote: Thanks, I have only this inf conf: conf/Catalina/localhost and it's empty. What is this? That is fine. It is the location optionally copies context.xml files to but Tomcat 7.0.x does not do this by default. What is in conf/context.xml? What is in webapps/ /META-INF/context.xml? Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: More traces from tomcat 3.2.X
2011/2/9 Petr Hracek phrac...@gmail.com: Dear users of tomcat, could you please advice me how to increase logs in tomcat 3.2.X? I know that it is unsupported version now but on the one of the our server I have a problem with high load of CPU when the servlet is exiting. I could not find any reason why the servelt consume high load of CPU. Is there any way how to specify in XML configuration files more logs during the calling servlets? Thank you in advance If you need the docs, they are still online: http://tomcat.apache.org/tomcat-3.2-doc/index.html I cannot say for sure, but from the configuration files I saw that 1) there is Logger element in server.xml with verbosityLevel attribute 2) there are debug=number attributes on various elements in there. Maybe that helps. I could not find any reason why the servelt consume high load of CPU. Taking a thread dump may provide some clue. http://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Context.xml for multiple datasources
I need some help creating my context.xml file in a correct way. My application is based on Spring and Hibernate. I need to configure more than one datasource to access multiple databases at the same time. We use JNDI to set up our datasource. So in spring configuration, we have bean id=dataSource class=org.springframework.jndi.JndiObjectFactoryBean property name=jndiName value=java:comp/env/jdbc/myapp / /bean Then in tomcat_base\conf\context.xml we have Context Resource name=jdbc/myapp auth=Container type=javax.sql.DataSource username=username password=password driverClassName=oracle.jdbc.OracleDriver url=jdbc:oracle:thin:@localhost:1521:xe maxActive=20 maxIdle=2 minIdle=1 initialSize=2 / /Context This will provide the jndi data source to all apps in the tomcat instance. If you wish/need to restrict that to a single war, place the above entry in conf/Catalina/[host]/[appName].xml. Using this technique you should be able to specify multiple datasources. Chris
Re: Context.xml for multiple datasources
Am 09.02.2011 10:30, schrieb chris derham: I need some help creating my context.xml file in a correct way. My application is based on Spring and Hibernate. I need to configure more than one datasource to access multiple databases at the same time. We use JNDI to set up our datasource. So in spring configuration, we have bean id=dataSource class=org.springframework.jndi.JndiObjectFactoryBean property name=jndiName value=java:comp/env/jdbc/myapp / /bean Then intomcat_base\conf\context.xml we have Context Resource name=jdbc/myapp auth=Container type=javax.sql.DataSource username=username password=password driverClassName=oracle.jdbc.OracleDriver url=jdbc:oracle:thin:@localhost:1521:xe maxActive=20 maxIdle=2 minIdle=1 initialSize=2 / /Context This will provide the jndi data source to all apps in the tomcat instance. If you wish/need to restrict that to a single war, place the above entry in conf/Catalina/[host]/[appName].xml. Using this technique you should be able to specify multiple datasources. Chris Hello, thank you for the quick answer. I know how to configure one datasource and lookup with JNDI. This is my actual configuration. But I need to configure more than one datasource to switch the database at runtime. With my Spring configured datasource it works to access all databases. But I don't know how to create a context for Tomcat to access all databases. -- My configuration to access ONE database: datasource.xml for Spring: # bean id=dataSource class=org.springframework.jdbc.datasource.DriverManagerDataSource property name=driverClassName valueorg.sqlite.JDBC/value /property property name=url valuejdbc:sqlite:C:\firstDatabase.db/value /property property name=username valueSA/value /property property name=password value/value /property /bean # The same datasource as context to lookup with JNDI: # Context ... Resource name=jdbc/myds auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=sa password= driverClassName=org.sqlite.JDBC url=jdbc:sqlite:C:\firstDatabase.db/ ... /Context # Lookup in Spring: jee:jndi-lookup id=dataSource jndi-name=jdbc/myds/ The configuration I need in my application: datasource.xml for Spring: bean id=parentDataSource class=org.springframework.jdbc.datasource.DriverManagerDataSource abstract=true property name=driverClassName value=org.sqlite.JDBC / property name=username value=sa / /bean bean id=firstDataSource parent=parentDataSource property name=url value=jdbc:sqlite:C:\firstDatabase.db / /bean bean id=secondDataSource parent=parentDataSource property name=url value=jdbc:sqlite:C:\secondDatabase.db / /bean bean id=dataSource class=com.ax.dashboard.datasource.AxRoutingDataSource property name=testString ref=testContext/ property name=targetDataSources map key-type=java.lang.String entry key=first value-ref=firstDataSource / entry key=second value-ref=secondDataSource / /map /property property name=defaultTargetDataSource ref=firstDataSource / /bean And the question is: How to build the context to move the existing Spring configuration to the Tomcat context to get all datasources with JNDI. The problem is, that it must be possible to set a variable amount of databases. I can't set the number of databases to a fixed amount. Building the Resources for the beans named parentDataSource, firstDataSource and secondDataSource is like configuring a single database. But How can I create a JNDI lookable resource like the bean named dataSource containing a map of all available database resources? Regards Stephan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Context.xml for multiple datasources
And the question is: How to build the context to move the existing Spring configuration to the Tomcat context to get all datasources with JNDI. The problem is, that it must be possible to set a variable amount of databases. I can't set the number of databases to a fixed amount. Building the Resources for the beans named parentDataSource, firstDataSource and secondDataSource is like configuring a single database. But How can I create a JNDI lookable resource like the bean named dataSource containing a map of all available database resources? From your original post, in which you stated This is my working Spring datasource.xml: bean id=dataSource class=com.ax.dashboard. datasource.AxRoutingDataSource property name=targetDataSources map key-type=java.lang.String entry key=first value-ref=firstDatasource / entry key=second value-ref=secondDataSource / /map /property property name=defaultTargetDataSource ref=firstDatasource / /bean In spring you are building a map of data sources that are also defined in spring. Why not build a map of data sources that are defined in context.xml and spring looks them up? You say that you need variable amounts of databases, but the code you posted and said this worked doesn't support this - to add a new datasource you would have to update spring config. If you really need variable databases, then some custom code to load a custom configuration of such data sources might be the way to go. Then just use a resource element in context to get tomcat to load that for the instance. Chris
Re: [OT] Multiple web services on same tomcat instance
Thanks! If tomcat is not to blame, I'll go to the metro mailing lists to try and find out where is the problem. I just needed to figure out if tomcat was somehow a part of the problem! Tiago On Ter, 2011-02-08 at 16:00 -0500, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tiago, Marking off-topic. On 2/7/2011 6:45 AM, Tiago Batista wrote: During development, I need to run two web services that chat amongst themselves on the development server. I think I am hitting the issue mentioned on [1], however I could not find any further information on the subject. I have tried both SOAP 1.1 and SOAP 1.2 with no success... Any one has any extra information on this, or any known workarounds that do not involve setting up an extra server? At the moment, setting up another tomcat instance would be my last option. I am currently running a tomcat checkout from trunk it that matters. Tomcat doesn't care what your incoming Content-Type is. Tomcat doesn't care what your outgoing Content-Type is. If your servlet makes a loopback call (or any other type of HTTP call), Tomcat doesn't care /at all/ since you're not using any Tomcat code. Your SOAP library is probably the one choking. This appears to have little to do with Tomcat. That isn't to say that nobody here can help you. Just provide lots more details and maybe someone can help. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1RrvIACgkQ9CaO5/Lv0PD/GwCfWGGszPDpsWLhsRAbIeGIFMkI 9NUAnjE9t+/8LwDbv6p/69wopgwnjaJe =OyTT -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Context.xml for multiple datasources
Am 09.02.2011 11:03, schrieb chris derham: And the question is: How to build the context to move the existing Spring configuration to the Tomcat context to get all datasources with JNDI. The problem is, that it must be possible to set a variable amount of databases. I can't set the number of databases to a fixed amount. Building the Resources for the beans named parentDataSource, firstDataSource and secondDataSource is like configuring a single database. But How can I create a JNDI lookable resource like the bean named dataSource containing a map of all available database resources? From your original post, in which you stated This is my working Spring datasource.xml: bean id=dataSource class=com.ax.dashboard. datasource.AxRoutingDataSource property name=targetDataSources map key-type=java.lang.String entry key=first value-ref=firstDatasource / entry key=second value-ref=secondDataSource / /map /property property name=defaultTargetDataSource ref=firstDatasource / /bean In spring you are building a map of data sources that are also defined in spring. Why not build a map of data sources that are defined in context.xml and spring looks them up? You say that you need variable amounts of databases, but the code you posted and said this worked doesn't support this - to add a new datasource you would have to update spring config. If you really need variable databases, then some custom code to load a custom configuration of such data sources might be the way to go. Then just use a resource element in context to get tomcat to load that for the instance. Chris That's right, my code doesn't support a variable amount of databases at the moment because the databases are configured in Spring (inside my war file). But if I use the context to configure this list of datasources, the admin can create databases as he need. And that's the reason why my configuration has to take place in the server context and not hardcoded in the Spring configuration. In Spring I can add more databases as I want, but I have to rebuild my war file after change the datasource. With a context configuration my war file can handle as many databases as the admin configures. The switch is done by the key of the map. Stephan -- *Stephan Beutel (B.Eng.)* Senior Software Developer Axivion GmbH Nobelstr. 15 70569 Stuttgart Germany Tel: +49 711 6204378-66 Fax: +49 711 6204378-99 Mail: beu...@axivion.com mailto:beu...@axivion.com URL: http://www.axivion.com Geschaeftsfuehrung: Stefan Bellon, Thomas Eisenbarth, Sebastian Rummler Sitz der Gesellschaft: Stuttgart Registergericht: Amtsgericht Stuttgart, HRB 720590
Re: Context.xml for multiple datasources
That's right, my code doesn't support a variable amount of databases at the moment because the databases are configured in Spring (inside my war file). But if I use the context to configure this list of datasources, the admin can create databases as he need. And that's the reason why my configuration has to take place in the server context and not hardcoded in the Spring configuration. In Spring I can add more databases as I want, but I have to rebuild my war file after change the datasource. With a context configuration my war file can handle as many databases as the admin configures. The switch is done by the key of the map. So why don't you have a string resource in the context that provides the jndi names of all the jndi data sources, e.g. mydatasourceJndiNames=name1,name2,name3. Then have some code the lazily loads this string, splits it, and then loads these via jndi into your map? Chris
Re: Tomcat7 - Firefox - SWF Upload
On 09/02/2011 09:19, Gabriele Bulfon wrote: The conf/context.xml is the default one from Tomcat7 distribution. My webapp context.xml just contains resources definitions such as jdbc pools. Where should I place this useHttpOnly flag, if this is the solution? In your app's /META-INF/context.xml change Context ... /Context to Context useHttpOnly=false ... /Context My real question is about the jsessionid that is stated to be changed on tomcat7, so maybe swfupload is not able to track the session and run correctly. The reason is that the httpOnly attribute of a cookie prevents the cookie from being available to scripts and applets. This prevents the applet reading the session ID. Setting useHttpOnly=false stops the httpOnly flag from being added to the cookie and makes it available to scripts and applets. Be aware that disabling the httpOnly attribute on the cookie significantly increases the impact of any XSS vulnerabilities in your web application. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat7 - Firefox - SWF Upload
I think I already tried placing that flag in my context.xml where you suggested, but it didn't work I'll try again and let you know. Thanks, Gabriele. -- Da: Mark Thomas A: Tomcat Users List Data: 9 febbraio 2011 12.18.15 CET Oggetto: Re: Tomcat7 - Firefox - SWF Upload On 09/02/2011 09:19, Gabriele Bulfon wrote: The conf/context.xml is the default one from Tomcat7 distribution. My webapp context.xml just contains resources definitions such as jdbc pools. Where should I place this useHttpOnly flag, if this is the solution? In your app's /META-INF/context.xml change ... to ... My real question is about the jsessionid that is stated to be changed on tomcat7, so maybe swfupload is not able to track the session and run correctly. The reason is that the httpOnly attribute of a cookie prevents the cookie from being available to scripts and applets. This prevents the applet reading the session ID. Setting useHttpOnly=false stops the httpOnly flag from being added to the cookie and makes it available to scripts and applets. Be aware that disabling the httpOnly attribute on the cookie significantly increases the impact of any XSS vulnerabilities in your web application. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Context.xml for multiple datasources
Am 09.02.2011 12:12, schrieb chris derham: That's right, my code doesn't support a variable amount of databases at the moment because the databases are configured in Spring (inside my war file). But if I use the context to configure this list of datasources, the admin can create databases as he need. And that's the reason why my configuration has to take place in the server context and not hardcoded in the Spring configuration. In Spring I can add more databases as I want, but I have to rebuild my war file after change the datasource. With a context configuration my war file can handle as many databases as the admin configures. The switch is done by the key of the map. So why don't you have a string resource in the context that provides the jndi names of all the jndi data sources, e.g. mydatasourceJndiNames=name1,name2,name3. Then have some code the lazily loads this string, splits it, and then loads these via jndi into your map? Chris That's the thing I work on at the moment. But I thought it could be defined by a map in context.xml like in Spring. Stephan -- *Stephan Beutel (B.Eng.)* Senior Software Developer Axivion GmbH Nobelstr. 15 70569 Stuttgart Germany Tel: +49 711 6204378-66 Fax: +49 711 6204378-99 Mail: beu...@axivion.com mailto:beu...@axivion.com URL: http://www.axivion.com Geschaeftsfuehrung: Stefan Bellon, Thomas Eisenbarth, Sebastian Rummler Sitz der Gesellschaft: Stuttgart Registergericht: Amtsgericht Stuttgart, HRB 720590
Re: Is IBM Right About Java?
On 9 February 2011 01:36, Caldarale, Charles R chuck.caldar...@unisys.comwrote: The JVM always reserves the maximum heap size as virtual space, but does not allocate more of the heap than the current limit; the limit will be adjusted up or down within the -Xms : -Xmx range as load dictates. The unused virtual space is not available for any other use. Chuck, d'you happen to know how the virtual space reservation impacts swap space requirements (if at all)? Although somewhat less unpleasant than buying RAM, 200 * 0.5Gbytes is still a lot of disk to allocate for swap if you expect it's never going to be used. I therefore assume there's not a direct mapping of reserved virtual space to reserved space in the swap file. - Peter
RE: Context.xml for multiple datasources
From: Stephan Beutel [mailto:beu...@axivion.com] Subject: Re: Context.xml for multiple datasources But I thought it could be defined by a map in context.xml like in Spring. Even if you did, that wouldn't solve your problem. You would still have to stop and restart the webapp every time an additional datasource was added to the Context element. You could provide a Parameter element nested inside the Context that specifies the names of the Resource entries, but there's no automatically created list of Resource elements. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Context.xml for multiple datasources
Am 09.02.2011 15:02, schrieb Caldarale, Charles R: From: Stephan Beutel [mailto:beu...@axivion.com] Subject: Re: Context.xml for multiple datasources But I thought it could be defined by a map in context.xml like in Spring. Even if you did, that wouldn't solve your problem. You would still have to stop and restart the webapp every time an additional datasource was added to theContext element. You could provide aParameter element nested inside theContext that specifies the names of theResource entries, but there's no automatically created list ofResource elements. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Restarting the webapp is no problem. Rebuilding the war file is a problem. At the moment I solved it in this was: Resource name=jdbc/first auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=sa password= driverClassName=org.sqlite.JDBC url=jdbc:sqlite:C:\firstDatabase.db/ Resource name=jdbc/second auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=sa password= driverClassName=org.sqlite.JDBC url=jdbc:sqlite:C:\secondDatabase.db/ Resource name=jdbc/third auth=Container type=javax.sql.DataSource maxActive=100 maxIdle=30 maxWait=1 username=sa password= driverClassName=org.sqlite.JDBC url=jdbc:sqlite:C:\thirdDatabase.db/ Environment name=dataSourceNames value=first, second, third type=java.lang.String override=false/ Environment name=dataSourceList value=jdbc/first, jdbc/second, jdbc/third type=java.lang.String override=false/ Spring looks for the two environment vars (dataSourceNames, dataSourceList) and inject them into my RoutingDataSource class: jee:jndi-lookup id=dataSources jndi-name=dataSourceList / jee:jndi-lookup id=dataSourceNames jndi-name=dataSourceNames / bean id=dataSource class=com.ax.dashboard.datasource.AxRoutingDataSource property name=dataSources ref=dataSources/ property name=dataSourceNames ref=dataSourceNames / /bean And in my java class I do the lookup with JNDI: private void createDataSourceMap() { if (this.dataSourceList != null this.dataSourceNames != null this.dataSourceList.size() 0 this.dataSourceNames.size() 0 dataSourceList.size() == this.dataSourceNames.size()) { this.dataSources = new HashMapObject, Object(); for (int i = 0; i dataSourceList.size(); i++) { Context initCtx; Object dataSource = null; try { initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup(java:comp/env); dataSource = envCtx.lookup(dataSourceList.get(i)); if(i==0){ setDefaultTargetDataSource(dataSource); } } catch (NamingException e) { e.printStackTrace(); } dataSources.put(dataSourceNames.get(i), dataSource); } setTargetDataSources(dataSources); } } If someone has a better solution, please let me know. Regards Stephan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat7 - Firefox - SWF Upload
ohps, looks like it's working now :) don't know what I did wrong the previous time...probably I did not restart completely tomcat, but just restarted the webapp? well, solved anyway :) thanks a lot! -- Da: Mark Thomas A: Tomcat Users List Data: 9 febbraio 2011 12.18.15 CET Oggetto: Re: Tomcat7 - Firefox - SWF Upload On 09/02/2011 09:19, Gabriele Bulfon wrote: The conf/context.xml is the default one from Tomcat7 distribution. My webapp context.xml just contains resources definitions such as jdbc pools. Where should I place this useHttpOnly flag, if this is the solution? In your app's /META-INF/context.xml change ... to ... My real question is about the jsessionid that is stated to be changed on tomcat7, so maybe swfupload is not able to track the session and run correctly. The reason is that the httpOnly attribute of a cookie prevents the cookie from being available to scripts and applets. This prevents the applet reading the session ID. Setting useHttpOnly=false stops the httpOnly flag from being added to the cookie and makes it available to scripts and applets. Be aware that disabling the httpOnly attribute on the cookie significantly increases the impact of any XSS vulnerabilities in your web application. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Is IBM Right About Java?
I agree, I have enjoying Charles remarks and comments as well. I say to PID, he needs to PIDDLE off and leave us alone. /Ed -Original Message- From: Jordan Michaels jor...@viviotech.net Sent: Feb 8, 2011 3:39 PM To: Tomcat Users List users@tomcat.apache.org Subject: Re: Is IBM Right About Java? pid's using a mail client that uses header information to track threads. So, if you started this thread by hitting reply to an existing topic then changed the subject and content, the header thread tracking info will still be present. Thus, to him, it will appear as though you hijacked a thread. It's an honest mistake - if you even want to call it that. Whether it's right for someone like pid to even request that you adhere to this concept has been debated on many forums in many places. I've been appreciating Charles' comments as well. They are generally helpful and informative. =) -Jordan On 02/08/2011 12:12 PM, Robinson, Eric wrote: Saw this statement on an IBM web site: Please don't hijack threads. Start a new email to the list, just like you would to a person. I'm not sure what you are referring to. I started this as a new thread and so far it has not wandered off topic at all. I'm especially appreciating the comments from Charles Caldarale. --Eric Disclaimer - February 8, 2011 This email and any files transmitted with it are confidential and intended solely for Tomcat Users List. If you are not the named addressee you should not disseminate, distribute, copy or alter this email. Any views or opinions presented in this email are solely those of the author and might not represent those of Physicians' Managed Care or Physician Select Management. Warning: Although Physicians' Managed Care or Physician Select Management has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments. This disclaimer was added by Policy Patrol: http://www.policypatrol.com/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat upgrade from 6.0.20 to latest production release of 7.0.x...
Hi All, I want to upgrade from 6.0.20 to 7.0.x but I have APR added to Tomcat now and I want to keep it that configuration. I heard that Tomcat 7.0.x comes with APR but I am not sure of that. Is that true? Thanks, -Tony - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat upgrade from 6.0.20 to latest production release of 7.0.x...
From: Tony Anecito [mailto:adanec...@yahoo.com] Subject: Tomcat upgrade from 6.0.20 to latest production release of 7.0.x... I want to upgrade from 6.0.20 to 7.0.x but I have APR added to Tomcat now and I want to keep it that configuration. I heard that Tomcat 7.0.x comes with APR but I am not sure of that. Is that true? Hmmm... here's a sentence on the Tomcat 7 download page: Please see the README file for packaging information. It explains what every distribution contains. And if we click on the README link: Packaging Details (or What Should I Download?) bin/ apache-tomcat-[version].zip or .tar.gz Base distribution. These distributions do not include the Windows service wrapper nor the compiled APR/native library for Windows. apache-tomcat-[version].exe 32-bit/64-bit Windows installer for Tomcat. Please note that while this distribution includes the vast majority of the base distribution, some of the command-line scripts for launching Tomcat are not included. This distribution is intended for those users planning to launch Tomcat through the Windows shortcuts or services. apache-tomcat-[version]-windows-x86.zip 32-bit Windows specific distribution that includes the Windows service wrapper and the compiled APR/native library for use with 32-bit JVMs on both 32 and 64 bit Windows platforms. apache-tomcat-[version]-windows-x64.zip 64-bit Windows specific distribution that includes the Windows service wrapper and the compiled APR/native library for use with 64-bit JVMs on x64 Windows platforms. apache-tomcat-[version]-windows-i64.zip 64-bit Windows specific distribution that includes the Windows service wrapper and the compiled APR/native library for use with 64-bit JVMs on Itanium 64-bit Windows platforms. apache-tomcat-[version]-deployer.zip or .tar.gz The standalone Tomcat Web Application Deployer. apache-tomcat-[version]-fulldocs.tar.gz The Tomcat documentation bundle, including complete javadocs. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org