[JBoss-user] [Security JAAS/JBoss] - Re: EJB Client does not provide SECURITY_PRINCIPAL correctly

2006-04-04 Thread pimpf
=SELECT ROLENAME, 'ROLES' FROM ROLES WHERE ROLEID = (SELECT ROLEID FROM USERS WHERE USERNAME = ?) 13:39:59,922 INFO [STDOUT] Going to get roles for user pimpf 13:39:59,927 INFO [STDOUT] Assign user to role user 13:39:59,965 ERROR [RoleBasedAuthorizationInterceptor] Insufficient permissions

[JBoss-user] [Security JAAS/JBoss] - EJB Client does not provide SECURITY_PRINCIPAL correctly

2006-04-03 Thread pimpf
(Context.INITIAL_CONTEXT_FACTORY,org.jnp.interfaces.NamingContextFactory); props.put(Context.URL_PKG_PREFIXES,org.jboss.naming:org.jnp.interfaces); props.put(Context.PROVIDER_URL, jnp://localhost:1099); props.put(Context.SECURITY_PRINCIPAL, pimpf); props.put(Context.SECURITY_CREDENTIALS, passwd); return new

[JBoss-user] [Security JAAS/JBoss] - Username in DatabaseServerLoginModule is null

2006-03-29 Thread pimpf
is null. What I have is: in login-config: application-policy name = pimpf-test login-module code = org.jboss.security.auth.spi.DatabaseServerLoginModule flag = required module-option name = unauthenticatedIdentityguest/module-option

[JBoss-user] [EJB 3.0] - EJB 3.0 Local Interface?

2006-03-15 Thread pimpf
Hi there, I have a theoretical question regarding Local Interface for Stateless Session bean and calling it from another Stateless Bean. I looked for more information in the spec and several other place for more info but couldn't find. Lets imagine I have the following stateless:

[JBoss-user] [EJB 3.0] - Re: Can not use PrimaryKeyJoinColumns

2006-03-15 Thread pimpf
The PrimaryKeyJoinColumn annotation is used to join the primary table of an entity subclass in the JOINED mapping strategy to the primary table of its superclass; it is used with a SecondaryTable annotation to join a secondary table to a primary table; and it may be used in a OneToOne mapping

[JBoss-user] [EJB 3.0] - Re: Working with a stateful session bean

2006-03-15 Thread pimpf
Here is one: http://docs.jboss.org/ejb3/app-server/tutorial/injection/src/org/jboss/tutorial/injection/bean/ShoppingCartBean.java //The example shows two ways to get access to the EJB More examples here: http://docs.jboss.org/ejb3/app-server/tutorial/index.html As far as I know the only

[JBoss-user] [EJB 3.0] - Re: Working with a stateful session bean

2006-03-15 Thread pimpf
Well, You have two completely different instances of SFSB - one initiated by the client and one by the SLSB. @EJB has nothing to do with this... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3930356#3930356 Reply to the post :

[JBoss-user] [EJB 3.0] - InheritanceType.TABLE_PER_CLASS question

2006-03-07 Thread pimpf
Because the EJB3.0 FD spec doesn't say to much about that kind of inheritance strategy, I looked up at the following examples: [i]http://docs.jboss.org/ejb3/app-server/tutorial/tableperinheritance/table.html[/i] I played with them but an exception occured: javax.ejb.EJBException:

[JBoss-user] [EJB 3.0] - Re: InheritanceType.TABLE_PER_CLASS question

2006-03-07 Thread pimpf
Here is the whole Pet class: import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Inheritance; import javax.persistence.InheritanceType; @Entity @Inheritance(strategy =

[JBoss-user] [EJB 3.0] - @NamedQuery in JBoss 4.0.4

2006-02-23 Thread pimpf
Hi there, Does anyone know if @NamedQuery is supported in JBoss 4.0.4 RC1? I defined one as: @Entity(name=Customer) @Table(name=CUSTOMERS) @NamedQuery(name=findAllCustomers, query=SELECT c FROM Customers c) public class Customer implements Serializable { private Long addressId; private

[JBoss-user] [EJB 3.0] - Re: @NamedQuery in JBoss 4.0.4

2006-02-23 Thread pimpf
wesslan wrote : Your query is SELECT c FROM Customers c but your entity is named Customer (without the s on the end). | Your query should be SELECT c FROM Customer c. | | Regards Peter I can't believe this, I played around with so many scenarios and at the end - I didn't see a 's'.