[JBoss-user] [EJB 3.0] - Re: referencing session bean from servlet.

2006-05-27 Thread [EMAIL PROTECTED]
Its not necessary that you follow the default. You can provide the JNDI name 
for your bean using @RemoteBinding annotation. For ex

@Stateless
@RemoteBinding(jndiBinding="MyStatelessRemote")
public class MyStatelessBean implements MyStatelessRemote
{


---
}

Client Code

Object ref = jndiContext.lookup("MyStatelessRemote");

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - injecting EJB into a servlet

2006-05-27 Thread tsar_bomba
I'm rather new so forgive my ignorance.  I've been using JNDI lookup code to 
get a stub to my SLSBs:


  | public static Foo getFoo()
  | {
  | IFoo foo = null;
  | 
  | try
  | {
  | //get EJB
  | InitialContext ctx = new InitialContext();
  | foo = (IFoo)ctx.lookup("earName/FooBean/local");
  | }
  | catch (NamingException exp)
  | {
  | exp.printStackTrace();
  | }
  | 
  | return foo.getFoo();
  | }
  | 

Is there (or will there be) a way to simply inject the interface into the web 
layer (servlet, jsp, etc??)

i.e.


  | @EJB IFoo foo;
  | 
  | .
  | 
  | foo.getFoo();
  | 

I know Seam is out there and somehow helps w/ this, however I'm using Wicket 
and don't plan to use JSF anytime soon.

Thanks in advance!

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Performance EJB2 v EJB3

2006-05-27 Thread ihunter
My work project is very hot on performance issues and we've implemented it 
using 2.1. I want to identify whether a 3.0 solution will help in this regard

I've just spiked out a subset using EJB3 to do a speed comparison, and this 
indicates that EJB3 is slower than the EJB2 across all tests.

Is this a surprise, or is this accepted and I need to wait for performance 
enhancements, OR is there something I can do about it in my configuration?

Details:
1) Standard 4.0.3SP1 out of the box, copying the default server to give me an 
independant servers.
2) Platform is WinXP.
3) I use a seperate (outside container) JUNIT harness.
4) App. contains good mixture or read/write access
5) Hypersonic DB
6) For test results (msecs) at bottom.

I have observed that in general, the EJB3 slams the CPU to 100% on both a WinXP 
and Windows 2000 machines

Any information or advice gratefully recieved.

[BTW: I am not in any way criticising here, I just need to know what can be 
expected so we can plan the project.]

Many Thanks
Ian Hunter

EJB2EJB3
testAddingSingleCriticalAlarmNotification   20.428.1
testUserCommentsTenAlarms   42.2224.9
testPollTenDeletedAlarms53.171.8
testPollTenChangedAlarms53.1151.7
testPollTenNewlyCreatedAlarms   68.8210.8
testUserUnacknowledgesTenAlarmsAndWaitsForDelta 81.2304.6
testUserAcknowledgesTenAlarmsAndWaitsForDelta   92.1336.1
testUserDeletesTenAlarms129.7   173.6
testAddingTenCriticalAlarmNotifcationsToSameAlarmLifecycle  134.5   168.9
testAddingCriticalAndClearedAlarmNotifcations   137.4   198.5
testUserCommentsTenAlarmsAndWaitsForDelta   593.6   882.7
testUserUnacknowledgesTenAlarmsAndWaitsForDelta 648.6   979.7
testUserAcknowledgesTenAlarmsAndWaitsForDelta   662.6   923.4
testUserDeletesTenAlarmsAndWaitsForDelta675.1   746.7





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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: getting the role name after form login

2006-05-27 Thread bezdomny
This code seems to work:

private void findRole() throws PolicyContextException {

//  Get the Authenticated Subject
Subject subject = (Subject) 
PolicyContext.getContext("javax.security.auth.Subject.container");

//Now look for a Group called Roles
Set principals = subject.getPrincipals(Principal.class);
Iterator iter = principals.iterator();
while(iter.hasNext()) {
   Principal p = (Principal)iter.next();
   if(p instanceof SimpleGroup) {
SimpleGroup sg = (SimpleGroup)p;
if("Roles".equals(sg.getName())) {
Enumeration en = sg.members();
while(en.hasMoreElements()) {
String role = 
en.nextElement().toString();
if(role != null) {
setRole(role);
}
}
}
}
}
}

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: getting the role name after form login

2006-05-27 Thread [EMAIL PROTECTED]
With a recent use of the JBossGenericPrincipal as the holder of the roles, I am 
unsure if my earlier approach holds good.  If JGP is the answer, then you will 
need a custom valve to get hold of the JGP from the catalina request object.

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Injection via abstract getters

2006-05-27 Thread [EMAIL PROTECTED]
Note that I am also in priciple against the idea of writing components in terms 
of abstract classes, since it is significantly more difficult to unit test them 
(not impossible, but certainly more difficult).

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Injection via abstract getters

2006-05-27 Thread CptnKirk
The problem is that EJBs can't be abstract.  That's an EJB requirement, not a 
Seam choice.  Since Seam deals primarily in EJBs, Gavin can't help you much 
here.

Seam does support non EJB POJOs, however I wouldn't think the semantics of the 
framework should change to support abstract JavaBean components.  The semantics 
should be uniform and unfortunately that forces you to conform to the lowest 
common denominator.  Anyway, I think the lack of abstract EJB support is the 
problem you're looking for.

-Jim

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: referencing session bean from servlet.

2006-05-27 Thread DoubleDenim
I've tried the following.

ctx.lookup("ejb/Session/remote");

and get "ejb not bound"

ctx.lookup("Session/remote");

and get "Session not bound"

What is the correct syntax for this?

Thanks


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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Remoting] - Re: Remoting using Http over a singel port

2006-05-27 Thread [EMAIL PROTECTED]
Have added a jira issue for using host name as is within InvokerLocator instead 
of automatically converting to an IP value - 
http://jira.jboss.com/jira/browse/JBREM-497.

However, this is an issue with the equals() method in that should an 
InvokerLocator with an initial uri of 'socket://localhost:1234' and another 
with 'socket://127.0.0.1:1234' evaluate to being equal?  If so, how can this be 
done without a huge performance hit each time?

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Circular @EJB annotation can not deploy.

2006-05-27 Thread supernovasoftware.com
I am using the GenericDAO pattern so each entity has its own DAO.  I am using 
@EJB throughout my SLSBs.

When I upgraded to 4.0.4.GA from 4.0.4.CR2 any beans that had a circular 
reference fail to deploy.

If A injects B and B injects A I cannot deploy.

I wondered if this would cause a problem when I started using @EJB, but it did 
not so I went along my way.

Is this evidence of poor design on my part?
Is this a new addition that follows the EJB spec?

Any suggestions?


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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - DatabaseServerLoginModule

2006-05-27 Thread cpegwilliam
I am newbie of JBoss and Portal.
Just installed JBoss 4.0.3 + Portal 2.2.1 + MySQL 4.1

I am trying DatabaseServerLoginModule in login-config.xml.


  | 
  |
  |   
  |  guest
  |  java:/PortalDS
  |  SELECT PASSWD FROM 
USERS WHERE USERNAME=?
  |  SELECT USERROLES, 'Roles' 
FROM USERROLES WHERE USERNAME=? 
  |   
  |
  | 
  | 

Tables are created as follow:

  | CREATE TABLE Users (
  | userNameVARCHAR(64) PRIMARY KEY,
  | passwd  VARCHAR(64)
  | );
  | 
  | INSERT INTO Users VALUES('admin', 'admin');
  | 
  | CREATE TABLE UserRoles (
  | userNameVARCHAR(32) NOT NULL,
  | userRoles   VARCHAR(32) NOT NULL
  | );
  | 
  | INSERT INTO UserRoles VALUES('admin', 'admin');
  | 

However, after i login, Error 403, unauthorized access come out. I guess it is 
the user, roles problems as the /auth/* need Authenticated roles to be defined.
Then, i try to update the UserRoles of admin from "admin" to "Authenticated"


  | INSERT INTO UserRoles VALUES('admin', 'Authenticated');
  | 

it successfully log me in after updating the table. But this time, i have no 
way to get access to CMS and management pages anymore. Does anyone can help on 
this?
Seems that Jboss portal need both "Authenticated" and "admin" roles to be 
defined in order to get my access the CMS and management pages?

After explored with JBoss portal, i just quite confused on the ModelLoginModule 
and DatabaseServerLoginModule. I know ModelLoginModule is working together with 
UserModule and RoleModule. Does that mean DatabaseServerLoginModule or other 
loginmodule can't work with UserModule and RoleModule? 

Thanks!

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Accessing Snnotations on Proxied Local Object

2006-05-27 Thread [EMAIL PROTECTED]
Try using Component.forName(...).getBeanClass()

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: referencing session bean from servlet.

2006-05-27 Thread DoubleDenim
thanks for that.

When you say yourEjbProject, do you mean the package path?



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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: getting the role name after form login

2006-05-27 Thread bezdomny
Thanks so much for the replies. I'll try them out asap.

B

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: OneToMany fetchtype eager.

2006-05-27 Thread prabhumadanagopal
I have the same problem. My question is where is @IndexColumn? not in JEE API

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Hibernate Validator Issue in jboss-seam-1.0.0.CR3 on JBo

2006-05-27 Thread [EMAIL PROTECTED]
Also, the entire seam-shell project can be found at: 
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossSEAMShellProject.

I posted it there, but I've commented out the offending annotations in 
org.jboss.seam.example.registration.User.java. 

James

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Autentication through Java client for JAAS failing

2006-05-27 Thread j2ee_junkie
Krishna,

You forgot to set the security protocol property. See 
http://wiki.jboss.org/wiki/Wiki.jsp?page=LoginInitialContextFactory for details

cgriffith

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Migration 4.0.4.CR2 -> 4.0.4.GA problem

2006-05-27 Thread [EMAIL PROTECTED]
@IndexColumn never existed in Java EE API.  It is a hibernate annotations thing.

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Migration 4.0.4.CR2 -> 4.0.4.GA problem

2006-05-27 Thread prabhumadanagopal
I don't find @IndexColum in Java EE API.
I need to fetch eager and use List for @OneToMany.

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: getting the role name after form login

2006-05-27 Thread [EMAIL PROTECTED]
There is a JBoss specific way of doing this.

  | //Get the Authenticated Subject
  | Subject subject = (Subject) 
PolicyContext.getContext("javax.security.auth.Subject.container");
  | 
  | //Now look for a Group called Roles
  | Set principals = subject.getPrincipals(Principal.class);
  | Iterator iter = principals.iterator();
  | while(iter.hasNext())
  | {
  |Principal p = (Principal)iter.next;
  |if(p instanceof SimpleGroup)
  |{
  | SimpleGroup sg = (SimpleGroup)p;
  | if("Roles".equals(sg.getName())
  |//we got the roles
  | }
  | }
  | 

The flip side is that this gives all the roles the user belongs to.

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: getting the role name after form login

2006-05-27 Thread j2ee_junkie
Bob,

It is O.K. to use request.getUserPrincipal to get your userid.  However, there 
is no Java EE standard for getting the user's role.  You can ask if the user is 
in a certain role using request.isUserInRole().  JBoss does offer the ability 
to get to the authenticated Subject via a JNDI lookup.  I think the name is 
"java:/jaas/your_securit_domain/subject", but I am not positive and I can't 
remember where I read that.

later, cgriffith

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - CMS access for any registered user.

2006-05-27 Thread johnpoole
How do I give users access to the cms functionality?
Is there a way to do it through the management console?

I've looked through the docs, and it seems to work like Tomcat security, but I 
haven't been able to find a web.xml file where I can just change the role name.

I'm using JBoss AS 4.0.3 and Portal 2.2

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: PersistenceContext and EntityManager

2006-05-27 Thread rmic
Thanks for your answer... 

I certainly missed something... The tutorial is really well done, but all they 
tell about using the entity manager is only that it should be preceded by the 
@PersistenceContext annotation.

This is what my code looks like... 


  | public class Mediastore implements Serializable {
  | @PersistenceContext(unitName="mediastore")
  | private EntityManager entityManager ;
  | private String hello = "Hello World";
  | 
  | private static final long serialVersionUID = -2416336874715455139L;
  | 
  | @SuppressWarnings("unchecked")
  | public Mediastore(){
  | 
  | if(entityManager != null){
  | System.out.println("Entity manager created 
successfully");
  | }
  | else {
  | System.out.println("Entity Manager is null !");
  | }
  | 

This is the code which helped me to say that the EntityManaged was not injected 
correctly, after having had a lot of null pointer exceptions...

Here's my persistence.xml file : 

  | 
  |
  |   java:/mediastoreDS
  |   
  |  
  |  
  |  
  |   
  |
  | 
  | 

My "mediastore-ds.xml" file : 


  | 
  | 
  | 
  | 
  | mediastoreDS
  | 
jdbc:postgresql://localhost/mediastore
  | org.postgresql.Driver
  | postgres
  | postgres
  | 5
  | 20
  | 10
  | true
  |   
  | 
  | 

My ear file is packaged like this :


  | 
  | mediastore.ear 
  |   /META-INF
  | application.xml
  |  mediastore.jar
  |  /META-INF
  |persistence.xml
  |  /packages/classfiles
  | 
  |  mediastore.war
  |  /WEB-INF
  |  web.xml
  |  faces-config.xml
  |  /lib
  |   jarfiles
  |  /classes
  |packages/classes
  |  index.jsp
  |  home.jsp
  | 
  | 
  | 

I hope this could help someone to see what I did wrong. 

Thanks in advance,

rmic.

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: ModelLoginModule vs DatabaseServerLoginModule

2006-05-27 Thread [EMAIL PROTECTED]
If u post this in the portal user forum, there may be someone who can answer.

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Accessing Snnotations on Proxied Local Object

2006-05-27 Thread chane
I'm trying to access the annotations on a @In property (which is a SFSB) from 
another SFSB.  However, the annotations do not appear to be accessible since 
the @In SFSB is proxied.

Is there a way to access the annotations?  Or should I go ask in another forum 
(pointers to the right one?  I tried asking in the beginners forum)?

Specifically I have the following class:
@Name("quote.editor")
  | @Stateful
  | public class QuoteEditor implements IQuoteEditor{
  | 
  |public Quote quote;
  | 
  |@Relate(name = "quote")
  |public String save(){
  |   return super.save();
  |}
  | }


In another SFSB I have a reference to the above SFSB:
@Stateful
  | @Scope(ScopeType.CONVERSATION)
  | @Name("quote.configurator")
  | public class QuoteConfigurator implements IQuoteConfigurator {
  | 
  |private static final Log log = 
LogFactory.getLog(QuoteConfigurator.class);
  |
  |@In(value="quote.editor")
  |private IQuoteEditor qEditor;
  | 
  |public String configure(){  
  |   log.fatal(" methods for class["+qEditor.getClass()+"]:");   //<-- 
Proxy class and not a QuoteEditor
  |  for(Method m: qEditor.getMethods()){
  | log.fatal("  method["+m.getName()+"]");
  | for(Annotation ann : m.getAnnotations()){
  |log.fatal("int ann["+ann+"]");
  | }
  |  }
  |   return "configure";
  |}
  | 
  | }

All of the methods I expect (and a few more from the proxy stuff), are logged.  
However, none of the annotations are logged.  Also, I have access to the Local 
interface (IQuoteEditor) annotations, just not the SFSB object (QuoteEditor) 
and its annotations.

Is there a way to access the annotations on the proxied object?

TIA,
Chris

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Hibernate Validator Issue in jboss-seam-1.0.0.CR3 on JBo

2006-05-27 Thread [EMAIL PROTECTED]
Here's the stack trace with the new syntax. BTW - it only fails when run 
against embedded-ejb, not in JBossAS 4.0.4-GA.

[testng] DEBUG 27-05 15:39:44,156 (Configuration.java:secondPassCompile:1010)  
-processing collection mappings
  |[testng] DEBUG 27-05 15:39:44,156 
(Configuration.java:secondPassCompile:1021)  -processing native query and 
ResultSetMapping mappings
  |[testng] DEBUG 27-05 15:39:44,156 
(Configuration.java:secondPassCompile:1029)  -processing association property 
references
  |[testng] DEBUG 27-05 15:39:44,156 
(Configuration.java:secondPassCompile:1051)  -processing foreign key constraints
  |[testng] DEBUG 27-05 15:39:44,156 
(ClassValidator.java:getDefaultResourceBundle:131)  -ResourceBundle 
ValidatorMessages not found in Validator classloader. Delegate to 
org.hibernate.validator.resources.DefaultValidatorMessages
  |[testng] ERROR 27-05 15:39:44,171 
(AbstractController.java:incrementState:350)  -Error installing to Start: 
name=persistence.units:jar=seam-shell.jar,unitName=userDatabase state=Create
  |[testng] java.lang.IllegalArgumentException: could not instantiate 
ClassValidator
  |[testng] at 
org.hibernate.validator.ClassValidator.createValidator(ClassValidator.java:257)
  |[testng] at 
org.hibernate.validator.ClassValidator.createMemberValidator(ClassValidator.java:225)
  |[testng] at 
org.hibernate.validator.ClassValidator.initValidator(ClassValidator.java:169)
  |[testng] at 
org.hibernate.validator.ClassValidator.(ClassValidator.java:103)
  |[testng] at 
org.hibernate.validator.ClassValidator.(ClassValidator.java:91)
  |[testng] at 
org.hibernate.validator.ClassValidator.(ClassValidator.java:85)
  |[testng] at 
org.hibernate.validator.ClassValidator.(ClassValidator.java:77)
  |[testng] at 
org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:267)
  |[testng] at 
org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1001)
  |[testng] at 
org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:828)
  |[testng] at 
org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:161)
  |[testng] at 
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:619)
  |[testng] at 
org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(Ejb3Configuration.java:306)
  |[testng] at 
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:115)
  |[testng] at 
org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264)
  |[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
  |[testng] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |[testng] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |[testng] at java.lang.reflect.Method.invoke(Method.java:585)
  |[testng] at 
org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55)
  |[testng] at 
org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:107)
  |[testng] at 
org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
  |[testng] at 
org.jboss.kernel.plugins.dependency.KernelControllerContextActions.dispatchJoinPoint(KernelControllerContextActions.java:100)
  |[testng] at 
org.jboss.kernel.plugins.dependency.KernelControllerContextActions$LifecycleAction.installAction(KernelControllerContextActions.java:582)
  |[testng] at 
org.jboss.kernel.plugins.dependency.KernelControllerContextActions$KernelControllerContextAction.install(KernelControllerContextActions.java:175)
  |[testng] at 
org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
  |[testng] at 
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
  |[testng] at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:593)
  |[testng] at 
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:346)
  |[testng] at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:438)
  |[testng] at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:379)
  |[testng] at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:225)
  |[testng] at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:151

[JBoss-user] [JBoss Portal] - Internationalization

2006-05-27 Thread vanei.heidemann
>From JBoss Portal documentation:
"The JBoss Portal framework and architecture includes the portal container and 
supports a wide range of features including standard portlets, single sign-on, 
clustering and internationalization".
It isn't really true. I am trying to translate JBoss Portal to Brazilian 
Portuguese, but there are some internationalization issues. For example:
I can't change the title of CatalogPortlet because your title is hardcoded. In 
method render of class CatalogPortlet there is the following instruction: 
resp.setTitle("Pages").
Another problem: in the navigation portlet, the name in menu is always the name 
of the page and I can't change de name of pages like "CMS Manager" or 
"management" to see a internationalized text.

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Is there any way to define derived entity class for database

2006-05-27 Thread bitl
Hello, all!

Sounds easy but not appear so in practice...

Let's say I have entity class User with @id Long id; and @Column String name;.

And I have other table with user profile data.
The columns: user_id, name, value.

One of profile names is 'NICKNAME'.
So to store nickname Brutt of user with id 1 I create profile record:
1, "NICKNAME", "Brutt".

Now what if I need to show some users with nicknames ordered by nickname?
I created a view as
SELECT u.*, p.value as nickname FROM u users, p profiles WHERE p.user_id = u.id 
AND p.name = 'NICKNAME'

I defined entity class for the view like this:
class UserNicknameView extends User {

And for User I'm using inheritance type TABLE_PER_CLASS.

It works fine until...

After I fetch a List of UserNicknameView, the UserNicknameView instances are 
remembered by Entity Manager with some @Id's (derived from User).

Then after try to update User with the same @Id that was already remembered I 
have exception about I want to merge wrong instance.

Also I can't override @id in the UserNicknameView by @id nor @EmbeddedId.

Any suggestion?

I'd like to keep the User <- UserNicknameView derivation.

Great thanks to any attention.

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Autoincrement primary key in MySQL

2006-05-27 Thread urswag
I want to use autoincrement in MySQL. As a consequence I do not specify the 
primary key in the create method. As result I get an exception. The record is 
created in the database. Is this a bad concept what I do or shall I simply 
catch this exception?

anonymous wrote : 
  | 
  | public Address create(String street, String zip, String city, String 
state)
  | throws CreateException, RemoteException;
  | 
  | javax.ejb.CreateException: Primary key for created instance is null.
  | at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createEntity(JDBCStoreManager.java:589)
  | at 
org.jboss.ejb.plugins.CMPPersistenceManager.createEntity(CMPPersistenceManager.java:237)
  | at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createEntity(CachedConnectionInterceptor.java:225)
  | at org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:783)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
  | at 
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:1130)
  | at 
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:105)
  | at 
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:204)
  | at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:189)
  | at 
org.jboss.ejb.plugins.AbstractInterceptor.invokeHome(AbstractInterceptor.java:105)
  | at 
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:134)
  | at 
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:76)
  | at 
org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:43)
  | at 
org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:56)
  | at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:125)
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:161)
  | at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:145)
  | at 
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:135)
  | at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
  | at 
org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:525)
  | at org.jboss.ejb.Container.invoke(Container.java:938)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:819)
  | at 
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:420)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
  | at sun.rmi.transport.Transport$1.run(Transport.java:153)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
  | at 
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
  | at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
  | at java.lang.Thread.run(Thread.java:595)
  | at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
  | at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
  | at sun.rmi.server.UnicastRef.invoke(Unknown Source)
  | at org.jboss.invocation.jrmp

[JBoss-user] [JBoss jBPM] - Actions and Tasks

2006-05-27 Thread haninaguib
I just started looking at jBPM and was wondering what is the difference between 
a task and an action.
Also what is the difference between an action assigned to a node transition 
(event) and one assigned to a node's leave-node.

Thanks,
Hani

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Can't use EJB3 MDB to retrieve messages one by one.

2006-05-27 Thread bitl
"mskonda" wrote : use the Singleton configuration:
  | 
  |   | 
  |   |  Singleton Message Driven 
Bean
  |   |  XARecovery2ResMDB
  |   |  
queue/@QUEUE_NAME@
  |   | 
  |   | 

I got my MDBs to be always one per queue reducing their pool sizes:

@ActivationConfigProperty(propertyName = "MaxPoolSize", propertyValue = "1"),   

Is it a valid solution?

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: NonReentrantLock problems with multithreaded MDB executi

2006-05-27 Thread lkowalczyk
I forgot to add that the MDB is managing its own transaction with 
UserTransaction and the NonReentrantLock exceptions say "The same tx reentered".

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - NonReentrantLock problems with multithreaded MDB execution

2006-05-27 Thread lkowalczyk
The below description pertains to JBoss 3.2.7.

We've encountered a strange reentrancy problem which we currently link to some 
glitch in the concurrent execution of session and entity beans from the 
onMessage method in our MDB bean.

The MDB receives messages at a rate that forces JBoss to fire off multiple 
execution threads (maybe tens of threads at a time). The MDB then calls a 
session bean which in turn makes extensive use of entities.

At this time, NonReentrantLock exceptions start showing up in the logs (the 
attempt() method). Now, I am familiar with the usual cause of such exceptions 
(ie. bean A calling bean B calling bean A) and I performed code audit which 
turned up nothing.

The interesting thing is, the exceptions started being thrown when we had 
substantially sped up the database connection.  We've never had this problem 
before when the database network connection overhead caused a simple SELECT 
query to take about 1 sec.

Could this be a problem with the caches used in the NonReentrantLock?  If this 
is the problem with our code, what should I be on the lookout for in the first 
place?

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Problem in redeploying .ear file

2006-05-27 Thread [EMAIL PROTECTED]
Hi,

My application is webservice with ejb. I have created .ear file, i am getting 
the follwoing exception when i try to redeploy the .ear file in the second time.

Thanks for helping.

2006-05-27 23:35:30,821 INFO  [org.apache.catalina.loader.WebappClassLoader] 
Illegal access: this web application instance has been stopped already.  Could 
not load META-INF/services/org.apache.axis.EngineConfigurationFactory.  The 
eventual following stack trace is caused by an error thrown for debugging 
purposes as well as to attempt to terminate the thread which caused the illegal 
access, and has no functional impact.
2006-05-27 23:35:30,836 ERROR 
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/RWS]] 
StandardWrapper.Throwable
java.lang.NullPointerException
at 
org.jboss.mx.loading.RepositoryClassLoader.findResources(RepositoryClassLoader.java:543)
at java.lang.ClassLoader.getResources(ClassLoader.java:825)
at java.lang.ClassLoader.getResources(ClassLoader.java:821)
at java.lang.ClassLoader.getResources(ClassLoader.java:821)
at 
org.apache.commons.discovery.jdk.JDK12Hooks.getResources(JDK12Hooks.java:150)
at 
org.apache.commons.discovery.resource.DiscoverResources$1.getNextResources(DiscoverResources.java:153)
at 
org.apache.commons.discovery.resource.DiscoverResources$1.getNextResource(DiscoverResources.java:129)
at 
org.apache.commons.discovery.resource.DiscoverResources$1.hasNext(DiscoverResources.java:116)
at 
org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextClassNames(DiscoverNamesInFile.java:186)
at 
org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextClassName(DiscoverNamesInFile.java:170)
at 
org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.hasNext(DiscoverNamesInFile.java:157)
at 
org.apache.commons.discovery.resource.names.NameDiscoverers$1.getNextIterator(NameDiscoverers.java:143)
at 
org.apache.commons.discovery.resource.names.NameDiscoverers$1.hasNext(NameDiscoverers.java:126)
at 
org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.getNextResource(ResourceClassDiscoverImpl.java:159)
at 
org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.hasNext(ResourceClassDiscoverImpl.java:147)
at 
org.apache.axis.configuration.EngineConfigurationFactoryFinder$1.run(EngineConfigurationFactoryFinder.java:120)
at java.security.AccessController.doPrivileged(Native Method)
at 
org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:113)
at 
org.apache.axis.transport.http.AxisServletBase.getEngineEnvironment(AxisServletBase.java:273)
at 
org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:172)
at 
org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:396)
at 
org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:112)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3857)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4118)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at 
org.apache.catalina.core.StandardContext.init(StandardContext.java:5005)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at 
org.

[JBoss-user] [JBoss Seam] - Re: Seam and IntelliJ IDEA packing

2006-05-27 Thread alesj

  | 
  | jboss-seam.jar
  | 
  | 

How to get IDEA to 'grab' this jar and pack it into ear?

If I do it this way (although it looks that is works - is this 'correct' way to 
add resources to application)
anonymous wrote : 
  | So, I can add a new java module - and have all my jBPM xml files in it.
  | Then use this module in my ejb module as dependency - pack it as 'JAR 
module, link via manifest' and this jar will copy into EAR root. 
  | 

should I still define java module in application.xml?

Or if I just define it in application.xml, do I still need manifest.mf in jar?

Sorry about this
anonymous wrote : 
  | There is an example of this in every single seam example
  | 

didn't pay much attention to this, since I though IDEA handles everything.


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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - ModelLoginModule vs DatabaseServerLoginModule

2006-05-27 Thread cpegwilliam
I am newbie of JBoss and Portal.
Just installed JBoss 4.0.3 + Portal 2.2.1 + MySQL 4.1

I am trying DatabaseServerLoginModule in login-config.xml.

  | 
  |
  |   
  |  guest
  |  java:/PortalDS
  |  SELECT PASSWD FROM 
USERS WHERE USERNAME=?
  |  SELECT USERROLES, 'Roles' 
FROM USERROLES WHERE USERNAME=? 
  |   
  |
  | 
  | 

Tables are created as follow:

  | CREATE TABLE Users (
  | userNameVARCHAR(64) PRIMARY KEY,
  | passwd  VARCHAR(64)
  | );
  | 
  | INSERT INTO Users VALUES('admin', 'admin');
  | 
  | CREATE TABLE UserRoles (
  | userNameVARCHAR(32) NOT NULL,
  | userRoles   VARCHAR(32) NOT NULL
  | );
  | 
  | INSERT INTO UserRoles VALUES('admin', 'admin');
  | 

However, after i login, Error 403, unauthorized access come out.
Then, i try to update the UserRoles of admin from "admin" to "Authenticated"

INSERT INTO UserRoles VALUES('admin', 'Authenticated');

it successfully log me in after updating the table. But this time, i have no 
way to get access to CMS and management pages anymore.

I guess it is related to the Roles definition. Does anyone can help on this?

After explored with JBoss portal, i just quite confused on the ModelLoginModule 
and DatabaseServerLoginModule. I know ModelLoginModule is working together with 
UserModule and RoleModule. Does that mean DatabaseServerLoginModule or other 
loginmodule can't work with UserModule and RoleModule?

Thanks!

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - handle lost password

2006-05-27 Thread hr_k
Hi

Does anybody know how the Jboss portal is designed to handle a lost user 
password ? When a user is registered it is possible to type a secret answer, 
but I can not see how the admin can use this.


Thanks



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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: Passing request paramter between page

2006-05-27 Thread IvanLatysh
Here you are trying to play with portal layout and it is something that you 
have no control over.
Your boundry is a portlet window, you can play there as much as you like but 
you can't do anything outside of it.
If you need to change page layout depending on user choice you should do it 
withing your portlet.

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Seam can't see @Remove @Destroy method

2006-05-27 Thread superfis
"[EMAIL PROTECTED]" wrote : Add the method to the local interface.
It seems to be added correctly. Method exists in local interface all the time 
and recently it was working. 


"[EMAIL PROTECTED]" wrote : Btw, SFSBs don't need to implement Serializable, 
that is implicit.
Thank you for information.

Regards, Slawek

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Distributed Transactions in Standalone Mode

2006-05-27 Thread u_arunkumar
Hi All,

When used in the "Standalone" mode, does JBossCache support Distributed 
Transactions ? I am working on a prototype where I've 3-4 nodes using 
JBossCache. But I am running into issues when 2 clusters try to access the same 
Tree node. Although I've the access/update to the node wrapped within a 
transaction (DummyTransaction). The commit fails on both the nodes (because 
they timeout on waiting to aquire locks on the node). 

I would understand if the commit on one of the nodes failed and the other goes 
through. But the fact that they both fail doesn't seem to make sense to me. Is 
this problem related to the fact that JBossCache doesn't support distributed 
deadlock detection. If so, what is the workaround ?

Thanks in Advance,
Arun


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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Problem with JRules-IDE Projekt

2006-05-27 Thread benders
Hello,

I use Eclipse3.2RC6 und JRules-IDE3.0RC3.
After creating a new JRules-Projekt I get some Errors in 'Sample.drl' :

- message cannot be resolved
- unable to create Field Extractor for 'message'
- unable to create Field Extractor for 'status'

Thanks

Bernd Enders


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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Seam and IntelliJ IDEA packing

2006-05-27 Thread [EMAIL PROTECTED]
There is an example of this in every single seam example:


  | Seam Blog
  | 
  | 
  | 
  | jboss-seam-blog.war
  | /seam-blog
  | 
  | 
  | 
  | jboss-seam-blog.jar
  | 
  | 
  | jboss-seam.jar
  | 
  | 

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Seam can't see @Remove @Destroy method

2006-05-27 Thread [EMAIL PROTECTED]
Add the method to the local interface.

Btw, SFSBs don't need to implement Serializable, that is implicit.

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Conversation ending issue

2006-05-27 Thread [EMAIL PROTECTED]
huh?

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Seam and IntelliJ IDEA packing

2006-05-27 Thread alesj
anonymous wrote : 
  | This is not correct. application.xml accepts java modules.
  | 

Great. So how do I define them?

Any thoughts why then IDEA doesn't support this in application.xml?

anonymous wrote : 
  | I was thinking of zipping em up into a jar, putting that in the EAR
  | 

How do you this for java module?
Ok, you can select an option in a menu to jar ceratin module - can you do this 
also for a module/app build?

Rgsd, Ales

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: PersistenceContext and EntityManager

2006-05-27 Thread wauwau0977
hi

hard to say what your mistake is. for me it works. see the trailblazer from 
jboss which is very helpful and up-to-date:
http://trailblazer.demo.jboss.com/EJB3Trail/

the basic idea if you are using your own datasource is about that

1) code incetion:
@PersistenceContext(unitName = "YourEntityManagerName")

2) a persistence.xml in metainf about like this:

  | 
  |   
  | java:/OpenPaintingDSMySql
  | 
  | 
  | 
  | 
  | 
  | 
  |   
  | 

3) define your datasource in the deploy folder of the server

  | 
  | 
  | 
  | 
  | 
  | OpenPaintingDSMySql
  | 
jdbc:mysql://localhost:3306/openpainting
  | com.mysql.jdbc.Driver
  | 
  | 
  | 
  | 2
  | 20
  | 5
  | 
  | 
com.mysql.jdbc.integration.jboss.ExtendedMysqlExceptionSorter
  | 
  | 
com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker
  | 
  | 
  | 

but as mentioned... check out the tutorial, they did a very well job

regards,
patrick

--
patrick heusser
http://www.x8ing.com/fractal/

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Seam can't see @Remove @Destroy method

2006-05-27 Thread superfis
Hi,

What might be the reason of: 

 [testng] java.lang.IllegalArgumentException: Stateful session bean component 
should have a method marked @Remove @Destroy: wizardStartAction
  |[testng] at 
org.jboss.seam.Component.checkDestroyMethod(Component.java:230)
  |[testng] at org.jboss.seam.Component.(Component.java:186)
  |[testng] at org.jboss.seam.Component.(Component.java:151)
  |[testng] at org.jboss.seam.Component.(Component.java:146)
  |[testng] at org.jboss.seam.Component.(Component.java:141)
  |[testng] at 
org.jboss.seam.init.Initialization.addComponent(Initialization.java:290)
  |[testng] at 
org.jboss.seam.init.Initialization.addComponents(Initialization.java:252)
  |[testng] at 
org.jboss.seam.init.Initialization.init(Initialization.java:109)
  |[testng] at org.jboss.seam.mock.SeamTest.init(SeamTest.java:321)
  |[testng] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |[testng] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |[testng] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |[testng] at java.lang.reflect.Method.invoke(Method.java:585)
  |[testng] at 
org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:552)
  |[testng] at 
org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:318)
  |[testng] at 
org.testng.internal.Invoker.invokeConfigurations(Invoker.java:152)
  |[testng] at 
org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:88)
  |[testng] at org.testng.TestRunner.privateRun(TestRunner.java:682)
  |[testng] at org.testng.TestRunner.run(TestRunner.java:566)
  |[testng] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:220)
  |[testng] at org.testng.SuiteRunner.run(SuiteRunner.java:146)
  |[testng] at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:713)
  |[testng] at org.testng.TestNG.runSuitesLocally(TestNG.java:676)
  |[testng] at org.testng.TestNG.run(TestNG.java:444)
  |[testng] at org.testng.TestNG.privateMain(TestNG.java:803)
  |[testng] at org.testng.TestNG.main(TestNG.java:745)


My class:


  | @Stateful
  | @Name( "wizardStartAction" )
  | @Scope( ScopeType.CONVERSATION )
  | @Conversational(ifNotBegunOutcome = "startWizard")
  | //@Interceptors( value = SeamInterceptor.class )
  | public class WizardStartActionBean implements Serializable, 
WizardStartAction {
  | ...
  |   @Destroy
  |@Remove
  |public void destroy( ) {
  |}
  | 

and @Local wizardStartAction interface with this method also.

Seam can't see that I have method marked @Remove @Destroy from the beginning of 
existance of Seam action class. Recently everything was ok with this class 
until latest jars updating to newest ones (from CVS).

How to solve this problem?

Regards, Slawek

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: referencing session bean from servlet.

2006-05-27 Thread wauwau0977
hi

jboss fulfills the latest sun spec, which changed the lookup.

try this

ctx.lookup("yourEJBProject/BeanName/remote|local");
  | 

regards,
patrick heusser

--
patrick heusser
http://www.x8ing.com/fractal/


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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: Problems with jbpm-starters-lit

2006-05-27 Thread kukeltje
Your english is not to bad, but for us to be able to help you, you have to 
provide some additional errorlogging.

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: Expose process as webservice

2006-05-27 Thread kukeltje
Be creative. Anything with a java api can be exposed as a webservice (reason 1 
there is no documentation). And indeed, a 'solution' is not proviced by jBPM 
(reason 2 there is no documentation), but if you look at the JbpmContext, 
you'll see lots of methods that can be used.


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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Portal With LDAP rquires Users in 2 places, LDAP and Portal

2006-05-27 Thread egandt
When using LDAP with JBoss Portal to authenicate users the user needs to exist 
in both the Portal DB (default authorization method), and also in the LDAP 
server.  Why this is needed is my firect question and how can this be by-passed?
The next issue is related and is that even when the admin user exists in both 
the LDAP and Portal DB and has group rights of admin, Authentcated in the LDAP 
(where Authenticated is required to login, and admin is the admin gruop in the 
Portal), I still can not get to the admin console interface, however I can 
login as admin?

Basicly while I have modified the login-config.xml file to authenicate againist 
LDAP and it works, other parts of the portal seem to still be using the 
orginial Portal DB, how can this be resolved?


Thanks,
ERIC

PS: I am writing up an internal document on how to get OpenLDAP and JBoss 
Portal to work together and will post it once I have solved this last issue.


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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - jboss-portlet.xml & transaction

2006-05-27 Thread robhedin
Hi! I'm running JBoss 4.0.3-sp1 + JBoss Portal 2.2.1 and things are coming 
along quite nicely. Very cool.

However, I'm trying to find out what, if anything I should be doing with 
"jboss-portlet.xml"; right now I've basically got a cut & paste from one of the 
examples. I have searched the docs/wiki/forum but haven't found too many 
pointers yet. I've found that I can inject services into the portlet context, 
and use the jboss-portlet.xml to setup security, but I've also noticed that 
there is may be a  element that does something with the "portal transaction", 
but am not clear what that is or when I should use it. Any pointers would be 
most useful.

Thanks in advance!

rob.


> What JBoss version are you using
-> What JBoss Portal version are you using (and if it's from CVS, sources, 
binaries)
-> What database you are using with version number
-> What JDBC connector you are using 

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Remoting] - ServerThread never dies

2006-05-27 Thread [EMAIL PROTECTED]
I'm hitting a scenario where a ServerThread never dies (the name of the thread 
is "SocketServerInvokerThread-127.0.0.1").

I saw the comments in this class talking about race conditions and a 
sync-block-within-a-sync-block.  I may be hitting this.

What are some of the things I should ensure that I do so I can force the 
ServerThread to die?

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - getting the role name after form login

2006-05-27 Thread bezdomny
I apologize if this is dumb, but I'm sucessfully logging in with the 
DatabaseLoginModule, but now how do I get the name of the role? I want to 
display the role name on the web page. I know I can get the userid from 
request.getUserPrincipal().getName() but should I use this and is there 
something similar for getting the authenticated user's role? Thanks for the 
help,

Bob

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Conversation ending issue

2006-05-27 Thread armita
Suppose I am in the middle of a conversation and I leave the page untouched 
longer than  the conversation timeout, then when I click on a link wich calles 
a conversational bean it calles the bean and update the conversations last 
accessed time so the seam does not remove the conversation.
In other words, if you do not use multiple browsers and do not end/leave the 
conversation by calling a method; conversation would last forever? So we should 
not worry about if the user face a conversation time out at the middle of some 
process.
Is it the case?

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Seam and IntelliJ IDEA packing

2006-05-27 Thread [EMAIL PROTECTED]
anonymous wrote : And application.xml only excepts ejb and web tag inside 
module tag. 

This is not correct. application.xml accepts java modules.

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Seam and IntelliJ IDEA packing

2006-05-27 Thread alesj
>> I was thinking of zipping em up into a jar, putting that in the EAR, and 
>> naming it as a java module in application.xml

Hmmm ... 
Since I believe you can only add ejb and web modules into ear module.
And application.xml only excepts ejb and web tag inside module tag.

So, I can add a new java module - and have all my jBPM xml files in it.
Then use this module in my ejb module as dependency - pack it as 'JAR module, 
link via manifest' and this jar will copy into EAR root.

I tried it and it works.

Rgds, Ales



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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Transaction not Active excetion

2006-05-27 Thread bentins
Problem was in my own code. I had an exception on the transaction that was not 
rolledback so the connection had an uncleaned transaction on it.

Since my other select was running on the same thread it got the same uncleaned 
connection with the transaction.

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: jboss-cache-jdk50.jar Missing

2006-05-27 Thread [EMAIL PROTECTED]
Yes, mybad, I will add the jars.

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Using things called Events

2006-05-27 Thread [EMAIL PROTECTED]
Right, there is now a core component called "events", so naming a user 
component "events" would break the event system.

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Problems with jbpm-starters-lit

2006-05-27 Thread beth_queiroga
I downloaded the jbpm-starters-kit3.1.1, but I'm having many problems to 
install.
The eclipse plug-in is correct.
I click in the archieve start.bat in the directory jbpm-server but many errors 
appears.
I wrote a log with the erros, but i'm not undestanding what i have to do to 
resolve.
Can someone help me? 
I'm from Brazil and my english is not very good.
Thank you.
Beth Queiroga


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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - org.jboss.varia - Where is it?

2006-05-27 Thread nvanevski
Hi all, 

this may be a stupid question but I need help nevertheless. I'm trying to 
import org.jboss.varia to use the Scheduler service (like described in the 
docs) but the package does not seem to exist. I guess I am missing some jar in 
my classpath... Any idea?

Thanks in advance!!

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Performance Tuning] - nagios plugin to monitor tomcat

2006-05-27 Thread chsvramesh
Hi,

Please help me to find out nagios plugin to monitor jboss JMS and tomcat 
statistics.

Thanks in advance.

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - referencing session bean from servlet.

2006-05-27 Thread DoubleDenim
In upgrading to 4.0.4.GA in the last day or so from 4.0.3SP1 if encountered a 
couple of issues in which i've had to refactor my code.
I've sorted most of the problems out but now i'm left with one that baffles me.

What I am trying to do is reference an ejb3 stateless session bean from within  
a servlet.
I'm doing this with:

  InitialContext ctx = new InitialContext();
  |   MySession mySession = (MySession) 
ctx.lookup(MySession.class.getName());

However I keep getting a namenotfoundexception. I have looked to see if the 
object is actually available within my packaging and it is.
My packaging structure is below.

MainPackage.war
-->Ejb3Package.ejb3
-->SessionBean.class
-->Session.class (my stateless session bean)
-->TestSerlvlet.war
-->TestServlet.class (servlet that is referencing the session bean)

Any ideas why this would happen?


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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: jboss-cache-jdk50.jar Missing

2006-05-27 Thread fady.matar
jgroups.jar is as well required to satisfy a runtime dependency. However when I 
checked out the latest source code from CVS a new exception is being thrown 
regarding the interceptors

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - jboss-4.0.4.GA administration console problem

2006-05-27 Thread adrienogee
Hi everybody,
I just downloaded the jboss-4.0.4CR2 (or GA, I didn't look for an explanation 
of the difference;) ) to play with ejb3, but tht administration 
(http://localhost:8080/web-console/) just doesn't work. I get that:

HTTP Status 404 - /web-console/

type Status report

message /web-console/

description The requested resource (/web-console/) is not available.
Apache Tomcat/5.5.17


Does someone knows where the prob comes from?
I didn't do anything special, just installed the as, launched it and that's 
all... 

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Seam annotations and '@Inherited'

2006-05-27 Thread amin59
Hi,

I guess some Seam annotations (e.g. @DataModel) need '@Inherited' annotation to 
help us develop a more OO software. Why only '@Scope' and '@Transactional' have 
this attribute?

Thanks

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: Passing request paramter between page

2006-05-27 Thread craig1980
Hi. Thanks for your replies.
I like this exchange of ideas... you are opening more and more my mind.

So if i have understood you are sayng that i should write a page with more 
instances of my portlet; in this way i'ld be able to display different view by 
usign one portletOK. This could be a very good solution...but i'm thinking 
to this scenario:
 i'm in page A. This page is in a three columns template; in this page there 
are two instances of my portlet (let's call them a1 and a2) and another portlet 
(let's call it a3). I have this situation a1 and a2 two instances of my 
portlet, a3 instance of another portlet; these portlets are in the central 
column. 
Now in the left column there are other two portlets (let's call them b1 and 
b2): one is my "Menu" and another is a google searchMotor.
In the right column there are other two portlet a banner and a login to the 
portal portlet; let's call them c1 and c2.

Now the portlet a1 shows a list of objects. Well i'ld like that when a user 
clicks on a link what is showed to the user is:
Portlet b1 and b2 on the left column, portlet a1 with the details of user 
choice in the central. Portlets a2, c1 and c2 must no longer be present.
So by starting from a three columns template i must arrive to a two columns 
template where there are different portlet.

Now it's this thing that i'm not able to understandhow could i implement a 
such thing.

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: RanAs with multiple roles for MDB

2006-05-27 Thread Lis0x90
I read wiki and find answers. Big thanks for help

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - jboss-cache-jdk50.jar Missing

2006-05-27 Thread fady.matar
The jboss-cache-jdk50.jar library is missing from the lib directory it should 
be added to reflect the latest changes incurred by the addition of the 
TreeCache.java file

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - where to put ehcache config file

2006-05-27 Thread armita
Could someone please tell me where shall I put the ehcache config file. I tryed 
puttig  it is ejb3 files root and META-INF but ehcache could not find it.

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Layout, theme, renderSet, strategy usage property name

2006-05-27 Thread wlchung
I cannot figure out what the the correct property name to use layout, theme, 
renderSet and strategy.

To use the Layout, theme, renderSet, strategy in the examples HelloPortal in 
Section 3.1.3 of Reference Guide, the following names are used:

   
  |
  |
  |
  |   layout.id
  |   generic
  |
  |
  |
  |
  |   theme.id
  |   Nphalanx
  |
  |
  |
  |
  |   theme.renderSetId
  |   divRenderer
  |
  |
  |
  |
  |   layout.strategyId
  |   maximizedRegion
  |
  | 

However, in section 6, a different format (org.jboss.portal.property.) are 
used
default
  | 
  |
  |
  |
  |   org.jboss.portal.property.layout
  |   phalanx
  |
  | 

  |default
  |
  |
  |org.jboss.portal.property.strategy
  |default
  |
  |

  |default
  | 
  | 
  | 
  | org.jboss.portal.property.renderSet
  | divRenderer
  | 
  | 

   default
  |
  |
  |
  |org.jboss.portal.property.layout
  |phalanx
  |
  |

Are these names the same? Or they have different meanings?



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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - PersistenceContext and EntityManager

2006-05-27 Thread rmic
Hi everybody,

I've got a problem with this "magical" @PersistenceContext... It doesn't inject 
any EntityManager :( ... my entityManager variable always evaluates to null and 
generates an horrible NullPointerException...

I already googled for hours to find a solution and the only thing I found was 
about using an EntityManagerFactory which also had to be injected and which 
stayed to the "null" value as well...

Does anybody knows something about that ?

Thanks in advance !

rmic.

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: Jboss MQ + jaas

2006-05-27 Thread [EMAIL PROTECTED]
Settings for "queue/A"  and "QueueConnectionFactory" are default settings 
coming with jboss 4.0.3


*** jboss.xml ***
 
 
 
ReplicationMDBBean 
queue/A 
 
 
 




** ejb-jar.xml***


http://java.sun.com/dtd/ejb-jar_2_0.dtd";>

  

  Message Driven Bean
  ReplicationMDBBean
  ReplicationMDBBean
  mypackage.ReplicationMDBBean  
  Container
  Auto-acknowledge
  
javax.jms.Queue
NonDurable
   
  
  
  





* message publishing 
  Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,  
"org.jnp.interfaces.NamingContextFactory" 
env.put(Context.PROVIDER_URL, "localhost"   );
 env.put(Context.URL_PKG_PREFIXES, 
"org.jboss.naming:org.jnp.interfaces" );

InitialContext ctx = new InitialContext(env);

queueFactory = (QueueConnectionFactory)ctx.lookup( 
"QueueConnectionFactory");

queueConnection = queueFactory.createQueueConnection();


// *** THIS LINE PRODUCES AN EXCEPTION WITH JGuard0.70 TURNED ON ***
queueSession = queueConnection.createQueueSession(false, 
Session.AUTO_ACKNOWLEDGE);  
 
queueConnection.start();

dest = (Queue)ctx.lookup("queue/A");

prod = queueSession.createProducer(dest);

  ObjectMessage objectJmsMsg = queueSession.createObjectMessage();  
  
  objectJmsMsg.setObject(message);

  prod.send(objectJmsMsg);  



** MDBean code**
 
 /**
  * The MDB EJB for handling queue JMS messages. 
  */ 
package mypackage.client;


import mypackage.UploadMessage;
import java.io.Serializable;

import javax.ejb.*;
import javax.jms.*;


import javax.naming.*;



/**
 * @version $Revision: 1.3 $
 */
public class ReplicationMDBBean implements MessageDrivenBean, MessageListener {

private MessageDrivenContext _context;
private QueueConnection connection;
private QueueSession session;


//Logger log = null;

/**
 * When MDB is being created this method will be called. 
 * The Log4J and JMS queue connection will be established.
 */
public void ejbCreate() 
{
   
   System.out.println(  "In EJB create.." );
  

try {

   System.out.println( "The EJB has been created"  );
this.setupPTP();
}
catch(Exception e) {
   System.out.println( "Failed to create MDB " + 
e.getStackTrace().toString()  );
throw new EJBException("Failed to create MDB ", e);
} 


}

public void setMessageDrivenContext(MessageDrivenContext context) throws 
EJBException {
_context = context;
}

/**
 * When MDB destroying the following method is calling.
 * The JMS queue connection is destroyed as well
 * @throws EJBException
 */
public void ejbRemove() throws EJBException 
{
_context = null;
try {
if( session != null )
session.close();

if( connection != null )
connection.close();
System.out.println("MDB been has been destroyed.");
}
catch(Exception e) {
System.out.println("Failed to destroy MDB "+ e);
throw new EJBException("Failed to destroy MDB ", e);
}
}

/**
 * this method is being called when JMS message will be obtained
 * after message is being retrieved from queue the data replication 
 * is being perforemd
 * @param message
 */
public void onMessage(Message message) 
{

  UploadMessage uploadMessage = null;
  System.out.println("The message has been recieved by MDB.");
  
  if( message instanceof ObjectMessage )
try {
  ObjectMessage obj = (ObjectMessage)message;
  Serializable ser = obj.getObject();  
  uploadMessage = (UploadMessage)ser;
  System.out.println( "Message"+uploadMessage );
  
}
catch(JMSException e) {
System.out.println("The Object message can not be obtained. "+ e);  
throw new EJBException("The Object message can not be obtained. ", 
e);
} 

  
}



/**
 * setup connection with JMS queue and create connection session
 * @throws JMSException
 * @throws NamingException
 */
private void setupPTP() throws JMSException, NamingException
{
InitialContext iniCtx = new InitialContext();
Object tmp = iniCtx.lookup("QueueConnectionFactory");
QueueConnectionFactory qcf = (QueueConnectionFactory) tmp;
connection = qcf.createQueueConnection();
session = connection.createQueueSession(false, 
QueueSession.AUTO_ACKNOWLEDGE);
co

[JBoss-user] [Beginners Corner] - Problem Starting JBoss with Fedora Core 5

2006-05-27 Thread deguzmandaz
I installed JBoss v4.0 to Fedora Core 5 (FC5). I'm having a problem running 
JBoss. the errors are:

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.mq:service=InvocationLayer,type=HTTP
  State: FAILED
  Reason: java.net.UnknownHostException: caaserver: caaserver
  I Depend On:
jboss.mq:service=Invoker
jboss.web:service=WebServer

ObjectName: jboss:service=invoker,target=Naming,type=http
  State: FAILED
  Reason: java.net.UnknownHostException: caaserver: caaserver

ObjectName: jboss:readonly=true,service=invoker,target=Naming,type=http
  State: FAILED
  Reason: java.net.UnknownHostException: caaserver: caaserver

ObjectName: jboss:service=invoker,type=http
  State: FAILED
  Reason: java.net.UnknownHostException: caaserver: caaserver

any idea on how i can resolve this...
by the way, in using j2sdk 1.4.2_11.

thanks!



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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Autentication through Java client for JAAS failing

2006-05-27 Thread nazare
Hi,

I'm new to JBoss/JAAS. Working on a project to retrieve JMX information from  
JBoss in secure environment. 

The client program written with  code

props.put(Context.INITIAL_CONTEXT_FACTORY, 
"org.jboss.security.jndi.LoginInitialContextFactory");
props.put(Context.PROVIDER_URL, "jnp://localhost:1099");
props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
props.put(Context.SECURITY_PRINCIPAL, name);
props.put(Context.SECURITY_CREDENTIALS, password);

is failing with "java.lang.SecurityException: Unable to locate a login 
configuration" errors. 

The JBoss command line utility twiddle.bat works fine with the authentication 
information retrieving the data from JBoss. 

Can somebody help in this regard to get this working as making the client 
connect with security is very essential.  

Thanks,
Krishna


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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Problems about updating an ArrayList in replicated TreeC

2006-05-27 Thread [EMAIL PROTECTED]
One temporary workaround is when you do the re-try, you can clone the failed 
pojo to a new one first.

For example, if you know that:

tx.begin();
lobby.add(player);
tx.commit();

failed, then do
Playler player_new = player.clone() // or whatever to construct a new player

then
tx.begin();
lobby.add(player_new);
tx.commit();

It should work. The problem here is that the rollback is not completely clean 
in this case. It still has added an interceptor to the player pojo. By creating 
a new one then will bypass this problem.


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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - max jms message size supported by Jboss-3.2.5

2006-05-27 Thread vallamkondu
Hi All, 

what is the max jms message size is supported by Jboss-3.2.5? 

Thanks in advance 

Ram Vallamkondu 



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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: How to Deploy my process?

2006-05-27 Thread messagesky
I do it. Thanks a lot!

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Exiting on IOE : java.io.InterruptedIOException: Operati

2006-05-27 Thread vallamkondu
Genman,

Yes, it?s a DEBUG Message but the message is not delivered to listeners at all. 
I see this debug exception only when i write / publish the message on topic & 
and I can?t ignore this message as it not delivered to other applications / 
listeners.

Thanks 
Ram

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Distinguish between remote and local call

2006-05-27 Thread martin ganserer
Hello Bill,

do you see any chance that you guys will implement this method in one of the 
next releases? I am not sure if other developers need this feature but it would 
be really interesting for our custom security system where we only want to 
check authorization of a method if the call came from a remote client. 

Thank you!

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - OneToMany fetchtype eager.

2006-05-27 Thread DoubleDenim
Hi,

I just upgraded to 4.0.4.GA and had some issues with my fetch type  of eager 
set on my OneToMany relationships. I solved the problem by removing them but am 
now wondering how i eagerly fetch ?

I am referred to this posting. 
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=82946
But I'm not sure how @IndexColumn solves the problem. if someone can help me 
with a "dummy" style explanation that would be great! :D

Thanks
Dan

[/url]

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - How to Deploy my process?

2006-05-27 Thread messagesky
I downlaod JBoss Eclipse IDE 1.6 from 
http://www.jboss.com/products/jbosside/downloads 

I want to design my process. Following: 

http://wiki.jboss.org/wiki/Wiki.jsp?page=JbpmGettingStarted 

But in "Deploy your process to JBoss jBPM",I Clike on on StartersProcess folder 
in the left hand 

project window. I can not see "Deploy Process Archive" option. 

How can I Deploy my process? 

Please help me,Thank you!

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Problems about updating an ArrayList in replicated TreeC

2006-05-27 Thread [EMAIL PROTECTED]
Ok, I was able to re-recreate your problem using a junit test case. Here is the 
Jira:
http://jira.jboss.com/jira/browse/JBCACHE-639

I should fix it within the next day or so. So stay tuned. 

Thanks,

-Ben

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

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


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user