[JBoss-user] [Beginners Corner] - Re: exception=java.io.OptionalDataException when running the
I've got the exact same problem too. JBoss 4.0.4.GA, Windows XP. Any solution to this guys View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3949800#3949800 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3949800 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - ERROR [UDP] exception=java.io.OptionalDataException
Hi all, I've noticed this problem on jboss 4.0.4.GA when running under the all configuration. It's also a message in beginners corner, but it doesn't seem to be getting any joy and I thought perhaps someone here might have seen it too. http://www.jboss.com/index.html?module=bbop=viewtopict=80669 cheers, Brian View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3949874#3949874 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3949874 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: querying with persited enums throws class cast exception
Seeing as no one seems to be able to help me with this, I'd like to try to debug through ejb3 to see where the actual problem is. Can someone point me to a source download so I can debug it in eclipse please? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3947197#3947197 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3947197 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - querying with persited enums throws class cast exception
Hi all, I used to have a query that worked before I upgraded to 4.0.4.GA. It used to be ejb3 rc3. Anyway, lets say I have entity bean A, which has a private variable B where B is a persisted enum. Now I used to query in a session bean something like Query q = entityManager.createQuery(select * from A a where B:=b); q.setParameter(b, b.ordinal); However now I'm getting a ClassCastExeption on this parameter to do with Integer. I'm using mysql and I've checked that persisted enums are still stored as integers which they are. Has anyone got any ideas what I can do? thanks very much, Brian View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3946740#3946740 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3946740 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: EJB 3.0 RC7 - FD released.
Hi Bill, so if I want to upgrade my 404.GA release to use this bundle, are there directions anywhere on how to do this? What do I have to change/remove. Thanks, Brian View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3946467#3946467 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3946467 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: EJB3 Installation on 4.0.4.GA
Hi guys, that does help, thanks, however going forward, is there any reason that you aren't including it in the zip file? I'd actually like to know what customization is going on in the install. thanks, Brian View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3944181#3944181 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3944181 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - EJB3 Installation on 4.0.4.GA
Hi all, I've only previously installed ejb3 stuff on previous versions of JBoss. I want to upgrade my version of jboss and ejb3 to the latest, I downloaded 4.0.4.GA.zip. Now, it comes with a all, default and a minimal configuration. It seems to me that ejb3 isn't packaged with any of these configs. Do I have to add something to the config for that? thanks, Brian View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3944027#3944027 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3944027 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Lazy loading design - surely I can't be right?
Hi NickTheGreat, First off, you are great to reply. Thanks so much. I was loosing faith :-). Anyway, yes, I too have seen that calling the dummy method list.size() to initialize the collection works, however, my question is - why is this needed at all Anyway, if that is the fix everyone is using fair enough, but I have to say I think it's pretty awful. Surely when you do a call to -- u.getOrders(), eg: {code} public List getOrdersForUser(String userName) { User u = entityManager.find(User.class,userName); // a check if a user with this name is actualy found wouldn't hurt return = u.getOrders(); } {code} you would expect the collection to be accessed. Anyway, I think this will lead to loads of problems, but thanks very much indeed for your help. cheers, Binario View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3931533#3931533 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3931533 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Lazy loading design - surely I can't be right?
Of all the options, I agree with you, the .size() is definately the best - but I will restate my opinion in the hope that someone on the hibernate/ejb3 team reads it. I think this is a TERRIBLE design flaw. Also, if the jboss ejb3 release goes like this then surely it should be documented CLEARLY. Please can this be an example on the docs.jboss.com/ejb3 tutorial pages. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3931587#3931587 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3931587 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Lazy loading design - surely I can't be right?
Hi guys, thanks for the responses. I've looked some more at this and I see that this is what hibernate does under the hood by using, as Nick said, the Hibernate.initialize(Object proxy) method. I agree that terrible is probably overstated :-), but I definately think it is unintuitive and probably at least ... poor. For example, why would you ever want to call | Collection orders = user.getOrders | and not use orders for something. anonymous wrote : | It's conceivable you are just going to pass that refererence around and not yet access any of the data in the collection. | anonymous wrote : | | | | That's where I think I disagree with you. I can't think of any situation where this might be the case. Surely, if you call get on something, you expect to get it back initialized if we're in the session. | | | | At any rate, I don't mind at all, and I very much appreciate the help and I would just reiterate, clear documentation will help others avoid this non-obvious problem. | | | | thanks again, | | binario View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3931656#3931656 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3931656 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: LazyLoadExceptions, Open Session in View EJB3
Ho hum, does no one have any ideas on this issue??? I would have thought it was pretty much a show stopper for ejb3! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3931349#3931349 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3931349 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Lazy loading design - surely I can't be right?
anyone got any ideas? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3930200#3930200 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3930200 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: LazyLoadExceptions, Open Session in View EJB3
anyone? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3929560#3929560 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3929560 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Lazy loading design - surely I can't be right?
Hi all, Here's my architecture (standard enough) layer 1: jsps -- layer 2: struts actions -- layer 3: ejb3 stateless session bean managers -- layer 4: ejb3 domain objects I have a one-to-many relationship between User and Order, ie a User has many Orders. Now, I want to load the orders lazily. No problem, I specify the fetch type to be lazy on the relationship. So, when i get back a user, I don't get his orders. In order to get all his orders, I code a second method in one of my stateless session beans to specifically get all the orders for a given user eg, public List getOrdersForUser(String userName){ //first get the user for the username User u = entityManager.find(User.class,userName); //then call return user.getOrders(); } However, when I call this method I am getting the following exception failed to lazily initialize a collection of role: model.User.orders, no session or session was closed when accessing the data of a one-to-many relation. not good. Now I have read the following post: http://www.jboss.com/index.html?module=bbop=viewtopict=73005 And in here it discusses the issue of transactions as the possible cause of the problem. I was under the impression that as soon as I entered a method in a stateless session bean, under the hood the hibernate session is re-opened and therefore I can access any level in the graph that I want. This is what I would expect with spring/hibernate etc. Is this not the case with ejb3 ??? Do I have to explicitly set the transaction attribute on all methods to get this working?? This is really a case of me not understanding the design as I thought I did. I understand the List will be detatched from the session when I return it back to the web tier (which is where the exception is being thrown), but the information is retrieved from the database in the stateless session bean, so there should be no problem?? please help! thanks , binario View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3929085#3929085 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3929085 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - LazyLoadExceptions, Open Session in View EJB3
Hi all, I have been getting lazy load exceptions as described in http://www.jboss.com/index.html?module=bbop=viewtopict=78867 I've been investigating nice solutions to this and I came across the Open Session in View pattern. Here's a nice blog entry about it: http://www.jroller.com/page/cardsharp?entry=open_session_in_view_pattern Nice eh! Now, I thought this might be a good solution for my post above, but then I read that we can't really use Open Session in View in ejb3 in this very good post: http://www.jboss.com/index.html?module=bbop=viewtopict=69519 Now, I really think that ejb3 is great. It's easy, innovative etc, but I'm left feeling that if either the Open Session in View problem isn't fixed or unless I'm doing something really stupid over the lazy load exception, than this is a major flaw! By the way - I know that Seam fixes the open session in view problem but it's unrealistic to get everyone to change to this. thanks for any help. binario View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3929133#3929133 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3929133 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB 3.0] - Re: Enum Does Not Work with DetachedCriteria
Ok, have done that: http://opensource2.atlassian.com/projects/hibernate/browse/HHH-1210 I'll try to see what the error is from the source code too. thanks very much, Brian View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3909502#3909502 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3909502 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossCache] - Re: Clustered TreeCache as Hibernate second level cache - I
Hi Bela, thanks for the prompt reply again. We have been working from the online reference manual. I quote section 9.2 RpcDelegatingCacheLoader, which allows to load/store to/from a remote (in a different VM) TreeCache using JGroups' RPC mechanism. The remote TreeCache delegated to is the CacheLoader's cache's coordinator (the first cache in the cluster). This CacheLoader is available since JBossCache version 1.2.1. We wanted to synchronise all memory caches in the cluster on startup and that was the reason we used this cacheloader. We have a single database for all nodes and so synchronising from memory seems sensible. At a higher level, having spent alot of time on this now to unfortunately no avail, I would love it if someone could say something like: To use treecache as a distributed replicated transactional cache as the second level cache in Hibernate do the following: A) Hibernate config xml file example especially the transaction service to use section B) treecache.xml example especially the cacheloader configuration. C) JBoss Service example especially the relevant transaction manager section. D) datasource-ds.xml example ie, do we need an XADatasource or not. This might be a bit much to ask, but I really think an example would help SO much. Putting it up on the wiki even would be great. I think our requirements are VERY common usage of JBoss Cache/Hibernate, ie single database, multiple J2EE servers. This is the idea of J2EE servers - cluster them at a lower cost rather than multiple instances of an expensive database. We don't normally need hand holding on this stuff. We have a team of JBoss experts and our product currently runs on a cluster of 10 solaris boxes with combined 100 gigs of ram. We have spent a good amount of time on this and really do thank you so much if you can clear it up for us. thanks again, Binario View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3885875#3885875 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3885875 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossCache] - Re: Clustered Transactional Replicated TreeCache with single
Hi Bela, sorry for not getting back to you sooner on this. We have been busy figuring out what's going on. Firstly, the application we ran is on a two node JBoss cluster where each node has an Updater task and a Reader task which both update or read the same 1000 entries in the same database table (in oracle). We set the transaction isolation level to be Serializable. We configured the TreeCache to be the second level cache of hibernate. Firstly the problem that we encountered is as follows: One updater task managed to update the entries inside a transaction, however the other one periodically failed with an Oracle cannot serialize transaction exception. We think the reason for this is as follows: Given two transactions A and B as below transactin A transaction B start A |---| start B |---| When A commits, B may or may not fail (depending on the common data) due to state change. In our case transaction B consistently failed as it was working on the same rows. So I think we now understand what's happening. Thanks for your help. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3885671#3885671 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3885671 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossCache] - Clustered TreeCache as Hibernate second level cache - I give
Hi all (especially Bela :-) ), I've spent the following week trying to get TreeCache setup across a two node cluster on JBoss. The two nodes are setup to access a single oracle database. We are using hibernate 2.1 on the two nodes and we wanted to use TreeCache as the second level cache in hibernate. We are trying to meet the following requirements: A) Cache persistent hibernate objects on each JVM B) Maintain cache consistency across the cluster (i.e. updates to database from one node are propagated to the caches on the other nodes, or at a minimum, the caches get invalidated) C) Use SERIALIZABLE transaction isolation level I'll attach our existing configuration files at the bottom, but initially I'd like to discribe the problems that we encountered trying to achieve our goals: Problem 1: we couldn't get simple replication between caches across the two nodes to work properly. The second node when it started up fetched the transient tree status from the first node (using the RpcDelegatingCacheLoader). It then started a read-only transaction (Hibernate flush-mode set to NEVER). Unfortunately, it retrieved everything from the database (instead of the replicated second-level cache ) probably becasue the Hibernate query cache was empty. When it was committing the transaction, the reader blocked indefinately (we got no exception). Looking at the stack of the reader thread we think it was blocking on: RpcDelegatingCacheLoader.delegatePut(...) ie, it was perhaps trying to replicate the local puts. Problem 2: as a consequence of Problem 1, the first node times out and generates the following exception: | 2005-07-20 12:34:33,087 ERROR [org.jgroups.blocks.RpcDispatcher] failed invoking method | org.jboss.util.NestedRuntimeException: - nested throwable: (java.lang.InterruptedException) | at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3121) | at org.jboss.cache.TreeCache.put(TreeCache.java:1762) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jgroups.blocks.MethodCall.invoke(MethodCall.java:286) | at org.jgroups.blocks.RpcDispatcher.handle(RpcDispatcher.java:236) | at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:618) | at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:515) | at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:326) | at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUp(MessageDispatcher.java:734) | at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.access$300(MessageDispatcher.java:566) | at org.jgroups.blocks.MessageDispatcher$1.run(MessageDispatcher.java:703) | at java.lang.Thread.run(Thread.java:595) | Caused by: java.lang.InterruptedException | at java.lang.Object.wait(Native Method) | at EDU.oswego.cs.dl.util.concurrent.QueuedSemaphore$WaitQueue$WaitNode.doTimedWait(QueuedSemaphore.java:123) | at EDU.oswego.cs.dl.util.concurrent.QueuedSemaphore.attempt(QueuedSemaphore.java:47) | at org.jboss.cache.lock.IdentityLock.acquireReadLock(IdentityLock.java:206) | at org.jboss.cache.Node.acquireReadLock(Node.java:499) | at org.jboss.cache.Node.acquire(Node.java:471) | at org.jboss.cache.interceptors.LockInterceptor.lock(LockInterceptor.java:245) | at org.jboss.cache.interceptors.LockInterceptor.invoke(LockInterceptor.java:153) | at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:41) | at org.jboss.cache.interceptors.CacheLoaderInterceptor.invoke(CacheLoaderInterceptor.java:120) | at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:41) | at org.jboss.cache.interceptors.UnlockInterceptor.invoke(UnlockInterceptor.java:35) | at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:41) | at org.jboss.cache.interceptors.ReplicationInterceptor.invoke(ReplicationInterceptor.java:54) | at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:41) | at org.jboss.cache.interceptors.CacheStoreInterceptor.invoke(CacheStoreInterceptor.java:104) | at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3116) | ... 14 more | Here are our configuration files. Maybe we are missing some stuff with our configuration. Really, any help would be so much appreciated as we're at our wits end with this! TreeCache.xml | ?xml version=1.0 encoding=UTF-8? | | !-- = -- | !-- -- | !-- Sample TreeCache Service Configuration
[JBoss-user] [JBossCache] - Re: Hibernate/TreeCache/JBoss error
Hi James, I'm currently trying to setup a replicated clustered cache across two jboss nodes aswell. I'm trying to use it for the second level cache in Hibernate. I'm getting a fair few problems as my post on this forum today shows. Can you tell me, have you been successful with this? If you could share your config files with us if you have been successful that would be fantastic. thanks, Binario View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3885716#3885716 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3885716 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossCache] - Re: Hibernate/TreeCache/JBoss error
Thanks James, if you could also post up the relevant section of your JBossService.xml file - ie, the transaction section, and if you could tell us if you get it working that would be great. Ps - is it for the hibernate second level cache? If so - watch out for having to turn on the querycache. We ran into that as an issue today. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3885729#3885729 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3885729 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossCache] - Re: Clustered Transactional Replicated TreeCache with single
Hi Bela, thanks so much for the reply! Your two answers should make our life much simpler if we can get them working as expected then! The strange thing is, we have already tried to configure TreeCache with the JBoss transaction manager. We set the isolation level to be serializable but it didn't seem to work as expected. We would have thought that the transactions would be ordered contiguously across the cluster. Unfortunately we got lots of errors. Just to clarify, our treecache xml file looks as follows: | ?xml version='1.0' encoding='utf-8'? | !DOCTYPE hibernate-configuration PUBLIC -//Hibernate/Hibernate Configuration DTD//EN http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd; | hibernate-configuration | session-factory | | property name=query.substitutionstrue 1, false 0, yes 'Y', no 'N'/property | | !-- | property name=dialectnet.sf.hibernate.dialect.OracleDialect/property | property name=connection.driver_classcom.inet.ora.OraDriver/property | property name=connection.usernamerevo_ph/property | property name=connection.passwordrevo_ph/property | property name=connection.urljdbc:inetora:toronto:1521:toronto?sduSize=32767amp;streamstolob=true/property | -- | | !-- | property name=dialectnet.sf.hibernate.dialect.MySQLDialect/property | property name=connection.driver_classcom.mysql.jdbc.Driver/property | property name=connection.usernameroot/property | property name=connection.password/property | property name=connection.urljdbc:mysql://Kilcormac/test/property | property name=connection.provider_classnet.sf.hibernate.connection.DriverManagerConnectionProvider/property | -- | | | property name=dialectnet.sf.hibernate.dialect.OracleDialect/property | property name=connection.datasourcejava:/jdbc/inetdriver/property | | property name=connection.pool_size10/property | property name=statement_cache.size100/property | | !-- Use JDBC Transaction factory for a local (per-JVM) application | property name=transaction.factory_classnet.sf.hibernate.transaction.JDBCTransactionFactory/property | -- | !-- Use JTA Trancation factory for a distributed (inter-JVM) application -- | property name=transaction.factory_classnet.sf.hibernate.transaction.JTATransactionFactory/property | | !-- Added the JBoss Transaction Manager Lookup class (PH) for the distributed (inter-JVM) application -- | property name=transaction.manager_lookup_classnet.sf.hibernate.transaction.JBossTransactionManagerLookup/property | | !-- The EHCache is a per-JVM (local) second-level cache | property name=cache.provider_classnet.sf.ehcache.hibernate.Provider/property | -- | !-- JBoss TreeCache is a distributed (inter-JVM) transactional cache with replication -- | property name=cache.provider_classnet.sf.hibernate.cache.TreeCacheProvider/property | | property name=cache.use_query_cachefalse/property | property name=cache.use_minimal_putstrue/property | | !-- Magic number 8 is serializable, 2 is read_committed. NOTE: this doesn't work if JBoss is managing the JDBC datasource - | in that case you need to set it in the Oracle-ds.xml file, so the below doesn't work. -- | property name=connection.isolation1/property | | property name=show_sqlfalse/property | property name=jdbc.fetch_size5000/property | property name=max_fetch_depth8/property | property name=jdbc.use_get_generated_keystrue/property | property name=jdbc.batch_size1000/property | property name=jdbc.use_scrollable_resultsettrue/property | property name=jdbc.use_streams_for_binarytrue/property | property name=use_outer_jointrue/property | property name=cglib.use_reflection_optimizertrue/property | | !-- mapping files -- | mapping resource=com/capetechnologies/inetdriver/domain/Archive.hbm.xml/ | mapping resource=com/capetechnologies/inetdriver/domain/DataPoint.hbm.xml/ | mapping resource=com/capetechnologies/inetdriver/domain/MonitoredProperty.hbm.xml/ | /session-factory | /hibernate-configuration and our hibernate.cfg.xml file is as follows: | ?xml version='1.0' encoding='utf-8'? | !DOCTYPE hibernate-configuration PUBLIC -//Hibernate/Hibernate Configuration DTD//EN http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd; | hibernate-configuration | session-factory | | property name=query.substitutionstrue 1, false 0, yes 'Y', no 'N'/property | | !-- | property name=dialectnet.sf.hibernate.dialect.OracleDialect/property | property name=connection.driver_classcom.inet.ora.OraDriver/property | property name=connection.usernamerevo_ph/property | property
[JBoss-user] [JBossCache] - Re: Clustered Transactional Replicated TreeCache with single
Sorry Bela, I made one mistake above, we actually DO have the default JBoss transaction manager service deployed (not the tyrex one that I posted above). We have the following in our jboss-service as the mbean. |!-- | | The fast in-memory transaction manager. | -- |mbean code=org.jboss.tm.TransactionManagerService | name=jboss:service=TransactionManager | xmbean-dd=resource:xmdesc/TransactionManagerService-xmbean.xml | attribute name=TransactionTimeout300/attribute | | depends optional-attribute-name=XidFactoryjboss:service=XidFactory/depends |/mbean | thanks for your help! regards, Brian View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3884678#3884678 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3884678 --- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossCache] - Clustered Transactional Replicated TreeCache with single Ora
Hi all, We're trying to configure and test the TreeCache as a hibernate second level cache in a clustered JBoss environment. We're using hibernate version 2.1 with JBoss 3.2.5. We have a single oracle database and we are testing on a cluster of jboss nodes. We are aiming for a transactional replicated cluster wide cache. We have two questions that would greatly help us. 1) What transactionmanager do we use. We have read the docs and it seems that the default JBoss transaction manager is perhaps not a cluster wide transaction manager, but only a local vm transaction manager - is that correct? Ie, can the default JBoss transaction manager get cluster wide transactional co-ordination across JVMs. Also, if JBoss Transaction Manager doesn't support cluster wide transactions - can people recommend one that does? JOTM? 2) Do we need to setup a XA-DataSource for this configuration. We suspect not seeing as we only have a single database, but perhaps because that single database is accessed from every node in the cluster we may need to set it up. We're not sure! We REALLY appreciate any help on this one! cheers, Brian View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3884558#3884558 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3884558 --- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [HTTPD, Servlets JSP] - Re: Virtual Hosts - asked before, got no response
First of all Scott - thank you so much for pointing me in the right direction! I would be forever indebted if you could possibly explain what you mean when you say is not supported by configuration alone. You need virtual hosting with a valve/filter Do you mean that it's not possible by using jboss-web.xml and editing the tomcat server.xml file? I know that you can add elements to the tomcat server.xml element. Is this what you mean? Do you have any idea of what sort of a valve this would be? Any advice would be very much appreciated. thanks, Brian View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3871595#3871595 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3871595 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Virtual Hosts - Asked before, got no response :-(
Hi all, I asked before but got no response to this question. I am trying to run multiple virtual hosts to my application one for each category, eg: toys.mysite.com books.mysite.com etc... I want these virtual hosts to map to a jsp for each one that correspond to: www.mysite.com/toys www.mysite.com/books etc. Is this possible? Please can someone help me on this thanks very much, Binario View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3870956#3870956 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3870956 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [HTTPD, Servlets JSP] - Virtual Hosts - asked before, got no response
Hi all, I asked before but got no response to this question. I am trying to run multiple virtual hosts to my application one for each category, eg: toys.mysite.com books.mysite.com etc... I want these virtual hosts to map to a jsp for each one that correspond to: www.mysite.com/toys www.mysite.com/books etc. Is this possible? Please can someone help me on this thanks very much, Binario View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3870957#3870957 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3870957 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [HTTPD, Servlets JSP] - Re: Virtual Hosts - asked before, got no response
Thanks for the reply Scott, but that doesn't really answer the question. I'm a long time user of jboss and I have deployed virtual hosting before where each virtual host points to a different war file. I have noted that as of 3.2.4 you can deploy one war to mulitple virtual hosts via the jboss-web.xml file, however what I want to know is - can you point each of these virtual hosts to a different jsp. Perhaps this can be done with the alias in tomcat, but I'm not sure. So can you for example have toys.mysite.com --- goes to --- www.mysite.com/toys.jsp This is not clear from the wiki which I quote below: a single war can be deployed to mulitple virtual hosts through the jboss-web.xml virtual-host element. To make the jmx-console available on localhost, vhost1 and vhost2, edit the jmx-console.war/WEB-INF/jboss-web.xml jboss-web !-- Uncomment the security-domain to enable security. You will need to edit the htmladaptor login configuration to setup the login modules used to authentication users. security-domainjava:/jaas/jmx-console/security-domain -- virtual-hostlocalhost/virtual-host virtual-hostvhost1.mydot.com/virtual-host virtual-hostvhost2-alias/virtual-host /jboss-web Really appreciate any help you can give me, kind regards, Binario View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3870988#3870988 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3870988 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [HTTPD, Servlets JSP] - Re: Virtual Hosts - asked before, got no response
Thanks Anil, but really, that doesn't answer this question. I am not just asking about virtual hosts. I have used virtual hosts on jboss before, I have seen the wiki page before, I am asking a very specific virtual hosts question. Posting it on the faq looks as if this thread has been closed off with a link to the wiki as the answer. Unfortunately that has not answered the question. thanks anyway though, Binario View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3870992#3870992 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3870992 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [HTTPD, Servlets JSP] - Virtual Hosting - urgent please help
Hi all, I have an urgent problem with virtual hosting in JBoss. I see that as of recent versions a single war file can have multiple virtual host elements, each defined in the jboss-web.xml file. However, I want to know if you can point the virtual host to a specific jsp. For example, say I currently have: www.mydomain.com/accounting.jsp www.mydomain.com/sales.jsp and i want to map those jsps to: accounting.mydomain.com and sales.mydomain.com respectively Is this possible? thanks very much, binario View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3869081#3869081 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3869081 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security JAAS/JBoss] - Single sign on using virtual hosts
Hi all, I have an application that is not using JAAS as security. It is using my own login and database check against usernames and passwords. The application also uses virtual hosts for sub domains eg: Main application - www.whatever.com Forums - forums.whatever.com other sub app - other.whatever.com When I log in on the main login page in www.whatever.com I store some values in the httpsession object to say I'm logged in. However these don't seem to be picked up in the sub-domains. So in the other.whatever.com it seems that I'm logged out still. Any ideas? Help? thanks, Binario View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3860716#3860716 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3860716 --- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [HTTPD, Servlets JSP] - Re: Session sharing between two WARs in the same ear
Hi bugfix, did you ever resolve this? thanks, Binario View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3860724#3860724 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3860724 --- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Sharing httpsession object - this should be a FAQ
Hi all, This post has come up several times but I can't find an answer. 1) I have one ear that contains multiple wars. 2) I want to share the http session object across each war. Is this possible. PS - single node, not using JAAS. Using JBoss Tomcat 4 rc2. I really think this should be in the faq by the way. It has come up loads: http://www.jboss.org/index.html?module=bbop=viewtopict=45582 http://www.jboss.org/index.html?module=bbop=viewtopict=53046 http://www.jboss.org/index.html?module=bbop=viewtopict=39664 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3860727#3860727 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3860727 --- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Clustering/JBoss] - Re: Sharing httpsession object - this should be a FAQ
Found the answer from tomcat's faq: 7. How do I share sessions across webapps? You cannot share sessions directly across webapps, as that would be a violation of the Servlet Specification. There are workarounds, including using a singleton class loaded from the common classloader repository to hold shared information, or putting some of this shared information in a database or another data store. Some of these approaches have been discussed on the tomcat-user mailing list, whose archives you should search for more information. Sharing sessions across contains for clustering or replication is a different matter altogether. If my wars are all in a single ear, is there perhaps a solution using JBoss' single classloader for the one ear? Any ideas/experience with this? There must be some experiences :-) View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3860731#3860731 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3860731 --- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Nukes User] - Setting up forums
Hi all, I'd really like to know if there is a step by step guide to how to set up forums using nukes and mysql. Also, if my website has a current username and password table, how do I integrate that with the nukes system. thanks very much, binario a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827112#3827112;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827112Reply to the post/a --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user