[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - index automatically generatedy Hibernate?

2006-03-20 Thread javatwo
I am using Jboss 4.0.3SP1. I have a Employee table.(id, name, addrId). Employee { ... @OneToOne @JoinColumn(name="addrId") Address getAddress() {...} String getName() {...} } I did not use @index on any properties. After deploy, mysql > show index from employee; ++---

[JBoss-user] [Beginners Corner] - java.lang.OutOfMemoryError: PermGen space

2006-03-22 Thread javatwo
I am using JBoss. What causes java.lang.OutOfMemoryError: PermGen space? How much should it be? Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931996#3931996 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=393199

[JBoss-user] [Installation, Configuration & Deployment] - default port

2006-03-22 Thread javatwo
Hi, I am using Jboss, default port is 8080. I like to use default port 80. I could not find server.xml. How to change the port to 80. Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931998#3931998 Reply to the post : http://www.jboss.com/index.html?mo

[JBoss-user] [Installation, Configuration & Deployment] - HTTP Status 400 - Invalid direct reference to form login pag

2006-03-24 Thread javatwo
First time login is ok. After logout, then try to login again, I got the following erorr. It is consistently reproduced. I am using Form login. IE browser. Thanks for help! HTTP Status 400 - Invalid direct reference to form login page

[JBoss-user] [Installation, Configuration & Deployment] - Re: default port

2006-03-24 Thread javatwo
After changing the port to 80 from 8080 in server.xml, and restart, I got the Address in use exception. I am using Windows XP. Port 80 is reserved for web server, right? On my computer, I did not install software that might be using port 80. Thanks for advice. 11:11:54,776 ERROR [Http11Proto

[JBoss-user] [Installation, Configuration & Deployment] - Re: default port

2006-03-24 Thread javatwo
Works! I found one software that was using 80 on my computer! Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932481#3932481 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932481 ---

[JBoss-user] [Installation, Configuration & Deployment] - Re: HTTP Status 400 - Invalid direct reference to form login

2006-03-24 Thread javatwo
Solved. pointing to unprotected page. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932482#3932482 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932482 --- This SF

[JBoss-user] [Performance Tuning] - Linux or Window for JBoss web application?

2006-03-25 Thread javatwo
Hi, For running a web application deployed on JBoss/J2EE using Hibernate, JSF and MySQL, which platform should I choose for better performance? Linux or Windows XP? MySQL will be running on the same machine as JBoss. What is minimum memory requirement for reasonal performance for 10,000 reques

[JBoss-user] [Installation, Configuration & Deployment] - upgrade to 4.0.4RC1, Error

2006-03-29 Thread javatwo
I downloaded JBoss 4.0.4RC1, and installed with the first EJB3 config with clustering. I got the following errors during start: WARN [EJBTimerServiceImpl] Cannot obtain TransactionManager from JNDI, using TxManager.getInstance(): javax.naming.NameNotFoundException: TransactionManager no

[JBoss-user] [Installation, Configuration & Deployment] - Re: upgrade to 4.0.4RC1, Error

2006-03-29 Thread javatwo
The error above is for using the 4.0.4RC1 installer directly. This time I downloaded the JBoss 4.0.4RC1 zip file. Unzip the zip file. Downloaded the EJB3. Installed EJB3 into the JBoss according to the instruction. I can start JBoss without any error. But I got error when I deployed my web appl

[JBoss-user] [EJB 3.0] - upgrade to JBoss 4.0.4RC1, ERROR

2006-03-29 Thread javatwo
I downloaded the JBoss 4.0.4RC1 zip file. Unzip the zip file. Downloaded the EJB3. Installed EJB3 into the JBoss according to the instruction. I can start JBoss without any error. But I got error when I deployed my web application. ObjectName: jboss.j2ee:service=EJB3,ear=emp.ear,jar=emp.ej

[JBoss-user] [Installation, Configuration & Deployment] - Is Linux better for running Jboss with MySQL than Windows?

2006-04-04 Thread javatwo
Is Linux better for running Jboss with MySQL than Windows? Linux has two versions: FreeBSD, Fedora which one is better? Thanks for advice View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3934900#3934900 Reply to the post : http://www.jboss.com/index.html?mod

[JBoss-user] [Installation, Configuration & Deployment] - Re: Is Linux better for running Jboss with MySQL than Window

2006-04-06 Thread javatwo
Thanks for reply. Do you use MySQL with JBoss for testing? some people say MySQL is more native to Linux and perform better on Linux. Is this true? My application is: JSF + JBoss + Hibernate + MySQL. Thanks for advice. View the original post : http://www.jboss.com/index.html?module=bb&op=view

[JBoss-user] [Installation, Configuration & Deployment] - Re: Is Linux better for running Jboss with MySQL than Window

2006-04-06 Thread javatwo
Thanks again. There is one pre-imaged Linux machine with Fedora Core 3 mysql-3.23.58-16.FC3.1 are they too old for running lastest version of JBoss + Hibernate + JSF? Is it easy to upgrade MySQL? Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=39356

[JBoss-user] [Installation, Configuration & Deployment] - Re: Is Linux better for running Jboss with MySQL than Window

2006-04-06 Thread javatwo
Windows 2003, or Windows XP which one is better to run web application(JBoss+MySQL) ? Is Windows XP designed to replace 2003? Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3935679#3935679 Reply to the post : http://www.jboss.com/index.html?module=bb&

[JBoss-user] [Installation, Configuration & Deployment] - install jboss without GUI

2006-04-10 Thread javatwo
I am trying to install Jboss on a remote Linux machine from local windows XP. I do not have X11 on my windows. Can I install Jboss 4.0.4 without poping up GUI installer? Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3936188#3936188 Reply to the pos

[JBoss-user] [Installation, Configuration & Deployment] - two subdomains --> two applications

2006-04-12 Thread javatwo
One Linux machine has a domain xyz.com that has two subdomain a.xyz.com b.xyz.com I like them to point to two different applications A and B. A and B are deployed on the same JBoss server. http://a.xyz.com > Application A http://b.xyz.com > Application B Is this possible? How

[JBoss-user] [Installation, Configuration & Deployment] - Linux: start Jboss using port 80, must be a root?

2006-04-16 Thread javatwo
Linux: can I start Jboss using port 80 as a normal user? If using root, it is not safe. Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3937628#3937628 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3937628 --

[JBoss-user] [EJB 3.0] - Re: Migration 4.0.4.CR2 -> 4.0.4.GA problem

2006-06-19 Thread javatwo
I still got the same error after adding @IndexColumn(name="id") under @OneToMany(...). Do I need to do the same for @ManyToOne and @ManyToMany? Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951831#3951831 Reply to the post : http://www.jboss.com/i

[JBoss-user] [JBoss Portal] - Re: Admin CMS Portlet, upload file error

2005-07-13 Thread javatwo
I login as admin. I can create a new file, and it works fine. But when I tried to upload a file(tried different files), I got the exception. does the type (Lxxx;) stand for an array type? One thing I noticed: when I tried to edit a newly created file, I was asked to upload a file. Thanks. OS:

[JBoss-user] [JBoss Portal] - Re: Admin CMS Portlet, upload file error

2005-07-17 Thread javatwo
I found two commons-fileupload.jar, one under ejb3.deployer, and the other under jboss-portal.sar\lib. Does this cause the problem? which one should i keep? Thanks for help. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885212#3885212 Reply to the post :

[JBoss-user] [JBoss Portal] - MyLayout.war error: WEB-INF/web.xml not found.

2005-07-18 Thread javatwo
When I deployed myLayout.war to change layout and theme of portal, I got the error message on server side: /WEB/INF/web.xml not found. The war file does not have web.xml, but jboss-web.xml. Is this a packaging issue? Thanks. View the original post : http://www.jboss.org/index.html?module=bb&o

[JBoss-user] [JBoss Portal] - how to customize User portlet

2005-07-18 Thread javatwo
How to customize UserPortlet to allow users to create different types of accounts with different properties (name value pairs)? Thanks. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885322#3885322 Reply to the post : http://www.jboss.org/index.html?module=b

[JBoss-user] [JBoss Portal] - Re: MyLayout.war error: WEB-INF/web.xml not found.

2005-07-18 Thread javatwo
I downloaded the myLayout.war from http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossPortalSamples /WEB-INF/web.xml is missing from the war file. Where can I get it? Thanks. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885320#3885320 Reply to the post : ht

[JBoss-user] [JBoss Portal] - Is this possible? different default pages for different user

2005-07-18 Thread javatwo
After user's login, different portal pages show up based on users' roles or login name. For example, normal user and admin user see different views. Instead of displaying "You do not have enough permission" inside a portlet, the portlet should be hidden, or just showing different portal page for

[JBoss-user] [JBoss Portal] - Re: how to customize User portlet

2005-07-19 Thread javatwo
Can I develop my own UserPortlet using JBoss AS Login model? where is the difficulty? different types of accounts need to have different info. Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885573#3885573 Reply to the post : http://www.jboss.org/index

[JBoss-user] [JBoss Portal] - Re: how to customize User portlet

2005-07-19 Thread javatwo
Anyone using JBoss Portal seriously such as commercial web site? UserPortlet is a big limitation, and user/roles based default page too, ie. after a user's login, which page to go? For example, Job hunting web site, job seekers and companies have different account info. Any help appreciated. Vi

[JBoss-user] [JBoss Portal] - Re: how to customize User portlet

2005-07-19 Thread javatwo
Hi Julien, Thanks for reply. In the portlet spec 1.0, PLT.17 User Information and PLT.D User Information attribute names. Are they intended for User information to be customizable. The attribute names include user.business-info. ... These attribute names may be for business users. Does the U

[JBoss-user] [JBoss Portal] - Re: how to customize User portlet

2005-07-20 Thread javatwo
Hi Julien, Can I plugin something(a module) to make the UserPortlet support both personal and business account? The current UserPortlet is for personal account. Thanks. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885653#3885653 Reply to the post : http:/

[JBoss-user] [JBoss Portal] - what is a SAR file? deployment question?

2005-07-21 Thread javatwo
web modules: WAR1 and WAR2. If a user access two JSPs, one in WAR1 and the other WAR2, do the two requests belong to one HttpSession? two ServletContext(s)? Thanks for explanation. javatwo View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3886024#388602

[JBoss-user] [Beginners Corner] - SAR? deployment? Session/Context?

2005-07-23 Thread javatwo
Hello, I searched google and Yahoo, but could not find defintion for SAR file. what kind of code need to be packaged as a SAR? For JBoss AS, everything is dropped in server/default/deploy. How does JBoss know which WAR/SAR belong to which application? Suppose I have a EAR file that has two w

[JBoss-user] [Installation, Configuration & Deployment] - populate database after deployment

2005-08-21 Thread javatwo
Hello, I need to populate database after deployment before users can access any pages. What is the best way to do this? 1. can populating database be part of deployment? like call back? 2. accessing a JSP that does the job immediately after deployment 3. how to keep database tables when undeployin

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Hibernate: 1-to-Many, help!

2005-09-12 Thread javatwo
Could someone tell me how to manage the collection of one-to-many mapping? I have a very simple one-to-many relationship: an Item has many Picture(s). ENTITY -- Item @... public class item { private Collection pictures; private Integer id; // getter/setter for id and @Id(...) @OneToMany

[JBoss-user] [Security & JAAS/JBoss] - Login automatically after registration

2005-09-16 Thread javatwo
After user registration(username, password, ...), how to let the user automatially login into the system? Right now user have to go through a form to login after registration. In other words, how to populate session with authenticate info? Can someone help me or point me to some documentation?

[JBoss-user] [Security & JAAS/JBoss] - page to go after login?

2005-09-22 Thread javatwo
The current form based login model is to access a protected page, then a login form cut in to authenticate user, and then redirect to that page. I found this is not flexible enough. There is anyway to instruct Security model which page to go after login in. What does it takes to implement Servle

[JBoss-user] [Installation, Configuration & Deployment] - OutOfMemory after application exception

2005-09-25 Thread javatwo
I am using JBoss 4.0.3RC1. I often encounter OutOfMemory exception so that I have to restart JBOSS. I set the JVM max memory to more than 800M. I am sure it did not reach the limit. The exception usually happened after several exceptions from my application. Is this a bug? Thanks. View the orig

[JBoss-user] [JBoss Portal] - Admin CMS Portlet, upload file error

2005-07-12 Thread javatwo
When I tried to upload a file using the Admin CMS Portlet, I got the following error message: ( I am using JBoss AS 4.0.3 RC1, JBoss Portal 2.0, MySql 4.1) javax.servlet.ServletException: An error occured during the action request : Servlet execution threw an exception org.jboss.portal.

[JBoss-user] [Security & JAAS/JBoss] - add roles: not visible to JBOSS

2005-10-27 Thread javatwo
I use database to keep username/password/roles via DatabaseServerLoginModel. When I add a role to a user using SQL, commit, but the role is not visible to JBOSS. In other words, httpServletRequest.isUserInRole(theNewRole) return false, even the user login out and then login again. But after I s

[JBoss-user] [Security & JAAS/JBoss] - Re: add roles: not visible to JBOSS

2005-10-28 Thread javatwo
Works great! Thank you very much. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3904204#3904204 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904204 --- This SF.Net

[JBoss-user] [Beginners Corner] - java.lang.OutOfMemoryError: PermGen space

2005-11-02 Thread javatwo
java.lang.OutOfMemoryError: PermGen space but the system has a lots of physical memory available, the JVM have not reach its max memory limit. The exception occurs after several application exceptions. Is this a bug? I am using 4.0.3SP1. View the original post : http://www.jboss.com/index.htm

[JBoss-user] [Security & JAAS/JBoss] - login call back

2005-11-10 Thread javatwo
when a user login using Form (Web), is there any call back I can register? I need to tell user the last login time, and how many times the user has logged in. Thanks. Dave View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3906628#3906628 Reply to the post : ht

[JBoss-user] [Installation, Configuration & Deployment] - deploy, NoClassDefFoundError, but the class is the session j

2005-11-30 Thread javatwo
When deploy, I got NoClassDefFoundError, but the class "session.ShapeManagerBean" is in the session jar. what might be wrong? thanks! package session; public interface ShapeManager { ... } package session; @Stateless public class ShapeManagerBean implements ShapeManager { @PersistenceContex

[JBoss-user] [Installation, Configuration & Deployment] - Re: deploy, NoClassDefFoundError, but the class is the sessi

2005-11-30 Thread javatwo
I am using JBOSS 4.0.3 SP1 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3909910#3909910 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3909910 --- This SF.net email

[JBoss-user] [Installation, Configuration & Deployment] - Re: deploy, NoClassDefFoundError, but the class is the sessi

2005-12-01 Thread javatwo
why the error messsge did not tell me which class was not found? Otherwise it would be very helpful. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3910137#3910137 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3910137

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - user SA not found after out of memory exception

2006-01-06 Thread javatwo
After JBOSS had Out-of-memory exception, Control+C was not able to kill it. So I closed the JBOSS window (XP). When I tried to restart JBOSS, I got the following: user SA not found exception. No luck after restarting XP. It might be unfinished transaction going on. How to fix it? Thanks. WARN

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: user SA not found after out of memory exception

2006-01-06 Thread javatwo
works! thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916274#3916274 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916274 --- This SF.net email is sponsored

[JBoss-user] [EJB 3.0] - cache objects in EJB session bean layer

2006-01-30 Thread javatwo
how to cache objects in EBJ session bean layer? application scope. when the application is undeployed, the cached objects should be destroyed automatically. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920564#3920564 Reply to the post : http://www

[JBoss-user] [EJB 3.0] - Re: cache objects in EJB session bean layer

2006-01-30 Thread javatwo
Thanks. I like to cache an object outside session beans, like application context. Is there anything like that? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920586#3920586 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mod

[JBoss-user] [EJB 3.0] - Re: cache objects in EJB session bean layer

2006-01-30 Thread javatwo
Thanks. I like to cache an object outside session beans, like application context. Is there anything like that? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920587#3920587 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mod

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - JBOSS-->MySQL using UTF-8

2006-02-05 Thread javatwo
Web in UTF-8 (http request/response) MySQL in UTF-8. How to config JBoss/Hibernate to talk with MySQL using UTF-8? Please help! Dave View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921784#3921784 Reply to the post : http://www.jboss.com/index.html?module=bb&o

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - upgrade MySQL 5.0.18, boolean type data too long

2006-02-05 Thread javatwo
MySQL 4.1 uses TINYINT for Boolean type, but MySQL 5.0 use Bit(1). After upgrading to MySQL 5.0 and all mapping tables have been re-created. I got Data too long for column "read" that is a boolean type. when inserting a row. How to solve this problem? Where is the Hibernate configuration

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: JBOSS-->MySQL using UTF-8

2006-02-09 Thread javatwo
Thanks for response. In Java, String are stored as UTF16, not UTF8. But how MySQL knows which charset/collation EJB(client to DB) is using if I config MySQL only? For MySQL I can config DB and Server charset/collation, but not client connection/results charset. Thanks for helping me understand.

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Transaction boundary of HTTP request/response

2006-02-09 Thread javatwo
Hi, I have a question about transaction within web application. For a web application using JSF, EJB(JBOSS) and hibernate, what do I need to do to make all DB access for one HTTP request/response within one transaction? I have some session beans that are injected with EnttityManager. For every H

[JBoss-user] [Security & JAAS/JBoss] - can username be UTF-8

2006-02-11 Thread javatwo
Web application using JBoss and servlets. I am using FORM authentication. Can username be UTF-8? I create an account, its username is in UTF-8 encoding, chinese characters. But login was not successful. Can JBoss built-in authentication handle UTF-8 encoding for username? Ascii username works.

[JBoss-user] [JBoss/Spring Integration] - Re: TransactionManager and UserTransaction

2006-02-11 Thread javatwo
I am trying to use JTA UserTransaction. I have JBoss 4.0.3 SP1. Where is the JTA jar file? I could not find it. Do you I need to download from sun? which jar is The class javax.transaction.UserTransaction in? Thanks for help View the original post : http://www.jboss.com/index.html?module=bb&op=

[JBoss-user] [Beginners Corner] - UserTransaction

2006-02-11 Thread javatwo
Hello, I am using JBoss 4.0.3SP1. Which jar file has the javax.transaction.UserTransaction class? I could not find it from JBoss installation. Do I need to download it from sun.com? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923107#3923107 Reply t

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - DB(hibernate) exception, detached entity usable?

2006-02-13 Thread javatwo
A web application using UserTransaction with Hibernate and JBoss EJB. When a user try to delete an entity using em.remove(detachedEntity), then commit transaction, but a Hibernate exception raised: reference constraints violated. In this case, the detached entity is still being hold by JSF back

[JBoss-user] [Security & JAAS/JBoss] - Re: can username be UTF-8

2006-02-14 Thread javatwo
Thanks for reply, j2ee_junkie. Right now I am using a filter to set request encoding to UTF-8 for all requests in order to support chinese characters. It works great except Form login. The username is created in UTF-8 and stored in database. The related part in login-config.xml

[JBoss-user] [EJB 3.0] - Inheritance from supclass that is not an entity

2006-02-18 Thread javatwo
Is there a way for an entity to inherit properties from supclass that is not an entity? Right now they are not inherited in terms of persistence. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924822#3924822 Reply to the post : http://www.jboss.com/index.htm

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - After merge, property changed

2006-02-23 Thread javatwo
Two entities, Picture and Person, ManyToOne Class Picture { @ManyToOne public Person getOwner() {... } } Picture picture = // the picture has a owner that is an instance of Person(not CGLIB enhanced). //change picture name, then merge Picture p = em.merge(picture); The owner(P

[JBoss-user] [Security & JAAS/JBoss] - Re: can username be UTF-8

2006-02-27 Thread javatwo
"j2ee_junkie" wrote : javatwo, | | As I mentioned below, the filter is useless during FORM login. All that login stuff happens in the container level. Filters are at the web-app/servlet level. | | I am not speaking from experience, but what about the web-app.xml's

[JBoss-user] [Security & JAAS/JBoss] - Re: can username be UTF-8

2006-03-02 Thread javatwo
I looked at the document, the locale-encoding-mapping is for response, not for request. So the web container still does not know the request encoding coming from the client machine. One thing I do not understand: the default is iso8859, but I think the default should be UTF-8. Thanks! View t

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - foreign key constraint violation

2006-03-07 Thread javatwo
@Entity class Department { } @Entity class Employee{ @ManyToOne @NotFound(action=NotFoundAction.IGNORE) public Department getDepartment() } Employee table refers to department table (foreign key). When I tried to delete a department, I got an exception "foreign key constraint

[JBoss-user] [EJB 3.0] - URL without context root

2006-03-13 Thread javatwo
I have a web application deployed on JBoss AS, its context root is, say, /example. www.xyz.com/example how to config so that the application access URL is www.xyz.com, without /example? Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3929746#3929746 R