[JBoss-user] [Security & JAAS/JBoss] - EntityContext.getCallerPrincipal() returns wrong principal i

2006-05-16 Thread garek
I have some code that is basically the following:


  | public Integer ejbHomeGetId() throws FinderException {
  | return ejbSelectIdByLoginName(ctxt.getCallerPrincipal().getName());
  | }
  | 

However, in 4.0.4.GA, EntityContext.getCallerPrincipal().getName() returns 
"anonymous," and not the authenticated principal's name.

I'm not sure if this is the right place to report this, but I couldn't find a 
bug reporting page anywhere.

Thanks,
Brian

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943968#3943968

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3943968


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: jbosscmp-jdbc.xml relationship mapping dbindex problems

2004-07-09 Thread garek
The tables are created by Jboss.

I thought about using the alter-table command, but I wanted to try to use the  command 
so that I wouldn't have to write and maintain the sql statements to create the indexes 
(there are a lot of EJBs and relationships in this application).

I didn't try to access the bean after the sql exception, I think the deployment was 
halted after that.

Thanks for the input,
Brian

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841572#3841572

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841572


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Procedure for Database Structure Changes with CMP 2.0?

2004-07-07 Thread garek
How many fields do you have in your database table?

I believe I encountered this problem when I tried to have a bean with more than 63 
fields managed by Jboss (cmp + cmr fields).

I ended up splitting the table into 2 smaller tables and creating a one-to-one 
relationship between them.

Hope this helps,
Brian

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841248#3841248

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841248


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - jbosscmp-jdbc.xml relationship mapping dbindex problems

2004-07-07 Thread garek
Hi,

I'm using jboss 3.2.5 with mysql 4.0.18.  However, I'm having problems when I try to 
have Jboss create indexes on foreign keys when it creates tables.

For example, I have two entity beans, ItemEJB and ItemQuantitiesEJB, in a one-to-many 
relationship.  ItemEJB has a primary key field called itemId and ItemQuantitiesEJB has 
a foreign key column called ItemEJB_foreignKey, which corresponds to the itemId field 
in ItemEJB.

When I deploy the application,  the tables are created, and then Jboss creates an 
index on the ItemEJB_foreignKey field in the ItemQuantitiesEJB table, which is what I 
want.

But here is the problem, Jboss then tries to create an index on a field called 
ItemEJB_foreignKey in the ItemEJB table - but this field does not exist, causing an 
sql exception to be thrown.

Here's the relationship mapping from the jbosscmp-jdbc.xml file:


  | Item-Quantity
  | 
  | 
  | 
  | Item-has-many-Quantity
  | 
  | 
  | 
  | id
  | ItemEJB_foreignKey
  | 
  | 
  | 
  | 
  | 
  | 
  |   Quantity-belongs-to-a-Item
  | 
  | 
  | 
  | 
  | 
  | Is there something I'm missing?

Thanks,
Brian


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841166#3841166

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841166


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user