[jboss-user] [JBoss Messaging Users] - Re: problem using JmsXA resouce adapter

2009-10-25 Thread bershath27
Can I take a look at the full error message please ?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4261999#4261999

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4261999
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JCA] - Re: ClassNotFoundException when moving JCA adaptor from 4.2.

2009-10-25 Thread vickyk
pwnell wrote : I *do* make use of jboss-app.xml files - in the RAR and in the 
ear. In the RAR file: 
jboss-app.xml would not be considered in RAR, can you have 
jboss-classloading.xml with the same name for domain as you have for EAR.
Check if things work then, if it does not that I can have a deep dive it this 
case.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4262005#4262005

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4262005
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss OSGi Users] - Re: OSGi Bundle clustered (farming) deployment ?

2009-10-25 Thread thomas.dies...@jboss.com
Hi Cedric, good post - I'll take care of it.

Please monitor https://jira.jboss.org/jira/browse/JBOSGI-191
for progress.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4262009#4262009

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4262009
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss OSGi Users] - Re: OSGi Bundle clustered (farming) deployment ?

2009-10-25 Thread thomas.dies...@jboss.com
Hi Cedric, good post - I'll take care of it.

Please monitor https://jira.jboss.org/jira/browse/JBOSGI-191
for progress. Having said that, I'll have to look into the details of state 
replication in case of clustered OSGi bundles.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4262010#4262010

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4262010
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration Deployment] - Forcing a .war to load after a .ear

2009-10-25 Thread icordoba
Hello,
I had several applications installed in JBoss 4 and had no problems with them. 
I had modified deployment sorter to make war file deploy after the 
corresponding ear file. For come reasons I need to have the war file outside 
the ear file, which only contains .jar files with EJBs. This was no problem for 
JBoss 4.

I am trying to migrate to JBoss 5. After some minor changes in code lookup, 
they work ok, but I cannot make war's to deploy after .ear when launching JBoss 
(When JBoss is runningI touch web.xml and they deploy OK)

I've read in several threads I can use depends tag in jboss-web.xml file. 
I've done it inserting there the JMX id of some EJBs.


dependsjboss.j2ee:ear=tuportal3.ear,jar=tuportal3.jar,name=PortalManager,service=EJB3/depends
  | 

Then, I start JBoss and the war actually  loads after the ear, but it seems 
that the ear is not already fully loaded. I get the following error:

2009-10-25 13:46:36,195 ERROR [com.servengine.util.ServletContextUtils] 
(HDScanner) ServletContextUtils: RuntimeException: 
  | org.jboss.ejb3.common.registrar.spi.NotBoundException: Object is bound at 
key 
jboss.j2ee:ear=tuportal3.ear,jar=tuportal3.jar,name=PortalManager,service=EJB3, 
but is not fully installed, instead of state: controllerst...@1ba6b028{start}
  | 

The id of the EJB (PortalManager) is right as when deploying the war manually 
(touching web.xml) it works ok.

Any ideas about what I am missing?

By the way. I cannot find the .ear it self when browsing jboss.deployment MBean 
in JMX Console. I just see an entry for every EJB. Is it possible to refer to 
the .ear itself some way in depends property in jboss-web.xml so my war does 
depend on the .ear and not on a particular EJB(s) in that ear?

thanks for any help

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4262011#4262011

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4262011
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss OSGi Users] - Re: Classloader question

2009-10-25 Thread thomas.dies...@jboss.com
lixlix wrote : 
  | I either need to access an OSGi-provided service in a SLSB or in a JSF 
Backing Bean. Are there any plans for EJB/OSGi support 
  | 

Sure, please monitor https://jira.jboss.org/jira/browse/JBOSGI-192

lixlix wrote : 
  | If I deploy the WAR into the OSGi container, is its functionality 
distributed via the JBossAS or via the OSGi-embedded Jetty

Not sure what you mean here. The request is currently answered by the PAX-Web 
embedded Jetty. An OSGi webapp is currently not distributed in a cluster.

Please monitor https://jira.jboss.org/jira/browse/JBOSGI-193



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4262012#4262012

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4262012
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [jBPM Users] - Conditional Task Assignment with Fork

2009-10-25 Thread pradeep.gulla
Is it possible to assign conditional tasks with Fork node in JBPM.

As per my requirement, workflow should allow optional Parallel tasks and a 
mandatory sequential task.
But I'm getting some issues while conditionally assign tasks with fork.

Process definition:


  | ?xml version=1.0 encoding=UTF-8?
  | process name=conditional_task version=1 
xmlns=http://jbpm.org/4.0/jpdl;
  | start g=27,32,80,40
  | transition to=Validate Approval Seqence/
  | /start
  | !-- Checks which sequence to initiate ie., Either Parallel or 
Sequential --
  | decision expr=#{isOptionalTasksExists} name=Validate Approval 
Seqence g=257,31,80,40
  | transition name=true  to=Assign Parallel Tasks g=-24,2/
  | transition name=false to=Sequential Task 
g=564,54:-75,-21/
  | /decision
  | !-- Parallel Task Assignment --
  | fork name=Assign Parallel Tasks g=258,139,80,40
  | transition to=validateFirstParallelTask/
  | transition to=validateSecondParallelTask/
  | /fork
  | !-- Conditional Task Assignment --
  | decision name=validateFirstParallelTask g=135,221,80,40
  | transition to=First Parallel Task
  | condition expr=#{firstParallelApprover != null}/
  | /transition
  | /decision
  | task assignee=#{firstParallelApprover} name=First Parallel Task 
g=71,325,169,40
  | transition name=Approve to=wait for other tasks 
g=-45,-18/
  | /task
  | decision name=validateSecondParallelTask g=384,221,80,40
  | transition to=Second Parallel Task
  | condition expr=#{secondParallelApprover != null}/
  | /transition
  | /decision
  | task assignee=#{secondParallelApprover} name=Second Parallel Task 
g=308,324,204,40
  | transition name=Approve to=wait for other tasks 
g=-45,-18/
  | /task
  | join name=wait for other tasks g=270,436,80,40
  | transition to=Sequential Task/
  | /join
  | !-- Sequential Task --
  | task assignee=#{sequentialApprover} name=Sequential Task 
g=494,437,147,40
  | transition name=Approve to=Finish g=-45,-18/
  | /task
  | end name=Finish state=Completed g=778,431,80,40/
  | /process

This definition forces me to supply either (2 Parallel and 1 Sequential) or (0 
Parallel and 1 Sequential) approvers, but not 1 Parallel and 1 Sequential.

Thanks in Advance

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4262014#4262014

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4262014
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Spring Integration] - Re: Help/instructions for installing and using JBoss Spring

2009-10-25 Thread marius.bogoevici
Hi there,

I'm very close to posting the project site for Snowdrop - which is the JBoss 
project that encompasses the JBoss-Spring integration utilities, so hopefully 
you'll find there more information about this, but here are some quick pointers.

1) Extract the zip in the deployer folder. So you should see something like 
this:

jboss-home/server//deployer/jboss-spring-3.2.deployer/

2) Make sure that you have a Spring application context in your deployment (the 
deployer is looking under META-INF/ for a file (or files) that matches 
*-spring.xml - so jboss-spring.xml, myapp-spring.xml are valid names)

3) If you want to inject Spring beans from those application contexts into 
EJBs, you need to define @Interceptors(SpringLifecycleInterceptor.class) on the 
bean class and then use @Spring for each dependency you want to inject. A 
complete example is available here:

http://anonsvn.jboss.org/repos/jbossas/projects/snowdrop/trunk/documentation/samples/horoscope

Hope that helps,
Marius


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4262016#4262016

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4262016
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration Deployment] - Migration to JBoss 5, Scheduler not working

2009-10-25 Thread osnetwork
Hello everybody,

I'm trying to port my application from JBoss AS 4.x to JBoss 5.1.

The application seems to be deployed fine. In fact inside my EAR I have various 
jar and a WEB application
The fact that the WEB application is working fine means that also the other 
jar/EJBs are deployed and working correctly.

The problem is that in my application I have defined a service inside the 
META-INF of the EAR like that:
?xml version=1.0 encoding=UTF-8?
  | server
  | mbean code=org.jboss.varia.scheduler.Scheduler
  |name=com.os:service=Scheduler
  | attribute name=StartAtStartuptrue/attribute
  | attribute 
name=SchedulableClasscom.os.schedule.LobbyScheduler/attribute
  | attribute name=SchedulableArgumentslobbyTopic,1/attribute
  | attribute 
name=SchedulableArgumentTypesjava.lang.String,long/attribute   
 
  | attribute name=InitialStartDateNOW/attribute
  | attribute name=SchedulePeriod5000/attribute
  | attribute name=InitialRepetitions-1/attribute
  | !-- 
  | 
dependsjboss.j2ee:service=EARDeployment,url='gamgamEAR.ear'/depends
  | 
dependsjboss.j2ee:url='gamgamEAR.ear',service=EARDeployer/depends
  | 
dependsjboss.j2ee:jndiName=gamgamEAR/LobbyManager/local,service=EJB3/depends

  |  --
  | dependsjboss.j2ee:url='gamgamEAR.ear',service=EJB3/depends
  | /mbean
  | /server
basically it should call every 5 seconds a class LobbyScheduler that implements 
the org.jboss.varia.scheduler.Schedulable interface.

the problem is that I always get the same error, that comes from the  tag.
DEPLOYMENTS MISSING DEPENDENCIES:
  |   Deployment com.os:service=Scheduler is missing the following 
dependencies:
  | Dependency jboss.j2ee:service=EJB3,url='gamgamEAR.ear' (should be in 
state Create, but is actually in state ** NOT FOUND Depends on 
'jboss.j2ee:service=EJB3,url='gamgamEAR.ear'' **)
  | 
  | DEPLOYMENTS IN ERROR:
  |   Deployment jboss.j2ee:service=EJB3,url='gamgamEAR.ear' is in error due 
to the following reason(s): ** NOT FOUND Depends on 
'jboss.j2ee:service=EJB3,url='gamgamEAR.ear'' **
In fact it seems that it doesn't find the EAR deployed or the address is wrong
In my old configuration (JBoss 4.x) I had:
dependsjboss.j2ee:service=EARDeployment,url='gamgamEAR.ear'/depends
and it was working fine. Probably in the AS 5, the name has been changed from 
EARDeployment to EARDeployer but still I'm not able to find the right sintax.

I was trying to point at the EJB used by Scheduler class that in my case is 
LobbyManager, but even in that case it's not working.

I was checking the JMX-Console for the name of the Bean LobbyManager. and 
putting that string into  tag I have as result no more errors... but nothing 
happens...  so that means that the scheduler is not called.
ear=gamgamEAR.ear,jar=gamgamEJB.jar,name=LobbyManager,service=EJB3
  | 
  | 
dependsjboss.j2ee:ear=gamgamEAR.ear,jar=gamgamEJB.jar,name=LobbyManager,service=EJB3/depends

Do you have any advice?

PS=is that Scheduler way J2EE 5 compliant? If not how can I replace that 
scheduler with something portable.

Thanks in advance

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4262017#4262017

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4262017
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JMX] - Question about queues / topics and MBeans

2009-10-25 Thread Tashtego
Hi.

I am a bit new to message driven beans. Trying my first steps right now. I´ve 
already read the following articles:

http://activemq.apache.org/version-5-hello-world.html

http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/tmj_devcl.html

http://www.roseindia.net/ejb/example-of-messageBean.shtml

Now my wish would be to create a queue or topic within my application instead 
of having to create xml files which have to be placed into deploy folder as 
-service.xml files. Is this possible? How?

The JBoss Admin-Console tells me this:
Created Programmatically:  false

So it should be possible I guess. And what do MBeans have to do with this? I 
never programmed a MBean so far. What are those custom programmed MBeans good 
for? I know many services of JBoss run as modules (MBeans?). Is creating a 
queue another possible example for this?

thanks for any comments about this!


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4262029#4262029

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4262029

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


[jboss-user] [JCA] - Re: ClassNotFoundException when moving JCA adaptor from 4.2.

2009-10-25 Thread pwnell
Not really since I share that RAR across many different ears.  The RAR provides 
a global logging and auditing framework shared by up to 7 different ears 
deployed in the same JBoss instance.  Surely the domain names would be 
different then?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4262042#4262042

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4262042
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB] - JAAS: using sessionbean's home interface method create fro

2009-10-25 Thread dahagrachops
Hi friends:)

i have 2 jboss instances:
jboss A (4.2.3) running on interface 127.0.0.1 and deploying some session beans
jboss B (5.0) running remotely on other network interface and deploying a MDB

The MDB can read message from remote topic on A

If i try to use the create method of a session bean on jboss A, i have a 
SecurityException:

java.rmi.AccessException: SecurityException; nested exception is: 
java.lang.SecurityException: Insufficient method permissions, 
principal=null, ejbName=SourceServiceBean, method=create, interface=HOME, 
requiredRoles=[ENABLED, SUPEROWNER, INITIALIZER, INDEXER], principalRoles=[]

There is something to add about JAAS, maybe in a jboss config file, but i don't 
know where.
Can you help me please?

Bye and thanks;)

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4262050#4262050

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4262050
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration Deployment] - Re: Migration to JBoss 5, Scheduler not working

2009-10-25 Thread osnetwork
osnetwork wrote : I was checking the JMX-Console for the name of the Bean 
LobbyManager. and putting that string into  tag I have as result no more 
errors... but nothing happens...  so that means that the scheduler is not 
called.
  | ear=gamgamEAR.ear,jar=gamgamEJB.jar,name=LobbyManager,service=EJB3
  |   | 
  |   | 
dependsjboss.j2ee:ear=gamgamEAR.ear,jar=gamgamEJB.jar,name=LobbyManager,service=EJB3/depends
  | 
  | Do you have any advice?
  | 
  | PS=is that Scheduler way J2EE 5 compliant? If not how can I replace that 
scheduler with something portable.
  | 
  | Thanks in advance

Sorry, I have solved... actually putting the address found on the JMX-Console 
has fixed the problem. I had another problem not related to JBoss so for this 
reason I was not able to test the functionality properly.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4262053#4262053

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4262053
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security] - Problems with authentication on EJB2

2009-10-25 Thread sverker
Hi,
I'm trying to update an old EJB2-based application to be able to run on JBoss 
5.1. Well, everything work except for that I keep getting 
java.lang.SecurityException: Authentication exception, principal=null on some 
operations.

I have a custom login module, it's right now deployed with the new method but 
I've also tried with the old DynamicLoginConfig. When I log in on the web 
frontend it looks like this in the log:

22:59:46,100 TRACE [LimeLoginModule] initialize
  | 22:59:46,106 TRACE [LimeLoginModule] Security domain: lime
  | 22:59:46,109 TRACE [LimeLoginModule] Saw 
unauthenticatedIdentity=unauthenticated
  | 22:59:46,113 TRACE [LimeLoginModule] login
  | 22:59:46,114 TRACE [LimeLoginModule] Trying to authenticate sverker
  | 22:59:46,119 DEBUG [AccountServiceBean] AccountServiceBean.ejbCreate()
  | 22:59:46,168 INFO  [AccountServiceBean] 
AccountServiceBean.authenticateAccount(sverker,***) from null 
successfull
  | 22:59:46,170 TRACE [LimeLoginModule] 
LimeLoginModule.login(sverker,***) successfull
  | 22:59:46,171 TRACE [LimeLoginModule] Assign user to role admin
  | 22:59:46,174 TRACE [LimeLoginModule] User 'sverker' authenticated, 
loginOk=true

However, on the operations that fails I see this instead:
23:02:05,078 TRACE [UsersRolesLoginModule] initialize
  | 23:02:05,083 TRACE [UsersRolesLoginModule] Security domain: other
  | 23:02:05,084 TRACE [UsersRolesLoginModule] findResource: null
  | 23:02:05,087 ERROR [UsersRolesLoginModule] Failed to load 
users/passwords/role files
  | java.io.IOException: No properties file: users.properties or defaults: 
defaultUsers.properties found

All operations are unchecked, the app handles authorization in other ways. I 
can see no difference in ejb-jar.xml on method-permission fields between the 
operations that work and those that don't.
I have tested with setting security-domain and unauthenticated-principal in 
either jboss-app.xml (in the ear) or jboss.xml (in ejb-jar) + jboss-web.xml or 
in all but no change.

How come that for some operations it chooses security-domain other? I see the 
same also when calling operations on EJB's from a MBean, how can I set which 
security-domain it belongs to and shouldn't it be the ejb's security domain 
that matters?

The setting I use in jboss-app and the others are:
security-domainjava:/jaas/lime/security-domain
  | unauthenticated-principalunauthenticated/unauthenticated-principal

What is this unauthenticated-principal used for, shouldn't that prevent the 
exception with principal=null?


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4262057#4262057

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4262057
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0 Users] - Re: Migrating .ear to JBoss 5 with several EJB3 Jars inside

2009-10-25 Thread icordoba
Well,
they are EJB3 entities. I guest they have most in common with HJPA/Hibernate 
entities but I try not to code anything outside EJB3 specifications, so I never 
deal with Hibernate in my code, even though I know it is there taking care of 
EJB3 persistence.

May I ask if dealing with Hibernate specifically can solve my problem?

Thanks,
Ignacio

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4262058#4262058

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4262058
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache Users] - Buddy location issue

2009-10-25 Thread thogha
Correction: TCP start_port=7800


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4262059#4262059

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4262059
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Cache Users] - Re: Buddy location issue

2009-10-25 Thread thogha
Sorry, I wiped out my original post in the preview.

I'm trying to get buddy replication working. I'm running two servers, each with 
one instance of 3.1.0 inside Tomcat. Here is the error (from catalina.out):


  | Oct 25, 2009 7:26:45 PM org.jgroups.JChannel init
  | INFO: JGroups version: 2.6.7.GA
  | 
  | ---
  | GMS: address is 127.0.1.1:7800
  | ---
  | Oct 25, 2009 7:26:48 PM 
org.jboss.cache.RPCManagerImpl$MembershipListenerAdaptor viewAccepted
  | INFO: Received new cluster view: [127.0.1.1:7800|0] [127.0.1.1:7800]
  | Oct 25, 2009 7:26:48 PM org.jboss.cache.RPCManagerImpl start
  | INFO: Cache local address is 127.0.1.1:7800
  | Oct 25, 2009 7:26:48 PM 
org.jboss.cache.buddyreplication.NextMemberBuddyLocator locateBuddies
  | INFO: Expected to look for 1 buddies but could only find 0 suitable 
candidates - trying with colocated buddies as well.
  | Oct 25, 2009 7:26:48 PM 
org.jboss.cache.buddyreplication.NextMemberBuddyLocator locateBuddies
  | INFO: Expected to look for 1 buddies but could only find 0 suitable 
candidates - trying again, ignoring buddy pool hints.
  | Oct 25, 2009 7:26:48 PM 
org.jboss.cache.buddyreplication.NextMemberBuddyLocator locateBuddies
  | INFO: Expected to look for 1 buddies but could only find 0 suitable 
candidates - trying with colocated buddies as well.
  | Oct 25, 2009 7:26:48 PM 
org.jboss.cache.buddyreplication.NextMemberBuddyLocator locateBuddies
  | INFO: Expected to look for 1 buddies but could only find 0 suitable 
candidates!
  | 

And here is JBossCacheConfiguration.xml

  | ?xml version=1.0 encoding=UTF-8?
  | jbosscache xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns=urn:jboss:jbosscache-core:config:3.1
  | eviction wakeUpInterval=500
  | default algorithmClass=org.jboss.cache.eviction.LFUAlgorithm 
eventQueueSize=100
  | property name=minNodes value=100 /
  | property name=maxNodes value=200 /
  | /default
  | /eviction
  | 
  | clustering mode=invalidation clusterName=cluster1
  | sync /
  | 
  | buddy enabled=true poolName=buddyPool1 
communicationTimeout=2000
  | dataGravitation auto=false removeOnFind=false 
searchBackupTrees=false /
  | locator 
class=org.jboss.cache.buddyreplication.NextMemberBuddyLocator
  | properties
  | numBuddies = 1
  | ignoreColocatedBuddies = true
  | /properties
  | /locator
  | /buddy
  | 
  | jgroupsConfig
  | TCP
  | start_port=7800
  | discard_incompatible_packets=true
  | enable_bundling=false
  | enable_diagnostics=true
  | enable_unicast_bundling=false
  | loopback=false
  | max_bundle_size=64000
  | max_bundle_timeout=30
  | oob_thread_pool.enabled=true
  | oob_thread_pool.keep_alive_time=1
  | oob_thread_pool.max_threads=8
  | oob_thread_pool.min_threads=2
  | oob_thread_pool.queue_enabled=false
  | oob_thread_pool.queue_max_size=10
  | oob_thread_pool.rejection_policy=Run
  | recv_buf_size=2000
  | thread_naming_pattern=pl
  | thread_pool.enabled=true
  | thread_pool.keep_alive_time=3
  | thread_pool.max_threads=4
  | thread_pool.min_threads=1
  | thread_pool.queue_enabled=true
  | thread_pool.queue_max_size=1
  | thread_pool.rejection_policy=discard
  | use_concurrent_stack=true
  | use_send_queues=false /
  | MPING mcast_addr=232.1.2.3 num_initial_members=3 
timeout=2000 /
  | MERGE2 max_interval=3 min_interval=1 /
  | FD_SOCK /
  | FD max_tries=5 shun=true timeout=1 /
  | VERIFY_SUSPECT timeout=1500 /
  | pbcast.NAKACK discard_delivered_msgs=true gc_lag=0 
retransmit_timeout=300,600,1200,2400,4800 use_mcast_xmit=false /
  | pbcast.STABLE desired_avg_gossip=5 
max_bytes=40 stability_delay=1000 /
  | pbcast.GMS join_timeout=5000 print_local_addr=true 

[jboss-user] [JBoss Web Services Users] - Re: no access to wsdl

2009-10-25 Thread PeterJ
Start at http://localhost:8080/jbossws. On that page, in the Runtime 
Information box there is a View a list of deployed services link. Click that, 
you will get a page of registered services. Is you service on that page? If 
not, then your app was not recognized as a web service.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4262062#4262062

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4262062
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Performance Tuning] - Re: Memory Leak - LocalManagedConnection

2009-10-25 Thread PeterJ
Please do not post the same question in multiple forums.
http://www.jboss.org/index.html?module=bbop=viewtopict=162860

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4262063#4262063

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4262063
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Re: Validate Connection factory setting from MQ to JBM and i

2009-10-25 Thread gaohoward
Hi, I guess 'LocalJndiName' means the name you use to look up in-vm objects. If 
so, this is not necessary in JBM. Because the prefix java: means already the 
in-vm context.

The jboss:service=Nameing is not configured here in JBM. You need to bring up 
the Naming service by configuring JBOSS services. 

Howard


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4262069#4262069

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4262069
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Re: jboss-messaging-1.4.5.GA and JBoss AS 5.1

2009-10-25 Thread gaohoward
No. try 1.4.6.GA.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4262070#4262070

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4262070
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Re: Performance issues after switching from mq to jboss mess

2009-10-25 Thread gaohoward
What exact versions of JBM are you using? Have you been able to get some 
examples work?

Howard


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4262071#4262071

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4262071
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging Users] - Re: Connection pool for ClusteredConnectionFactory, how to ?

2009-10-25 Thread gaohoward

Q1:
JBM doesn't provide connection pooling. You need to pool the connection 
yourself or using some 3rd party lib (if any).

Q2:
Because JBM doesn't pool connections, so there is no place for such 
configurations.

Howard


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4262074#4262074

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4262074
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration Deployment] - Re: jboss web console error

2009-10-25 Thread rasa
jaikiran wrote : Is this a clean installation or have you done any changes 
and/or deployed any of your applications? Try it on a clean installation 
without any changes.
  | 

No I have deployed my application. One thing i needed to ask is in jbss.web 
deployer there is no servlet api and jsp-api jar files. When i copied those 
files it is started working now. Let me check once again.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4262076#4262076

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4262076
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0 Users] - SessionBean and the case of RESTRICTIONS for entitquery

2009-10-25 Thread nmatrix9
Hello EJB 3.0 Users

I've just noticed that creates class that extends EntityQuery, some generated 
classes do NOT have any restrictsion set in the RESTRICTIONS array. I tried to 
find out why but so far I have not found any useful information on this. 
Anyways I have a class called ExoshellUsersRolesList that extends EntityQuery 
(originally generated by Seam-Gen) to which it did not have it's RESTRICTIONS 
array set. So I decided I would manually set the array myself like so.

package com.domain.exoshellcms.session;

import com.domain.exoshellcms.entity.*;

import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.framework.EntityQuery;
import java.util.List;
import java.util.Arrays;

@Name(exoshellUserRolesList)
@Scope(ScopeType.SESSION)
public class ExoshellUserRolesList extends EntityQuery {
/* UNABLE TO GET RESTRICTIONS TO WORK WITHOUT POINTING TO NULL PARENT 
OBJECT I.E. exoshellUsers, exoshellRoles or exoshellModules */
private static final String[] RESTRICTIONS = {
lower(users.username) like 
concat(lower(#{exoshellUserRolesList.exoshellUserRoles.exoshellUsers.username}),'%'),
lower(exoshellUserRoles.exoshellRoles.roleName) like 
concat(lower(#{exoshellUserRolesList.exoshellUserRoles.exoshellRoles.roleName}),'%'),
lower(exoshellUserRoles.exoshellModules.moduleName) like 
concat(lower(#{exoshellUserRolesList.exoshellUserRoles.exoshellModules.moduleName}),'%')
};

private ExoshellUserRoles exoshellUserRoles = new ExoshellUserRoles();
private String queryString = new String(select exoshellUserRoles, 
users from ExoshellUserRoles exoshellUserRoles join fetch 
exoshellUserRoles.exoshellUsers users);
 @Override
public String getEjbql() {
return queryString;
}

public ExoshellUserRoles getExoshellUserRoles() {
return exoshellUserRoles;
}

@Override
public List getRestrictions() {
return Arrays.asList(RESTRICTIONS);
}

@Override
public String getOrder() {
return new String(exoshellUserRoles.userRolesId asc);
}
}



I then created a corresponding interface form to search through a datable using 
the ExoshellUsersList like so:

  rich:simpleTogglePanel label=User Roles search parameters 
switchType=ajax opened=false ignoreDupResponses=true 
eventsQueue=userSearchQueue requestDelay=2000 immediate=true 
rendered=false

s:decorate template=/layout/display.xhtml
ui:define name=labelUser Name/ui:define
h:inputText id=userRoleName 
value=#{exoshellUserRolesList.exoshellUserRoles.exoshellUsers.username}
 a:support event=onblur 
reRender=panelusers,userRolesPaginator ignoreDupResponses=true/
/h:inputText
/s:decorate

s:decorate template=/layout/display.xhtml
ui:define name=labelRole Name/ui:define
h:inputText id=userRoleRolename 
value=#{exoshellUserRolesList.exoshellUserRoles.exoshellRoles.roleName}
a:support event=onblur/
/h:inputText
/s:decorate

s:decorate template=/layout/display.xhtml
ui:define name=labelModule/ui:define
h:inputText id=userRoleModule 
value=#{exoshellUserRolesList.exoshellUserRoles.exoshellModules.moduleName}
 a:support event=onblur/
/h:inputText
/s:decorate

/rich:simpleTogglePanel

Unfortunately this was not enough as when I try to input text into one of the 
search fields (like User Name) upon ajax update I get the error:

Exception during request processing:
Caused by javax.servlet.ServletException with message: 
/admin/ExoshellUserRolesEdit.xhtml @339,122 
value=#{exoshellUserRolesList.exoshellUserRoles.exoshellUsers.username}: 
Target Unreachable, 'exoshellUsers' returned null on 
'com.domain.exoshellcms.entity.ExoshellUserRoles'


Any insight, documentation or solutions to the exception above would be greatly 
appreciated. I've include the relied upon EJB entities below after this post.



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4262077#4262077

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4262077
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0 Users] - Re: SessionBean and the case of RESTRICTIONS for entitquery

2009-10-25 Thread nmatrix9
@Entity
@Name(users)
@Table(name = exoshell_users, schema = public, uniqueConstraints = 
@UniqueConstraint(columnNames = {
  username, emailaddress }))
public class ExoshellUsers implements java.io.Serializable {

 private int userId;
 private String username;
 private String userpassword;
 private String firstname;
 private String lastname;
 private String emailaddress;
 private String userimage;
 private byte[] picture;
 private Date registered;
 private String gender;
 private Date lastLogin;
 private String ipAddress;
 private boolean accountenabled;
 private Set exoshellUserRoleses = new HashSet(
   0);
   public ExoshellUsers() {
 }

 public ExoshellUsers(String username, String userpassword,
   String firstname, String lastname, String emailaddress,
   Date registered, String gender, Date lastLogin, String ipAddress,
   boolean accountenabled) {
  this.username = username;
  this.userpassword = userpassword;
  this.firstname = firstname;
  this.lastname = lastname;
  this.emailaddress = emailaddress;
  this.registered = registered;
  this.gender = gender;
  this.lastLogin = lastLogin;
  this.ipAddress = ipAddress;
  this.accountenabled = accountenabled;
 }

 public ExoshellUsers(String username, String userpassword,
   String firstname, String lastname, String emailaddress,
   String userimage, Date registered, String gender, Date lastLogin,
   String ipAddress, boolean accountenabled,
   Set exoshellUserRoleses) {
  this.username = username;
  this.userpassword = userpassword;
  this.firstname = firstname;
  this.lastname = lastname;
  this.emailaddress = emailaddress;
  this.userimage = userimage;
  this.registered = registered;
  this.gender = gender;
  this.lastLogin = lastLogin;
  this.ipAddress = ipAddress;
  this.accountenabled = accountenabled;
  this.exoshellUserRoleses = exoshellUserRoleses;
 }

 @Id
 @GeneratedValue(strategy=GenerationType.AUTO)
 @Column(name = user_id, unique = true, nullable = false)
 @NotNull
 public int getUserId() {
  return this.userId;
 }

 public void setUserId(int userId) {
  this.userId = userId;
 }

 @Column(name = username, nullable = false, length = 20)
 @NotNull
 @Length(max = 20)
 public String getUsername() {
  return this.username;
 }

 public void setUsername(String username) {
  this.username = username;
 }

 @Column(name = userpassword, nullable = false, length = 40)
 @NotNull
 @Length(max = 40)
 public String getUserpassword() {
  return this.userpassword;
 }

 public void setUserpassword(String userpassword) {
  this.userpassword = userpassword;
 }

 @Column(name = firstname, nullable = false, length = 40)
 @NotNull
 @Length(max = 40)
 public String getFirstname() {
  return this.firstname;
 }

 public void setFirstname(String firstname) {
  this.firstname = firstname;
 }

 @Column(name = lastname, nullable = false, length = 40)
 @NotNull
 @Length(max = 40)
 public String getLastname() {
  return this.lastname;
 }

 public void setLastname(String lastname) {
  this.lastname = lastname;
 }

 @Column(name = emailaddress, nullable = false)
 @NotNull
 @Email(message=Input is not a valid email)
 public String getEmailaddress() {
  return this.emailaddress;
 }

 public void setEmailaddress(String emailaddress) {
  this.emailaddress = emailaddress;
 }

 @Column(name = userimage)
 public String getUserimage() {
  return this.userimage;
 }

 public void setUserimage(String userimage) {
  this.userimage = userimage;
 }

 @Temporal(TemporalType.DATE)
 @Column(name = registered, nullable = false, length = 13)
 @NotNull
 public Date getRegistered() {
  return this.registered;
 }

 public void setRegistered(Date registered) {
  this.registered = registered;
 }

 @Column(name = gender, nullable = false, length = 6)
 @NotNull
 @Length(max = 6)
 public String getGender() {
  return this.gender;
 }

 public void setGender(String gender) {
  this.gender = gender;
 }

 @Temporal(TemporalType.TIMESTAMP)
 @Column(name = last_login, nullable = false, length = 29)
 @NotNull
 public Date getLastLogin() {
  return this.lastLogin;
 }

 public void setLastLogin(Date lastLogin) {
  this.lastLogin = lastLogin;
 }

 @Column(name = ip_address, nullable = false, length = 32)
 @NotNull
 @Length(max = 32)
 public String getIpAddress() {
  return this.ipAddress;
 }

 public void setIpAddress(String ipAddress) {
  this.ipAddress = ipAddress;
 }

 @Column(name = accountenabled, nullable = false)
 @NotNull
 public boolean isAccountenabled() {
  return this.accountenabled;
 }

 public void setAccountenabled(boolean accountenabled) {
  this.accountenabled = accountenabled;
 }

 @OneToMany(fetch = FetchType.LAZY, mappedBy = exoshellUsers, cascade = 
{CascadeType.ALL})
 public Set getExoshellUserRoleses() {
  return this.exoshellUserRoleses;
 }

 public void setExoshellUserRoleses(
   Set exoshellUserRoleses) {
  this.exoshellUserRoleses = exoshellUserRoleses;
 }

 public byte[] getPicture() {
  return picture;
 }

 public void setPicture(byte[] picture) {
  this.picture = picture;
 }
 }

[jboss-user] [Installation, Configuration Deployment] - Re: Deployment related Issue

2009-10-25 Thread rasa
PeterJ wrote : Is your message-driven bean based on EJB 3 or 2.x? If 2.x, 
please post the descriptor file. If 3, please post the source code (you can 
remove the contents of the methods).

I am using ejb 2.0 see my entry for MessageMDB.java



  |  message-driven
  |  
  |  ejb-nameMessageMDB/ejb-name
  |  ejb-classcom.apps.ejb.message.MessageMDB/ejb-class
  |  transaction-typeContainer/transaction-type
  |  acknowledge-modeAUTO_ACKNOWLEDGE/acknowledge-mode
  |  message-driven-destination
  |  destination-typejavax.jms.Queue/destination-type
  |  /message-driven-destination
  | 
  |   /message-driven
  | 
  | 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4262079#4262079

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4262079
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration Deployment] - Re: jboss web console error

2009-10-25 Thread jaikiran
rasa wrote : One thing i needed to ask is in jbss.web deployer there is no 
servlet api and jsp-api jar files. 

Those jars are available in JBOSS_HOME/server/ servername/lib folder.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=4262082#4262082

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4262082
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user