I'm having an error occur randomly in an EJB3 application I've developed.
Below is the stack trace of the error and the ValueObject class that the error
indicates is causing the problem:
The stack trace:
| 03:24:06,000 ERROR [STDERR] javax.ejb.EJBException:
I have a strange error occuring when I attempt to merge an EJB entity. Here's
the overview, there is an embedded superclass named ValueObject that defines
the primary key for all class inheriting from it. In this case, I have a
entity named Relationship. A Relationship entity has a @OneToOne
I found a solution ... although it's not the optimal solution. I'm simply
switched the controlling entity (i.e. moved mappedBy to Relationship.java).
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3912904#3912904
Reply to the post :
I have two entities that I'm trying to associate using one to one. Below is
the code snippet for each:
In Relationship.java (an Entity)
| private TascForce tascForce;
|
| @OneToOne(cascade=Cascade.ALL, fetch=FetchType.EAGER)
| @JoinColumn(name=fk_tasc_tascforce)
| public TascForce
I'm struggling to solve the error I've been receiving. In overview, I have two
types of people in the system, Provider and Clients. A Provider can have many
ProviderContacts and a Client can have many ClientContacts. When I attempt to
load a Client (which has a mapped collection to
Thanks. I found the error eventually. I didn't include an 'auth-contraint'
element in my 'security-contraint' element. I was under the impression that if
I only needed authentication for a specified resource (i.e. all roles had
access to the resource), I did not need an 'auth-contraint' ...
Using JAAS container authentication and authorization, I'm getting very strange
results. If I request a protected resource (as defined by security-constraints
in my web.xml), I am correctly taken to my login page. After entering valid
credentials, I pass a FormAuthenticator authentication but
I would start with the JBoss Security chapter in the JBoss documentation
(available on the JBoss site). This provides a base understanding of the
JBossSX and JAAS. If that doesn't get you going, look at the DVD Store Trail
Blazer available on the JBoss site ... that gives a complete example.
I'd like to be able to deploy my mysql-ds.xml within my ear (versus having the
mysql-ds.xml staticly placed in the server/[config]/deploy directory). I can
successfully deploy the mysql-ds.xml in the ear, but the ejb3 deploys first and
fails because the mysql-ds.xml that it depends on is not
I deployed the same EAR in JBoss 4.0.2 (using the all configuration) and still
receive the same results. This is leading me to believe that the problem is my
EAR ... I just don't know where.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3897703#3897703
Reply
I'm testing out container managed authentication/authorization in JBoss
(4.0.3RC2) and I have run into a problem. When I attempt to access a secured
resource, instead of the container redirecting to the specified login page for
authentication, it simply displays a 403 Access Denied error (I
Here's is what I'm finding the in server.log:
| 2005-09-27 17:45:35,154 DEBUG
[org.apache.catalina.authenticator.AuthenticatorBase] Security checking request
GET /test-jaas/secure/secure1.jsp
| 2005-09-27 17:45:35,155 DEBUG [org.apache.catalina.realm.RealmBase]
Checking constraint
12 matches
Mail list logo