[jboss-user] [JBoss Messaging] - Re: Message is redelivered while the original transaction is

2008-10-28 Thread gaohoward
IMO, unacknowledged messages may be sent twice. In this case after the client 
reconnects, first thing it should do is a transaction recovery. after the tx is 
recovered and committed, the message is acked and never will be sent out again.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185278
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Message is redelivered while the original transaction is

2008-10-28 Thread gaohoward
There is a XARecoveryTest in the source code, you can have a look.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185277
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - EJB Local vs Remote

2008-10-28 Thread mrfarhankhan
Hi All,

I'm using JSF, EJB3, JBoss4.2.2.GA. I have several stateless EJB deployed on 
JBOSS, on the same machine. They use the remote interfaces to communicate. 

I want to know if there is any benefit to use the local interfaces for 
communication on the same server, instead of the remote? 

In particular, is there any gain in performance when the local interfaces are 
used for calls on the same server ??

Thanks in advance.
Farhan!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185274
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Cannot Remote Debug with jboss-eap-4.3

2008-10-28 Thread jaikiran
Please post the entire console logs including the echo statements that you see 
on the console. 

And by the way, the default debug port is 8787 and not 8080.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185272
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA/JBoss] - Re: connectionMap.remove in WrapperDatasourceService never c

2008-10-28 Thread vickyk
"ladam" wrote : Hi,
  | after I haven't heard something from Adrian I've filed it as a bug- please 
find the reference @ https://jira.jboss.org/jira/browse/JBAS-6149.
  | 

Can you attach the "svn diff" for this patch, this issues is not given much 
priority as the usage pattern you had been using is inappropriate ?




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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185269
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: Reading/Updating JBoss CMS Files via Java Batch Program

2008-10-28 Thread user.java
That is a manual process. I have few 100 folders and i donot want to do these 
steps manually for 100 different folders under CMS.

Is there any alternative..?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185267
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: PAR file definition

2008-10-28 Thread kukeltje
They are put there in a kind of binary form. Details not known to me (just 
never investigated it)

Table definitions in relation to classes can be found here: 

http://www.jboss.org/community/docs/DOC-11086

And the source is always there to look at. Just take a look at the archive 
parser. This is not documented since it is never used by endusers. They can 
access files stored in the db (from the processarchive) via the api. Search the 
forum and/or wiki for some more details on this. 



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185266
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - Re: NPE from one way message dispatch

2008-10-28 Thread [EMAIL PROTECTED]
"[EMAIL PROTECTED]" wrote : 
  | yes, I would expect the same behavior with AS 4.2.x 
  | 

Ok, I'll close the issue for Remoting 2.5 and clone it for Remoting 2.4.  
Thanks.

"[EMAIL PROTECTED]" wrote : 
  | so, considering the final changes for this issue, I understand in case of 
oneway invocations we would need to set the new property in the provided Client 
before calling the remoting code or set the unmarshaller (perhaps another one 
doing nothing) even if we call invokeOneway, right?
  | 

What you say sounds correct, but I don't know how and when WS creates the 
Remoting Client, so I'll list some options.  In the following I'm assuming that 
you use the SOAP unmarshaller, which checks for a null InputStream, for two way 
invocations.

1. If, for example, you create a new Client for each invocation, then you could 
set "unmarshalNullStream" to false for a one way invocation and use the default 
behavior for a two way invocation.

2. Similarly, if a given Client is always used for one way invocations, you 
could set "unmarshalNullStream" to false for that client; and, on the other 
hand, if a given Client is always used for two way invocations, you could use 
the default behavior for that Client.

3. If a Client sometimes makes one way invocations and sometimes makes two way 
invocations, then probably you should use the default behavior and use an 
unmarshaller for one way invocations that checks for a null InputStream, as the 
SOAP unmarshaller does for two way invocations.

Does that make sense?

-Ron

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185265
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: PAR file definition

2008-10-28 Thread gastaldi
Ronald,

Would you be more specific ? Which table, which column(s) ? Where is this info 
in the hibernate mapping ?

Thanks

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185264
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Having problem to configure with Eclipse EE.

2008-10-28 Thread sdsani
Thanks folks, in fact you gave me an idea. It was happening due to space 
because initially i installed Jboss under program files directory. I moved it 
to root and and it worked. Although my problem is solved, i would like to know 
that is there a way i can start my server w/o any errors if it is installed 
under a directory that has a space in name?

Sani

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185262
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Having problem to configure with Eclipse EE.

2008-10-28 Thread sdsani
Hi,

Thanks for the reply. First of all i don't have any work space here. All i have 
is a new installation of Eclipse and Jboss. Then i configured server in Eclipse 
and now i am trying to start my server. When i use process explorer after 
starting the server, all i see is Javaw and nothing else.

Sani

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185261
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - Re: Retreiving user roles using a ClientLogin

2008-10-28 Thread ragavgomatam
I presume you will be doing a 
LoginContext.login() from your Swing client

You can get your Roles (which are stored as Groups which is a subinterface of 
Principal ) as follows :- 

Subject subj = LoginContext.getSubject();
  | Set set =subj.getPrincipals() 

Hope this helps


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185260
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - Re: Accessing a secure EJB from standalone Java client

2008-10-28 Thread ragavgomatam
Can you post the method permissions on the ejb ?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185259
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - Re: Cannot get JAAS to work

2008-10-28 Thread ragavgomatam
3:10:08,125 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role 
files
  | java.io.IOException: No properties file: users.properties or defaults: 
defaultUsers.properties found
  | at org.jboss.security.auth.spi.Util.loadProperties(Util.java:315) 

Your login-config.xml appears to be using the UsersRolesLoginModule. It is NOT 
using the DatabaseServerLoginModule. Can you verify the login-config.xml once 
again ?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185258
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - Re: SimplePrincipal ClassCastException

2008-10-28 Thread ragavgomatam
ClassCastException implies that the class was loaded by different classloader.
and you are trying to cast a class loaded by different classloader..How did you 
package and deploy the class ?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185257
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: New jBPM Getting Started Documentation

2008-10-28 Thread kukeltje
what is the definition of a new starter? The sourcecode, certainly that of the 
console, is not for jBPM users (which might be developers using the api)  It is 
for developers ON jBPM. So you must be more clear on what you mean/want/...

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185253
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: PAR file definition

2008-10-28 Thread kukeltje
in the database

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185252
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Problem with reply in pick.

2008-10-28 Thread claman
Hello, 
I made a mistake when I posted the problem, so in my bpel the operation 
attribute has the same value in both onMessage and reply activity.
In spite of this, the bpel doesn't work correctly. 
Another tips?

Thanks a lot!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185249
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss AOP] - Re: AOP configuration in AS

2008-10-28 Thread [EMAIL PROTECTED]
Hi!

Regarding the correct structure to deploy your aspects with servlets, there are 
a few options. Take a look at this tutorial:

http://www.jboss.org/jbossaop/docs/2.0.0.GA/docs/aspect-framework/examples/injboss/aopInJbossPackaging.html

JBoss AS uses an unified class loader structure. This means that classes from a 
deployment unit are visible to other deployment units, unless you use a scoped 
deployment.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185248
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss AOP] - Re: AOP configuration in AS

2008-10-28 Thread ekobir
Hi All

Is it right to think assumption at below?

Whenever a war file is deployed, JBoss application server's class loader loads 
the class which  implements ServletContext then trigger the ServletContextEvent.

Before all operation above, I assume that all configurations(web.xml, 
jboss-aop.xml, application.xml or vs) are read.

Therefore AOP advices/interceptions even on ServletContext implementation will 
be vlid as firstly config is read then initialization is done.

What could happen if more than web applications are deployed on same jboss 
instance? Would Class file of ServletContext implementation be loaded per class 
loader assigned to war file or same loaded class be used every war file? (What 
kind of class loading hierarchy is there??)


Thanks a lot for your help...


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185247
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - Re: Trust association and subject building for SSO

2008-10-28 Thread noorarshad
Anil,

While the GenericHeaderbasedAuthenticator can get the UserID/Password from the 
Request header, how does the CustomLoginModule get access to those values?  I'm 
not seeing the connection.  

Within a portlet or a servlet, its easy to get at those values (they're in the 
RenderRequest or ServletRequest, respectively); but if I want the 
CustomLoginModule to be used for the entire container, I'm not sure how the 
login() method in the CustomLoginModule gains access to the header-parameters.  
Some examples would be helpful in getting me to see the light.  Thanks.



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185243
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: No active transaction

2008-10-28 Thread PeterJ
I always use:

@PersistenceContext
  | private EntityManager em;

Then I do not have to call createEntityManager() within my code{

public void saveIt(SomeEntity se) {
  |   em.persist(se);
  | }

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185241
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - jxm stop ear application, including war

2008-10-28 Thread smpub2000
Regarding the jmx api to start/stop an ear application using the MBeans: When 
the corresponding MBean stop() is invoked on url for the ear in the jboss.j2ee 
domain, it stops the EJBSs, but not the war application that is contained with 
the EAR.

I see that the war MBean is listed separately under jboss.web domain, but it 
does not list the EAR name, so you can't know dynamically which EAR file its 
in, and therefore if it should be stopped as part of the EAR application stop. 
I would appreciate any ideas on how, given an EAR application name, you can 
lookup all its components (including WAR, etc) and start/stop all of them.

Thanks.
SM.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185239
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: cannot find jboss-seam.jar file (plea for help!)

2008-10-28 Thread PeterJ
Umm, I think that this is the correct forum. The JBoss Tools come with tools 
for creating and editing Seam projects. They are not Seam, itself. Therefore, 
you need to download Seam from the Seam website and unzip it somewhere. Then in 
the New Seam Runtime dialog, browse to the folder where you unzipped Seam.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185238
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: No active transaction

2008-10-28 Thread areian
Hey again.
I Found a solution: It works if I manually inject an EntityManager using the 
EntityManagerFactory. I was just under the impression that it was supposed to 
do that automatically in a container mannaged environment.

The revised code for the session bean follows:



  | package sm.comm.frontend2.beans.sessions;
  | 
  | import javax.ejb.Stateless;
  | import javax.persistence.EntityManager;
  | import javax.persistence.EntityManagerFactory;
  | import javax.persistence.PersistenceContext;
  | import javax.persistence.PersistenceUnit;
  | import sm.beans.entities.Employee;
  | import sm.comm.frontend2.dtos.assemblers.EmployeeAssembler;
  | import sm.comm.frontend2.dtos.assemblers.SkillAssembler;
  | import sm.comm.frontend2.dtos.DetailEmployeeDTO;
  | import sm.comm.frontend2.dtos.SkillDTO;
  | 
  | @Stateless
  | public class F2FacadeBean implements F2FacadeRemote {
  | @PersistenceUnit
  | private EntityManagerFactory em;
  | 
  | public DetailEmployeeDTO EmployeeDTO(int id) {
  | Employee emp = em.createEntityManager().find(Employee.class, id);
  | return EmployeeAssembler.createDetailEmployeeDTO(emp);
  | }
  | 
  | public void persistSkill(SkillDTO skill) {
  | System.out.println(skill.getName());
  | System.out.println(em.createEntityManager().isOpen());
  | em.createEntityManager().persist(SkillAssembler.createSkill(skill));
  | }
  | 
  | public String hello() {
  | return "Hello World!";
  | }
  |  
  | }
  | 

It contains some debugging code, but the idea should be clear.

I just got brain wave. Am I right in thinking that if I want to directly inject 
the EntityManager I should use @PersistenceContext, and if I use 
@PersistenceUnit I need to use the factory?


Thanks a lot for the time taken to help out with this


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185235
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - Retreiving user roles using a ClientLogin

2008-10-28 Thread viniciuscarvalho
Hello there! I know that is possible to use ClientLoginModule inside a swing 
app to authenticate on a remote jboss server and call secured ejbs. But is it 
possible to retreive the user's roles after he has been authenticated? I need 
this info to show/hide some gui functionalities.

Regards

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185233
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss AOP] - Re: The use of Hotswapping

2008-10-28 Thread [EMAIL PROTECTED]
Take a look at 
https://svn.jboss.org/repos/jbossas/projects/aop/branches/Branch_2_0/aop/src/test/org/jboss/test/aop/dynamicgenadvisor/DynamicTester.java

It uses the aop xml found at 
https://svn.jboss.org/repos/jbossas/projects/aop/branches/Branch_2_0/aop/src/resources/test/dynamicgenadvisor/jboss-aop.xml

Another example can be found at 
https://svn.jboss.org/repos/jbossas/projects/aop/branches/Branch_2_0/aop/src/test/org/jboss/test/aop/dynamic/SimpleDynamicTester.java
 and
https://svn.jboss.org/repos/jbossas/projects/aop/branches/Branch_2_0/aop/src/resources/test/dynamic/

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185231
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss AOP] - Re: How to annotate in opposite way

2008-10-28 Thread [EMAIL PROTECTED]
"[EMAIL PROTECTED]" wrote : You can use the negation operator !.
  | 
  | First, take a look at the expression bellow:
  | 
  | call(* com.a..->*(..)) AND within(com.b..)
  | 
  | It will match every call to a method of a class in package com.a made by a 
class at package com.b
  | 
  | If you use this in a declare error tag, it will forbid any calls from 
classes of com.b to methods of classes of package com.a.
  | 
  | But this is not what you want. You have exceptions to this rule. There are 
10 methods you want to allow being called by classes at com.b. In this case, 
you can use AND ! (and not):
  | 
  | call(* com.a..->*(..)) AND within (com.b..) AND !(call() OR 
call() OR ... OR call())
  | 
  | Whereas  stands for the expression matching  the ith method you 
want to be allowed to be called, like:
  | * com.a.NameoftheClass->method1(..)
  | 
  | So, the expression above will forbid any calls from classes at package 
com.b made to methods of classes belonging to package com.a, except if those 
methods are one of the methods that match one of the expressions method_i.

Thanks lots!
That really help.

--
John

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185230
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - Cannot get JAAS to work

2008-10-28 Thread [EMAIL PROTECTED]
Hi there

I'm new to JBoss and did configure some web pages to work through JAAS, but I 
get an exception.
Two questions:
1. What am I doing wrong?
2. How can I debug this to see which of the various steps are wrong?

Any help will be much appreciated.

Regards

Here's the detail:
JDK 1.5
JBoss 4.2.2

Here is my web.xml file extract:
 
  Admin
  
   DepotList page
   DepotList
   /faces/DepotList.jsp
  
  
   System administrator
   Administrator
  
 
 
  BASIC
  OrderSystemJaasDbRealm
 
 
  System administrator
  Administrator
 
 
  Depot user
  User
 


Here is my jboss-web.xml file extract:

  java:/jaas/OrderSystemJaasDbRealm



In folder jboss-4.2.2.GA\server\default\conf I have the following two files:
iits-login-config-service.xml


   
  iits-login-config.xml
  
 jboss.security:service=XMLLoginConfig
  
  
 jboss.security:service=JaasSecurityManager
  
   
 


iits-login-config.xml




   
  
 guest
 useFirstPass
 java:/MYDBDS
 SELECT PASSWORD FROM USER 
WHERE NAME=?
 SELECT ROLE.NAME, 'Roles' FROM 
USER, ROLE WHERE USER.NAME=? AND USER.ROLE_ID = ROLE.ID
  
   




I get the following exception when I entered the user name and password:\

23:10:08,125 ERROR [UsersRolesLoginModule] Failed to load users/passwords/role 
files
java.io.IOException: No properties file: users.properties or defaults: 
defaultUsers.properties found
at org.jboss.security.auth.spi.Util.loadProperties(Util.java:315)
at 
org.jboss.security.auth.spi.UsersRolesLoginModule.loadUsers(UsersRolesLoginModule.java:186)
at 
org.jboss.security.auth.spi.UsersRolesLoginModule.createUsers(UsersRolesLoginModule.java:200)
at 
org.jboss.security.auth.spi.UsersRolesLoginModule.initialize(UsersRolesLoginModule.java:127)
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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:756)
at 
javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at 
javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
at 
org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:603)
at 
org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:537)
at 
org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:344)
at 
org.jboss.web.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:491)
at 
org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:180)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:595)






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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185229
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: PAR file definition

2008-10-28 Thread gastaldi
This is something I always wanted to know. Where are the uploaded images and 
classes located ??

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185225
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss AOP] - Re: The use of Hotswapping

2008-10-28 Thread aquatr7
Hello,
The main idea of my researches that I want to have an application where here 
security rules are implemented through aspects of JBossAOP, this application 
must to be always running and I want to be able to "add, change and delete 
aspects at runtime without having to stop the running and then re-run the 
application".
Is it possible to do this?
Thank you.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185223
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Performance Tuning] - Re: [JBoss 5.0-CR2] OutOfMemory JVM Crash during JIT

2008-10-28 Thread PeterJ
This looks like a JVM crash. What JVM are you using ("java -version" should 
tell you, it is also listed in the beginning of the console log, and also in 
boot.log).

The "Out of swap space?" message suggests that there is a memory issue. Have 
you monitored Windows memory usage? What is the size of your paging file?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185219
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss AOP] - Re: The use of Hotswapping

2008-10-28 Thread [EMAIL PROTECTED]
Well, if POJO is being intercepted by SimpleInterceptor, the jboss-aop.xml file 
is being loaded.

What do you mean with modifying SimpleInterceptor by InstanceInterceptor?

You can only modify something through the code, like below:

public static void main(String[] args) throws Exception
  |{
  |   // using SimpleInterceptor
  |   AdviceBinding binding = new AdviceBinding("execution(public * 
POJO->someMethod(..))", null);
  |   binding.addInterceptor(SimpleInterceptor.class);
  |   AspectManager.instance().addBinding(binding);
  |   // check: SimpleInterceptor is being used
  |   execute();
  | 
  |   // modifying binding, now I want to use InstanceInterceptor
  |  AdviceBinding newBinding = new AdviceBinding(binding.getName(), 
"execution(public * POJO->someMethod(..))", null);
  |   newBinding.addInterceptor(InstanceInterceptor.class);
  |   AspectManager.instance().addBinding(newBinding);
  |   // check: Instanceinterceptor is now being used
  |   execute();
  | 
  |}

At the moment that you use the name of the old binding in the new binding (at 
the line that calls the AdviceBinding constructor passing binding.getName() as 
parameter), you are replacing binding by newBinding. Consequently, you are 
replacing SimpleInterceptor by InstanceInterceptor.



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185217
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss AOP] - Re: The use of Hotswapping

2008-10-28 Thread aquatr7
Hi,
I want to add that for anonymous wrote : I run the application and before the 
end of the "for" loop I modified "SimpleInterceptor" by "InstanceInterceptor".  
that it still intercepting "SimpleInterceptor" and don't take account of the 
modification to "InstanceInterceptor".
Tanks a lot for the help.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185216
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: No active transaction

2008-10-28 Thread PeterJ
The default transaction attribute is "required", which will create a new 
transaction if there is not one.

Could you post the full exception stack trace? Also, post the source code for 
the EJB that is showing this problem.

Enclose the source code in UBBCode "code" tags  - you can do this by selecting 
the source and clicking the Code button above the editor window. Also, click 
the Preview button to ensure that the formatting is correct before posting.


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185215
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Message is redelivered while the original transaction is

2008-10-28 Thread szhigunov
OK, I will try to come up with a test case that is easy to execute. Currently I 
see the issue in the distributed environment and kill TS from debugger in the 
middle of two phase commit - not the test case I can send over.

BTW, do you guys have any recovery test case I can take a look at?

Thanks

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185214
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: How to pass a web service client *.class (not jar) to ws

2008-10-28 Thread PeterJ
Try:

D:\JBoss\bin\wsrunclient.bat -classpath . aaa.bbb.ccc.mymain

Note the dots and the spaces...

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185211
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: direction of JBoss with osgi is what?

2008-10-28 Thread PeterJ
Maybe I am missing something here but the EAR file layout is dictated by the 
Java EE spec, so even if JBossAS was fully OSGi-ified, it would still have to 
support EAR files with the structure you indicated.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185210
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - JBossWS-3.0.4 Spring version?

2008-10-28 Thread johndubchak
Hi,

Is there a document included with the distribution that lists what versions of 
the dependencies have been used to create this binary?

Specifically, what version of both CXF and Spring are included as part of the 
CXF bundle?

Thanks,
John

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185209
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - How to pass a web service client *.class (not jar) to wsrunc

2008-10-28 Thread pxstein
I created a JBoss web service client and all the *.class files are located in a 
sub-directory

D:\mywork\test\aaa\bbb\ccc\*.class

where D:\mywork\test\aaa\bbb\ccc\mymain.class is the class with the main() 
procedure
and all classes are part of the package aaa.bbb.ccc

So alltogether there is NO *.jar file for the client.

How can I pass mymain.class to wsrunclient and let it run?

D:\mywork\test>D:\JBoss\bin\wsrunclient.bat aaa\bbb\ccc\mymain

does not work because of the error: Exception in thread "main" 
java.lang.NoClassDefFoundError: mymain

How else can I call the client?

Peter

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185208
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - direction of JBoss with osgi is what?

2008-10-28 Thread deanhiller
I am looking at this ear file thing and see jars all over the place like so

myapp.ear
 +-lib
 +- jars location 1
 + jars location 2
 + mywar.war
 + WEB-INF
 ..+- jars location 3

Well, I come from OSGi where everything is exposed as a shared library or a not 
shared library.  It is very simple and there are really only those two choices. 
 When a service, you may be accessible by some services and not others.  I look 
at this ear file and think the following
1. jars location 3...okay, I get that, these are LIBRARIES only used in the war
2. Then there is jars location1 and 2 which is weird.  jars location1 is like 
shared libraries.  What is jars location 2 then?  Are they shared or not?

Are they going to clean this up to the point where it is as easy as OSGi.  In 
OSGi, every jar is either shared or not shared.  when it is shared, the client 
then defines whether it is using that shared jar or just using it's own 
library.  It is really quite simple and I thought JBoss 5 was using Osgi now, 
but it does not seem to have propagated up.

For those who don't know:  in OSGi, in your shared library jar, you just define 
what packages are exposed and can be used in other services.  In the other 
services jars, you just define what you importif you have your own library, 
just don't import.  It works beautifully and gives you the full power.  I feel 
very limited in JBoss in that I cannot share my EJB layer between two ear 
files(and I hate earsI wish it was just OSGi bundles and war files which 
covers just about everything including sar, har, jar, etc. etc. just by 
tweaking the manifest file).

Anyways, this is just my opinion but it would be nice to know the direction of 
JBoss and if it will catch up to the power of OSGi when it comes to 
Classloaders which is where OSGi rules on making the complicated simple.
Dean





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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185207
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss AOP] - Re: The use of Hotswapping

2008-10-28 Thread aquatr7
Here is the content of the "jboss-aop.xml" file:

  | 
  |
  | 

In "execute" method I have deleted Per instance interception
   
  |   Advised advised = (Advised)pojo;
  |   advised._getInstanceAdvisor().insertInterceptor(new 
InstanceInterceptor());
  |   System.out.println("--- pojo.counter++; ---");
  |   pojo.counter++;
  | 

I created META-INF directory and moved "jboss-aop.xml" in it. I also modified 
the "-Djboss.aop.path" to point to the new location of "jboss-aop.xml". But it 
doesn't work.

So I tried the verbose mode, Here is the new configuration of "VM aguments":
 anonymous wrote : -Djboss.aop.verbose=true 
-Djboss.aop.path=C:/Driverexemple/DynamicAOP/META-INF/jboss-aop.xml  
-javaagent:C:/aop/jboss-aop_1.5.6.GA/lib-50/jboss-aop-jdk50.jar=-hotSwap

I run the application and before the end of the "for" loop I modified 
"SimpleInterceptor" by "InstanceInterceptor". 
The verbose mode display after 1 without interception:

  | --
  | --- new POJO(); ---
  | in empty constructor
  | --- adding instance interceptors ---
  | --- pojo.someMethod(); ---
  | in someMethod
  | --
  | [trying to transform] SimpleInterceptor
  | [debug] There are no caller pointcuts!
  | [debug] was SimpleInterceptor converted: false
  | [trying to transform] SimpleInterceptor
  | [debug] There are no caller pointcuts!
  | [debug] was SimpleInterceptor converted: false
  | [debug] softmatch succeeded for : POJO [EMAIL PROTECTED] execution(public * 
POJO->someMethod(..))
  | iterate binding 1225222694453:0
  | [debug] added advisor: POJO from binding: 1225222694453:0
  | method matched binding execution(public * POJO->someMethod(..)) public void 
POJO.someMethod()
  | --- new POJO(); ---
  | in empty constructor
  | --- adding instance interceptors ---
  | --- pojo.someMethod(); ---
  | <<< Entering Simplenterceptor for: POJO$someMethod_2315001504750198986
  | in someMethod
  | 
Thank you for the help.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185206
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Strange messages on log

2008-10-28 Thread acastanheira2001
Hi,

We are receiving some error messages that I can´t know its meaning.

Can you tell me what is this related to?

2008-10-28 16:26:46,397 97243442 ERROR 
[org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) Message 
from manager /127.0.0.1 on port 38913
2008-10-28 16:26:46,397 97243442 ERROR 
[org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) 
Unsupported PDU command. 165
2008-10-28 16:31:46,340 97543385 ERROR 
[org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) Message 
from manager /127.0.0.1 on port 38913
2008-10-28 16:31:46,340 97543385 ERROR 
[org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) 
Unsupported PDU command. 165
2008-10-28 16:31:46,393 97543438 ERROR 
[org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) Message 
from manager /127.0.0.1 on port 38913
2008-10-28 16:31:46,393 97543438 ERROR 
[org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) 
Unsupported PDU command. 165
2008-10-28 16:31:46,450 97543495 ERROR 
[org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) Message 
from manager /127.0.0.1 on port 38913
2008-10-28 16:31:46,450 97543495 ERROR 
[org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) 
Unsupported PDU command. 165
2008-10-28 16:31:46,505 97543550 ERROR 
[org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) Message 
from manager /127.0.0.1 on port 38913
2008-10-28 16:31:46,505 97543550 ERROR 
[org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) 
Unsupported PDU command. 165
2008-10-28 16:36:46,344 97843389 ERROR 
[org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) Message 
from manager /127.0.0.1 on port 38913
2008-10-28 16:36:46,344 97843389 ERROR 
[org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) 
Unsupported PDU command. 165
2008-10-28 16:36:46,396 97843441 ERROR 
[org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) Message 
from manager /127.0.0.1 on port 38913
2008-10-28 16:36:46,396 97843441 ERROR 
[org.jboss.jmx.adaptor.snmp.agent.SnmpAgentService] (SnmpPortal--1:) 
Unsupported PDU command. 165

Thanks,
Andre

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

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

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - Re: Accessing a secure EJB from standalone Java client

2008-10-28 Thread jej2003
Sorry you are correct the line b.getInitialContext() does not belong, but this 
is not the cause of the issue.  

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185204
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: BPEL Review

2008-10-28 Thread [EMAIL PROTECTED]
Sure, go ahead and ask here.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185202
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Problem running bpel process designed with eclipse bpel

2008-10-28 Thread [EMAIL PROTECTED]
I see two different problems. 
13:50:20,215 ERROR [XPathEvaluator] selection of size other than one: []
This means one of your expressions is required to return a node-set of size 1, 
as described in the BPEL spec, but it returned an empty node-set (as evidenced 
by the empty string inside the square brackets []). Check your expressions. The 
server log file (jboss-4.x.x/server/default/log/server.log) will tell you which 
expression was being evaluated and help you pinpoint the problem.
13:50:20,246 WARN  [loggerI18N] 
[com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] 
Adding multiple last resources is disallowed. Current resource is [EMAIL 
PROTECTED]
This situation is known and documented. Please refer to section 3.5.2 
"Transaction Manager" of the jBPM BPEL 1.1.1 manual for details.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185201
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - Map LDAP Roles to Application Roles in XML

2008-10-28 Thread jej2003
I am attempting to map a Role in LDAP (admin) to a role in my application 
(Administrators).  I had thought that I could accomplish this using the 
following


  | 
  | http://www.w3.org/2001/XMLSchema-instance"; 
xmlns="http://java.sun.com/xml/ns/javaee"; 
xmlns:ejb="http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"; 
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"; version="3.0">
  |   SecuredEchoEnterpriseApplicationEJB
  |   
  | 
  | EchoBean
  | 
  | Administrators
  | admin
  | 
  | 
  |   
  |   
  |   
  |
  | 
  | 
  | admin
  | 
  | 
  | Users
  | 
  |
  | 
  | 
  | 

However when I run with this I get 

  | ERROR [RoleBasedAuthorizationInterceptor] Insufficient permissions, 
principal=jjohnson, requiredRoles=[Administrators], principalRoles=[admin]
  | 

How can I map this LDAP group admin to my Application group Administrators?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185200
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss AOP] - Re: The use of Hotswapping

2008-10-28 Thread [EMAIL PROTECTED]
Hi!

Now something else occurred to me. Have you added the jboss-aop.xml file at the 
classpath? If it did, this is the problem.

Instead, you must configure the property jboss.aop.path, pointing it to the 
location of the jboss-aop.xml file in your system.
Or, you can add to your classpath a directory called META-INF containing the 
jboss-aop.xml file.

In case I'm wrong, or none of the above works, try running it under verbose 
mode (-Djboss.aop.verbose=true) and let us know whether JBoss AOP is loading 
your .xml file or not. Also, make sure that you have prepared POJO->someMethod.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185197
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Cannot Remote Debug with jboss-eap-4.3

2008-10-28 Thread webdude
"webdude" wrote : Jboss: jboss-eap-4.3
  | IDE: IntelliJ 7.1
  | OS: Ubuntu Hardy Heron
  | 
  | No matter what I seem to do I cannot remote debug with jboss-eap-4.3. I 
keep getting the error: "Cannot connect to host http://localhost:8080";. I am 
sure that there are no other applications using that port. It happens on my 
colleagues machines as well. Now using jboss version 1.4.2 - the remote debug 
works perfectly.
  | 
  | I am sure that the JAVA_OPTS  are setup correctly especially that the port 
in the JBOSS server config in Intellij match the debug port in the my JAVA_OPTS 
config.
  | 
  | Anybody else running into this ??
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185195
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Cannot Remote Debug with jboss-eap-4.3

2008-10-28 Thread webdude
Jboss: jboss-eap-4.3
IDE: IntelliJ 7.1

No matter what I seem to do I cannot remote debug with jboss-eap-4.3. I keep 
getting the error: "Cannot connect to host http://localhost:8080";. I am sure 
that there are no other applications using that port. It happens on my 
colleagues machines as well. Now using jboss version 1.4.2 - the remote debug 
works perfectly.

I am sure that the JAVA_OPTS  are setup correctly especially that the port in 
the JBOSS server config in Intellij match the debug port in the my JAVA_OPTS 
config.

Anybody else running into this ??


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185194
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss AOP] - Re: The use of Hotswapping

2008-10-28 Thread aquatr7
Hello, 
I have added all the files of the classes and the file "jboss-aop.xml" before 
starting the application (they are compiled).

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185193
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - Re: Changes in jboss-service.xml

2008-10-28 Thread javidjamae
Ron, thanks for the detailed answer. That really clarifies everything.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185192
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - JBOSS supported versions for LiveCycle

2008-10-28 Thread mpentz
I was just curious as to what versions of JBOSS work with Adobe LiveCycle.  We 
currently utilized JBOSS4.2.2 for other applications and want to keep version 
consistency if at all possible.  JBOSS 3.0.2 is the version mentioned 
throughout documentation, however; it does not mention whether it is a minimal 
requirement or must. 

Does JBOSS4.2.2 work with Adobe LiveCycle products?

Thanks
Mike

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185191
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Message is redelivered while the original transaction is

2008-10-28 Thread timfox
"szhigunov" wrote : I get the same message received twice; in both cases 
transaction was committed. 
  | 
  | Here are the steps:
  | 1) Remote client reads message in XA from the remote JBM queue (transaction 
one).
  | 2) Client dies after JBM was prepared, but before commit.
  | 3) Client starts up, reconnects, gets the same message second time and 
commits (transaction two committed). That should not happen - transaction one 
is still in question.
  | 4) JBoss TS recovery thread finds transaction one and commits (transaction 
one committed). 
  | 
  | The JMS contract is broken. 
  | 
  | JBoss 4.2.2 + JBM 1.4.0 SP3
  | 

If you can provide a self contained test case that we can run which 
demonstrates the issue, then someone will investigate.

Best thing to do is to create a JIRA and you can attach the test case to that.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185189
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Problem with reply in pick.

2008-10-28 Thread [EMAIL PROTECTED]
The operation attribute in the reply element should match the partner link, and 
operation in the related receive/onMessage element.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185186
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss AOP] - AOP configuration in AS

2008-10-28 Thread ekobir
Hi All

I need help to configure to use Dynamic AOP in JBOSS AS?

Let me tell you the steps i have done.

1-) Download JBOSS AOP 2.0.0 GA and run build xml(jdk5.0) to install on JBOSS 
4.3.0.GA
2-) Change \deploy\jboss-aop-jdk50.deployer\META-INF\jboss-service.xml

  | true
  | 

3) Wrote interceptor class which implements iterceptor interface
4-) But jboss-aop.xml file under META-INF directory of war archive.

Basically, What I'm trying to do is LTW (load time weaving) on servletContext 
as it is provided by jboss. 


  | 
  | 
  | 
  | 
  | 
  | 

As far as i understood, prepare should be used for dynamic aop...At this point 
where should I point the interceptor implementation?

Can you send me link or provide an example for dynamic aop in jboss as?

Thanks a lot

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185185
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - JMX/JBoss + Spring integration + nullable attributes

2008-10-28 Thread gjeudy
Hi,

I'm using Spring 2.x integration with jboss JMX server version 4.2.2.GA and so 
far it worked great to publish my spring beans as MBeans. However, there is 1 
thing I don't get, I have setup a JMX operation method with parameters that 
accepts java.lang.Long types. That works fine as long as I don't supply a null 
value.

Can anybody enlighten me on how I can make the parameter optional ?

Here's the stacktrace I get:

java.lang.NumberFormatException: For input string: ""
  | 
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
  | java.lang.Long.parseLong(Long.java:424)
  | java.lang.Long.valueOf(Long.java:518)
  | sun.beans.editors.LongEditor.setAsText(LongEditor.java:24)
  | 
org.jboss.util.propertyeditor.PropertyEditors.convertValue(PropertyEditors.java:260)
  | org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:239)
  | org.jboss.jmx.adaptor.control.Server.invokeOp(Server.java:223)
  | 
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOp(HtmlAdaptorServlet.java:262)
  | 
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100)
  | 
org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doPost(HtmlAdaptorServlet.java:82)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
  | javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  | 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 
  | 

Thank you,
-Guillaume

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185184
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Performance Tuning] - Re: [JBoss 5.0-CR2] OutOfMemory JVM Crash during JIT

2008-10-28 Thread ceciiil
woops : forget to mention our JVM option at startup time : 


  | jvm_args: -Dprogram.name=pdm.bat -Xms1024m -Xmx1024m -XX:PermSize=256m 
-XX:MaxPermSize=256m -XX:+DisableExplicitGC
  | 

Also : this is running on HP Server Quad Core / Windows 2003 SP2 / 4GB Memory. 
When the JVM crashes the GC output is : 


  | 
  | {Heap before GC invocations=506 (full 0):
  |  PSYoungGen  total 108032K, used 103148K [0x4c81, 0x539d, 
0x539d)
  |   eden space 99840K, 100% used [0x4c81,0x5299,0x5299)
  |   from space 8192K, 40% used [0x5299,0x52ccb3c0,0x5319)
  |   to   space 7808K, 0% used [0x5323,0x5323,0x539d)
  |  PSOldGentotal 932096K, used 653196K [0x139d, 0x4c81, 
0x4c81)
  |   object space 932096K, 70% used [0x139d,0x3b7b3240,0x4c81)
  |  PSPermGen   total 262144K, used 104506K [0x039d, 0x139d, 
0x139d)
  |   object space 262144K, 39% used [0x039d,0x09fdeb50,0x139d)
  | 823.775: [GC [PSYoungGen: 103148K->4727K(108736K)] 
756345K->659744K(1040832K), 0.0289539 secs] [Times: user=0.06 sys=0.02, 
real=0.03 secs] 
  | Heap after GC invocations=506 (full 0):
  |  PSYoungGen  total 108736K, used 4727K [0x4c81, 0x539d, 
0x539d)
  |   eden space 100928K, 0% used [0x4c81,0x4c81,0x52aa)
  |   from space 7808K, 60% used [0x5323,0x536cdec0,0x539d)
  |   to   space 7744K, 0% used [0x52aa,0x52aa,0x5323)
  |  PSOldGentotal 932096K, used 655016K [0x139d, 0x4c81, 
0x4c81)
  |   object space 932096K, 70% used [0x139d,0x3b97a250,0x4c81)
  |  PSPermGen   total 262144K, used 104506K [0x039d, 0x139d, 
0x139d)
  |   object space 262144K, 39% used [0x039d,0x09fdeb50,0x139d)
  | }
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185182
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Performance Tuning] - [JBoss 5.0-CR2] OutOfMemory JVM Crash during JIT

2008-10-28 Thread ceciiil
We have a JEE application running with EJB2 that we have migrated to EJB3. 

Before migration, this app runs perfectly on JBoss 423 compiled on JDK5 with 
runtime JRE5 and JRE6 (not at the same time though) up to 50 simulatneous users 
on a single JBoss instance.

After migration to EJB3, we are experiencing this error on both JRE5 and JRE6 
as of 5 simultaneous users : 


  | 
  | # java.lang.OutOfMemoryError: requested 2292728 bytes for Chunk::new. Out 
of swap space?
  | 
  | Current thread (0x54092800):  JavaThread "CompilerThread0" daemon 
[_thread_in_native, id=4092, stack(0x5428,0x542d)]
  | 
  | Stack: [0x5428,0x542d]
  | [error occurred during error reporting (printing stack bounds), id 
0x8001]
  | 
  | Current CompileTask:
  | C2:4692  com.lectra.pdm.enterpriselayer.server.productmanagement ...
  | 
  | 

We don't have this problem if we force JVM options so that it only runs in 
interpreted mode (-Xint). We also have created a file with the list of methods 
we want to keep out of the JIT, gave this to the JVM as startup option and it 
works longer. But it eventualy crashes.

Any recommendation to fix this issue ? Needless to say this is a showstopper 
for us as far as upgrade to EJB3 / JBoss 5 is concerned.

We didn't want to use JBoss 423 as it is not fully JEE compliant and this is a 
strong constraint for our software solution. 

Many thanks in advance for your help !


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185181
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - How do I get Tomcat to display the real ip address of the cl

2008-10-28 Thread kejoseph
Hi,

I have a n-tier architecture, with JBoss in the Web tier and also in the App 
tier. The web tier talks to a load balancer to get to the JBoss instances in 
the App tier. The clients ip address displays correctly in the access log files 
in the web tier ; but in the app tier I see the ip address of the load 
balancer. I want the access log files in both the Web tier and App tier to 
display the ip address of the client. How do I make this happen with 
JBoss/Tomcat ?

-Kevin.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185177
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: ClassCastException using same jar file

2008-10-28 Thread [EMAIL PROTECTED]
Are you using topics?

https://jira.jboss.org/jira/browse/JBMESSAGING-1386
https://jira.jboss.org/jira/browse/JBMESSAGING-1277

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185171
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA/JBoss] - Re: connectionMap.remove in WrapperDatasourceService never c

2008-10-28 Thread ladam
Hi,

after I haven't heard something from Adrian I've filed it as a bug- please find 
the reference @ https://jira.jboss.org/jira/browse/JBAS-6149.

@rochi: I've also attached the patched WrapperDataSourceService for you, hope 
that helps. We haven't yet tested in production, so please have a look at it 
for yourself before you use it in your production.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185170
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Message is redelivered while the original transaction is sti

2008-10-28 Thread szhigunov
I get the same message received twice; in both cases transaction was committed. 

Here are the steps:
1) Remote client reads message in XA from the remote JBM queue (transaction 
one).
2) Client dies after JBM was prepared, but before commit.
3) Client starts up, reconnects, gets the same message second time and commits 
(transaction two committed). That should not happen - transaction one is still 
in question.
4) JBoss TS recovery thread finds transaction one and commits (transaction one 
committed). 

The JMS contract is broken. 

JBoss 4.2.2 + JBM 1.4.0 SP3


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185168
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: cannot find jboss-seam.jar file (plea for help!)

2008-10-28 Thread tdruttenberg
woops. I just realized this is the totally wrong forum.
sorry about that.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185167
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Re: How do I receve notifications of FAILED deployment?

2008-10-28 Thread thitoh
I think it's impossible

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185166
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: No active transaction

2008-10-28 Thread areian
It's EJB 3.0, and I'm using whichever is the default transaction attribute (Do 
you have to specify the attribute explicitly?)

Also, I don't know if there is any point in mentioning it, but it is running on 
an OS X box.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185164
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - cannot find jboss-seam.jar file (plea for help!)

2008-10-28 Thread tdruttenberg
I'm sure this is must be a simple question.  Hopefully.

I have Eclipse 3.4
I installed JBoss Tools Alpha1 3.0.0 including SeamTools feature. Forgive the 
ignorant question, but is this the same as jboss-seam-2.1.0.GA? I downloaded 
jboss-seam-2.1.0.GA separately in my quest for a jboss-seam.jar file.

The problem I ran into is that when I created a Seam Project in eclipse, I got 
to the point of having to create a "Seam Runtime" in the Seam facet dialog box. 
 I was unable to do se because I could not locate a jboss-seam.jar file.  I 
gather this is an important file. :-)  I searched my entire C drive and it was 
not there.  So I downloaded "Seam" separately in the form of 
jboss-seam-2.1.0.GA.

I am normally quick at picking up new technologies, but I have been stymied in 
trying to to get my head around this Java/IDE/Seam/etc. etc. alphabet soup.  I 
come from a sys admin perl/cgi background and I'm finding the learning curve to 
be a bit much here.

If there is anyone out there willing to exchange private email to answer a raft 
of dumb questions for a day or so, as I work to understand this, I'd be most 
appreciative.  Please feel free to do so as well as responding to this posting 
about the elusize jboss-seam.jar file.

I just really want to understand thoroughly how this all works.

Thanks.
TDR
[EMAIL PROTECTED]


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185156
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: No Classloaders found for ProviderImpl

2008-10-28 Thread tomstrummer
Ooh!  I changed the JAX-WS and JAXB JARs to "provided" dependencies and it 
looks like it's working now.  Yipee!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185154
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: ClassCastException using same jar file

2008-10-28 Thread pasalic.zaharije
Yes.

I partialy solve this by seting UseJBossWebLoader to true. But, this introduce 
some die effects with our custom log configuration (Console looping problem 
)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185151
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss AOP] - Re: The use of Hotswapping

2008-10-28 Thread [EMAIL PROTECTED]
anonymous wrote :  Adding a jboss-aop.xml file at runtime won't take effect.
I mean that adding a jboss-aop.xml file to classpath at runtime won't take 
effect.
You can, however, load the xml file with 
org.jboss.aop.AspectXMLLoader.deployXML(URL).

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185149
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Strip Down Jboss 4.2.x version??

2008-10-28 Thread PeterJ
See http://www.jboss.org/community/docs/DOC-10177

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185146
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Getting Started Documentation] - Re: Changelog from 4.0.5 to 4.2.3

2008-10-28 Thread PeterJ
Personally, I don't fine the JIRA changelog that helpful. It lists a multitude 
of JIRA issues that were fixed and many of the subject lines and descriptions 
leave much to be desired. A better summary of what changed can be found in the 
release notes - the readme.html file that comes with JBossAS (the 4.2.3 readme 
file contains all changes since 4.0.5).

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185145
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: EJB3 MDB Dynamic Destination

2008-10-28 Thread PeterJ
In your NETA-INF/ejb-jar.xml, place:


  |   
  | 
  |   ...
  |   
  | 
  |   
destination
  |   
queue/SomeQueueName
  | 
  |   
  | 
  |   
  | 

All of the @ActivationConfigProperty annotation values can be set this way.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185141
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - share an EJB3 layer between 2 ear files(advanced question)

2008-10-28 Thread deanhiller
I already have two posts on seam on this but I thought it might be a JBoss 
question now that I think about it more.  Here is the previous two posts..

http://www.seamframework.org/Community/ShareAnEJB3LayerBetweenTwoEars#comment48854

http://seamframework.org/Community/CantFindAPersistenceUnitNamedNull

Basically, I can't seem to deploy an entities.jar in the deployment directory 
and have two ear files use it.  I have been reading up on classloader config 
with loader-repository and such but it seams that each ear file loads the EJB 
into it's own classloader.  I really want them to both just have entities.jar 
in a parent classloader so then the apps are separate, but they share 
entities.jar.  After all, I can do this EASILY in OSGi, and isn't JBoss now 
based on OSGi so I would think in the future I could do it, but the question 
is, is it doable today?

I want the two apps sharing entites.jar AND the cache that goes with it so the 
apps can be more performant together as the users switch between apps.
thanks,
Dean


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185138
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: No active transaction

2008-10-28 Thread PeterJ
EJB 2.x or 3.0?

What transaction attribute are you using? Hopefully not "mandatory".

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185136
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossMQ] - Re: Problem Configuring JMS Client for Websphere MQ

2008-10-28 Thread Nordmeyer
Finally the mbean declaration with
 
  | 
works.

The IBM link seems to describe the procedure that works.

CU,
 Thomas

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185135
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: hide the .jsp extension from pages

2008-10-28 Thread PeterJ
Try adding this to your web.xml:


  |   ContactJsp
  |   /contact.jsp 
  | 
  | 
  |   ContactJsp
  |   /contact
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185134
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Strip Down Jboss 4.2.x version??

2008-10-28 Thread bronzeiii
Hello

I guess I personally feel deploy directory deploys more services than I really 
need.  

like.. do i really need jboss-aop, jmx-console and so on? I think I really just 
need ejb3.deployer and jboss-web.deployer and jmx if i want to usea JEE server 
right? 

Thanks

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185130
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: NPE with GPD after upgrading to 3.1.3.SP1

2008-10-28 Thread chawax
After investigation, the problem occurs when I set an expression for an 
"action" node. There's already a JIRA filed for this : 
https://jira.jboss.org/jira/browse/JBIDE-2449. I tried with JBoss Tools 
3.0.0.Alpha1, same problem.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185128
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Having problem to configure with Eclipse EE.

2008-10-28 Thread PeterJ
What operating system are you running? Based on the "unknown protocol: c" error 
message, I am going to assume Windows. I suggest running listdlls or Process 
Explorer, both available from 
http://technet.microsoft.com/en-us/sysinternals/default.aspx and use them to 
determine the full command line used to launch JBossAS. Post that command line.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185126
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Getting Started Documentation] - Changelog from 4.0.5 to 4.2.3

2008-10-28 Thread marcopb
Hi all. This is my first post and I don't know this is the right forum.. 

I would like to have information about difference between 4.0.5 version and 
4.2.3, if 4.2.3 is totally compatible with 4.0.5 and what are the new features 
in 4.2.3 compared with 4.0.5.

I've found this link:
http://www.jboss.org/community/docs/DOC-10734
but the link 4.0.5 -> 4.2.0 Changelog
http://jira.jboss.com/jira/secure/ConfigureReport.jspa?versions=12311408&versions=12311037&versions=12310819§ions=.1.7.2.4.6.9.8.3.5&style=none&selectedProjectId=10030&reportKey=pl.net.mamut%3Areleasenotes&Next=Next
is not working.

Thanks for your help.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185123
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: JBoss and Apache virtual host config- mod_jk

2008-10-28 Thread Ponvinayagan
Try adding the following configuration,

JkMount /* worker1

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185122
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: Client call fails using JBossWS

2008-10-28 Thread tomstrummer
Thanks Alessio.  

I found this documentation which I think you're referring to:
http://jbossws.jboss.org/mediawiki/index.php?title=JAX-WS_Client_Configuration

So, can I define my own jaxws-client-config.xml that will by default be used by 
my WS client?  Or do I have to call the service.getPort... setConfigName call?

Thanks.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185120
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: Loading configuration files via JNDI

2008-10-28 Thread Edrusiani
thanks for the hint.

i tried that, now the exception shows the message "could not dereference 
object". i'm reading some documentation on it, yet if you have any other hint, 
it'll be very appreciated :)

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185117
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: No Classloaders found for ProviderImpl

2008-10-28 Thread tomstrummer
That definitely helped me find my problem.  Apparently the JBossWS-native libs 
were still in jboss-4-2-3.GA/lib/endorsed.  I removed all of the jaxws_.jars 
from that directory and it got me a little futher at least.  

Then I battled my way through the forests of XML API versioning until I came to 
face a new beast when invoking the WS client:


  | com.sun.xml.ws.api.client.ServiceInterceptorFactory: Provider 
com.sun.xml.ws.policy.jaxws.client.PolicyServiceInterceptorFactory is specified 
in 
jar:file:/home/tnichols/dev/sandbox/jboss-4.2.3.GA-metro/server/default/deploy/jbossws.sar/jbossws-metro-wsit-rt.jar!/META-INF/services/com.sun.xml.ws.api.client.ServiceInterceptorFactorybut
 could not be instantiated: java.lang.ClassCastException 
(com.sun.xml.ws.util.ServiceConfigurationError)
  |   com.sun.xml.ws.util.ServiceFinder:233 (null)
  | java.lang.ClassCastException
  | at java.lang.Class.cast(Class.java:2990)
  | at 
com.sun.xml.ws.util.ServiceFinder$LazyIterator.next(ServiceFinder.java:374)
  | at 
com.sun.xml.ws.api.client.ServiceInterceptorFactory.load(ServiceInterceptorFactory.java:80)
  | at 
com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:202)
  | at 
com.sun.xml.ws.client.WSServiceDelegate.(WSServiceDelegate.java:175)
  | at 
com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:104)
  | at javax.xml.ws.Service.(Service.java:56)
  | at 
com.pjm.emkt.emkt.xml.wsdl.MarketQueryService.(MarketQueryService.java:46)
  | 

I'm using the jbossws-metro v3.0.4 (installed on the server) along with 
jaxws-api-2.1 and jaxws-rt-2.1.4 from Maven in my EAR classpath.

Thanks again for the help.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185114
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Struts 2 protlet plugin. Validation errors.

2008-10-28 Thread Timmmm
Hi.
I have some errors while validating my form.

struts.xml

  |  
  | 
  | /WEB-INF/jsp/view/addRequest.jsp
  | /WEB-INF/jsp/view/addRequest.jsp
  | /WEB-INF/jsp/view/ok.jsp
  | 
  | 
  | 
AddClientRequestAction

public class AddClientRequestAction extends ActionSupport {
  | private String a = "a";
  |  
  | @Override
  | public String execute() throws Exception {
  | System.out.println("a: " + a);
  |  
  |  
  | if (isInvalid(a)) return INPUT;
  | addActionMessage("my action message");
  | return SUCCESS;
  | }
  |  
  | public String getA() {
  | return a;
  | }
  |  
  | public void setA(String a) {
  | this.a = a;
  | }
  |  
  | public void validate() {
  | System.out.println("AddClientRequestAction - VALIDATE!!!");
  | super.validate();
  | }
  |  
  | private boolean isInvalid(String value) {
  | return (value == null || value.length() == 0);
  | }
  | }
  | 
Exception

2008-10-27 18:56:52,452 ERROR 
[org.jboss.portal.core.model.portal.control.page.DefaultPageControlPolicy] 
Rendering portlet window produced an error
javax.portlet.PortletException: Error executing action renderDirect

Caused by: javax.portlet.PortletException: org.apache.jasper.JasperException: 
java.lang.NullPointerException
at 
org.jboss.portal.portlet.impl.jsr168.api.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:91)
...
interesting part

Caused by: java.lang.NullPointerException
at java.text.MessageFormat.applyPattern(MessageFormat.java:422)
at java.text.MessageFormat.(MessageFormat.java:350)
at 
com.opensymphony.xwork2.DefaultTextProvider.getText(DefaultTextProvider.java:70)
at 
com.opensymphony.xwork2.DefaultTextProvider.getText(DefaultTextProvider.java:111)
at 
org.apache.struts2.util.TextProviderHelper.getText(TextProviderHelper.java:62)
at 
org.apache.struts2.util.TextProviderHelper.getText(TextProviderHelper.java:105)
at org.apache.struts2.components.UIBean.evaluateParams(UIBean.java:631)
at org.apache.struts2.components.UIBean.end(UIBean.java:509)
at 
org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
at 
org.apache.jsp.WEB_002dINF.jsp.view.addRequest_jsp._jspx_meth_s_005ftextfield_005f0(addRequest_jsp.java:200)
at 
org.apache.jsp.WEB_002dINF.jsp.view.addRequest_jsp._jspx_meth_s_005fform_005f0(addRequest_jsp.java:132)
at 
org.apache.jsp.WEB_002dINF.jsp.view.addRequest_jsp._jspService(addRequest_jsp.java:73)

Extract from line 422 of MessageFormat.java as it is in Java 1.6.0_07:

for (int i = 0; i < pattern.length(); ++i) {

It seems that, struts 2 validator can't find message patterns. But i tried a 
great numbers of message mapping, and with out localized messages only 
addErrorMessage("error") method.

Could anyone help me with this error?
Thanks.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185113
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - Problem with Client-Cert Authentication

2008-10-28 Thread gets0ul
Hi,
We have a problem in a web applicaton with the client authentication trough a 
certificate.
We need this: when a user access in the web app, he must choose a certificate 
from a browser's modal window which read the certificates available 
on smart card.
We followed the procedure described in 
http://www.jboss.org/community/docs/DOC-9160 and it works but I must import the 
client certificate into the 
browser storage. We need that the browser asks for a certificate from user's 
smart card, because this certificate contains the user credentials
(such as firstname, lastname and userid).
Is appreciated if anyone have some advices or some resources about this problem.
Thanks.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185112
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - NPE with GPD after upgrading to 3.1.3.SP1

2008-10-28 Thread chawax
Hi,

After upgrading JBoss jBPM JPDL designer from 3.1.0.GA to 3.1.3.SP1 (bundled 
with JBoss Tools), I can't open some process definition files with the 
graphical designer. I have the following stack trace :

java.lang.NullPointerException
  | at org.jbpm.gd.jpdl.xml.EsbNodeMapper.accept(Unknown Source)
  | at 
org.jbpm.gd.common.registry.XmlAdapterRegistry.getConfigurationElementByXmlNode(Unknown
 Source)
  | at org.jbpm.gd.common.xml.XmlAdapterFactory.createAdapter(Unknown 
Source)
  | at 
org.eclipse.wst.sse.core.internal.provisional.AbstractAdapterFactory.adaptNew(AbstractAdapterFactory.java:120)
  | at 
org.eclipse.wst.sse.core.internal.provisional.AbstractAdapterFactory.adapt(AbstractAdapterFactory.java:64)
  | at org.jbpm.gd.common.xml.XmlAdapterFactory.adapt(Unknown Source)
  | at org.jbpm.gd.common.xml.XmlAdapter.getAdapter(Unknown Source)
  | at org.jbpm.gd.common.xml.XmlAdapter.initialize(Unknown Source)
  | at org.jbpm.gd.jpdl.xml.ProcessDefinitionDomAdapter.initialize(Unknown 
Source)
  | at org.jbpm.gd.common.editor.Editor.getSemanticElement(Unknown Source)
  | at org.jbpm.gd.common.editor.Editor.initSourcePage(Unknown Source)
  | at org.jbpm.gd.common.editor.Editor.createPages(Unknown Source)
  | at org.jbpm.gd.jpdl.editor.JpdlEditor.createPages(Unknown Source)
  | at 
org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:283)
  | at 
org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
  | at 
org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:426)
  | at 
org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)
  | at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:299)
  | at 
org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:179)
  | at 
org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
  | at 
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
  | at 
org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:400)
  | at 
org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
  | at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
  | at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1604)
  | at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
  | at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
  | at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
  | at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
  | at 
org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
  | at 
org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
  | at 
org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
  | at 
org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:774)
  | at 
org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:673)
  | at 
org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:634)
  | at 
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2737)
  | at 
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2651)
  | at 
org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:2643)
  | at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2595)
  | at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
  | at 
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2590)
  | at 
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2574)
  | at 
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2565)
  | at org.eclipse.ui.ide.IDE.openEditor(IDE.java:644)
  | at org.eclipse.ui.ide.IDE.openEditor(IDE.java:603)
  | at 
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:286)
  | at 
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:139)
  | at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:194)
  | at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:175)
  | at 
org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:268)
  | at 
org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:244)
  | at 
org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:316)
  | at 
org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$5.open(PackageExplorerPart.java:613)
  | at 
org.eclipse.jface.viewers.Struc

[jboss-user] [EJB 3.0] - EJB3 MDB Dynamic Destination

2008-10-28 Thread CBax007-2
Is there any way to setup an EJB3 MDB in JBoss so that I can set the 
destination at runtime as oppose to being hardcoded in an annotation.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185107
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss AOP] - Re: How to annotate in opposite way

2008-10-28 Thread [EMAIL PROTECTED]
You can use the negation operator !.

First, take a look at the expression bellow:

call(* com.a..->*(..)) AND within(com.b..)

It will match every call to a method of a class in package com.a made by a 
class at package com.b

If you use this in a declare error tag, it will forbid any calls from classes 
of com.b to methods of classes of package com.a.

But this is not what you want. You have exceptions to this rule. There are 10 
methods you want to allow being called by classes at com.b. In this case, you 
can use AND ! (and not):

call(* com.a..->*(..)) AND within (com.b..) AND !(call() OR 
call() OR ... OR call())

Whereas  stands for the expression matching  the ith method you want 
to be allowed to be called, like:
* com.a.NameoftheClass->method1(..)

So, the expression above will forbid any calls from classes at package com.b 
made to methods of classes belonging to package com.a, except if those methods 
are one of the methods that match one of the expressions method_i.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185103
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss AOP] - Re: The use of Hotswapping

2008-10-28 Thread [EMAIL PROTECTED]
Just to confirm that we are on the same page. Have you compiled your java files 
after editing them? And restarted your application?

Notice that there is no such thing as hot deployment on standalone 
applications. Adding a jboss-aop.xml file at runtime won't take effect.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185100
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Having problem to configure with Eclipse EE.

2008-10-28 Thread Wolfgang Knauf
Hi,

do you have spaces in your JBoss/Eclipse/workspace path? Googling for the 
exception message brings some reports about spaces.

Hope this helps

Wolfgang

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185094
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss AOP] - Re: The use of Hotswapping

2008-10-28 Thread aquatr7
Hello, 
I want to add that I have copied "java" files in the "src" folder:
 - ConstructorInterceptor.java
 - Driver.java
 - InstanceInterceptor.java
 - POJO.java
 - SimpleInterceptor.java
and I added in the classpath the file "jboss-aop.xml".
Then I have made the modifications that I have described in the previous 
message in the "main" method of the class "Driver".
I will be very grateful for the help.
Thank you. 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185093
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - Re: Accessing a secure EJB from standalone Java client

2008-10-28 Thread Wolfgang Knauf
Those two lines are a bit strange:
InitialContext ctx = new InitialContext(env); 
  | 
  | InitialContext ctx = b.getInitialContext();
I guess, that line 60 is the one with the error?

Do you use an application client or a web client? For application clients, you 
MUST specifiy the JNDI connection properties on creating the InitialContext:
  Properties props = new Properties();
  |   props.setProperty(Context.INITIAL_CONTEXT_FACTORY, 
"org.jnp.interfaces.NamingContextFactory");
  |   props.setProperty(Context.URL_PKG_PREFIXES, 
"org.jboss.naming.client");
  |   props.setProperty(Context.PROVIDER_URL, "jnp://localhost:1099");
  |   
  |   InitialContext initialContext = new InitialContext(props);

Hope this brings us a bit further (though I am not really a professionel on 
JAAS)

Wolfgang

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185087
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Jboss SEAM GWT Example not working

2008-10-28 Thread feroza
Thanks

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185086
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossMQ] - MessageDriven component stops listening to the queue

2008-10-28 Thread trouby
Hey,

We have a small EJB3 with a method based on timer that sends JMS messages as 
follows:


  | @Stateless()
  | public class ScannerBean implements ScannerLocal {
  | @Timeout
  | public void sendMessages(Timer timer) {
  | InitialContext ctx = new InitialContext();
  | queue = (Queue) ctx.lookup("queue/velo/TasksDefaultQueue");
  | QueueConnectionFactory factory = (QueueConnectionFactory) 
ctx.lookup("ConnectionFactory");
  | connection = factory.createQueueConnection();
  | session = 
connection.createQueueSession(false,QueueSession.AUTO_ACKNOWLEDGE);
  | messageProducer = session.createProducer(queue);
  | messageProducer.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
  | BytesMessage bytesMsg = session.createBytesMessage();
  | bytesMsg.setLongProperty("uniqueId", uniqueId);
  | messageProducer.send(bytesMsg);
  | }
  | }
  | 



This component seems to work just fine and the messages are successfully stored 
on the JMS queue.



We have a very simple MessageDriven bean that listens to a JMS queue as follows:


  | @MessageDriven(name="TaskExecuterMessageBean", activationConfig = {
  | @ActivationConfigProperty(propertyName = "acknowledgeMode", 
propertyValue = "Auto-acknowledge"),
  | @ActivationConfigProperty(propertyName="destinationType", 
propertyValue="javax.jms.Queue"),
  | @ActivationConfigProperty(propertyName="destination", 
propertyValue="queue/velo/TasksDefaultQueue")
  | })
  | public class MDBTaskExecuter implements MessageListener {
  | 
  | @EJB
  | public SomeManager someManager;
  | 
  | @Resource
  | private MessageDrivenContext context;
  | 
  | public void onMessage(Message msg) {
  |   long uniqueId = bm.getLongProperty("uniqueId");
  | 
  |  try{
  |   someManager.process(uniqueId);
  |  }catch(Exception e) {
  |context.setRollbackOnly();
  |  }
  | }
  | }
  | 



Seems like this MessageDriven component suddenly stops receiving the messages 
and the queue grows up with not handled messages.

What may cause the MessageDriven bean suddenly stops working? is it a bug? 
there are any opened issues about this problem?




Thanks in advanced,

Asaf.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185085
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - Re: JAAS and OpenLdap configuration

2008-10-28 Thread jej2003
my mistake, wrong annotation.  Works as expected!

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185082
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - JBoss Server connects to different DB

2008-10-28 Thread adik
Hi All,
If can help, I've problem that the Jboss server connects to other DB in the 
network and not to the DB that is set in the deploy/oracle-ds.

the server starts with -Djboss.partition.name
that is different from the other server partition.name

IF you can try to help.

Thanks

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185081
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - Re: Accessing a secure EJB from standalone Java client

2008-10-28 Thread jej2003

  | Properties env = new Properties();
  | env.setProperty(Context.INITIAL_CONTEXT_FACTORY, 
"org.jboss.security.jndi.JndiLoginInitialContextFactory");
  | env.setProperty(Context.PROVIDER_URL, "jnp://localhost:1099");
  | InitialContext ctx = new InitialContext(env); 
  | 
  | InitialContext ctx = b.getInitialContext();
  | EchoBeanRemote echoBean = (EchoBeanRemote) 
ctx.lookup("SecuredEchoEnterpriseApplication/EchoBean/remote");
  | 

the error is


  | Exception in thread "main" java.lang.NullPointerException
  | at 
org.jboss.security.jndi.JndiLoginInitialContextFactory.getInitialContext(JndiLoginInitialContextFactory.java:95)
  | at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
  | at 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
  | at javax.naming.InitialContext.init(InitialContext.java:223)
  | at javax.naming.InitialContext.(InitialContext.java:197)
  | at test.client.Client.main(Client.java:60)
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185080
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - Re: JAAS and OpenLdap configuration

2008-10-28 Thread jej2003
So I switched to the LdapExtLoginModule and I have this working, but I am 
seeing some unexpected behavior.

I have 2 groups, Administrators and Users.  I have a user that is a member of 
only one of those groups, in this case Administrators.  If I have a function 
that has the @RolesAllowed={"Administrators", "Users"} I get a permission 
denied complaining that the user does not have the RequiredRoles.  It seems as 
if the LdapExtLoginModule is requiring the user to be a member of both groups 
instead of just 1 which is the opposite of what the UsersRolesLoginModule does 
which will work if the user is a member of either.  Is there a way to force 
these two Modules to act the same?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4185078
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


  1   2   >