[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Security Exception: Denied: EJBMethodPermission

2007-06-22 Thread NigelWhite
You want to know what it was? I changed from using EntityManagerFactory.createEntityManager() which is deprecated to using EntityManagerFactory.buildEntityManager. That bust the whole thing! I'm sticking with the deprecated method. What's going on? They've basically broken Hibernate, by

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Security Exception: Denied: EJBMethodPermission

2007-06-21 Thread NigelWhite
This just started happening after I upgraded to JBoss 4.2.0 It's completely broken my app. | 10:11:41,204 ERROR [executehql_jsp]] Servlet.service() for servlet org.apache.jsp.manager.executehql_jsp threw exception | java.lang.SecurityException: Denied:

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Security Exception: Denied: EJBMethodPermission

2007-06-21 Thread NigelWhite
A little help here please! The application is completely broken! Nothing at all will run. Nothing. Our whole project is stopped dead! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4056468#4056468 Reply to the post :

[jboss-user] [EJB 3.0] - @SecondaryTable. How to use it?

2007-06-15 Thread NigelWhite
How can I use @SecondaryTable? I have a Contact entity which defines a person's email, phone etc. There may be several of these pointing to a single Person entity. Because a person may belong to several organizations, and have several contactable personas. So. I want to create a ContactPerson

[jboss-user] [EJB 3.0] - @Enumerated(EnumType.String) still puts the ordinal in the D

2007-06-14 Thread NigelWhite
Title says it all really. I have a varchar DB column into which Hibernate is putting the ordinal value of whatever Enum I set into the entity! JBoss 4.2.0.GA View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4054319#4054319 Reply to the post :

[jboss-user] [EJB 3.0] - Re: RC9 mappedBy and InheritanceType.JOINED problem

2007-06-13 Thread NigelWhite
I hit this bug as soon as I upgraded to 3.2 | Caused by: java.lang.NullPointerException | at org.hibernate.hql.ast.tree.FromClause.findIntendedAliasedFromElementBasedOnCrazyJPARequirements(FromClause.java:120) | at

[jboss-user] [EJB 3.0] - @SecondaryTable

2007-06-13 Thread NigelWhite
I'm trying to pull in columns from two tables. Most of the columns work fine - they are simple columns, and I can specify which table they come from. The trouble is when one of the properties on the secondary table is an @ManyToOne association. There's no way of informing the persistence

[jboss-user] [EJB 3.0] - Re: @SecondaryTable

2007-06-13 Thread NigelWhite
I think the answer is | @ManyToOne(fetch=FetchType.LAZY, optional = false) | @JoinColumn(table=ContactDetails, name=player_id) | public Player getPlayer() { | return player; | } | public void setPlayer(Player player) { | this.player = player; | } | View the original

[jboss-user] [EJB 3.0] - Re: @SecondaryTable

2007-06-13 Thread NigelWhite
I'm trying the composite entity the other way round now. I have a Contact entity which contains the contact details for a Person at a location. ie. job title, email, phone number etc. The Contact links to the Person entity which contains personal details. So on the Contact entity, there is an

[jboss-user] [EJB/JBoss] - Re: Accessing correct bean version if multiple EARs deployed

2006-07-26 Thread NigelWhite
I went with a utility class to look up beans. The source for this class is generated by the ANT build script to prepend the name of the EAR file being built to the beginning of the JNDI name. So I have an EJBUtil class which contains public static Object getLocalEJB(String name) throws

[jboss-user] [EJB/JBoss] - Re: Accessing correct bean version if multiple EARs deployed

2006-07-25 Thread NigelWhite
In which of the many XML config files would this env-entry element go, and what would the syntax be? (Thanks for helping BTW!) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3960657#3960657 Reply to the post :

[jboss-user] [EJB/JBoss] - Re: Accessing correct bean version if multiple EARs deployed

2006-07-25 Thread NigelWhite
Ah, just a thought. Each EAR would have to have its own env-entry. So they'd have tro be called different names, so we're back where we started. We need to be able to enquire of the container what EAR fiel we are executing out of. View the original post :