[JBoss-user] HTTP Session Replication
Hai,Can we ignore warnings like No Tx support for findByPrimaryKey, setSession andall.? Thanks RegardsVijaya
Re: [JBoss-user] HTTP Session Replication
Hai,Can we ignore warnings like No Tx support for findByPrimaryKey, setSession andall.? Thanks RegardsVijaya
[JBoss-user] HTTP Session Replication
Hai, I'm using JBoss-4.0 and when I'm trying to execute a simple stateful session bean to test the session replication, I got an exception that Attribute is not serializable. Then I added implements Serializable to theJava bean class and the Enterprise bean class. Then I tried to execute, but I got the following exception. Also some warning messages are getting printed like "No tx support found for method". 12:28:04,250 INFO [MainDeployer] Undeployed file:/E:/jboss-4.0.0DR2/server/all/deploy/Copy of TempConve12:29:36,812 INFO [DefaultPartition] New cluster view: 6 ([visic54:1206, 172.16.16.38:1430])12:29:36,812 INFO [DefaultPartition:ReplicantManager] Dead members: 012:31:52,953 INFO [STDOUT] In TempSelector12:31:52,953 INFO [STDOUT] Session ID:MX9-qM09ogXwGa+C818Fgw**12:31:53,000 WARN [TransactionInterceptor] No tx support found for method: findByPrimaryKey12:31:54,546 WARN [TransactionInterceptor] No tx support found for method: create12:31:56,296 WARN [TransactionInterceptor] No tx support found for method: setSession12:32:20,656 INFO [ChannelSocket] connection timeout reached12:46:10,062 WARN [AbstractInstanceCache] Unable to passivate due to ctx lock, id=MX9-qM09ogXwGa+C818Fg13:01:56,015 WARN [TransactionInterceptor] No tx support found for method: findByPrimaryKey13:01:56,031 WARN [TransactionInterceptor] No tx support found for method: getSession13:01:56,078 WARN [TransactionInterceptor] No tx support found for method: remove13:02:49,546 INFO [DefaultPartition] New cluster view: 7 ([visic54:1206])13:02:49,546 INFO [DefaultPartition:ReplicantManager] Dead members: 113:08:01,328 INFO [JkInputStream] Receiving: getting request body chunk 33 3313:08:01,343 INFO [STDOUT] 12 34 00 21 00 1f 74 65 6d 70 5f 74 79 70 65 3d | .4.!..temp_type=13:08:01,343 INFO [STDOUT] 63 65 6c 73 69 75 73 26 73 75 62 6d 69 74 3d 73 | celsiussubmit=s13:08:01,343 INFO [STDOUT] 65 6c 65 63 74 | elect13:08:01,359 WARN [TransactionInterceptor] No tx support found for method: findByPrimaryKey13:08:17,453 ERROR [Engine] StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exceptionjavax.servlet.ServletException at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPip at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve..java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPip at org.jboss.web.catalina.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:236) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPip at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPip at org.jboss.web.catalina.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:75) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPip at org.jboss.web.catalina.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:78) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPip at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPip at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPip at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPip at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPip at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
Re: Problem after problem... (Re: [JBoss-user] http session clustering)
Hi Sacha. Umm, I should point out that Petstore xPetstore have been found to have a number of issues with them. One of the ones we ran accross was that it uses PASSWORD as a field name for a couple of Entity Beans. Many databases refuse that as a column name, as they consider it a reserved word. A few other compatability issues were found with it as well for JBoss 3.x, which I am still working on. To our panicked friend, the bad news is this; No Appserver does everything properly. I know this, as I have actually worked with most of the others in a production (or near production) environment. By near production, I mean this; The appserver worked in single node mode, but when attempts were made to scale, load test and/or cluster, the appserver failed miserably, and the product's support department failed to support their product. No, JBoss does not yet do everything for everybody, but it is by far the most complete solution out there. That said, I do have the following comments; Why do you not take the problems you are having and; 1) post them to the developer list; 2) Since you seem to have many details, and what sounds like golden testcases, start opening bug reports on SourceForge? The bug reports, they need the following; A) Sample Code that causes the bug to occur B) Platform the bug occurs on (OS/Java Version/Jboss version, etc) C) Where necessary, the configuration that causes the bug to occur. I found when I supplied that info for the last major project I was working on, bug fixes where issued within a week (usually within a couple of days). Patches where possible was also appreciated. And JBoss Group, especially Ben Sabrin, it sounds like it would be good publicity if this gent's thesis would succeed. So how about lending him a technical hand to get his thesis done? Joao, there are Java Users Groups in every city now, as well as J2EE Groups in most. (Btw, anybody in Dallas, the DFW J2EE SIG meets the third Tuesday of the month - This month the topic is a Joint Presentation with another User Group on the Keel Meta-Framework, a project that uses JBoss as one of its core modules). You might be able to find somebody in one of these groups to give you hand with some of the issues with your project. It would speed things up for you a little if you could get some help from people that have been doing this for a while. If you are having specific issues with your Thesies Application, go ahead and query me offline. I will have a quick look, and will let you know where (and usually what) your problem is. (I have been dealing with Massive Scale J2EE Applications for nearly 4 years now). Regards, Steve Sacha Labourey wrote: Well, if this application is buggy, it is buggy. Either you fix it, or you use another one. Take xPetstore: Sun says it contains the best j2EE patterns. Take a subset of this app, cluster it, and you end-up with a clustered j2eE app. Good luck, Sacha -Original Message- From: Joao Clemente [mailto:[EMAIL PROTECTED] Sent: vendredi, 4. juillet 2003 01:41 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Problem after problem... (Re: [JBoss-user] http session clustering) sorry for replying so late, but here goes: No, my problems are still not solved... And I almost gave up on this... This is my university thesis, and I'm already almost a year late (it should take a year and I've started my research almost two years ago). If this is not finished in the 2 year-time, the thesis will be cancelled by the university. I'm suposed to use JBoss to provide a scalable, fault-tolerant and high-available middleware infra-structure for a j2ee app that is being developed by another person.. another thesis that is being developed at the same time, a kind of a webmail on steroids.. This j2ee application is build on top of a already developed open source webapplication (servlet+jsp). It was redesigned to use EJB's aswell. Then it was expanded with the help of a couple of more external libraries of other independent open-source projects.. So we're talking about a webapp that was redisegned to be a j2ee app, and then glued to some other libs and projects and with some extra code developed here... Put a Ldap connection here, a jabber server there, a mailserver somewhere else and with a bit of luck you get something like this... About 10 months ago, I should had delivered tested results on how the jboss cluster can improve the scalability and fault-tolerance of this application. I'm failing miserably every test I make... day after day I crash into another problem, and I'm unable to get those test results... I'm not saying this is JBoss's fault... No. I've found a couple of bugs that were JBoss and Javagroups related, as you (sacha) can certainly remember. But those were not the reasons I'm failing every time I try... This app sucks. Thats the truth I'm already seeing for a long time ago and it's exactly that that my thesis advisor (togheter with the other theses
RE: Problem after problem... (Re: [JBoss-user] http session clustering)
Well, if this application is buggy, it is buggy. Either you fix it, or you use another one. Take xPetstore: Sun says it contains the best j2EE patterns. Take a subset of this app, cluster it, and you end-up with a clustered j2eE app. Good luck, Sacha -Original Message- From: Joao Clemente [mailto:[EMAIL PROTECTED] Sent: vendredi, 4. juillet 2003 01:41 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Problem after problem... (Re: [JBoss-user] http session clustering) sorry for replying so late, but here goes: No, my problems are still not solved... And I almost gave up on this... This is my university thesis, and I'm already almost a year late (it should take a year and I've started my research almost two years ago). If this is not finished in the 2 year-time, the thesis will be cancelled by the university. I'm suposed to use JBoss to provide a scalable, fault-tolerant and high-available middleware infra-structure for a j2ee app that is being developed by another person.. another thesis that is being developed at the same time, a kind of a webmail on steroids.. This j2ee application is build on top of a already developed open source webapplication (servlet+jsp). It was redesigned to use EJB's aswell. Then it was expanded with the help of a couple of more external libraries of other independent open-source projects.. So we're talking about a webapp that was redisegned to be a j2ee app, and then glued to some other libs and projects and with some extra code developed here... Put a Ldap connection here, a jabber server there, a mailserver somewhere else and with a bit of luck you get something like this... About 10 months ago, I should had delivered tested results on how the jboss cluster can improve the scalability and fault-tolerance of this application. I'm failing miserably every test I make... day after day I crash into another problem, and I'm unable to get those test results... I'm not saying this is JBoss's fault... No. I've found a couple of bugs that were JBoss and Javagroups related, as you (sacha) can certainly remember. But those were not the reasons I'm failing every time I try... This app sucks. Thats the truth I'm already seeing for a long time ago and it's exactly that that my thesis advisor (togheter with the other theses developer and advisor) is refusing to see.. Sure.. but the app works fine, they say. It's a problem on your side, they say... It's your work to get that thing usable under load, it's what your research is suposed to do, they say.. And, actually, if we use 1 (ONE!!!) client (wich, btw, must be InterntExplorer) , with 1 (A SINGLE ONE!!!) jboss server, and you test it manually... it works.. But, for instance, - The app uses non-serializable objects all over the http session. This ceartainly gives us a hard time getting fault-tolerance (or failover) to work, besides the problems with the load-balancing... - The owner of the original project (the one that was redesigned here to have ejb's besides servlets and jsp's) admitted that it never tought of it to be clustered, and had no ideia of what was to be done for it to be runnable in a cluster... About three or four months ago I started writing java test programs using httpunit to load the app.. I've designed a simple client model that would just do four or five steps in the web app... Simple, right? Then added a threading model so I could have n similar clients accessing the webapp... Again, simple... I decided to test WITHOUT a cluster. So, there as been at least 3 months that I do NOT have a load balancer, i DO NOT have a clustered jboss setup, there is just 1 jboss server and my client application... Results? I'm almost willing to wait 'till the 2 years of my thesis end, my university cancels it, so that I can start something new from the scratch... With NO cluster involved: - with 1 client ,if I run my test case (get hompage, login, check mail, logout) for 6 times, I would get locked. End of story. - with 2 clients, would get about the same results.. - with 4 clients, I would get little more than exceptions... oh, btw, in most of these cenarios, I' would not even be able to use the application manually, as it would enter a cicle redirecting me for the start page (it's a feature of this app: if something goes wrong then redirect to start page)... until I shutted down jboss and started it over (trying to undeploy the app would lock jboss) and no, it does not stop here... after some time, we found out that a singleton object of that j2ee app was unable to be runned concurrently and would cause the exception... gimme some more headaches, and we find out that the locking was due to one of the external libs that were being used that, by some reason, locks under yet to be understood circuntances.. oh
Problem after problem... (Re: [JBoss-user] http session clustering)
with 5 clients! It's impossible to but this in a cluster and make it work better... it sucks, period! But time keeps running and my thesis, my scalable and fault-tolerant middleware for a j2e appp is going down the drain... no way this app is going to be useable under load... and I keep banging my head on the wall each time I run my tests, see the exceptions, and think to my self... ok... where is it now? is it my test code? is it the app? is is the xyz lib that the app uses? maybe it's the foo lib... maybe the mail server fault? maybe jboss this time? maybe this java vm implementation has a bug... maybe the... sometimes I'm over a week or two without doing progress... I wake up in the morning, I just feel like crying and I think why tha hell didn't I went for medicine school? what 'tha heck... maybe I can still be a plumber or something... maybe I should just be in bed... - Original Message - From: Sacha Labourey [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, June 08, 2003 5:22 AM Subject: RE: [JBoss-user] http session clustering You're problem is still not resolved Joao?!? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joao Clemente Sent: vendredi, 6. juin 2003 14:48 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [JBoss-user] http session clustering - Original Message - From: Stefano Maestri [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 06, 2003 10:44 AM Subject: Re: [JBoss-user] http session clustering Thanks, it works. just a suggestion add this on your very good JBoss Clustering docs. And another thing: I read in jbossbook3.2.1 draft docs in chapter Using Clustering with Tomcat this phrase: If you are using a load balancer, make sure that your setup uses sticky session. I'm agree that's better to use it to reduce the overload on JBoss, but it is not necessary. Isn't it? BTW we are using since 2 year LVS (LinuxVirtualServer) as load balancer with JBoss, are you interested in my experience to integrate something about LVS in your docs exactly as you did for apache? At least I am! I am trying to get that setup working correctly for an entreprise app for over a year now.. This is my unversisty final work, and it has been delayed forever as I'm being unable to locate all the changes I need to do to get my app with fault-tolerance features... Every time I need to recover sessions (in particular http session) I have a really hard time 'till I find out where all those exceptions come from... I think the problem lies deep inside the app I'm using: It uses some objects kept inside the http session that are not serializable and therefore there is a need to recover them in a application level.. In particular, I also setup a LVS with LVS-DR (I once had it with LVS-NAT) and in the end I had to enable persistence so that each user session sticks with a single server... So, if you had some approach for the problems found during the cluster setup, I would love to hear it... --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] http session clustering
On Sunday 08 June 2003 06:21, Sacha Labourey wrote: Hello Stefano, Thanks, it works. great just a suggestion add this on your very good JBoss Clustering docs. And another thing: I read in jbossbook3.2.1 draft docs in chapter Using Clustering with Tomcat this phrase: If you are using a load balancer, make sure that your setup uses sticky session. I'm agree that's better to use it to reduce the overload on JBoss, but it is not necessary. Isn't it? It may be if you are using multiple-frames for example. Of course, you are right. BTW we are using since 2 year LVS (LinuxVirtualServer) as load balancer with JBoss, are you interested in my experience to integrate something about LVS in your docs exactly as you did for apache? Yes, sure, no need to write text! A few hints and configuratino should do it! Thanks Difficult to say it in few words. I'll take some time to write something in deep and I'll send you. Or to ML? or to dev ML? regards Cheers, Sacha --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- --- all work and no play makes Jack a dull boy --- bye Stefano [EMAIL PROTECTED] www.javalinux.it MSN messanger: [EMAIL PROTECTED] ICQ uin: 122192578 Jabber: canezen Yahoo MSN: canezen #jedit IRC channel as maeste --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] http session clustering
You're problem is still not resolved Joao?!? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joao Clemente Sent: vendredi, 6. juin 2003 14:48 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [JBoss-user] http session clustering - Original Message - From: Stefano Maestri [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 06, 2003 10:44 AM Subject: Re: [JBoss-user] http session clustering Thanks, it works. just a suggestion add this on your very good JBoss Clustering docs. And another thing: I read in jbossbook3.2.1 draft docs in chapter Using Clustering with Tomcat this phrase: If you are using a load balancer, make sure that your setup uses sticky session. I'm agree that's better to use it to reduce the overload on JBoss, but it is not necessary. Isn't it? BTW we are using since 2 year LVS (LinuxVirtualServer) as load balancer with JBoss, are you interested in my experience to integrate something about LVS in your docs exactly as you did for apache? At least I am! I am trying to get that setup working correctly for an entreprise app for over a year now.. This is my unversisty final work, and it has been delayed forever as I'm being unable to locate all the changes I need to do to get my app with fault-tolerance features... Every time I need to recover sessions (in particular http session) I have a really hard time 'till I find out where all those exceptions come from... I think the problem lies deep inside the app I'm using: It uses some objects kept inside the http session that are not serializable and therefore there is a need to recover them in a application level.. In particular, I also setup a LVS with LVS-DR (I once had it with LVS-NAT) and in the end I had to enable persistence so that each user session sticks with a single server... So, if you had some approach for the problems found during the cluster setup, I would love to hear it... --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] http session clustering
Hello Stefano, Thanks, it works. great just a suggestion add this on your very good JBoss Clustering docs. And another thing: I read in jbossbook3.2.1 draft docs in chapter Using Clustering with Tomcat this phrase: If you are using a load balancer, make sure that your setup uses sticky session. I'm agree that's better to use it to reduce the overload on JBoss, but it is not necessary. Isn't it? It may be if you are using multiple-frames for example. BTW we are using since 2 year LVS (LinuxVirtualServer) as load balancer with JBoss, are you interested in my experience to integrate something about LVS in your docs exactly as you did for apache? Yes, sure, no need to write text! A few hints and configuratino should do it! Thanks Cheers, Sacha --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] http session clustering
Is possible to use http session clustering in a partition with a name different from DefaultPartition. If yes, where have I to set the partition name? I didn't find anything in Clustering docs and I take a look to the code but I can't figure where it take the Partition name. But if I set a different name for my partition I get this error: [ObjectName: jboss:service=ClusteredHttpSession state: CONFIGURED I Depend On: jboss.j2ee:service=EJB,jndiName=clustering/HTTPSession Depends On Me: , ObjectName: jboss.j2ee:service=EJB,jndiName=clustering/HTTPSession state: FAILED I Depend On: jboss:service=DefaultPartition jboss:service=invoker,type=jrmp Thanks in advance -- --- all work and no play makes Jack a dull boy --- bye Stefano [EMAIL PROTECTED] www.javalinux.it MSN messanger: [EMAIL PROTECTED] ICQ uin: 122192578 Jabber: canezen Yahoo MSN: canezen #jedit IRC channel as maeste --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] http session clustering
Take a look at server\all\deploy\jbossha-httpsession.sar\ClusteredHttpSessionEB.jar\META-IN F\jboss.xml -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stefano Maestri Sent: jeudi, 5. juin 2003 17:56 To: [EMAIL PROTECTED] Subject: [JBoss-user] http session clustering Is possible to use http session clustering in a partition with a name different from DefaultPartition. If yes, where have I to set the partition name? I didn't find anything in Clustering docs and I take a look to the code but I can't figure where it take the Partition name. But if I set a different name for my partition I get this error: [ObjectName: jboss:service=ClusteredHttpSession state: CONFIGURED I Depend On: jboss.j2ee:service=EJB,jndiName=clustering/HTTPSession Depends On Me: , ObjectName: jboss.j2ee:service=EJB,jndiName=clustering/HTTPSession state: FAILED I Depend On: jboss:service=DefaultPartition jboss:service=invoker,type=jrmp Thanks in advance -- --- all work and no play makes Jack a dull boy --- bye Stefano [EMAIL PROTECTED] www.javalinux.it MSN messanger: [EMAIL PROTECTED] ICQ uin: 122192578 Jabber: canezen Yahoo MSN: canezen #jedit IRC channel as maeste --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] http session clustering
This is in the doco. Chapter 5. Clustering EJB. in jboss.xml jboss enterprise-beans session ejb-namenextgen.StatelessSession/ejb-name jndi-namenextgen.StatelessSession/jndi-name clusteredTrue/clustered cluster-config partition-nameMyPartition/partition-name /cluster-config /session /enterprise-beans /jboss -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Stefano Maestri Sent: Thursday, June 05, 2003 11:56 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] http session clustering Is possible to use http session clustering in a partition with a name different from DefaultPartition. If yes, where have I to set the partition name? I didn't find anything in Clustering docs and I take a look to the code but I can't figure where it take the Partition name. But if I set a different name for my partition I get this error: [ObjectName: jboss:service=ClusteredHttpSession state: CONFIGURED I Depend On: jboss.j2ee:service=EJB,jndiName=clustering/HTTPSession Depends On Me: , ObjectName: jboss.j2ee:service=EJB,jndiName=clustering/HTTPSession state: FAILED I Depend On: jboss:service=DefaultPartition jboss:service=invoker,type=jrmp Thanks in advance -- --- all work and no play makes Jack a dull boy --- bye Stefano [EMAIL PROTECTED] www.javalinux.it MSN messanger: [EMAIL PROTECTED] ICQ uin: 122192578 Jabber: canezen Yahoo MSN: canezen #jedit IRC channel as maeste --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] http session clustering
Thanks, it works. just a suggestion add this on your very good JBoss Clustering docs. And another thing: I read in jbossbook3.2.1 draft docs in chapter Using Clustering with Tomcat this phrase: If you are using a load balancer, make sure that your setup uses sticky session. I'm agree that's better to use it to reduce the overload on JBoss, but it is not necessary. Isn't it? BTW we are using since 2 year LVS (LinuxVirtualServer) as load balancer with JBoss, are you interested in my experience to integrate something about LVS in your docs exactly as you did for apache? Thank you one more. On Thursday 05 June 2003 18:23, Sacha Labourey wrote: Take a look at server\all\deploy\jbossha-httpsession.sar\ClusteredHttpSessionEB.jar\META-I N F\jboss.xml -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stefano Maestri Sent: jeudi, 5. juin 2003 17:56 To: [EMAIL PROTECTED] Subject: [JBoss-user] http session clustering Is possible to use http session clustering in a partition with a name different from DefaultPartition. If yes, where have I to set the partition name? I didn't find anything in Clustering docs and I take a look to the code but I can't figure where it take the Partition name. But if I set a different name for my partition I get this error: [ObjectName: jboss:service=ClusteredHttpSession state: CONFIGURED I Depend On: jboss.j2ee:service=EJB,jndiName=clustering/HTTPSession Depends On Me: , ObjectName: jboss.j2ee:service=EJB,jndiName=clustering/HTTPSession state: FAILED I Depend On: jboss:service=DefaultPartition jboss:service=invoker,type=jrmp Thanks in advance -- --- all work and no play makes Jack a dull boy --- bye Stefano [EMAIL PROTECTED] www.javalinux.it MSN messanger: [EMAIL PROTECTED] ICQ uin: 122192578 Jabber: canezen Yahoo MSN: canezen #jedit IRC channel as maeste --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- --- all work and no play makes Jack a dull boy --- bye Stefano [EMAIL PROTECTED] www.javalinux.it MSN messanger: [EMAIL PROTECTED] ICQ uin: 122192578 Jabber: canezen Yahoo MSN: canezen #jedit IRC channel as maeste --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Http Session Clustering, JGStore debugging
I have reported a problem with JGstore a couple of weeks ago that is still unanswered. I would like to get my hands dirty and debug it myself. But I would like to get some tips on the way to do it. Is there a way I can use a kind of debugger to find out whats wrong? Should I rely only at increasing log level? I have no ideia if one can run jboss on top of debugguer (is there a java debuger, something similar to gdb but in java world?) Besides, should I try to debug jetty standalone? Jules, maybe you can tip me with something, as the exception I get it's at org.mortbay. Thanks -- Joao Pedro Clemente jpcl @ rnl.ist.utl.pt --- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Http Session Clustering, JGStore debugging
I have reported a problem with JGstore a couple of weeks ago that is still unanswered. I would like to get my hands dirty and debug it myself. But I would like to get some tips on the way to do it. Is there a way I can use a kind of debugger to find out whats wrong? Should I rely only at increasing log level? I have no ideia if one can run jboss on top of debugguer (is there a java debuger, something similar to gdb but in java world?) Enable JPDA on your VM (look thru run.bat/run.sh to see how to enable it) Certain IDEs will let you connect to the port that JPDA is listening on and debug. Sorry, forgot to mention a few: Forte, Eclipse, never tried but I am sure they alos do JBuilder, JDeveloper etc. I am not sure of gdb kind of debugger ... I think there is jdb in the bin directory of your JSDK. Alex. --- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
AW: [JBoss-user] Http Session Clustering, JGStore debugging
I would recommend debugging with eclipse (http://www.eclipse.org) or any other JDI (Java Debug Interface) compatible IDE of your choice. I find it easy to start jboss with remote debugging enabled (see the commented out JAVA_OPTS in run.bat and your Java Platform Documentation) and then attaching the debugger remotely. CGJ -Ursprüngliche Nachricht- Von: Joao Pedro Clemente [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 2. April 2003 14:15 An: [EMAIL PROTECTED] Betreff: [JBoss-user] Http Session Clustering, JGStore debugging I have reported a problem with JGstore a couple of weeks ago that is still unanswered. I would like to get my hands dirty and debug it myself. But I would like to get some tips on the way to do it. Is there a way I can use a kind of debugger to find out whats wrong? Should I rely only at increasing log level? I have no ideia if one can run jboss on top of debugguer (is there a java debuger, something similar to gdb but in java world?) Besides, should I try to debug jetty standalone? Jules, maybe you can tip me with something, as the exception I get it's at org.mortbay. Thanks -- Joao Pedro Clemente jpcl @ rnl.ist.utl.pt --- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ --- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] http session cookie
Hi, I am facing this problem : when an anonymous user connect to the web site and get its session. This one is persisted through a Cookie (JSESSIONID) with a maxage of -1. on subsequent calls if I want to change this maxage to another value let's say 1000 for instance, it does not work and the JSESSIONID cookie stays the same. the goal is to implement the remember me feature on the web site. I've noticed that when maxage not -1, the cookie is shared by mutliple instance of Internet Explorer. That's why I want to use that. I know I can set the default value used by jetty by setting org.mortbay.jetty.servlet.MaxAge in context param but in that case I will have only the other effect. julien. --- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Http Session Clustering, JGStore debugging
Joao, While I am not hyper-sensitive to I have reported a problem with JGstore a couple of weeks ago that is still unanswered (and much more sensitive to accurate bug-reports with testcase). Can you please repost your problem. I've just tried, between yesterday and today, the following: - Jetty with JBoss-based HTTP Session Replication - Jetty with Jetty-based HTTP Session Replication - Tomcat with JBoss-based HTTP Session Replication And this on Branch_3_0 and Branch_3_2 and it has worked for me. What is your specific use case and exception you get? Cheers, Sacha P.S.: Clustering doco will soon be udpated on flashline (it is already written). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joao Pedro Clemente Sent: mercredi, 2. avril 2003 14:15 To: [EMAIL PROTECTED] Subject: [JBoss-user] Http Session Clustering, JGStore debugging I have reported a problem with JGstore a couple of weeks ago that is still unanswered. I would like to get my hands dirty and debug it myself. But I would like to get some tips on the way to do it. Is there a way I can use a kind of debugger to find out whats wrong? Should I rely only at increasing log level? I have no ideia if one can run jboss on top of debugguer (is there a java debuger, something similar to gdb but in java world?) Besides, should I try to debug jetty standalone? Jules, maybe you can tip me with something, as the exception I get it's at org.mortbay. Thanks -- Joao Pedro Clemente jpcl @ rnl.ist.utl.pt --- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] http session cookie
On Wed, Apr 02, 2003 at 03:14:41PM +0200, julien viet wrote: Hi, I am facing this problem : when an anonymous user connect to the web site and get its session. This one is persisted through a Cookie (JSESSIONID) with a maxage of -1. on subsequent calls if I want to change this maxage to another value let's say 1000 for instance, it does not work and the JSESSIONID cookie stays the same. the goal is to implement the remember me feature on the web site. I've noticed that when maxage not -1, the cookie is shared by mutliple instance of Internet Explorer. That's why I want to use that. I know I can set the default value used by jetty by setting org.mortbay.jetty.servlet.MaxAge in context param but in that case I will have only the other effect. JSESSIONID (HttpSession) is a session only cookie. It will go away when the user closes the browser. If you need persistent cookies (for a remember me feature ) you should use the javax.servlet.http.Cookie class (see the JavaDoc for further info). //Anders -- |===| |Anders Engström| |[EMAIL PROTECTED]| |http://www.gnejs.net | |===| |Your mind is like an umbrella. | |It doesn't work unless you open it.| | /Frank Zappa | |===| pgp0.pgp Description: PGP signature
RE: [JBoss-user] Http Session Clustering, JGStore debugging
hi, On Wed, 2003-04-02 at 14:37, Aleksandr Shneyderman wrote: I have no ideia if one can run jboss on top of debugguer (is there a java debuger, something similar to gdb but in java world?) Enable JPDA on your VM (look thru run.bat/run.sh to see how to enable it) Certain IDEs will let you connect to the port that JPDA is listening on and debug. if you don't have an IDE or don't want to install one, i have had quite good success when using JSwat ( http://jswat.sourceforge.net/ ), a GPL-licensed stand-alone pure Java debugger. i found it quite easy to install and get jboss running in it (basically just copy/paste whatever your run.[sh|bat} command uses to start jboss into the appropriate textfield). just my $.02. christian --- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Http Session Clustering, JGStore debugging
I've reposted the mail where I reported the problem. It's intitled JGStore Error: cannot assign instance of $Proxy90 to field.. Sorry for not having described the error this time, I was just looking help for how to debug JBoss. Anyway: The error is somewhere in JGStore (please check the refered mail for the log trace), and it's related to a ClassCastException. I'm just login to my webmail application, wich was based on jwma webmail. (I can provide code details later). At that point some objects are placed in httpSession. HttpSession tryes to replicate. At the master machine I see no exception, it seems it serializes the objects in my httpSession without a problem. At that point, all the replica machines give that ClassCastException, and that cannot assign instance of $Proxysomething to field blabla.. output. I supose the machines were unable to deserialize/unmarshall something, but that someting was correctly serialized (or the master replica would report some exception?) I'll please ask you to really read that JGStore Error: cannot assign(..) mail I've reposted, as it has a more detailed cenario and log trace. I'll try to collect as much info as I can to provide you... -- Joao Pedro Clemente jpcl @ rnl.ist.utl.pt On Wed, 2 Apr 2003, Sacha Labourey wrote: Joao, While I am not hyper-sensitive to I have reported a problem with JGstore a couple of weeks ago that is still unanswered (and much more sensitive to accurate bug-reports with testcase). Can you please repost your problem. I've just tried, between yesterday and today, the following: - Jetty with JBoss-based HTTP Session Replication - Jetty with Jetty-based HTTP Session Replication - Tomcat with JBoss-based HTTP Session Replication And this on Branch_3_0 and Branch_3_2 and it has worked for me. What is your specific use case and exception you get? Cheers, Sacha P.S.: Clustering doco will soon be udpated on flashline (it is already written). --- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Http Session Clustering, JGStore debugging
Aleksandr, I can't find your original posting. Please point me to it and I will answer it to the best of my ability. Jules Aleksandr Shneyderman wrote: I have reported a problem with JGstore a couple of weeks ago that is still unanswered. I would like to get my hands dirty and debug it myself. But I would like to get some tips on the way to do it. Is there a way I can use a kind of debugger to find out whats wrong? Should I rely only at increasing log level? I have no ideia if one can run jboss on top of debugguer (is there a java debuger, something similar to gdb but in java world?) Enable JPDA on your VM (look thru run.bat/run.sh to see how to enable it) Certain IDEs will let you connect to the port that JPDA is listening on and debug. I am not sure of gdb kind of debugger ... I think there is jdb in the bin directory of your JSDK. Alex. --- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Http Session Clustering, JGStore debugging
On Wed, 2 Apr 2003, Jules Gosnell wrote: Aleksandr, I can't find your original posting. Please point me to it and I will answer it to the best of my ability. Jules Jules: I'm sorry for the confusion: I'm the original poster, not Alexander. He was replying to me (the lines that refer to me have been snipped out) As I've already posted to the list, the problem I had has been reported in a mail with the subject JGStore Error: cannot assign instance of $Proxy90 to (...) that I reposted this afternoon. Aleksandr Shneyderman wrote: I have reported a problem with JGstore a couple of weeks ago that is still unanswered. I would like to get my hands dirty and debug it myself. But I would like to get some tips on the way to do it. Is there a way I can use a kind of debugger to find out whats wrong? Should I rely only at increasing log level? I have no ideia if one can run jboss on top of debugguer (is there a java debuger, something similar to gdb but in java world?) Enable JPDA on your VM (look thru run.bat/run.sh to see how to enable it) Certain IDEs will let you connect to the port that JPDA is listening on and debug. I am not sure of gdb kind of debugger ... I think there is jdb in the bin directory of your JSDK. Alex. --- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] http session drive me nuts
Rupp,Heiko wrote: Jules, thanks again and sorry when I was rude. likewise The one that I pointed you two in the second message in this thread. Ok, my mistake again. I only saw this as FAQ wrt url-rewriting. The SessionManager that *you* have asked for by specifying that your webapp is distributable/ deploymentdescriptor servletspec=2.3 distributable=false sessiontimeout=30 / Got this one too now How do you decide you are in a cluster if : 1). The jar that contains the clustering implementation is not available (which it isn't in the default config - javagroups.jar) Wouldn't it be the other way around: if javagroups.jar is not present, then fall back to single node? 2). you are the first node to come up. Ok, this one is trickier ;-) My approach is that the developer should know what they are doing. If they ask Jetty to do something that it cannot do, it should error - behaviour after that is undefined. If Jetty pretended to be You are probably right here. On the other hand, as tomcat which is seen by some as sort of reference implementation, acts differently this is confusing at least. TC can only be the RI for stuff that is specced - clustering is not. Yes the error messages could be better, and will be on the next development iteration. What about: running jetty in 'default' as single node instance and only putting clustering in 'all' or create a fourth config which has clustering etc., but not all (e.g. no corba ..)? At the moment Jetty installation is identical for all configs. Tailoring Jetty for each installation would take more time away from items higher on my todo list.. Your points are all noted. Cheers, Jules Thank you for your patience Heiko --- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] http session drive me nuts
Jules, thanks again and sorry when I was rude. The one that I pointed you two in the second message in this thread. Ok, my mistake again. I only saw this as FAQ wrt url-rewriting. The SessionManager that *you* have asked for by specifying that your webapp is distributable/ deploymentdescriptor servletspec=2.3 distributable=false sessiontimeout=30 / Got this one too now How do you decide you are in a cluster if : 1). The jar that contains the clustering implementation is not available (which it isn't in the default config - javagroups.jar) Wouldn't it be the other way around: if javagroups.jar is not present, then fall back to single node? 2). you are the first node to come up. Ok, this one is trickier ;-) My approach is that the developer should know what they are doing. If they ask Jetty to do something that it cannot do, it should error - behaviour after that is undefined. If Jetty pretended to be You are probably right here. On the other hand, as tomcat which is seen by some as sort of reference implementation, acts differently this is confusing at least. Yes the error messages could be better, and will be on the next development iteration. What about: running jetty in 'default' as single node instance and only putting clustering in 'all' or create a fourth config which has clustering etc., but not all (e.g. no corba ..)? Thank you for your patience Heiko -- Bancotec GmbH EMail: [EMAIL PROTECTED] Calwer Str. 33 Telefon: +49 711 222 992 900 D-70173 Stuttgart Telefax: +49 711 222 992 999 Ein Unternehmen der Cellent AG http://www.cellent.de/ --- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] http session drive me nuts
Rupp,Heiko wrote: Jules, thanks fro your reply. Sessions will be tracked with cookies, not url rewriting, by default. I found this one out too now. For debugging, url rewriting is more obvious. Now I have a simple case (attached): browser calls the root-url http://localhost:8080/session-test there the welcome-file directive kicks in and uses simple.jsp this one has only one line: jsp:forward page=/loginservlet / loginservlet looks at the session, decides if it is old or new and offers a form that after posting returns to /loginservlet On Bea WLS 6.1sp2 I see the behaviour, which I think is correct: the first call to the servlet gets a session isNew() on the session gives true: New request: session is not null, id: 2AqCdn2Gn8UKNSbtNwgxDIJkSO7mFUE3CWxpsQe4UOk5dsbZqzt3!920521618!-1062706052!7 001!7002!1048603266595 isNew() gives: true encUrl is loginservlet;jsessionid=2AqCdn2Gn8UKNSbtNwgxDIJkSO7mFUE3CWxpsQe4UOk5dsbZqzt3 !920521618!-1062706052!7001!7002 The next call sees the same session id and as expcected, isNew()==false: New request: session is not null, id: 2AqCdn2Gn8UKNSbtNwgxDIJkSO7mFUE3CWxpsQe4UOk5dsbZqzt3!920521618!-1062706052!7 001!7002!1048603266595 isNew() gives: false encUrl is loginservlet;jsessionid=2AqCdn2Gn8UKNSbtNwgxDIJkSO7mFUE3CWxpsQe4UOk5dsbZqzt3 !920521618!-1062706052!7001!7002 On JBoss 3.2.0RC4 this looks like this: First request is ok wrt. isNew()==true New request: 15:45:43,083 INFO [STDOUT] session is not null, id: dbf09fGSqkOGJLjFyKx9WQ** 15:45:43,083 INFO [STDOUT] isNew() gives: true 15:45:43,083 INFO [STDOUT] encUrl is loginservlet;jsessionid=dbf09fGSqkOGJLjFyKx9WQ** 15:46:00,248 INFO [STDOUT] Second request to url http://localhost:8080/session-test/loginservlet;jsessionid=dbf09fGSqkOGJLjFy Kx9WQ** (jsessionid is encurl from previous request, so ok.) New request: 15:46:00,248 INFO [STDOUT] session is null, creating new session 15:46:00,248 ERROR [SubscribingInterceptor] could not get AbstractReplicatedStore you've declared your webapp as distributed and ignored the message that Jetty gave you on startup about not being able to provide distributed session management (probably becaise you are running 'default' not 'all' - this one is also in the FAQ, I believe). Your session manager is broken. When you fix the errors that you are getting during deployment it will work properly. No doubt you are using xdoclet to produce your web.xml - unfortunately it defaults to declaring all webapps distributable. You will need to set distributable=false in your build.xml Jules 15:46:00,248 INFO [STDOUT] it has id: JHIZDgbRHa9LIzJRGyElBw** 15:46:00,258 INFO [STDOUT] encUrl is loginservlet;jsessionid=JHIZDgbRHa9LIzJRGyElBw** Here the session is null, and thus a new session is created.. What is going wrong? Find attached an archive with source and .war Heiko This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com --- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] http session drive me nuts
Hi, does anyone have a simple example on how to use sessions with JBoss and Jetty. Yes, I know there are frameworks like struts and so. What I try to do is HttpSession session=request.getSession(); session.setAttribute(foo,bar); encodedURL=response.encodeURL(/some/page.jsp); But encodedURL is fixed at /some/page.jsp, no matter what I put in the session. So the next call to the servlet/jsp (e.g. via a HTML-form) I get a new session and not the previous one. Any hints? Thanks in advance Heiko -- Bancotec GmbH EMail: [EMAIL PROTECTED] Calwer Str. 33 Telefon: +49 711 222 992 900 D-70173 Stuttgart Telefax: +49 711 222 992 999 Ein Unternehmen der Cellent AG http://www.cellent.de/ --- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] http session drive me nuts
Rupp,Heiko wrote: Hi, does anyone have a simple example on how to use sessions with JBoss and Jetty. Yes, I know there are frameworks like struts and so. What I try to do is HttpSession session=request.getSession(); session.setAttribute(foo,bar); encodedURL=response.encodeURL(/some/page.jsp); But encodedURL is fixed at /some/page.jsp, no matter what I put in the session. So the next call to the servlet/jsp (e.g. via a HTML-form) I get a new session and not the previous one. Sessions will be tracked with cookies, not url rewriting, by default. You need to confirm whether : a) the cookie made it from Jetty back to your browser b) the cookie is being sent in subsequent requests from browser to Jetty Jules P.S. You can force tracking via url rewriting if this your preferred method - look in this FAQ: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/contrib/jetty/FAQ?rev=HEADcontent-type=text/vnd.viewcvs-markup Any hints? Thanks in advance Heiko This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com --- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] http session drive me nuts
And again, What I try to do is HttpSession session=request.getSession(); session.setAttribute(foo,bar); encodedURL=response.encodeURL(/some/page.jsp); But encodedURL is fixed at /some/page.jsp, no matter what I put in the session. So the next call to the servlet/jsp (e.g. via a HTML-form) I get a new session and not the previous one. This code works on weblogic 6.1sp2 , while it fails on Jboss3.2rc4 with jetty. I try to produce a simple test case. Heiko --- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] http session drive me nuts
Jules, thanks fro your reply. Sessions will be tracked with cookies, not url rewriting, by default. I found this one out too now. For debugging, url rewriting is more obvious. Now I have a simple case (attached): browser calls the root-url http://localhost:8080/session-test there the welcome-file directive kicks in and uses simple.jsp this one has only one line: jsp:forward page=/loginservlet / loginservlet looks at the session, decides if it is old or new and offers a form that after posting returns to /loginservlet On Bea WLS 6.1sp2 I see the behaviour, which I think is correct: the first call to the servlet gets a session isNew() on the session gives true: New request: session is not null, id: 2AqCdn2Gn8UKNSbtNwgxDIJkSO7mFUE3CWxpsQe4UOk5dsbZqzt3!920521618!-1062706052!7 001!7002!1048603266595 isNew() gives: true encUrl is loginservlet;jsessionid=2AqCdn2Gn8UKNSbtNwgxDIJkSO7mFUE3CWxpsQe4UOk5dsbZqzt3 !920521618!-1062706052!7001!7002 The next call sees the same session id and as expcected, isNew()==false: New request: session is not null, id: 2AqCdn2Gn8UKNSbtNwgxDIJkSO7mFUE3CWxpsQe4UOk5dsbZqzt3!920521618!-1062706052!7 001!7002!1048603266595 isNew() gives: false encUrl is loginservlet;jsessionid=2AqCdn2Gn8UKNSbtNwgxDIJkSO7mFUE3CWxpsQe4UOk5dsbZqzt3 !920521618!-1062706052!7001!7002 On JBoss 3.2.0RC4 this looks like this: First request is ok wrt. isNew()==true New request: 15:45:43,083 INFO [STDOUT] session is not null, id: dbf09fGSqkOGJLjFyKx9WQ** 15:45:43,083 INFO [STDOUT] isNew() gives: true 15:45:43,083 INFO [STDOUT] encUrl is loginservlet;jsessionid=dbf09fGSqkOGJLjFyKx9WQ** 15:46:00,248 INFO [STDOUT] Second request to url http://localhost:8080/session-test/loginservlet;jsessionid=dbf09fGSqkOGJLjFy Kx9WQ** (jsessionid is encurl from previous request, so ok.) New request: 15:46:00,248 INFO [STDOUT] session is null, creating new session 15:46:00,248 ERROR [SubscribingInterceptor] could not get AbstractReplicatedStore 15:46:00,248 INFO [STDOUT] it has id: JHIZDgbRHa9LIzJRGyElBw** 15:46:00,258 INFO [STDOUT] encUrl is loginservlet;jsessionid=JHIZDgbRHa9LIzJRGyElBw** Here the session is null, and thus a new session is created.. What is going wrong? Find attached an archive with source and .war Heiko -- Bancotec GmbH EMail: [EMAIL PROTECTED] Calwer Str. 33 Telefon: +49 711 222 992 900 D-70173 Stuttgart Telefax: +49 711 222 992 999 Ein Unternehmen der Cellent AG http://www.cellent.de/ servlet-session.zip Description: Binary data
RE: [JBoss-user] http session status = broken?
Sacha, as you're more use to this ejb clustering framework, maybe you know something about this possibility. Is it worth a try? Yes it is worth a try because I know some people using it in production ;) Cheers, Sacha --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] http session status = broken?
It is intended to work. If it doesn't, make us know that. Take a fresh CVS snapshot (module jboss-3.0 from Branch_3_0). Cheers, Sacha -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Dan K. Envoye : dimanche, 29 decembre 2002 18:53 A : [EMAIL PROTECTED] Objet : [JBoss-user] http session status = broken? Hi everyone, I'm a new user to jboss and am trying to figure out how to setup jboss clustering, with http session replication. I've scanned the mail archive for this list and it appears to be broken? Can I get a confirmation from people if it's really broken or if a particular setup is? However, if there is a way to get anything to work, I'd like to try it. I'm using jboss 3.0.4 and tried 3.0.5 rc2 from cvs Branch_3_0. Many thanks in advance! Regards, Dan --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] http session status = broken?
Hi everyone, I'm a new user to jboss and am trying to figure out how to setup jboss clustering, with http session replication. I've scanned the mail archive for this list and it appears to be broken? Can I get a confirmation from people if it's really broken or if a particular setup is? However, if there is a way to get anything to work, I'd like to try it. I'm using jboss 3.0.4 and tried 3.0.5 rc2 from cvs Branch_3_0. Http session replication with jetty (standart jboss) has some problems, in particular about getting failover to work properly. Besides the failover problem (some locking or being unable to syncronize) http session replication worked without a problem for me. Jules is working on this problem with Jetty. Dunno how good JBoss + Tomcat works regarding http session replication. One other thing that crossed my mind was that maybe it's possible to use the ejb clustering framework with the http session aswell, instead of using the standart jetty implementation. I remember seeing refered in the clustering manual some option that would do this, but never tried it. Sacha, as you're more use to this ejb clustering framework, maybe you know something about this possibility. Is it worth a try? -- João Pedro Clemente - jpcl (at) rnl ist utl pt --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] http session status = broken?
Hi everyone, I'm a new user to jboss and am trying to figure out how to setup jboss clustering, with http session replication. I've scanned the mail archive for this list and it appears to be broken? Can I get a confirmation from people if it's really broken or if a particular setup is? However, if there is a way to get anything to work, I'd like to try it. I'm using jboss 3.0.4 and tried 3.0.5 rc2 from cvs Branch_3_0. Many thanks in advance! Regards, Dan --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Http session
On Thu, 19 Sep 2002 [EMAIL PROTECTED] wrote: Someone can tell me how I can browse all the active http session with JBOSS/Jetty 3.2. I don't think you can do that. There may be a Jetty specific way to do that, but servlet specification doesn't tell anything about it. Even if you know a session id, there's no way to fetch related HttpSession object. Pavel --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Http session
I think this ability was in the specification at some point, but it was removed for security considerations. If you think about it, it just wouldn't be secure to allow a given servlet access to other http sessions. Unfortunately this is not helpful if you have a legitimate reason for needing to do this. On Thu, 2002-09-19 at 15:27, Pavel Kolesnikov wrote: On Thu, 19 Sep 2002 [EMAIL PROTECTED] wrote: Someone can tell me how I can browse all the active http session with JBOSS/Jetty 3.2. I don't think you can do that. There may be a Jetty specific way to do that, but servlet specification doesn't tell anything about it. Even if you know a session id, there's no way to fetch related HttpSession object. Pavel -- Peter Beck BEng (hons) - Managing Director, Electrostrata Ltd. http://www.electrostrata.com --+-+-+-+-- Experts in e-business and e-commerce --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Http Session Clustering problem
Are you sure your class is not present in two differents xARs? What possibly can go wrong if there are multiple copies of the same class in different xARs as long as they are all same??? What's your implication? Maybe I am missing something... Please enlighten me. Thanks for your reply, Mitchell -Original Message- From: Sacha Labourey [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 3:14 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Http Session Clustering problem Maybe because you write an e-mail every 2-hours with a new question: people sleep and are at work sometime. Are you sure your class is not present in two differents xARs? What is your packaging structure? -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Kim, Yong Envoyé : mercredi, 11 septembre 2002 21:17 À : '[EMAIL PROTECTED]' Objet : RE: [JBoss-user] Http Session Clustering problem Why is everyone so quiet?! Nobody uses JBoss HTTP session clustering in their environment? Am I the only one having this issue? --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Http Session Clustering problem
Copies loaded by different class loaders (from the different locations) are different classes. With the jboss flat classloading model, you will get things like IllegalAccessExceptions when an object from one copy of the class tries to call a public method on itself. (I'm not sure if this is the exact problem but it is equally bizarre) david jencks On 2002.09.12 09:51:17 -0400 Kim, Yong wrote: Are you sure your class is not present in two differents xARs? What possibly can go wrong if there are multiple copies of the same class in different xARs as long as they are all same??? What's your implication? Maybe I am missing something... Please enlighten me. Thanks for your reply, Mitchell -Original Message- From: Sacha Labourey [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 3:14 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Http Session Clustering problem Maybe because you write an e-mail every 2-hours with a new question: people sleep and are at work sometime. Are you sure your class is not present in two differents xARs? What is your packaging structure? -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Kim, Yong Envoyé : mercredi, 11 septembre 2002 21:17 À : '[EMAIL PROTECTED]' Objet : RE: [JBoss-user] Http Session Clustering problem Why is everyone so quiet?! Nobody uses JBoss HTTP session clustering in their environment? Am I the only one having this issue? --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Http Session Clustering problem
Sacha, I have gone through all of my ear, jar, war, and so on to see if I have multiple copies of the same class and they are not. I was sure about this but wanted to double check. Anyway, I am still having the same problem and this is driving me crzay. Here is the most recent error messages... They are same as before... but. Thanks, Mitchell. 10:59:08,595 ERROR [MarshallingInterceptor] could not get Attribute: credential java.io.InvalidClassException: com.staples.business.security.ApplicationSecurityCredential; Local class not compatible: stream classdesc serialVersionUID=4701685434102361783 local class serialVersionU ID=4723640482285792951 at java.io.ObjectStreamClass.validateLocalClass(ObjectStreamClass.java:523) at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java:567) at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:936) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236) at org.mortbay.j2ee.session.MarshallingInterceptor.demarshal(MarshallingInterce ptor.java:84) at org.mortbay.j2ee.session.MarshallingInterceptor.getAttribute(MarshallingInte rceptor.java:93) at org.mortbay.j2ee.session.StateInterceptor.getAttribute(StateInterceptor.java :43) at org.mortbay.j2ee.session.StateInterceptor.getAttribute(StateInterceptor.java :43) at org.mortbay.j2ee.session.TypeCheckingInterceptor.getAttribute(TypeCheckingIn terceptor.java:90) at org.mortbay.j2ee.session.StateAdaptor.getAttribute(StateAdaptor.java:204) at org.apache.jsp.securitychecker$jsp._jspService(securitychecker$jsp.java:447) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:344) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl er.java:313) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:554) at org.mortbay.jetty.servlet.WebApplicationHandler.handle(WebApplicationHandler .java:199) at org.mortbay.http.HttpContext.handle(HttpContext.java:1572) at org.mortbay.http.HttpContext.handle(HttpContext.java:1522) at org.mortbay.http.HttpServer.service(HttpServer.java:795) at org.jboss.jetty.Jetty.service(Jetty.java:531) at org.mortbay.http.HttpConnection.service(HttpConnection.java:784) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:941) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:799) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:186) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:322) at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:716) at java.lang.Thread.run(Thread.java:484) -Original Message- From: Sacha Labourey [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 3:14 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Http Session Clustering problem Maybe because you write an e-mail every 2-hours with a new question: people sleep and are at work sometime. Are you sure your class is not present in two differents xARs? What is your packaging structure? -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Kim, Yong Envoyé : mercredi, 11 septembre 2002 21:17 À : '[EMAIL PROTECTED]' Objet : RE: [JBoss-user] Http Session Clustering problem Why is everyone so quiet?! Nobody uses JBoss HTTP session clustering in their environment? Am I the only one having this issue? --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Http Session Clustering problem
Have you verified that your object is truely serializable. Implementing Serializable is not a sufficient condition ! Verify by writing a simple program with main that instantiates your object, serializes it to a file, and then read back in from file. Kim, Yong wrote: Sacha, I have gone through all of my ear, jar, war, and so on to see if I have multiple copies of the same class and they are not. I was sure about this but wanted to double check. Anyway, I am still having the same problem and this is driving me crzay. Here is the most recent error messages... They are same as before... but. Thanks, Mitchell. 10:59:08,595 ERROR [MarshallingInterceptor] could not get Attribute: credential java.io.InvalidClassException: com.staples.business.security.ApplicationSecurityCredential; Local class not compatible: stream classdesc serialVersionUID=4701685434102361783 local class serialVersionU ID=4723640482285792951 at java.io.ObjectStreamClass.validateLocalClass(ObjectStreamClass.java:523) at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java:567) at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:936) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236) at org.mortbay.j2ee.session.MarshallingInterceptor.demarshal(MarshallingInterce ptor.java:84) at org.mortbay.j2ee.session.MarshallingInterceptor.getAttribute(MarshallingInte rceptor.java:93) at org.mortbay.j2ee.session.StateInterceptor.getAttribute(StateInterceptor.java :43) at org.mortbay.j2ee.session.StateInterceptor.getAttribute(StateInterceptor.java :43) at org.mortbay.j2ee.session.TypeCheckingInterceptor.getAttribute(TypeCheckingIn terceptor.java:90) at org.mortbay.j2ee.session.StateAdaptor.getAttribute(StateAdaptor.java:204) at org.apache.jsp.securitychecker$jsp._jspService(securitychecker$jsp.java:447) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:344) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl er.java:313) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:554) at org.mortbay.jetty.servlet.WebApplicationHandler.handle(WebApplicationHandler .java:199) at org.mortbay.http.HttpContext.handle(HttpContext.java:1572) at org.mortbay.http.HttpContext.handle(HttpContext.java:1522) at org.mortbay.http.HttpServer.service(HttpServer.java:795) at org.jboss.jetty.Jetty.service(Jetty.java:531) at org.mortbay.http.HttpConnection.service(HttpConnection.java:784) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:941) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:799) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:186) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:322) at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:716) at java.lang.Thread.run(Thread.java:484) -Original Message- From: Sacha Labourey [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 3:14 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Http Session Clustering problem Maybe because you write an e-mail every 2-hours with a new question: people sleep and are at work sometime. Are you sure your class is not present in two differents xARs? What is your packaging structure? -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Kim, Yong Envoyé : mercredi, 11 septembre 2002 21:17 À : '[EMAIL PROTECTED]' Objet : RE: [JBoss-user] Http Session Clustering problem Why is everyone so quiet?! Nobody uses JBoss HTTP session clustering in their environment? Am I the only one having this issue? --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net
RE: [JBoss-user] Http Session Clustering problem
As far as I know, the class conforms to all the requirements to be SERIALIZABLE but I can still try it. Who knows. Let me try it. Mitchell Kim -Original Message- From: Greg Turner [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 11:29 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Http Session Clustering problem Have you verified that your object is truely serializable. Implementing Serializable is not a sufficient condition ! Verify by writing a simple program with main that instantiates your object, serializes it to a file, and then read back in from file. Kim, Yong wrote: Sacha, I have gone through all of my ear, jar, war, and so on to see if I have multiple copies of the same class and they are not. I was sure about this but wanted to double check. Anyway, I am still having the same problem and this is driving me crzay. Here is the most recent error messages... They are same as before... but. Thanks, Mitchell. 10:59:08,595 ERROR [MarshallingInterceptor] could not get Attribute: credential java.io.InvalidClassException: com.staples.business.security.ApplicationSecurityCredential; Local class not compatible: stream classdesc serialVersionUID=4701685434102361783 local class serialVersionU ID=4723640482285792951 at java.io.ObjectStreamClass.validateLocalClass(ObjectStreamClass.java:523) at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java:567) at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:936) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236) at org.mortbay.j2ee.session.MarshallingInterceptor.demarshal(MarshallingInterce ptor.java:84) at org.mortbay.j2ee.session.MarshallingInterceptor.getAttribute(MarshallingInte rceptor.java:93) at org.mortbay.j2ee.session.StateInterceptor.getAttribute(StateInterceptor.java :43) at org.mortbay.j2ee.session.StateInterceptor.getAttribute(StateInterceptor.java :43) at org.mortbay.j2ee.session.TypeCheckingInterceptor.getAttribute(TypeCheckingIn terceptor.java:90) at org.mortbay.j2ee.session.StateAdaptor.getAttribute(StateAdaptor.java:204) at org.apache.jsp.securitychecker$jsp._jspService(securitychecker$jsp.java:447) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:344) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl er.java:313) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:554) at org.mortbay.jetty.servlet.WebApplicationHandler.handle(WebApplicationHandler .java:199) at org.mortbay.http.HttpContext.handle(HttpContext.java:1572) at org.mortbay.http.HttpContext.handle(HttpContext.java:1522) at org.mortbay.http.HttpServer.service(HttpServer.java:795) at org.jboss.jetty.Jetty.service(Jetty.java:531) at org.mortbay.http.HttpConnection.service(HttpConnection.java:784) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:941) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:799) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:186) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:322) at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:716) at java.lang.Thread.run(Thread.java:484) -Original Message- From: Sacha Labourey [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 3:14 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Http Session Clustering problem Maybe because you write an e-mail every 2-hours with a new question: people sleep and are at work sometime. Are you sure your class is not present in two differents xARs? What is your packaging structure? -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Kim, Yong Envoyé : mercredi, 11 septembre 2002 21:17 À : '[EMAIL PROTECTED]' Objet : RE: [JBoss-user] Http Session Clustering problem Why is everyone so quiet?! Nobody uses JBoss HTTP session
RE: [JBoss-user] Http Session Clustering problem
Yes, it's serializable. Possible bug in org.mortbay.j2ee.session.MarshallingInterceptor? Mitchell Kim -Original Message- From: Greg Turner [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 11:29 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Http Session Clustering problem Have you verified that your object is truely serializable. Implementing Serializable is not a sufficient condition ! Verify by writing a simple program with main that instantiates your object, serializes it to a file, and then read back in from file. Kim, Yong wrote: Sacha, I have gone through all of my ear, jar, war, and so on to see if I have multiple copies of the same class and they are not. I was sure about this but wanted to double check. Anyway, I am still having the same problem and this is driving me crzay. Here is the most recent error messages... They are same as before... but. Thanks, Mitchell. 10:59:08,595 ERROR [MarshallingInterceptor] could not get Attribute: credential java.io.InvalidClassException: com.staples.business.security.ApplicationSecurityCredential; Local class not compatible: stream classdesc serialVersionUID=4701685434102361783 local class serialVersionU ID=4723640482285792951 at java.io.ObjectStreamClass.validateLocalClass(ObjectStreamClass.java:523) at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java:567) at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:936) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236) at org.mortbay.j2ee.session.MarshallingInterceptor.demarshal(MarshallingInterce ptor.java:84) at org.mortbay.j2ee.session.MarshallingInterceptor.getAttribute(MarshallingInte rceptor.java:93) at org.mortbay.j2ee.session.StateInterceptor.getAttribute(StateInterceptor.java :43) at org.mortbay.j2ee.session.StateInterceptor.getAttribute(StateInterceptor.java :43) at org.mortbay.j2ee.session.TypeCheckingInterceptor.getAttribute(TypeCheckingIn terceptor.java:90) at org.mortbay.j2ee.session.StateAdaptor.getAttribute(StateAdaptor.java:204) at org.apache.jsp.securitychecker$jsp._jspService(securitychecker$jsp.java:447) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:201) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:344) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl er.java:313) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:554) at org.mortbay.jetty.servlet.WebApplicationHandler.handle(WebApplicationHandler .java:199) at org.mortbay.http.HttpContext.handle(HttpContext.java:1572) at org.mortbay.http.HttpContext.handle(HttpContext.java:1522) at org.mortbay.http.HttpServer.service(HttpServer.java:795) at org.jboss.jetty.Jetty.service(Jetty.java:531) at org.mortbay.http.HttpConnection.service(HttpConnection.java:784) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:941) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:799) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:186) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:322) at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:716) at java.lang.Thread.run(Thread.java:484) -Original Message- From: Sacha Labourey [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 3:14 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Http Session Clustering problem Maybe because you write an e-mail every 2-hours with a new question: people sleep and are at work sometime. Are you sure your class is not present in two differents xARs? What is your packaging structure? -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Kim, Yong Envoyé : mercredi, 11 septembre 2002 21:17 À : '[EMAIL PROTECTED]' Objet : RE: [JBoss-user] Http Session Clustering problem Why is everyone so quiet?! Nobody uses JBoss HTTP session clustering in their environment? Am I
RE: [JBoss-user] Http Session Clustering problem
The version in the CVS is same as what you gave me. I think it has been incorporated into latest release (3.0.2). When you said you were able to make the session replication working, what kind of objects have you tried? Have you tried with something you created such as your own javabean or something like that? If you did, do you have the code that I can look at! I don't think that will solve this problem but I am just so desparate that I just want to compare bit by bit. Mitchell, Thanks. -Original Message- From: Greg Turner [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 12:42 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Http Session Clustering problem Possible. Here is text of email I sent Jules Gosnell. He replied back that my analysis was correct and that he would make changes in sourceforge. I don't know if he did, nor if this problem is the one you are having, nor what version you are using - I've not been following this thread that closely. I've attached the complete file as I have it onw my own machine. It might be beneficial if you compare it with what you have on your machine. snip I have been trying to get clustered http sessions to work with EXTENDED Clustering turned on. I was getting a ClassNotFoundException from the ois.readObject call in MarshallingInterceptor.demarshal() whenever I tried to get an object from the session. It seemed strange to me that the marshal method was returning baos.toString() instead of baos.toByteArray() because without an encoding scheme, toString always puts 0 for the hi order byte of every character. I'm not an expert in this, but my impression is that toString changes some of the bytes in the array inorder to make it a proper string. So I tried an experient that seems to work. I changed marshal to return byte[] and changed it to call baos.toByteArray and I changed demarshal signature to byte[] and any other changes required to make it compile and it seems to work. Also, with the change, the session info seems to be replicated to the other instance of JBoss. Would you give this some thought, and if I am right, make the official change to the source forge. marshal and demarshal are below. protected byte[] marshal(Object value) throws IOException { if (value==null) return null; ByteArrayOutputStream baos=new ByteArrayOutputStream(); ObjectOutputStreamoos =new ObjectOutputStream(baos); oos.writeObject(value); oos.flush(); return baos.toByteArray(); } protected Object demarshal (byte[] bytes) throws IOException,ClassNotFoundException { if (bytes==null) return bytes; ByteArrayInputStream bais=new ByteArrayInputStream(bytes); ObjectInputStreamois =new ObjectInputStream(bais); return ois.readObject(); } /snip Kim, Yong wrote: Yes, it's serializable. Possible bug in org.mortbay.j2ee.session.MarshallingInterceptor? Mitchell Kim -Original Message- From: Greg Turner [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 11:29 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Http Session Clustering problem Have you verified that your object is truely serializable. Implementing Serializable is not a sufficient condition ! Verify by writing a simple program with main that instantiates your object, serializes it to a file, and then read back in from file. Kim, Yong wrote: Sacha, I have gone through all of my ear, jar, war, and so on to see if I have multiple copies of the same class and they are not. I was sure about this but wanted to double check. Anyway, I am still having the same problem and this is driving me crzay. Here is the most recent error messages... They are same as before... but. Thanks, Mitchell. 10:59:08,595 ERROR [MarshallingInterceptor] could not get Attribute: credential java.io.InvalidClassException: com.staples.business.security.ApplicationSecurityCredential; Local class not compatible: stream classdesc serialVersionUID=4701685434102361783 local class serialVersionU ID=4723640482285792951 at java.io.ObjectStreamClass.validateLocalClass(ObjectStreamClass.java:523) at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java:567) at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:936) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236) at org.mortbay.j2ee.session.MarshallingInterceptor.demarshal(MarshallingInterce ptor.java:84) at org.mortbay.j2ee.session.MarshallingInterceptor.getAttribute(MarshallingInte
Re: [JBoss-user] Http Session Clustering problem
Sorry, but I was using simple Strings and Integer objects. The only thing I can suggest at this point is to fire up JBoss in your favorite IDE and put some breakpoints in and run it and try to see whats happening. Kim, Yong wrote: The version in the CVS is same as what you gave me. I think it has been incorporated into latest release (3.0.2). When you said you were able to make the session replication working, what kind of objects have you tried? Have you tried with something you created such as your own javabean or something like that? If you did, do you have the code that I can look at! I don't think that will solve this problem but I am just so desparate that I just want to compare bit by bit. Mitchell, Thanks. -Original Message- From: Greg Turner [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 12:42 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Http Session Clustering problem Possible. Here is text of email I sent Jules Gosnell. He replied back that my analysis was correct and that he would make changes in sourceforge. I don't know if he did, nor if this problem is the one you are having, nor what version you are using - I've not been following this thread that closely. I've attached the complete file as I have it onw my own machine. It might be beneficial if you compare it with what you have on your machine. snip I have been trying to get clustered http sessions to work with EXTENDED Clustering turned on. I was getting a ClassNotFoundException from the ois.readObject call in MarshallingInterceptor.demarshal() whenever I tried to get an object from the session. It seemed strange to me that the marshal method was returning baos.toString() instead of baos.toByteArray() because without an encoding scheme, toString always puts 0 for the hi order byte of every character. I'm not an expert in this, but my impression is that toString changes some of the bytes in the array inorder to make it a proper string. So I tried an experient that seems to work. I changed marshal to return byte[] and changed it to call baos.toByteArray and I changed demarshal signature to byte[] and any other changes required to make it compile and it seems to work. Also, with the change, the session info seems to be replicated to the other instance of JBoss. Would you give this some thought, and if I am right, make the official change to the source forge. marshal and demarshal are below. protected byte[] marshal(Object value) throws IOException { if (value==null) return null; ByteArrayOutputStream baos=new ByteArrayOutputStream(); ObjectOutputStreamoos =new ObjectOutputStream(baos); oos.writeObject(value); oos.flush(); return baos.toByteArray(); } protected Object demarshal (byte[] bytes) throws IOException,ClassNotFoundException { if (bytes==null) return bytes; ByteArrayInputStream bais=new ByteArrayInputStream(bytes); ObjectInputStreamois =new ObjectInputStream(bais); return ois.readObject(); } /snip Kim, Yong wrote: Yes, it's serializable. Possible bug in org.mortbay.j2ee.session.MarshallingInterceptor? Mitchell Kim -Original Message- From: Greg Turner [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 11:29 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Http Session Clustering problem Have you verified that your object is truely serializable. Implementing Serializable is not a sufficient condition ! Verify by writing a simple program with main that instantiates your object, serializes it to a file, and then read back in from file. Kim, Yong wrote: Sacha, I have gone through all of my ear, jar, war, and so on to see if I have multiple copies of the same class and they are not. I was sure about this but wanted to double check. Anyway, I am still having the same problem and this is driving me crzay. Here is the most recent error messages... They are same as before... but. Thanks, Mitchell. 10:59:08,595 ERROR [MarshallingInterceptor] could not get Attribute: credential java.io.InvalidClassException: com.staples.business.security.ApplicationSecurityCredential; Local class not compatible: stream classdesc serialVersionUID=4701685434102361783 local class serialVersionU ID=4723640482285792951 at java.io.ObjectStreamClass.validateLocalClass(ObjectStreamClass.java:523) at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java:567) at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:936) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186
RE: [JBoss-user] Http Session Clustering problem
Check my last message. Mitchell -Original Message- From: Greg Turner [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 3:35 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Http Session Clustering problem Another approach to solving problem is to start with an empty class and see if that works public class MyJavaBean implements Serializable { } If that does not work, then I would say thats a pretty good indication that there is a problem with JBoss. If it does work, then starting adding the member fields in one at a time and test to see which one breaks it. Then you should have a pretty indication of what the problem is. Kim, Yong wrote: The version in the CVS is same as what you gave me. I think it has been incorporated into latest release (3.0.2). When you said you were able to make the session replication working, what kind of objects have you tried? Have you tried with something you created such as your own javabean or something like that? If you did, do you have the code that I can look at! I don't think that will solve this problem but I am just so desparate that I just want to compare bit by bit. Mitchell, Thanks. -Original Message- From: Greg Turner [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 12:42 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Http Session Clustering problem Possible. Here is text of email I sent Jules Gosnell. He replied back that my analysis was correct and that he would make changes in sourceforge. I don't know if he did, nor if this problem is the one you are having, nor what version you are using - I've not been following this thread that closely. I've attached the complete file as I have it onw my own machine. It might be beneficial if you compare it with what you have on your machine. snip I have been trying to get clustered http sessions to work with EXTENDED Clustering turned on. I was getting a ClassNotFoundException from the ois.readObject call in MarshallingInterceptor.demarshal() whenever I tried to get an object from the session. It seemed strange to me that the marshal method was returning baos.toString() instead of baos.toByteArray() because without an encoding scheme, toString always puts 0 for the hi order byte of every character. I'm not an expert in this, but my impression is that toString changes some of the bytes in the array inorder to make it a proper string. So I tried an experient that seems to work. I changed marshal to return byte[] and changed it to call baos.toByteArray and I changed demarshal signature to byte[] and any other changes required to make it compile and it seems to work. Also, with the change, the session info seems to be replicated to the other instance of JBoss. Would you give this some thought, and if I am right, make the official change to the source forge. marshal and demarshal are below. protected byte[] marshal(Object value) throws IOException { if (value==null) return null; ByteArrayOutputStream baos=new ByteArrayOutputStream(); ObjectOutputStreamoos =new ObjectOutputStream(baos); oos.writeObject(value); oos.flush(); return baos.toByteArray(); } protected Object demarshal (byte[] bytes) throws IOException,ClassNotFoundException { if (bytes==null) return bytes; ByteArrayInputStream bais=new ByteArrayInputStream(bytes); ObjectInputStreamois =new ObjectInputStream(bais); return ois.readObject(); } /snip Kim, Yong wrote: Yes, it's serializable. Possible bug in org.mortbay.j2ee.session.MarshallingInterceptor? Mitchell Kim -Original Message- From: Greg Turner [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 11:29 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Http Session Clustering problem Have you verified that your object is truely serializable. Implementing Serializable is not a sufficient condition ! Verify by writing a simple program with main that instantiates your object, serializes it to a file, and then read back in from file. Kim, Yong wrote: Sacha, I have gone through all of my ear, jar, war, and so on to see if I have multiple copies of the same class and they are not. I was sure about this but wanted to double check. Anyway, I am still having the same problem and this is driving me crzay. Here is the most recent error messages... They are same as before... but. Thanks, Mitchell. 10:59:08,595 ERROR [MarshallingInterceptor] could not get Attribute: credential java.io.InvalidClassException: com.staples.business.security.ApplicationSecurityCredential; Local class not compatible: stream classdesc serialVersionUID=4701685434102361783 local class serialVersionU ID=4723640482285792951 at java.io.ObjectStreamClass.validateLocalClass
Re: [JBoss-user] Http Session Clustering problem
Guys, Sorry that I missed this thread - I've been busy. For the latest version of my distributable sessions (which is settling down now) you should check out Branch_3_2. If you want to use the CMP implementation (Greg) you will find it being built (jetty/output/lib/org.mortbay.j2ee.session-ejb.jar?), but no longer deployed - there are some class dependencies I need to clean up. That shouldn't stop you from using it. The default impl is now a fine-grained replication strategy using JavaGroups (you will need multicasting working and the 'all' config - just like JBoss clustering). This will be a lot faster than the CMP impl. This impl is still not production ready - since something deep inside JavaGroups (I think) hangs after stressing for a while - I am looking into it. If you want to run with 3.0.[12], simply take the jetty jars and the ejb-jar (mentioned above) and replace those in your 3.0.x tree with them. I'm sorry this stuff is taking so long to stabilise - it's a complicated area and has needed a lot of time - of which I am short at the moment. I'll be around to answer questions if you need me, Keep me posted, Jules Kim, Yong wrote: Check my last message. Mitchell -Original Message- From: Greg Turner [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 3:35 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Http Session Clustering problem Another approach to solving problem is to start with an empty class and see if that works public class MyJavaBean implements Serializable { } If that does not work, then I would say thats a pretty good indication that there is a problem with JBoss. If it does work, then starting adding the member fields in one at a time and test to see which one breaks it. Then you should have a pretty indication of what the problem is. Kim, Yong wrote: The version in the CVS is same as what you gave me. I think it has been incorporated into latest release (3.0.2). When you said you were able to make the session replication working, what kind of objects have you tried? Have you tried with something you created such as your own javabean or something like that? If you did, do you have the code that I can look at! I don't think that will solve this problem but I am just so desparate that I just want to compare bit by bit. Mitchell, Thanks. -Original Message- From: Greg Turner [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 12:42 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Http Session Clustering problem Possible. Here is text of email I sent Jules Gosnell. He replied back that my analysis was correct and that he would make changes in sourceforge. I don't know if he did, nor if this problem is the one you are having, nor what version you are using - I've not been following this thread that closely. I've attached the complete file as I have it onw my own machine. It might be beneficial if you compare it with what you have on your machine. snip I have been trying to get clustered http sessions to work with EXTENDED Clustering turned on. I was getting a ClassNotFoundException from the ois.readObject call in MarshallingInterceptor.demarshal() whenever I tried to get an object from the session. It seemed strange to me that the marshal method was returning baos.toString() instead of baos.toByteArray() because without an encoding scheme, toString always puts 0 for the hi order byte of every character. I'm not an expert in this, but my impression is that toString changes some of the bytes in the array inorder to make it a proper string. So I tried an experient that seems to work. I changed marshal to return byte[] and changed it to call baos.toByteArray and I changed demarshal signature to byte[] and any other changes required to make it compile and it seems to work. Also, with the change, the session info seems to be replicated to the other instance of JBoss. Would you give this some thought, and if I am right, make the official change to the source forge. marshal and demarshal are below. protected byte[] marshal(Object value) throws IOException { if (value==null) return null; ByteArrayOutputStream baos=new ByteArrayOutputStream(); ObjectOutputStreamoos =new ObjectOutputStream(baos); oos.writeObject(value); oos.flush(); return baos.toByteArray(); } protected Object demarshal (byte[] bytes) throws IOException,ClassNotFoundException { if (bytes==null) return bytes; ByteArrayInputStream bais=new ByteArrayInputStream(bytes); ObjectInputStreamois =new ObjectInputStream(bais); return ois.readObject(); } /snip Kim, Yong wrote: Yes, it's serializable. Possible bug in org.mortbay.j2ee.session.MarshallingInterceptor? Mitchell Kim -Original Message- From: Greg Turner [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 11:29 AM To: [EMAIL
RE: [JBoss-user] HTTP session clustering on 3.0.2
I am using jboss 3.0.2. All the documentation (including subscription) refers to jetty-plugin.sar directory but I can't find it from anywhere in the jboss 3.0.2 distribution... I guess it has changed and doc haven't updated yet. Does anyone have information regarding Http Session Clustering? Mitchell -Original Message- From: Kim, Yong [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 12:09 PM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] HTTP session clustering on 3.0.2 Before the document gets updated, is there anywhere else I can look at to figure how to make HTTP session clustering work? I don't want to wait until the documentation gets updated. Thanks, Mitchell -Original Message- From: Sacha Labourey [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 12:31 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] HTTP session clustering on 3.0.2 Hello Kim, Sorry for this. HTTP session replication is officially present (and working!) in 3.0.2 for Jetty and Tomcat. Only the documentation on these parts is not yet up-to-date. Jules Gosnell has done the Jetty port and Thomas Peuss the Tomcat port. The documentation will be udpated this month. Cheers, Sacha -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Kim, Yong Envoyé : lundi, 9 septembre 2002 18:22 À : '[EMAIL PROTECTED]' Objet : [JBoss-user] HTTP session clustering on 3.0.2 I have just subscribed to yearly JBoss documentation and downloaded the documents. And, I was reading through the JBossClustering.pdf file and in chapter 6 (HTTP Session clustering), it says Implemented, but not officially released.. Has it been released with JBoss 3.0.2? Another questions is if it has been released with JBoss 3.0.2, when would I get the updated documentation on this through the subscription? Thanks. Mitchell --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- In remembrance www.osdn.com/911/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- In remembrance www.osdn.com/911/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Http Session Clustering problem
As I posted before, I am having a very similar problem as following link describes. http://www.jboss.org/forums/thread.jsp?forum=64thread=19497message=3734915 q=coould+not+get+Attribute#3734915 However, mine comes not from Integer class but my own Serializable class. Based on what the above links tells me, it sounded like it is a bug... Does anyone has a status on this bug??? if it was opened as a bug... Mitchell --- In remembrance www.osdn.com/911/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Http Session Clustering problem
Why is everyone so quiet?! Nobody uses JBoss HTTP session clustering in their environment? Am I the only one having this issue? Mitchell -Original Message- From: Kim, Yong [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 1:54 PM To: '[EMAIL PROTECTED]' Subject: [JBoss-user] Http Session Clustering problem As I posted before, I am having a very similar problem as following link describes. http://www.jboss.org/forums/thread.jsp?forum=64thread=19497message=3734915 q=coould+not+get+Attribute#3734915 However, mine comes not from Integer class but my own Serializable class. Based on what the above links tells me, it sounded like it is a bug... Does anyone has a status on this bug??? if it was opened as a bug... Mitchell --- In remembrance www.osdn.com/911/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- In remembrance www.osdn.com/911/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] HTTP session clustering on 3.0.2
Hello Sacha, Nice to hear this!! I was starting to get the impression that HTTP Session replication was some closely gaurded secret. :) Cheerio, Binil On Mon, 9 Sep 2002, Sacha Labourey wrote: Hello Kim, Sorry for this. HTTP session replication is officially present (and working!) in 3.0.2 for Jetty and Tomcat. Only the documentation on these parts is not yet up-to-date. Jules Gosnell has done the Jetty port and Thomas Peuss the Tomcat port. The documentation will be udpated this month. Cheers, Sacha -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Kim, Yong Envoyé : lundi, 9 septembre 2002 18:22 À : '[EMAIL PROTECTED]' Objet : [JBoss-user] HTTP session clustering on 3.0.2 I have just subscribed to yearly JBoss documentation and downloaded the documents. And, I was reading through the JBossClustering.pdf file and in chapter 6 (HTTP Session clustering), it says Implemented, but not officially released.. Has it been released with JBoss 3.0.2? Another questions is if it has been released with JBoss 3.0.2, when would I get the updated documentation on this through the subscription? Thanks. Mitchell --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] HTTP session clustering on 3.0.2
I thought that when you buy the subscription, you get an email notification saying there is a new documentation available... Oups, that's possible. I have to admit that I have not yet subscribed to my documentation ;) --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] HTTP session clustering on 3.0.2
Hello Sacha, Nice to hear this!! I was starting to get the impression that HTTP Session replication was some closely gaurded secret. :) I can understand your feeling, but I know company using it in production. Cheers, Sacha --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] HTTP session clustering on 3.0.2
I have just subscribed to yearly JBoss documentation and downloaded the documents. And, I was reading through the JBossClustering.pdf file and in chapter 6 (HTTP Session clustering), it says Implemented, but not officially released.. Has it been released with JBoss 3.0.2? Another questions is if it has been released with JBoss 3.0.2, when would I get the updated documentation on this through the subscription? Thanks. Mitchell --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] HTTP session clustering on 3.0.2
Hello Kim, Sorry for this. HTTP session replication is officially present (and working!) in 3.0.2 for Jetty and Tomcat. Only the documentation on these parts is not yet up-to-date. Jules Gosnell has done the Jetty port and Thomas Peuss the Tomcat port. The documentation will be udpated this month. Cheers, Sacha -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Kim, Yong Envoyé : lundi, 9 septembre 2002 18:22 À : '[EMAIL PROTECTED]' Objet : [JBoss-user] HTTP session clustering on 3.0.2 I have just subscribed to yearly JBoss documentation and downloaded the documents. And, I was reading through the JBossClustering.pdf file and in chapter 6 (HTTP Session clustering), it says Implemented, but not officially released.. Has it been released with JBoss 3.0.2? Another questions is if it has been released with JBoss 3.0.2, when would I get the updated documentation on this through the subscription? Thanks. Mitchell --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] HTTP session clustering on 3.0.2
Hello Kim, No, there is no such notification. We will most probably post a NEWS message on the Clustering forum though. Cheers, Sacha -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Kim, Yong Envoyé : lundi, 9 septembre 2002 18:51 À : '[EMAIL PROTECTED]' Objet : RE: [JBoss-user] HTTP session clustering on 3.0.2 That sounds good. I have more generic question... When the document is updated, do I get an email saying, I can download the updated document? or how am I supposed to know if there is new documentation released? Thanks. -Original Message- From: Sacha Labourey [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 12:31 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] HTTP session clustering on 3.0.2 Hello Kim, Sorry for this. HTTP session replication is officially present (and working!) in 3.0.2 for Jetty and Tomcat. Only the documentation on these parts is not yet up-to-date. Jules Gosnell has done the Jetty port and Thomas Peuss the Tomcat port. The documentation will be udpated this month. Cheers, Sacha -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Kim, Yong Envoyé : lundi, 9 septembre 2002 18:22 À : '[EMAIL PROTECTED]' Objet : [JBoss-user] HTTP session clustering on 3.0.2 I have just subscribed to yearly JBoss documentation and downloaded the documents. And, I was reading through the JBossClustering.pdf file and in chapter 6 (HTTP Session clustering), it says Implemented, but not officially released.. Has it been released with JBoss 3.0.2? Another questions is if it has been released with JBoss 3.0.2, when would I get the updated documentation on this through the subscription? Thanks. Mitchell --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=urceforge1refcode1=3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] HTTP session clustering on 3.0.2
I thought that when you buy the subscription, you get an email notification saying there is a new documentation available... Maybe, I am wrong... but that was my impression... Mitchell Kim -Original Message- From: Sacha Labourey [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 1:04 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] HTTP session clustering on 3.0.2 Hello Kim, No, there is no such notification. We will most probably post a NEWS message on the Clustering forum though. Cheers, Sacha -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Kim, Yong Envoyé : lundi, 9 septembre 2002 18:51 À : '[EMAIL PROTECTED]' Objet : RE: [JBoss-user] HTTP session clustering on 3.0.2 That sounds good. I have more generic question... When the document is updated, do I get an email saying, I can download the updated document? or how am I supposed to know if there is new documentation released? Thanks. -Original Message- From: Sacha Labourey [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 12:31 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] HTTP session clustering on 3.0.2 Hello Kim, Sorry for this. HTTP session replication is officially present (and working!) in 3.0.2 for Jetty and Tomcat. Only the documentation on these parts is not yet up-to-date. Jules Gosnell has done the Jetty port and Thomas Peuss the Tomcat port. The documentation will be udpated this month. Cheers, Sacha -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Kim, Yong Envoyé : lundi, 9 septembre 2002 18:22 À : '[EMAIL PROTECTED]' Objet : [JBoss-user] HTTP session clustering on 3.0.2 I have just subscribed to yearly JBoss documentation and downloaded the documents. And, I was reading through the JBossClustering.pdf file and in chapter 6 (HTTP Session clustering), it says Implemented, but not officially released.. Has it been released with JBoss 3.0.2? Another questions is if it has been released with JBoss 3.0.2, when would I get the updated documentation on this through the subscription? Thanks. Mitchell --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=urceforge1refcode1=3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] HTTP Session Clustering: How To?
Hi all, The Clustering doccument from JBoss says that HTTP Session Clustering with Tomcat and Jetty is implemented but not officially released. I am using JBoss 3.0.0 + Tomcat 4.0.3. Can someone (Sacha? Bill?) please point me to a doccument that details HTTP Session Clustering with embedded Tomcat? Giving a search on Google lead me to http://www.geocrawler.com/archives/3/10766/2001/12/0/7433224/ , but looks like this is a quite old email written to co-developers of JBoss detailing the Clustering strategy. TIA, Binil -- And did they get you to trade your heroes for ghosts? Hot ashes for trees? Hot air for a cool breeze? Cold comfort for change? And did you exchange a walk on part in the war for a lead role in a cage? - PF --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user