=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
(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
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
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:
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
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
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 :
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:
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 =
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
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'.
11 matches
Mail list logo