[jboss-user] [JBoss Messaging] - Re: Selector by JMSMessageID doesn't work. JBOSS5 (5.1.0.GA)

2009-07-08 Thread gaohoward
Hi,

Please create a jira if you think it doesn't work and attach the test if 
available. Thanks!

Howard


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

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


[jboss-user] [JBoss Messaging] - JBoss Messaging examples for AS 5 download now available!

2009-07-08 Thread gaohoward
Dear AS 5 users,

You can go to the JBM download page to get the JBM examples for AS5.

http://www.jboss.org/jbossmessaging/downloads/

It's provided as a zip file. The name takes the form of jbm-examples-.zip, 
where the  represents the JBM version for the AS 5 release. For example the 
file jbm-example-1.4.3.zip is the JBoss Messaging 1.4.3.GA examples for AS 5.

To install:

unzip the example file to your local disk. All files are contained in a single 
folder called 'extra'
copy the extra folder to your AS 5 home (i.e. $JBOSS_HOME).

To run:
You need to install ant before running any of the examples.

for non-clustered examples: starting AS default config, and cd to the example 
folder and type 'ant'
for clustered examples: setup and startup two AS clustered nodes, cd to the 
example folder and type 'ant'

For details please read the readme under the folder of each example.



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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Remote debugging with Jboss

2009-07-08 Thread puntino
Hallo, 
I'd like to know how to set up my Eclipse 3.4.2 and Jboss  in order to debug my 
application in remote mode. 
First of all, I already enabled the line: 

set JAVA_OPTS=-Xdebug 
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS%

In Eclipse, in the debug configuration panel I set the ip address of the jboss 
server where my web application is hosted, and 8787 as port number. 
Then, I lauch my debbuger by clicking on the green beatle and the Jboss got 
stuck in an infinite loop. 
How can I sort it out ? 

Aside from this strange behaviour, I can't figure out how it is possible to 
debug an application running on the server with a debugger that it is installed 
on the client side where the code is developed... 
I would appreciate any help. 
Thank you in advance 

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

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


[jboss-user] [JBoss Tools (users)] - Re: jira not workin

2009-07-08 Thread micuentadecasa
thanks max.

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

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


[jboss-user] [JBoss Messaging] - Re: using log4j in JBoss Messaging client

2009-07-08 Thread ataylor
anonymous wrote : Andy- is this documented in the user manual?

Yes its mentioned. I'll add a paragraph specific to clients tho to make it 
clearer.

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

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


[jboss-user] [JBoss Tools (users)] - Re: problem with seam generate entities

2009-07-08 Thread micuentadecasa
hi max, what i mean its that using the wizard for generating entities with seam 
doesnt works with jboss 5.0x servers.



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

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


[jboss-user] [JBoss Tools (users)] - Re: problem with seam generate entities

2009-07-08 Thread micuentadecasa
a screencast about it...
http://www.screencast.com/users/luismolina/folders/Jing/media/c0908eb2-8766-4f2d-892a-2878075a21ce


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

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


[jboss-user] [Microcontainer] - Re: JBoss 5.1 class loading question

2009-07-08 Thread jaikiran
http://www.jboss.org/index.html?module=bbop=viewtopicp=4242344#4242344

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

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


[jboss-user] [EJB 3.0] - Re: Dependency injection is not working

2009-07-08 Thread jaikiran
Please try this on JBoss AS 5.1.0 GA

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Failed shutdown attempt

2009-07-08 Thread jaikiran
What command are you using to shutdown the server?

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

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


[jboss-user] [JBoss Tools (users)] - Re: problem with seam generate entities

2009-07-08 Thread mareshkau
Which version of jboss tools are you using? 

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

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


[jboss-user] [JBoss jBPM] - Re: org.hibernate.StaleObjectStateException: Row was updated

2009-07-08 Thread denica.gencheva
kukeltje wrote : please upgrade to jBPM 3.2.6SP1 first. Lots of things 
changed in this area.

It works with jBPM 3.2.6SP1. Thanks. 

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: jboss 5.1 encoding problem

2009-07-08 Thread jaikiran
yves.benigot wrote : 
  | of course if we install real jboss applications we have a lot of problems 
with webapps which dont deploy and so on
  | 

Which real applications? And what errors do you see. There was a thread in this 
forum about something similar, just want to make sure if this is the same issue

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

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


[jboss-user] [Management, JMX/JBoss] - Re: Problem with deployment listener when moving from JBoss

2009-07-08 Thread jaikiran
I don't see anything specific to EJB MBeans in that wiki. Which exact 
notifications were you receiving earlier? And can you please post your 
configuration(s)?

While posting logs or xml content or code, please remember to wrap it in a code 
block by using the Code button in the message editor window. Please use the 
Preview button to ensure that your post is correctly formatted.

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: log4j config file behaviour

2009-07-08 Thread brettcave
ah, ok makes sense.

There isnt a way to override appenders on a per-category basis then? Ideally, I 
want to log ERROR to SMTP, CONSOLE and FILE for everything except for 1 or 2 
categories, which I only want logged to CONSOLE / FILE - would have to have a 
more verbose config to achieve this then?

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: log4j config file behaviour

2009-07-08 Thread jaikiran
brettcave wrote : 
  | 
  | Ideally, I want to log ERROR to SMTP, CONSOLE and FILE for everything 
except for 1 or 2 categories, which I only want logged to CONSOLE / FILE

The additivity flag on a category will help in achieving this. Ex:

category name=com.mycompany.package1 additivity=false
  |   priority value=ERROR /
  |   appender-ref ref=CONSOLE /
  | /category
  | 
  | category name=com.mycompany.package2
  |   priority value=ERROR /
  | /category
  | 
  | root
  |   priority value=INFO /
  |   appender-ref ref=SMTP /
  |   appender-ref ref=CONSOLE /
  |   appender-ref ref=FILE /
  | /root
  | 

Here com.mycompany.package1 will log only to the CONSOLE because the additivity 
flag is set to false. That flag can be used to specify that the log messages of 
a particular category are not to be propagated to the parent categories (the 
root in this case).


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

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


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Arjuna TX Manager Class Cast Exception

2009-07-08 Thread rupertlssmith
Hi, 

On JBoss 4.2.2GA, I get the following exception:

java.lang.ClassCastException: 
com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate cannot be cast to 
javax.transaction.TransactionManager
 
  | at 
org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:23)
   
  | at 
org.hibernate.impl.SessionFactoryImpl.init(SessionFactoryImpl.java:325)   

 
  | at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300)

Another Forum post suggested this might be because of having the 'jta' jar in 
the .ear file I am trying to deploy. I checked and sure enough it was there as 
part of the hibernate dependencies I included. 'jta.jar' does not need to be in 
the .ear file as the app server already provides it. So I removed it, but I 
still get the above error.

So now my dependency set of jars that are in  my .ear file looks like (created 
with mvn dependency:tree):

[dependency:tree]
  | [INFO] uk.co.thebadgerset:thecookerybook-dev:ear:0.3-SNAPSHOT
  | [INFO] +- uk.co.thebadgerset:thecookerybook-backend:jar:0.3-SNAPSHOT:compile
  | [INFO] |  +- uk.co.thebadgerset:common:jar:0.3-SNAPSHOT:compile
  | [INFO] |  |  +- log4j:log4j:jar:1.2.13:compile
  | [INFO] |  |  +- regexp:regexp:jar:1.3:compile
  | [INFO] |  |  +- xml-apis:xml-apis:jar:1.3.03:compile
  | [INFO] |  |  +- dom4j:dom4j:jar:1.6.1:compile
  | [INFO] |  |  +- xerces:xercesImpl:jar:2.8.0:compile
  | [INFO] |  |  \- xalan:xalan:jar:2.7.0:compile
  | [INFO] |  +- uk.co.thebadgerset:configurator:jar:0.3-SNAPSHOT:compile
  | [INFO] |  |  +- javax.xml.bind:jsr173_api:jar:1.0:compile
  | [INFO] |  |  +- javax.xml.bind:jaxb-api:jar:2.1:compile
  | [INFO] |  |  |  +- javax.xml.stream:stax-api:jar:1.0-2:compile
  | [INFO] |  |  |  \- javax.activation:activation:jar:1.1:compile
  | [INFO] |  |  \- com.sun.xml.bind:jaxb-impl:jar:2.1.7:compile
  | [INFO] |  +- uk.co.thebadgerset:catalogue:ejb:0.3-SNAPSHOT:compile
  | [INFO] |  |  +- uk.co.thebadgerset:locator:jar:0.3-SNAPSHOT:compile
  | [INFO] |  |  +- uk.co.thebadgerset:catalogue-model:jar:0.3-SNAPSHOT:compile
  | [INFO] |  |  +- uk.co.thebadgerset:index-ra-client:jar:0.3-SNAPSHOT:compile
  | [INFO] |  |  \- org.hibernate:hibernate:jar:3.2.6.ga:compile
  | [INFO] |  | +- net.sf.ehcache:ehcache:jar:1.2.3:compile
  | [INFO] |  | +- commons-logging:commons-logging:jar:1.0.4:compile
  | [INFO] |  | +- asm:asm-attrs:jar:1.5.3:compile
  | [INFO] |  | +- antlr:antlr:jar:2.7.6:compile
  | [INFO] |  | +- cglib:cglib:jar:2.1_3:compile
  | [INFO] |  | +- asm:asm:jar:1.5.3:compile
  | [INFO] |  | \- commons-collections:commons-collections:jar:2.1.1:compile
  | [INFO] |  +- uk.co.thebadgerset:index:jar:0.3-SNAPSHOT:compile
  | [INFO] |  \- uk.co.thebadgerset:aima:jar:0.3-SNAPSHOT:compile
  | [INFO] +- 
uk.co.thebadgerset:thecookerybook-backend:jar:config:0.3-SNAPSHOT:compile
  | [INFO] \- uk.co.thebadgerset:thecookerybook-web:war:0.3-SNAPSHOT:compile
  | 

I'm confused by the class cast exception because I now expect that there should 
be only one copy of 'com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate' 
and 'javax.transaction.TransactionManager' on the classpath and that the former 
does indeed extend the latter. Is this happening because I have included the 
Hibernate jars in my .ear file instead of using the container supplied version?

Any help is appreciated, thanks.

Rupert

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

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


[jboss-user] [Management, JMX/JBoss] - Re: Problem with deployment listener when moving from JBoss

2009-07-08 Thread vit.jonas
I used following MBean listening on EJB3 deployments in JBoss 4.2 
(jboss-service.xml):

  | server
  | !-- EJB notification listener --
  | mbean code=my.project.mbeans.EJBDeployNotificationListener 
name=my.project.mbeans:service=EJBDeployNotificationListener
  |   attribute name=SubscriptionList
  | subscription-list
  | mbean name=jboss.ejb3:service=EJB3Deployer 
handback=ejb3Deployer/
  | notification type=START_NOTIFICATION /
  | notification type=STOP_NOTIFICATION /
  | /subscription-list
  |   /attribute
  | /mbean
  | /server
  | 

my.project.mbeans.EJBDeployNotificationListener implements 
ListenerServiceMBeanSupport. In Jboss 4.2 I'm able to look to all deployed 
artifacts and do what I need with it. In this case for parsing specific 
proprietary annotations for our customer EJB3 classes.

There isn't any service jboss.ejb3:service=EJB3Deployer in JBoss 5.1.0 all 
configuration (clean installation). I tried to explore 
jboss.deployment:id=Ejb3Deployer,type=Component but it seems to not provide 
any notification support. I guess it is because in JBoss 5 this should be 
handled in a different way.

Can you give me some advise how to solve this task?

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

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


[jboss-user] [JBoss Tools (users)] - Re: problem with seam generate entities

2009-07-08 Thread max.ander...@jboss.com
micuentadecasa,

Just talked with Pete M. (seam) about this and it turns out that seam-gen have 
not been updated to generate fully working JBoss 5. Gone unnoticed to me since 
noone reported it against tooling.

There is an issue in Seam that i just found which ill pick up and see what we 
can do about - needs fixing in seam-gen.

https://jira.jboss.org/jira/browse/JBSEAM-4276

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

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


[jboss-user] [JBoss Messaging] - Re: using log4j in JBoss Messaging client

2009-07-08 Thread AdrianWoodhead
Thanks guys, that worked perfectly!

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

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


[jboss-user] [JBoss Messaging] - Re: deleting messages rather than blocking if server down fo

2009-07-08 Thread AdrianWoodhead
The threads are coming from my client application - there is a thread per http 
request and at the end of the request it calls send(). Hundreds of these 
threads are created every minute so if the call to send() blocks then it 
doesn't take long for the blocking to overwhelm the VM. I guess I could 
re-architect my application to put the messages in a queue and have one thread 
pull the messages off and send them, this just feels a bit like I'm 
implementing something which could (should?) be in the messaging client.

As for the ExceptionListener solution, I thought about this too. I have JBM 
setup to auto-reconnect so I don't actually get an exception when the server 
goes down (I just see some warning messages in the logs). From what I can tell 
the sender queues up the messages in the background. When the server comes 
back, only then does my ExceptionListener callback get called, at which point I 
redo the JNDI lookup and recreate the connections and sessions etc. This works 
well. I think if I set JBM not to auto-connect then the ExceptionListener 
callback is called right away when the server goes down, but then I have to do 
my own reconnect logic. I'm happy with this ExceptionListener logic, it would 
just be nice to be able to throw messages away instead of blocking, but maybe I 
should code this up myself.


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

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


[jboss-user] [JBoss Messaging] - Re: deleting messages rather than blocking if server down fo

2009-07-08 Thread timfox
Adrian-

Are your client threads calling send() on the same ClientProducer (core ) or 
MessageProducer (JMS) instance? If you do this you would have to synchronize 
access in your client application since neither JMS MessageProducers or core 
ClientProducer instances are designed to be used by more than one thread at a 
time,

Alternatively if you're creating a new MessageProducer for each message sent - 
that would also be frowned upon as an anti-pattern. 
Sessions/Producers/Consumers should always be reused between messages 
sent/consumed (unless you're not worried about performance).

If you enable auto reconnect you do so on the presumption that  your server has 
not really failed but there is a temporary network glitch (like someone has 
pulled out the cable for a while), and when the network comes back the client 
will be able to automatically reconnect its session(s) with the sesssion(s) 
still remaining on the server and carry on as if nothing  had happened (this is 
transparent reconnection). In your case the server has really failed so on 
recovery the server sessions will clearly not be there any more (since the 
server was restarted) and they won't be able to connect. That's why you don't 
get the exception until the client has tried to reconnect and not found the 
session(s) there. If you turn off auto reconnection you'll get the exception 
sooner.



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

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


[jboss-user] [JBoss Messaging] - Re: deleting messages rather than blocking if server down fo

2009-07-08 Thread AdrianWoodhead
The clients are calling send() on the same MessageProducer instance, and this 
isn't synchronized. This hasn't caused any noticeable problems in the past 
(when the MessageProducer was using ActiveMQ) or since we started evaluating 
JBM (although the loads on those 2 servers are still very low). This makes me 
think I really should queue up the messages to be sent myself and have one 
thread call send(), which will also get rid of the blocking problem.

As for the exception listener stuff - yes, I understand how that works with the 
different re-connect values and it makes sense.

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

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


[jboss-user] [JBoss Messaging] - Re: deleting messages rather than blocking if server down fo

2009-07-08 Thread timfox
AdrianWoodhead wrote : The clients are calling send() on the same 
MessageProducer instance, and this isn't synchronized. This hasn't caused any 
noticeable problems in the past (when the MessageProducer was using ActiveMQ) 
or since we started evaluating JBM (although the loads on those 2 servers are 
still very low). This makes me think I really should queue up the messages to 
be sent myself and have one thread call send(), which will also get rid of the 
blocking problem..

+1

You may have just got lucky in the past. All sorts of weird subtle errors might 
start happening if you use a JMS session concurrently with different threads.

http://java.sun.com/javaee/5/docs/api/javax/jms/Session.html

...A Session object is a single-threaded context for producing and consuming 
messages...

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

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


[jboss-user] [JBoss Messaging] - Re: deleting messages rather than blocking if server down fo

2009-07-08 Thread timfox
Perhaps you also need a thread pool in your application to stop potentially 
unlimited number of threads being created for your HTTP requests...

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

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


[jboss-user] [JBoss Messaging] - Re: deleting messages rather than blocking if server down fo

2009-07-08 Thread AdrianWoodhead
We have a thread pool - the problem is, we really *do* need to be able to 
handle thousands of simultaneous request threads. The application in this case 
is an audio streaming server which ideally should only be limited by IO reading 
files from disk. Currently we have this scaling up to a few thousand 
simultaneous users but the idea is for this to go up into the tens of thousands.

I will code up a message queue so message sending happens in one thread. Thanks 
for the input.

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

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


[jboss-user] [JBoss jBPM] - Re: Hibernate error while deploying process in a web applica

2009-07-08 Thread vignesh57
Hi, i turned on the DEBUG mode. i was surprised to see 8000 lines being traced  
between these two lines. 

13:45:38,928 INFO  [STDOUT] -Deploying Process definition
  | 13:45:38,928 INFO  [STDOUT] -Closing jBPM Context
  | 

I gave  a try but it ain't worth identifying the root cause.
And also I cant paste it here or even attach it seperately :(

What can i do now ? Thanks for helping me.



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

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


[jboss-user] [Beginners Corner] - Threads and waiting HTTP requests

2009-07-08 Thread rohit.macherla
Hi,

I have a doubt regarding the thread processing in JBoss.
The configuration of BasicThreadPool in jboss-service.xml is as follows:

  |!-- A Thread pool service --
  |mbean code=org.jboss.util.threadpool.BasicThreadPool
  |   name=jboss.system:service=ThreadPool
  |   attribute name=NameJBoss System Threads/attribute
  |   attribute name=ThreadGroupNameSystem Threads/attribute
  |   attribute name=KeepAliveTime24/attribute
  |   attribute name=MaximumPoolSize20/attribute
  |   attribute name=MaximumQueueSize1000/attribute
  |   attribute name=BlockingModerun/attribute
  |/mbean
  | 

There is also a Connector type for port 8080 which has another configuration 
for its threads (this is at server.xml in deploy/jboss-web.deployer ) :

  |Service name=jboss.web
  | Connector port=8080 address=${jboss.bind.address}
  |  maxThreads=800 maxHttpHeaderSize=8192
  |  emptySessionPath=true protocol=HTTP/1.1
  |  enableLookups=false redirectPort=8443 acceptCount=100
  |  connectionTimeout=2 disableUploadTimeout=true /
  | 

Our application uses JAX-WS style WebServices that are developed using JAXB on 
NetBeans IDE 6.0.1. These webservices get requests from external systems and 
from among the other internal webservices as well.
I want to know how these both Threads (the one in the BasicThreadPool and the 
HTTP Connector Thread) relate to each other. 

After our application has been deployed, I have noticed that there are about 
800 currentThreadsBusy at a particular time. And when I went to tomcat console 
(at http://localhost:8080/status), I have found that most of them were waiting 
at GET requests for one of the webservices.
anonymous wrote : 
  | Stage Time B Sent B Recv Request 
  | S 1161886 ms 8 KB 0 KB GET 
/OurAddressManagement-war/AddressManagementAPIService?wsdl HTTP/1.1 
  | S 3300470 ms 8 KB 0 KB GET 
/OurServiceManagement-war/ServiceManagementAPIService 
  | ..
  | 
The server was reaching its full capacity and the top command for the HP UNIX 
server (this HP UNIX machine hosts the JBoss 4.2.2.GA App server) indicates a 
CPU usage of 120% (it is a 2 CPU machine). 
As we can see, these HTTP threads were found waiting for a long time (3300470 
milliseconds = almost an hour).
At such high load, when I check the BasicThreadPool, the QueueSize = 0. If so 
many HTTP threads are waiting, then I anticipated the queue size to be atleast 
100. This value of zero is quite inexplicable considering that the 
MaximumPoolSize is just 20. 
With such high requests, the server is down to its knees and I would like to 
know what I can do to decrease the processing times of the HTTP threads.

Thank you for your time.


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

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


[jboss-user] [Clustering/JBoss] - Caching, hybernate and using enums = no go

2009-07-08 Thread ZeroTolerance
Hi,

We have JBoss AS 5.1.0 and use hibernate to store our session beans in MySQL 
DB. Also pojo caching is used to make the objects available throughout the 
cluster.

For both hibernate and caching we use annotations. 
@Replicable for classes that need to go into cache and 
@Entity for objects that need to be stored using hibernate.

We compile everything and the @Replicable classes with aopc. 

If we deploy the created jar file and start JBoss we get a 
java.lang.VerifyError.

This error originates from a switch statement that is using an enum to switch.

The enum is defined in a @Replicable class called HelperClass
the switch method is defined in the bean called Request

Disabling hibernate OR @Replicable OR both there is no problem starting JBoss.

I can not imagine that this is an unknown problem, one of you probably must 
have had the same problem. If so what was the solution?

Kind regards,
Werner van Mook






  | package entity;
  | 
  | import org.jboss.cache.pojo.annotation.Replicable;
  | import org.jboss.cache.pojo.annotation.Transient;
  | 
  | 
  | @Replicable
  | public class HelperClass {
  | 
  | private RuntimeStateRange   runtimeState  = 
RuntimeStateRange.RESTING;
  | 
  | public static enum RuntimeStateRange {
  | OFFLINE, 
  | CONNECTED, 
  | PROBLEM, 
  | PROBLEM_CONNECTING,
  | PROBLEM_SENDING,
  | INTERRUPTED,
  | STOPPED,
  | INVALID,
  | RESTING,
  | BUSY,
  | INITIALIZING }; 
  | 
  | public HelperClass() {
  | System.out.println(HelperClass created.);
  | }
  | 
  | public int EnumgetRuntimeState() {
  | return this.runtimeState.ordinal();
  | }
  | 
  | public RuntimeStateRange getRuntimeStateRange(){
  | return runtimeState;
  | }
  | }




  | package entity;
  | 
  | import javax.persistence.Entity;
  | import javax.persistence.GeneratedValue;
  | import javax.persistence.Id;
  | 
  | import org.jboss.cache.pojo.annotation.Replicable;
  | 
  | import entity.HelperClass.RuntimeStateRange;
  | 
  | @Entity
  | @Replicable
  | public class Request {
  | 
  | private long id;
  | private String filename;
  | 
  | 
  | public Request(){
  | }
  | 
  | /**
  |  * @return the id
  |  */
  | @Id
  | @GeneratedValue
  | public long getId() {
  | return id;
  | }
  | 
  | /**
  |  * @param id the id to set
  |  */
  | public void setId(long id) {
  | this.id = id;
  | }
  | 
  | /**
  |  * @return the filename
  |  */
  | public String getFilename() {
  | return filename;
  | }
  | 
  | /**
  |  * @param filename the filename to set
  |  */
  | public void setFilename(String filename) {
  | this.filename = filename;
  | }
  | 
  | @Override
  | public String toString() {
  | return id:  + id +  filename:  + filename;
  | }
  | 
  | public void inform() {
  | HelperClass help = new HelperClass();
  | informDeviceStateWhileHavingFullLock(help);
  | }
  | 
  | private void informDeviceStateWhileHavingFullLock(HelperClass 
osDeviceState) {
  | //  Thread.currentThread().setName(JMS Inform device  + getName() 
+   + osDeviceState.EnumgetRuntimeState().toString());
  | switch (osDeviceState.getRuntimeStateRange()) { 
  | case PROBLEM_CONNECTING: 
  | 
System.out.println(osDeviceState.EnumgetRuntimeState());
  | break; 
  | case PROBLEM_SENDING:
  | 
System.out.println(osDeviceState.EnumgetRuntimeState());
  | break; 
  | case CONNECTED:
  | 
System.out.println(osDeviceState.EnumgetRuntimeState());
  | break; 
  | case INVALID:
  | 
System.out.println(osDeviceState.EnumgetRuntimeState());
  | break; 
  | case INTERRUPTED:
  | 
System.out.println(osDeviceState.EnumgetRuntimeState());
  | break; 
  | case STOPPED:
  | 
System.out.println(osDeviceState.EnumgetRuntimeState());
  | break; 
  | default:
  | System.out.println(Device state default is 
always ignored);   
  | break;
  | }
  | }
  | 
  | 
  | }

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

Reply to the post : 

[jboss-user] [JBoss Tools (users)] - Re: problem with seam generate entities

2009-07-08 Thread micuentadecasa
thanks max, call me Luis (it sounds like Louis, Louis Armstrong), 
micuentadecasa means myhomeaccount. 

remember that this should work with version 4 of jboss server, and it deppends 
of the final server,so i think the solution can take two ways:

1. select destination server when generating...
2. create patches for diferent servers




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

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


[jboss-user] [JBoss Messaging] - Re: Could not find reference with id (JBM 2.0.0.BETA3)

2009-07-08 Thread AdrianWoodhead
I can confirm that the stack trace is related to the pre-ack mode. I just 
changed this to DUPS_OK in the client and set pre-ack to false in the server 
and restarted the apps and server and instead of the stack trace I now see 
messages like this in the log:

Message has expired. No expiry queue configured for queue 
1433214e-35df-4691-b4e9-0e165a81a364 so dropping it




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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: jboss 5.1 encoding problem

2009-07-08 Thread yves.benigot
The encoding problem on the error page remains even if we start the server 
right after installing the archive.

On the deployment problems we have progressed, and the situation is that we 
have to correct some configuration files and JSP where jboss 5 is stricter. 

More information:
- we see encoding errors in the error page, but also in the logs
- we have 15 war and 2 ear in a directory named deploy/ginerativ, 
  and 6 sar files
- libraries 36 of them (10 of them are developped in house) in lib/ginerativ
(we use subdirectories to avoid merging our files with jboss installed files)

On the same server, with the same java and envrionment setup, and jboss 4.2.3, 
the error page is properly encoded with french accents.

Also we found that, for the moment, the server is slower than jboss 4.2.3, 
although this seems an unlikely explanation.



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

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


[jboss-user] [JBoss Tools (users)] - Re: problem with seam generate entities

2009-07-08 Thread max.ander...@jboss.com
Pete tells me that up to Seam 2.1 they target JBoss 4.x, from Seam 2.2 and 
onwards it will be JBoss 5.

So this is fixed in Seam 2.2 trunk.

The tooling uses the templates Seam provides so I would really not like to do 
additonal logic for something that the Seam team won't even target/support.

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

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


[jboss-user] [JBoss Tools (users)] - Re: problem with seam generate entities

2009-07-08 Thread max.ander...@jboss.com
Note: we will add a warning if you do the combinations that might cause 
handedits or not be truly supported.

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

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


[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Problem with jboss class loader

2009-07-08 Thread kevinjohn
Env. details:
OS : Solaris
Jboss : JBoss 3.2.X

Issue Description:

One of the module of my application is using Axis.jar. My application also have 
web module. Sometime when i access the web module of my application, the 
browser is report JasperException Unable to comple jsp file.

When i investigated, i found this is because of conflicts of jar files on the 
server. The jar file are servlet-api.jar which is come along with the Jboss and 
other is servlet-api-2.3.jar which is coming Axis2.war.  When i remove the 
server-api-2.3.jar file from Axis.war, appication is working fine, i mean the 
jsp's are compiling. But sometimes the jsps are compiling when i  restarted the 
server, even if the jar file is present in Axis2.war. I want to know how the 
jboss is compiling the jsps when i restart the server? how jboss resolving the 
conflict when restarting the server? why the conflict is coming inbetween?



Hope to receive a convincing answer


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

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


[jboss-user] [JBoss jBPM] - Re: SQL error executing test process

2009-07-08 Thread ajvarela
Thank you all for replies.

I dont know how I can prevent the recreation of DB schema. I have tried comment 
the tearDown mehod code and the test run well but 
residual information is saved on DB when I reactive the tearDown code the error 
appear again.
 

This is my config for MySQL. Is correct dialect??

property 
name=hibernate.dialectorg.hibernate.dialect.MySQLInnoDBDialect/property
  | property 
name=hibernate.connection.driver_classcom.mysql.jdbc.Driver/property
  | property 
name=hibernate.connection.urljdbc:mysql://localhost:3306/jbpmdb/property
  | property name=hibernate.connection.usernameroot/property
  | property name=hibernate.connection.password*/property
  | property name=hibernate.format_sqltrue/property
  | 

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

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


[jboss-user] [JBoss Portal] - Createuser from Seam

2009-07-08 Thread chuaky
hi,

Hope someone can advise me on this issue.

I did a web page that allow the administrator to create a new user.  Part of 
the creation of the new user need to write some data into a database and at the 
same time create a new portal user.

I found some sample codes and try to use the portal UserModule createuser to do 
that, but encounter this strange error

2009-07-08 19:28:51,281 WARN  [org.jboss.seam.jsf.SeamPhaseListener] uncaught 
exception, passing to exception handler
  | java.lang.IllegalStateException: Could not commit transaction
  | at 
org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:625)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:604)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:345)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:245)
  | at 
org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:196)
  | at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:175)
  | at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:114)
  | at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
  | at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
  | at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
  | at 
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
  | at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
  | at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
  | 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:619)
  | Caused by: javax.transaction.HeuristicMixedException
  | at 
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1397)
  | at 

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: log4j config file behaviour

2009-07-08 Thread brettcave
instant reply seems broken :( or theres something funky in my cache.

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: log4j config file behaviour

2009-07-08 Thread brettcave
thanks jaikiran

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Failed shutdown attempt

2009-07-08 Thread david.l.small
We use the shutdown.sh -S command with Java 1.6.11. Thanks.

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

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


[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Problem with jboss class loader

2009-07-08 Thread jaikiran
These might help in understanding classloading in JBoss AS:

http://www.jboss.org/community/wiki/JBossClassLoadingUseCases
http://www.jboss.org/community/wiki/ClassLoadingConfiguration

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

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


[jboss-user] [JBoss jBPM] - Re: jBPM4: Manually created task can't block the execution

2009-07-08 Thread rogerofyan
Any progress?

I'm confusing about the relationship of task, activity and execution. Anybody 
know how to relat a task with a activity or execution in jBPM4?

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

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


[jboss-user] [JBoss jBPM] - jBpm 4.0CR1 - Getting variable from processInstance

2009-07-08 Thread efabbri
Hi, I have 4 process instances of 1 process definition initialized with a 
variables' Map. I want to list these instances and get their variables.

I call an executionProcessQuery and from it I extracted the Executions but 
Interface Execution doesn't have the methodo getVariable and I cannot get an 
OpenExecution or an ActivityExecution because it said 
org.hibernate.LazyInitializationException: failed to lazily initialize a 
collection of role: org.jbpm.pvm.internal.model.ExecutionImpl.variables, no 
session or session was closed.

How can I do?

Thanks.

Emanuele

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

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


[jboss-user] [EJB 3.0] - Re: java.lang.NoClassDefFoundError: [Lorg/jboss/aop/advice/I

2009-07-08 Thread alberto13
So i've got the same problem in the past. 
The problem is due to the lack of some class in classpath of your client.

So you have to add to your class path the jar file present in
$JBOSS_HOME/client/jbossall-client.jar
and 
$JBOSS_HOME/client/jboss-aop-jdk50-client.jar


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

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


[jboss-user] [JBoss jBPM] - Re: jBpm 4.0CR1 - Getting variable from processInstance

2009-07-08 Thread camunda
Use the Service Interface:

  | executionService.getVariable(...
  | // or
  | executionService.getVariables(...
  | 

The design has changed from jbpm 3 to 4.

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

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


[jboss-user] [JBoss jBPM] - Re: JBPM4: FOREIGN KEY problem

2009-07-08 Thread kukeltje
have you searched the forum and jira for similar isues? There have been and I 
wonder if they are related. 

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

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


[jboss-user] [JBoss jBPM] - Re: Hibernate error while deploying process in a web applica

2009-07-08 Thread kukeltje
8000 lines? Of just jBPM and hibernate debug? If so then look at the stacktrace 
and put less packages in debug mode.

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

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


[jboss-user] [JBossWS] - DOM API on SOAPElementImpl causes NotImplementedException

2009-07-08 Thread gang.yang
I'm working in the area where I need to process SOAP messages as DOM. I've been 
working with JBossWS as well as other providers. I found that JBossWS's 
SOAPElement implementation does not support many DOM APIs, such as 
getTextContent and getIdAttributeNode. Although these seem to be convenience 
APIs, but are used by our software as well as other 3rd party software. Lacking 
them limited JBossWS's capatibilties. I'm wondering why JBossWS did not 
implement them since all other providers seem to support them and if JBossWS 
has a plan to do so.

Thanks,
Gang

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

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


[jboss-user] [JBoss jBPM] - Re: SQL error executing test process

2009-07-08 Thread kukeltje
Dialect is correct.

recreation of 

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

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


[jboss-user] [JBossWS] - WebService Client with MTOM

2009-07-08 Thread MichaW
Hi,

I'm using jbossws-native-2.0.1 (default for the AS 4.2.2.GA).
I've used ws-consume on a wsdl from a thirdparty (see attached file).

When I try the create the service 

Service service = Service.create(getWsdlUrl(), getServiceName());

I get an error
 Caused by: org.jboss.ws.WSException: Cannot deploy null policy!
  | at 
org.jboss.ws.extensions.policy.deployer.PolicyDeployer.deployClientSide(PolicyDeployer.java:146)
  | at 
org.jboss.ws.extensions.policy.metadata.PolicyMetaDataBuilder.deployPolicyClientSide(PolicyMetaDataBuilder.java:310)
  | at 
org.jboss.ws.extensions.policy.metadata.PolicyMetaDataBuilder.deployPolicy(PolicyMetaDataBuilder.java:277)
  | at 
org.jboss.ws.extensions.policy.metadata.PolicyMetaDataBuilder.processPolicies(PolicyMetaDataBuilder.java:236)
  | at 
org.jboss.ws.extensions.policy.metadata.PolicyMetaDataBuilder.processPolicyExtensions(PolicyMetaDataBuilder.java:193)
  | at 
org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:93)
  | at 
org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.init(ServiceDelegateImpl.java:131)
  | at 
org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:61)
  | at javax.xml.ws.Service.init(Service.java:83)
  | at javax.xml.ws.Service.create(Service.java:721)
  | at 
nl.denhaag.gbd.services.ebus.attachmentservice.client.AttachmentServiceClient.initEndpoint(AttachmentServiceClient.java:63)
  | ... 43 more

When I use the same code on a webservice that does not use MTOM everything is 
working fine. 

What should I do to provide a policy for MTOM on the clientside?

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

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


[jboss-user] [JBoss jBPM] - Re: jBPM4: Manually created task can't block the execution

2009-07-08 Thread kukeltje
wow... please... a little patience ;-). This is all free (as in beer) time of 
others. You ask for progress in less than 9 hours from Shekarv's posting AND a 
little over 9 hours from your original posting. In between you already had two 
replies. Most would be jealous.

You could also have a look at the foreach forkhandler in jBPM 3 that is in the 
wiki. Yes it is for jBPM 3, but some concepts are the same. And maybe the 
implementation of the taskactivity in th source of jBPM 4.



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

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


[jboss-user] [JBoss Cache: Core Edition] - Eviction queue fills up causing threads to block

2009-07-08 Thread Jeremy Stone
We have a problem whereby we have seen the following message logged 
continuously on a customer's installation of our software that uses JBoss Cache 
with Hibernate:

Warning putNodeEvent(): eviction node event queue size is at 98% threshold 
value of capacity: 20 Region: /query/entity/by_name You will need to reduce 
the wakeUpIntervalSeconds parameter.

We have seen this only once so far. It does not appear to recur after a server 
restart.

A stack dump shows many threads waiting to put nodes on to the eviction queue. 
The following is representative...

Thread: pool-21-thread-4 : priority:5, demon:false, threadId:144, 
threadState:WAITING, 
lockName:java.util.concurrent.locks.abstractqueuedsynchronizer$conditionobj...@584b2d
  | 
  | sun.misc.Unsafe.park(Native Method)
  | java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
  | 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1925)
  | java.util.concurrent.LinkedBlockingQueue.put(LinkedBlockingQueue.java:254)
  | org.jboss.cache.RegionImpl.registerEvictionEvent(RegionImpl.java:249)
  | org.jboss.cache.RegionImpl.registerEvictionEvent(RegionImpl.java:234)
  | 
org.jboss.cache.interceptors.EvictionInterceptor.registerEvictionEventToRegionManager(EvictionInterceptor.java:252)
  | ...etc
  | org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:118)
  | org.hibernate.impl.SessionImpl.list(SessionImpl.java:1596)
  | org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:306)
  | org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:328)
  | ...etc
  | 
The EvictionTimer thread appears just to waiting for something to do...

Thread: EvictionTimer-0 : priority:5, demon:true, threadId:88, 
threadState:WAITING, 
lockName:java.util.concurrent.locks.abstractqueuedsynchronizer$conditionobj...@353fbf
  | 
  | sun.misc.Unsafe.park(Native Method)
  | java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
  | 
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1925)
  | java.util.concurrent.DelayQueue.take(DelayQueue.java:160)
  | 
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:583)
  | 
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:576)
  | java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)
  | 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
  | java.lang.Thread.run(Thread.java:619)

The only inkling as to what is occurring is that perhaps an eviction algorithm 
(silently) threw an unchecked exception causing the EvictionTimerTask Task to 
no longer be scheduled.
(see 
http://java.sun.com/javase/6/docs/api/java/util/concurrent/ScheduledExecutorService.html#scheduleWithFixedDelay(java.lang.Runnable,%20long,%20long,%20java.util.concurrent.TimeUnit)
 
which states '...If any execution of the task encounters an exception, 
subsequent executions are suppressed').

Even if this is not the cause of our problem then EvictionTimerTask seems 
susceptible to this behaviour. Maybe you should consider using something like 
the Spring Framework DelegatingExceptionProofRunnable
(http://static.springsource.org/spring/docs/2.5.6/api/org/springframework/scheduling/support/DelegatingExceptionProofRunnable.html).

Any thoughts on this?

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

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


[jboss-user] [JBossWS] - Re: WebService Client with MTOM - WSDL

2009-07-08 Thread MichaW
attachmentservice_1.wsdl
?xml version=1.0 encoding=UTF-8?
wsdl:definitions name=AttachmentService 
targetNamespace=http://tempuri.org/; 
xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; 
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; 
xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd;
 xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; 
xmlns:wsam=http://www.w3.org/2007/05/addressing/metadata; 
xmlns:tns=http://tempuri.org/; 
xmlns:wsa=http://schemas.xmlsoap.org/ws/2004/08/addressing; 
xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy; 
xmlns:i0=http://ebus.onefox.nl/2009/2/4; 
xmlns:wsap=http://schemas.xmlsoap.org/ws/2004/08/addressing/policy; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xmlns:msc=http://schemas.microsoft.com/ws/2005/12/wsdl/contract; 
xmlns:wsaw=http://www.w3.org/2006/05/addressing/wsdl; 
xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/; 
xmlns:wsa10=http://www.w3.org/2005/08/addressing; 
xmlns:wsx=http://schemas.xmlsoap.org/ws/2004/09/mex;
  wsdl:import namespace=http://ebus.onefox.nl/2009/2/4; 
location=AttachmentService.wsdl/
  wsdl:types/
  wsdl:service name=AttachmentService
wsdl:port name=AttachmentServiceEndpoint 
binding=i0:AttachmentServiceEndpoint
  soap:address 
location=http://wkst02.onefox.nl/ebus/AttachmentService.svc/
/wsdl:port
  /wsdl:service
/wsdl:definitions


AttachmentService.wsdl
?xml version=1.0 encoding=UTF-8?
wsdl:definitions targetNamespace=http://ebus.onefox.nl/2009/2/4; 
xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; 
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; 
xmlns:wsu=http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd;
 xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; 
xmlns:wsam=http://www.w3.org/2007/05/addressing/metadata; 
xmlns:tns=http://ebus.onefox.nl/2009/2/4; 
xmlns:wsa=http://schemas.xmlsoap.org/ws/2004/08/addressing; 
xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy; 
xmlns:wsap=http://schemas.xmlsoap.org/ws/2004/08/addressing/policy; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xmlns:msc=http://schemas.microsoft.com/ws/2005/12/wsdl/contract; 
xmlns:wsaw=http://www.w3.org/2006/05/addressing/wsdl; 
xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/; 
xmlns:wsa10=http://www.w3.org/2005/08/addressing; 
xmlns:wsx=http://schemas.xmlsoap.org/ws/2004/09/mex;
  wsp:Policy wsu:Id=AttachmentServiceEndpoint_policy
wsp:ExactlyOne
  wsp:All
wsoma:OptimizedMimeSerialization 
xmlns:wsoma=http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization/
  /wsp:All
/wsp:ExactlyOne
  /wsp:Policy
  wsdl:types
xsd:schema targetNamespace=http://ebus.onefox.nl/2009/2/4/Imports;
  xsd:import schemaLocation=AttachmentService_1.xsd 
namespace=http://ebus.onefox.nl/2009/2/4/
  xsd:import schemaLocation=AttachmentService_1_2_3.xsd 
namespace=http://ebus.onefox.nl/2009/2/4/attachment/
  xsd:import schemaLocation=AttachmentService_1_2.xsd 
namespace=http://schemas.microsoft.com/2003/10/Serialization//
  xsd:import schemaLocation=AttachmentService.xsd 
namespace=http://ebus.onefox.nl/2009/2/4/data/
  xsd:import schemaLocation=AttachmentService_1_2_3_4.xsd 
namespace=http://schemas.microsoft.com/Message/
/xsd:schema
  /wsdl:types
  wsdl:message name=ReadDocumentMsg/
  wsdl:message name=ReadDocumentMsg_Headers
wsdl:part name=AuthInfo element=tns:AuthInfo/
wsdl:part name=Data element=q1:ReadDocumentMsg 
xmlns:q1=http://ebus.onefox.nl/2009/2/4/attachment/
  /wsdl:message
  wsdl:message name=AttachmentServiceReadDocumentResMsg
wsdl:part name=ReadDocumentContent element=q2:ReadDocumentContent 
xmlns:q2=http://ebus.onefox.nl/2009/2/4/attachment/
  /wsdl:message
  wsdl:message name=AttachmentServiceReadDocumentResMsg_Headers
wsdl:part name=Result element=q3:ReadDocumentResultMsg 
xmlns:q3=http://ebus.onefox.nl/2009/2/4/attachment/
  /wsdl:message
  wsdl:message name=WriteDocumentMsg
wsdl:part name=ReadDocumentContent element=q4:ReadDocumentContent 
xmlns:q4=http://ebus.onefox.nl/2009/2/4/attachment/
  /wsdl:message
  wsdl:message name=WriteDocumentMsg_Headers
wsdl:part name=AuthInfo element=tns:AuthInfo/
wsdl:part name=Data element=q5:WriteDocumentMsg 
xmlns:q5=http://ebus.onefox.nl/2009/2/4/attachment/
  /wsdl:message
  wsdl:message name=AttachmentServiceWriteDocumentResMsg/
  wsdl:message name=AttachmentServiceWriteDocumentResMsg_Headers
wsdl:part name=Result element=q6:WriteDocumentResultMsg 
xmlns:q6=http://ebus.onefox.nl/2009/2/4/attachment/
  /wsdl:message
  wsdl:portType name=AttachmentService
wsdl:operation name=ReadDocument
  wsdl:input 
wsaw:Action=http://ebus.onefox.nl/2009/2/4/AttachmentService/ReadDocument; 
name=ReadDocumentMsg message=tns:ReadDocumentMsg/
  wsdl:output 
wsaw:Action=http://ebus.onefox.nl/2009/2/4/AttachmentService/ReadDocumentResponse;
 name=AttachmentServiceReadDocumentResMsg 
message=tns:AttachmentServiceReadDocumentResMsg/

[jboss-user] [JBoss jBPM] - Some Questions about Spring JBPM4 Integration

2009-07-08 Thread rmoskal
Greetings all:

I've been working with the excellent demo project posted by Andries Inzé that 
shows how to integrate Spring and jBPM4 at http://www.inze.be/andries/.  I've 
managed to get things working against the trunk code but not CR1.  I see how we 
can pass arguments to the java objects in the spring context:


env type=”org.jbpm.pvm.internal.history.HistorySession”/


I'm curious as to what else can be passed to the java object.  Like I'd like to 
get a copy of the actual Execution.  HistorySession has only one method.

Also will it be possible to declare  nodes that pull from the Spring context?


I'm super excited about the combination of Spring/jBPM4.


Thanks and regards,


Robert Moskal
Most Media
brooklyn, USA

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

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

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


[jboss-user] sticky_session=0 + UseJk=false + HTTP Session Replication

2009-07-08 Thread Nicholas Schuetz
Hello,

I have a setup with:

Two hardware load balancers - 2 Apache 2.2 instances running mod_jk
1.2.28 LB w/ sticky_session=0 - 2 JBossAS 4.2.3 Servers doing HTTP
Session Replication via JBoss Clustering.

* My hardware load balancers are not configured to do sticky sessions
* My Apache 2.2 w/ mod_jk lb workers have sticky_session=0 set (No
Sticky Sessions)

Since I do not have sticky_session enabled do I still need to have
UseJK=true and my jvmRoute value set for mod_jk LB and HTTP Session
Replication to work?

In deploy/jboss-web.deployer/META-INF/jboss-service.xml it reads:

--- SNIP ---
 !--
  Whether to use MOD_JK(2) for load balancing with sticky session
  combined with JvmRoute. If set to true, it will insert a JvmRouteFilter
  to intercept every request and replace the JvmRoute if it detects a
  failover. In addition, you will need to set the JvmRoute inside
  Tomcat, e.g.,
Engine name=jboss.web jmvRoute=Node1 defaultHost=localhost
  in server.xml.

  For clustering purpose only.
  --
  attribute name=UseJKfalse/attribute
--- SNIP ---


This suggest to me that unless you are using sticky_session=1 in
mod_jk you don't need to set UseJK to true and the jvmRoute. Is this
assumption correct?

If UseJK is set to false does mod_jk LB still work with JBoss? Will
other aspects of jboss clustering still function as they should i.e
Session Replication?


Thanks,

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


[jboss-user] [JBoss jBPM] - Re: Forced installation of JBoss?

2009-07-08 Thread sebastian.s
Hello shekharv,

thanks for you reply. I am going to use the GA version. I got a bit confused 
with the version numbering when browsing the SourceForge download page.

Is the problem described here ( 
http://www.jboss.org/index.html?module=bbop=viewtopict=145459) also existent 
in 3.2.6.SP1 ?

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

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


[jboss-user] [Advanced Documentation] - Re: Extending the JBoss AS

2009-07-08 Thread jaikiran
If you are looking for JBoss AS5, then its based on JBoss Microcontainer (JBoss 
MC). This guide on MC would be a good start 
http://www.jboss.org/file-access/default/members/jbossmc/freezone/docs/2.0.x/userGuide/index.html

Any specific questions about JBoss MC are welcome in the MC user forum here 
http://www.jboss.org/index.html?module=bbop=viewforumf=228

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

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


[jboss-user] [JBoss jBPM] - Re: Forced installation of JBoss?

2009-07-08 Thread kukeltje
afaik no.

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

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


[jboss-user] [JBoss jBPM] - [jBPM4] Task Forms

2009-07-08 Thread nilspreusker
Hi all,

I'm currently integrating jBPM4 with a tapestry 4.1.5 based web application. 
I've seen that there are some example task forms (.ftl files) in the 
src/test/resources directory of the jBPM4 trunk, but I couldn't find any test 
cases or documentation of the task forms that would explain how they are 
inteded to be used. The only thing I found is the post at 
http://www.jboss.org/index.html?module=bbop=viewtopict=155048, but it doesn't 
explain how to actually deploy the templates and how to retrieve instances of 
the forms in a web application. Also, the ${form.action} expression is a bit of 
a mystery to me. Is this a process variable as we know it from jpdl files?

Any hints would be appreciated, thanks in advance! Cheers, Nils  


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

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


[jboss-user] [JBoss Messaging] - Re: JBoss slowing down

2009-07-08 Thread pratimkm
Finally I have been able to tune Jboss AS to work as per the expectation of our 
company.I have made few configuration changes and I think combination of those 
helped. Those are underlined below

1I have disabled XA recovery coniguration outlined in chapter 8 of JBoss 
messaging installation.

2Found this https://jira.jboss.org/jira/browse/JBAS-5801. We were getting some 
transaction exceptions after 2-3 weeks. So added this attribute 
track-connection-by-tx/  to jms-ds.xml

3 As Howard suggested we updated to newer version of Jboss remoting which had 
completely eliminated the issue of messages getting stuck in queues.

4Removed jmx-console war from deployment which I think was the main reason 
behind slow jboss shutdown.

5We had earlier removed 'FILE' logger from jboss log4j configuration knowing 
that logging does have performance impact. Now we have removed all jboss 
specific log items and allowed only application logs.

Hope this is going to be helpful for all developers working with Jboss 
messaging.

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

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


[jboss-user] [Tomcat, HTTPD, Servlets JSP] - JSF + JBoss 3.x

2009-07-08 Thread wellingtonsampaio
Hi all!

Is it possible to deploy a JSF web application on JBoss 3.x?

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

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


[jboss-user] [JBossWS] - org.jboss.ws.WSException: Cannot uniquely indentify operatio

2009-07-08 Thread djkrite
Hello, 

I'm running JBoss 4.2.3, Java 1.5, and Ubuntu. I am trying to call a Microsoft 
Exchange web service from a JSF web application. I have written other web 
service end points and have successfully built clients into my web application. 
I also use the same code for this client in a stand alone Java application to 
call the web service and everything works great, but for some reason I am 
getting this exception in my web app:

  | org.jboss.ws.WSException: Cannot uniquely indentify operation: 
{http://schemas.microsoft.com/exchange/services/2006/messages}Subscribe
  | 

The exception is thrown when the 
com.microsoft.schemas.exchange.services._2006.messages.ExchangeServicePortType 
subscribe method is called. Relevent part of the exception output:

  | 13:17:15,718 ERROR [STDERR] org.jboss.ws.WSException: Cannot uniquely 
indentify operation: 
{http://schemas.microsoft.com/exchange/services/2006/messages}Subscribe
  | 13:17:15,719 ERROR [STDERR] at 
org.jboss.ws.metadata.umdm.EndpointMetaData.getOperation(EndpointMetaData.java:417)
  | 13:17:15,719 ERROR [STDERR] at 
org.jboss.ws.core.CommonClient.getOperationMetaData(CommonClient.java:195)
  | 13:17:15,719 ERROR [STDERR] at 
org.jboss.ws.core.CommonClient.getOperationMetaData(CommonClient.java:184)
  | 13:17:15,719 ERROR [STDERR] at 
org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:309)
  | 13:17:15,719 ERROR [STDERR] at 
org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:172)
  | 13:17:15,719 ERROR [STDERR] at 
org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:152)
  | 13:17:15,719 ERROR [STDERR] at $Proxy101.subscribe(Unknown Source)
  | 

There is also is a bunch of output when the javax.xml.ws.Service object is 
created:

  | 13:17:13,438 ERROR [JBossXSErrorHandler] 
[domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-character]::Message=s4s-elt-character:
 Non-whitespace characters are not allowed in schema elements other than 
'xs:appinfo' and 'xs:documentation'. Saw 'The xml: Namespace'.
  | 13:17:13,438 ERROR [JBossXSErrorHandler] 
[domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-character]::Message=s4s-elt-character:
 Non-whitespace characters are not allowed in schema elements other than 
'xs:appinfo' and 'xs:documentation'. Saw 'The xml: Namespace'.
  | 13:17:13,438 ERROR [JBossXSErrorHandler] 
[domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-character]::Message=s4s-elt-character:
 Non-whitespace characters are not allowed in schema elements other than 
'xs:appinfo' and 'xs:documentation'. Saw 'This Version:'.
  | 13:17:13,439 ERROR [JBossXSErrorHandler] 
[domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-character]::Message=s4s-elt-character:
 Non-whitespace characters are not allowed in schema elements other than 
'xs:appinfo' and 'xs:documentation'. Saw 'April 19, 2006'.
  | 13:17:13,439 ERROR [JBossXSErrorHandler] 
[domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-character]::Message=s4s-elt-character:
 Non-whitespace characters are not allowed in schema elements other than 
'xs:appinfo' and 'xs:documentation'. Saw 'Description'.
  | 13:17:13,439 ERROR [JBossXSErrorHandler] 
[domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-character]::Message=s4s-elt-character:
 Non-whitespace characters are not allowed in schema elements other than 
'xs:appinfo' and 'xs:documentation'. Saw 'The namespace whose name is'.
  | 13:17:13,439 ERROR [JBossXSErrorHandler] 
[domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-character]::Message=s4s-elt-character:
 Non-whitespace characters are not allowed in schema elements other than 
'xs:appinfo' and 'xs:documentation'. Saw 'http://www.w3.org/XML/1998/namespace'.
  | 13:17:13,439 ERROR [JBossXSErrorHandler] 
[domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-character]::Message=s4s-elt-character:
 Non-whitespace characters are not allowed in schema elements other than 
'xs:appinfo' and 'xs:documentation'. Saw 'is bound by definition to'.
  | 13:17:13,439 ERROR [JBossXSErrorHandler] 
[domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-character]::Message=s4s-elt-character:
 Non-whitespace characters are not allowed in schema elements other than 
'xs:appinfo' and 'xs:documentation'. Saw 'the prefix '.
  | 13:17:13,439 ERROR [JBossXSErrorHandler] 
[domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-character]::Message=s4s-elt-character:
 Non-whitespace characters are not allowed in schema elements other than 
'xs:appinfo' and 'xs:documentation'. Saw 'xml:'.
  | 13:17:13,439 ERROR [JBossXSErrorHandler] 
[domain:http://www.w3.org/TR/xml-schema-1]::[key=s4s-elt-character]::Message=s4s-elt-character:
 Non-whitespace characters are not allowed in schema elements other than 
'xs:appinfo' and 'xs:documentation'. Saw 'according to  '.
  | 13:17:13,439 ERROR [JBossXSErrorHandler] 

[jboss-user] [Clustering/JBoss] - Re: Farm deployment errors with large WAR files

2009-07-08 Thread bstansbe...@jboss.com
Patrick,

Looking at the log files you sent I'm seeing JGroups doing a lot of 
retransmission of messages. Basically for each ~60K of content JGroups sends a 
message; if the receiver detects some messages are missing it asks for 
retransmission of the missing message and won't deliver messages to the 
application until the missing message is received. If you get a lot of that it 
will certainly slow things down.

I'm going to assume you are using the standard JGroups configurations that ship 
with the AS and that the problem isn't there.

Much more likely is it's an OS-level issue; OS isn't providing large enough 
buffers for UDP datagrams. Result is datagrams are lost at the network layer, 
so JGroups never sees the messages and needs to have them retransmitted. The 
default UDP buffer size on many OSs is very small.

http://www.29west.com/docs/THPM/udp-buffer-sizing.html has a nice section on 
how to configure UDP buffer sizes on various OS's.  The stock JBoss AS config 
can utilize up to a 25MB in UDP buffer, so if you have memory resources to 
allow that much, go for it.  If not, provide as much as you can but I'd say at 
least 2MB.

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

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


[jboss-user] [JBoss Tools (users)] - Re: Using JBoss Tools in Maven projects

2009-07-08 Thread sanches
snjeza,

I've installed fresh Eclipse Galileo 3.5, downloaded and installed:
JBossASTools 2.1.0.M3 from nightly build site ()
* Dev build of Maven plugin from http://m2eclipse.sonatype.org/update-* dev 
version of plugin is displayed as 0.9.9.2009.07071528 
(newer than shown in the screencast at http://screencast.com/t/bOv02ocE)
* Seam 2.1.2 (had to, without installed Seam wizard blocks)

I followed the steps like in the screencast, and discovered the following 
troubles:
* After pressing 'Finish' button in the wizard for 'Seam Web Project' something 
is happening, but dialog is not closed.
* Single project is created (not bundle (ear+ejb+parent+test), as in screencast)
* JBoss Maven Integration Facet is not chosen in the facets of that single 
project, and when I try to check it and click Ok, the error is displayed: 
Failed while installing JBoss Maven Integration 1.0.
Reason: 
Build path contains duplicate entry:
'org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER' for project 'mvntst'


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

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


[jboss-user] [Clustering/JBoss] - sticky_session=0 + UseJk=false + HTTP Session Replication

2009-07-08 Thread Hellaenergy
I have a setup with:

Two hardware load balancers - 2 Apache 2.2 instances running mod_jk
1.2.28 LB w/ sticky_session=0 - 2 JBossAS 4.2.3 Servers doing HTTP
Session Replication via JBoss Clustering.

* My hardware load balancers are not configured to do sticky sessions
* My Apache 2.2 w/ mod_jk lb workers have sticky_session=0 set (No
Sticky Sessions)

Since I do not have sticky_session enabled do I still need to have
UseJK=true and my jvmRoute value set for mod_jk LB and HTTP Session
Replication to work?

In deploy/jboss-web.deployer/META-INF/jboss-service.xml it reads:

--- SNIP ---
!--
 Whether to use MOD_JK(2) for load balancing with sticky session
 combined with JvmRoute. If set to true, it will insert a JvmRouteFilter
 to intercept every request and replace the JvmRoute if it detects a
 failover. In addition, you will need to set the JvmRoute inside
 Tomcat, e.g.,
   Engine name=jboss.web jmvRoute=Node1 defaultHost=localhost
 in server.xml.

 For clustering purpose only.
 --
 false
--- SNIP ---

This suggests to me that unless you are using sticky_session=1 in
mod_jk you shouldn't need to set UseJK to true and/or the jvmRoute. Is this
assumption correct?

If UseJK is set to false does mod_jk LB still work with JBoss? Will
other aspects of jboss clustering still function as they should i.e
session replication?

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

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


[jboss-user] [Clustering/JBoss] - Re: sticky_session=0 + UseJk=false + HTTP Session Replicatio

2009-07-08 Thread bstansbe...@jboss.com
1) Use sticky sessions. If you don't you are asking for trouble.

2) If you disregard #1, there shouldn't be any harm in leaving UseJK=false. The 
purpose of the JvmRouteValve is to allow the session to stay stuck after 
failover.

3) I've never tried to use mod_jk without configuring a jvmRoute. Quite 
possibly it will work fine. Suggest you just try it and see.

Hmm, come to think of it just yesterday I by accident tried mod_jk w/ no 
jvmRoute configured (forgot to configure it on a test setup.)  It seemed to 
work fine except the sessions didn't stick, which is to be expected.

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

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


[jboss-user] [Clustering/JBoss] - Re: MBeanServer - Jboss clustering

2009-07-08 Thread bstansbe...@jboss.com
Each AS instance will have its own MBeanServer.

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Jboss hangs, no errors in logs

2009-07-08 Thread nicolas.jouve
I have the same problem in production with Jboss 3.2.3. Did you ever manage to 
find a solution ?

Personally, I suspect a memory exhaustion problem.

Thank you

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

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


[jboss-user] [EJB 3.0] - Re: onetomany relationship question

2009-07-08 Thread Wolfgang Knauf
Hi,

I played around with your sample a bit. I agree that it works if you first 
create and save the parent, then create the child, set the parent and persist 
the child.
But assume that you don't save the parent, but the child. Here is the code 
snippet: 
ParentBean parent = new ParentBean();
  | entityManager.persist(parent);
  | 
  | 
  | ChildBean child1 = new ChildBean();
  | parent.getChilds().add(child1);
  | //child1.setParent(parentNew);
  | 
  | entityManager.persist(parent)
  | 
In this case, child and parent will be saved without error messages, but the 
relationship related database data is missing.

So, as a general guideline: always update both sides of the relationship, this 
will avoid a lot of problems ;-).

Best regards

Wolfgang

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

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


[jboss-user] [Clustering/JBoss] - Re: sticky_session=0 + UseJk=false + HTTP Session Replicatio

2009-07-08 Thread Hellaenergy
The reason I've chosen not to use sticky sessions is because theoretically at 
any time a node in the HW LB cluster could go down. If it does and the user 
gets directed to a different Apache + mod_jk node in the cluster what good is 
the sticky session then? I figure as long as session replication is turned on 
within my JBoss cluster I should be taken care of regardless if the originating 
HW or Soft LB node goes down.

With UseJK set to false it's been reported to me that JAAS replication wasn't 
happening as it should. I can neither confirm or deny that report because I 
have not seen the evidence to back it up. However, I am wondering if there is 
any possible way that could be true?

Also, if UseJK is set to true and jvmRoute is defined and mod_jk is still 
configured with sticky_session=0 is that ever a valid configuration?

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

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


[jboss-user] [Clustering/JBoss] - Re: sticky_session=0 + UseJk=false + HTTP Session Replicatio

2009-07-08 Thread bstansbe...@jboss.com
Mod_jk with sticky sessions routes requests based on the jvmRoute appended to 
the session id in the session cookie. The failure of one of your Apache nodes 
does not mean sticky sessions won't work, since such a failure doesn't affect 
the session cookies.

For more on the sticky session recommendation see 
http://www.jboss.org/community/wiki/WebClusteringBestPractices.

Not sure what you're referring to when you discuss JAAS replication. Perhaps 
https://jira.jboss.org/jira/browse/JBAS-1900 ??  That's another reason to use 
sticky sessions -- the web container's FORM authentication mechanism assumes 
the post of the login form will go to the server that issued the form.

Re: UseJK=true and a jvmRoute when sticky session aren't used, it's valid in 
the sense that it doesn't break anything. The UseJK=true isn't doing anything 
for you; adds a bit of overhead. I'm not going to comment beyond what I already 
have on not setting the jvmRoute as it's not something I've really investigated.


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

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


[jboss-user] [JBoss Portal] - Links to resources within this portal should be absolute.

2009-07-08 Thread Shi Yusen
While localizing JBoss Portal to Chinese, I'm curious on the 
CMS_LINK_TO_RESOURCES. Links to resources within this portal should be 
absolute. For example: A link to an image located in default/images/back.gif 
should be typed in exactly as shown here. Do not prefix a slash (/) to the path 
of the resource. You can verify the link is correct by clicking on the preview 
button in the editor.

I think it's a relative link, right?

Shi Yusen/Beijing Langhua Ltd.

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Failed shutdown attempt

2009-07-08 Thread PeterJ
I have never seen an Address already in use error when attempting to connect 
to a port as a client (as a server, yes, but never as a client). Use netstat to 
determine if the port is open. Also try running:

telnet localhost 1099

that should give you some gibberish as the output, but the key information is 
the hostname in that output - it could point to an issue in /etc/hosts. (I know 
there are several posts that discuss using telnet to debug this, but search 
doesn't yield any of them, so I can't point one out. So, could you post the 
telnet output and /etc/hosts file?)

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

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


[jboss-user] [Clustering/JBoss] - Re: sticky_session=0 + UseJk=false + HTTP Session Replicatio

2009-07-08 Thread Hellaenergy
I'd like to clarify that I have a hardware LB in front of two separate Apache + 
mod_jk (configured to load balance) nodes. Each Apache + mod_jk node lb's to 
the same two JBoss AS servers. If the HW LB cluster in front of the Apache 
nodes decides to send a request to a node other than the originating Apache + 
mod_jk sticky session initiating node (we'll call this ws node 1) during an 
active session then my assumption is the other Apache + mod_jk node (ws node 2) 
will have no knowledge or ability to handle the other Apache + mod_jk lb nodes 
activities/ sticky session? Thus my reason for skipping the sticky sessions. 
Follow me? 

The one thing they do have going for them is that they are both configured 
identically mod_jk wise. The workers are defined the same so therefore the 
jvmRoute entries theoretically could be identified by ws node 2 if ws node 1 
wasn't available.

I guess this brings me to another question. Does mod_jk keep track of sticky 
sessions it's initiated locally? How is that information stored/shared? If 
there are two separate web servers with mod_jk identically configured to LB w/ 
sticky_session=true and sharing the same workers, could one entire web server 
fail and the other take over seamlessly? How would JBossAS handle this. How 
would mod_jk handle this?


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

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


[jboss-user] [Clustering/JBoss] - Re: sticky_session=0 + UseJk=false + HTTP Session Replicatio

2009-07-08 Thread Hellaenergy
bstansbe...@jboss.com wrote : Mod_jk with sticky sessions routes requests 
based on the jvmRoute appended to the session id in the session cookie. The 
failure of one of your Apache nodes does not mean sticky sessions won't work, 
since such a failure doesn't affect the session cookies.
  | 

My bad I missed that one some how. So theoretically two separate web servers 
with the same workers defined could handle each others sticky sessions without 
sending anything into a fit of confusion?



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

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


[jboss-user] [JBoss Tools (users)] - Re: Using JBoss Tools in Maven projects

2009-07-08 Thread snjeza
m2eclipse has changed API. I have created 
https://jira.jboss.org/jira/browse/JBIDE-4588 and will fix it ASAP.

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

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


[jboss-user] [JBoss Messaging] - Re: Clustering differences versus JBoss MQ

2009-07-08 Thread kennardconsulting
FAQ updated. Please review.

Regards,

Richard.

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Arjuna TX Manager Class Cast Exception

2009-07-08 Thread rupertlssmith
Hi,

On JBoss 4.2.2GA, I get the following exception:


  | java.lang.ClassCastException: 
com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate cannot be cast to 
javax.transaction.TransactionManager
 
  | at 
org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:23)
   
  | at 
org.hibernate.impl.SessionFactoryImpl.init(SessionFactoryImpl.java:325)   

 
  | at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300)
 
  | 

Another Forum post suggested this might be because of having the 'jta' jar in 
the .ear file I am trying to deploy. I checked and sure enough it was there as 
part of the hibernate dependencies I included. 'jta.jar' does not need to be in 
the .ear file as the app server already provides it. So I removed it, but I 
still get the above error.

So now my dependency set of jars that are in my .ear file looks like (created 
with mvn dependency:tree):


  | [dependency:tree]
  | [INFO] uk.co.thebadgerset:thecookerybook-dev:ear:0.3-SNAPSHOT
  | [INFO] +- uk.co.thebadgerset:thecookerybook-backend:jar:0.3-SNAPSHOT:compile
  | [INFO] |  +- uk.co.thebadgerset:common:jar:0.3-SNAPSHOT:compile
  | [INFO] |  |  +- log4j:log4j:jar:1.2.13:compile
  | [INFO] |  |  +- regexp:regexp:jar:1.3:compile
  | [INFO] |  |  +- xml-apis:xml-apis:jar:1.3.03:compile
  | [INFO] |  |  +- dom4j:dom4j:jar:1.6.1:compile
  | [INFO] |  |  +- xerces:xercesImpl:jar:2.8.0:compile
  | [INFO] |  |  \- xalan:xalan:jar:2.7.0:compile
  | [INFO] |  +- uk.co.thebadgerset:configurator:jar:0.3-SNAPSHOT:compile
  | [INFO] |  |  +- javax.xml.bind:jsr173_api:jar:1.0:compile
  | [INFO] |  |  +- javax.xml.bind:jaxb-api:jar:2.1:compile
  | [INFO] |  |  |  +- javax.xml.stream:stax-api:jar:1.0-2:compile
  | [INFO] |  |  |  \- javax.activation:activation:jar:1.1:compile
  | [INFO] |  |  \- com.sun.xml.bind:jaxb-impl:jar:2.1.7:compile
  | [INFO] |  +- uk.co.thebadgerset:catalogue:ejb:0.3-SNAPSHOT:compile
  | [INFO] |  |  +- uk.co.thebadgerset:locator:jar:0.3-SNAPSHOT:compile
  | [INFO] |  |  +- uk.co.thebadgerset:catalogue-model:jar:0.3-SNAPSHOT:compile
  | [INFO] |  |  +- uk.co.thebadgerset:index-ra-client:jar:0.3-SNAPSHOT:compile
  | [INFO] |  |  \- org.hibernate:hibernate:jar:3.2.6.ga:compile
  | [INFO] |  | +- net.sf.ehcache:ehcache:jar:1.2.3:compile
  | [INFO] |  | +- commons-logging:commons-logging:jar:1.0.4:compile
  | [INFO] |  | +- asm:asm-attrs:jar:1.5.3:compile
  | [INFO] |  | +- antlr:antlr:jar:2.7.6:compile
  | [INFO] |  | +- cglib:cglib:jar:2.1_3:compile
  | [INFO] |  | +- asm:asm:jar:1.5.3:compile
  | [INFO] |  | \- commons-collections:commons-collections:jar:2.1.1:compile
  | [INFO] |  +- uk.co.thebadgerset:index:jar:0.3-SNAPSHOT:compile
  | [INFO] |  \- uk.co.thebadgerset:aima:jar:0.3-SNAPSHOT:compile
  | [INFO] +- 
uk.co.thebadgerset:thecookerybook-backend:jar:config:0.3-SNAPSHOT:compile
  | [INFO] \- uk.co.thebadgerset:thecookerybook-web:war:0.3-SNAPSHOT:compile
  | 

I'm confused by the class cast exception because I now expect that there should 
be only one copy of 'com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate' 
and 'javax.transaction.TransactionManager' on the classpath and that the former 
does indeed extend the latter.

I have unpacked all the above jars and scanned them and none contain 
'com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate' or 
'javax.transaction.TransactionManager'.

Is this happening because I have included the Hibernate jars in my .ear file 
instead of using the container supplied version?

Any help is appreciated, thanks.

Rupert

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

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


[jboss-user] [JBoss Messaging] - Re: Clustering differences versus JBoss MQ

2009-07-08 Thread gaohoward
Thanks Richard, 

Now the FAQ has the latest AS 5 included. great stuff!

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

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


[jboss-user] resteasy-maven-import not found

2009-07-08 Thread Sam Wun
Hi,
I was trying to install an RESTeasy example, but got some errors.
This example I want to install:
/usr/resteasy-jaxrs-1.1.GA/examples/spring-hibernate

Getting the following errors:
spring-hibernate # !mv
mvn clean install
[INFO] Scanning for projects...
Downloading: 
http://download.java.net/maven/1/org.jboss.resteasy/poms/resteasy-maven-import-1.1.GA.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA' in repository
java.net (http://download.java.net/maven/1)
Downloading: 
http://repo1.maven.org/maven2//org/jboss/resteasy/resteasy-maven-import/1.1.GA/resteasy-maven-import-1.1.GA.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA' in repository
maven repo (http://repo1.maven.org/maven2/)
Downloading: 
http://repository.jboss.org/maven2/org/jboss/resteasy/resteasy-maven-import/1.1.GA/resteasy-maven-import-1.1.GA.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA' in repository
jboss (http://repository.jboss.org/maven2)
Downloading: 
http://scannotation.sf.net/maven2/org/jboss/resteasy/resteasy-maven-import/1.1.GA/resteasy-maven-import-1.1.GA.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA' in repository
scannotation (http://scannotation.sf.net/maven2)
Downloading: 
http://repo1.maven.org/maven2/org/jboss/resteasy/resteasy-maven-import/1.1.GA/resteasy-maven-import-1.1.GA.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA' in repository
central (http://repo1.maven.org/maven2)
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] Error building POM (may not be this project's POM).


Project ID: org.jboss.resteasy:resteasy-maven-import

Reason: POM 'org.jboss.resteasy:resteasy-maven-import' not found in
repository: Unable to download the artifact from any repository

  org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  java.net (http://download.java.net/maven/1),
  scannotation (http://scannotation.sf.net/maven2),
  maven repo (http://repo1.maven.org/maven2/),
  jboss (http://repository.jboss.org/maven2)

 for project org.jboss.resteasy:resteasy-maven-import

Your help is very much appreciated.
Thanks
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration DEPLOYMENT] - TomcatDeployment hangs when struts is configured in web.xml

2009-07-08 Thread mattma
Hi,
I have an existing struts application using Struts 1.2.7.  I'm  trying to 
deploy an existing web application on Jboss 5.1.0 GA.  As soon as I configure 
the struts action servlet in the web.xml, Jboss hangs at the console line:

19:37:54,679 INFO  [TomcatDeployment] deploy, ctxPath=/web

When I take out the action servlet stuff in the web.xml, the server starts 
without any problems.

I also tried removing all the action forward directives in the 
struts-config.xml leaving only one or two and the server still hangs.  

Using JDK 6 (java version 1.6.0_11)

The Jboss 5.1.0 GA is *not* the JDK6 compiled version.

Any thoughts on how I might go about figuring out what's going on here?  I 
don't even have any error messages to look at.

Thanks in advance,
-Matt

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Problem deploying my ear with admin-console.war

2009-07-08 Thread smcgo...@redhat.com
rwfuller - i'm looking into the app classloader isolation issue.  Can you post 
information on how your app is packaged.  Specifically, where the SEAM, RF jars 
are located?   Or attach a sample app to 
https://jira.jboss.org/jira/browse/JBAS-7032
I don't believe your app contains web beans from the information you've 
provided in your post.

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

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


[jboss-user] [JBoss Messaging] - Re: Unique-Cons traint »jbm_msg_pkeyÂà ‚Â« exception

2009-07-08 Thread Ganso
Hi,

I encountered a similar problem, too. 
Please look at  
https://jira.jboss.org/jira/browse/JBMESSAGING-1682

Thank You.

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

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


[jboss-user] [JBoss Portal] - Jboss Portal DB Setup Issue

2009-07-08 Thread sambit_dixit
Hi,
   We are seeing a strange issue while setting up portal database. Initially we 
created a db user with system privileges ( similar to DBA privilege) and set 
this user under PortalDS datasource. Once we start the Jboss Portal Server. All 
the JBP/JBPM tables, Sequences( hibernate_sequence, 
portlet_sequence,portal_seq, instance_seq,sec_seq,user_seq) are created. We set 
up the portal and its security, themes etc through the admin console. 
Everything works fine using this db user. 

Since this user has system privilege, there is a concern from DBAs as well as 
infrastructure to have a similar user with system privilege credential in 
production and staging environment. 

As a next step, we created a new db user and granted all access to the 
JBP/JBPM tables and synonyms created for jboss portal 
sequences(hibernate_sequence, portlet_sequence,portal_seq, 
instance_seq,sec_seq,user_seq).  In the hibernate.cfg file the hbm2ddl.auto is 
set to update.  

When we started the jboss portal with the user credential of newly created user 
in PortalDS, the application server is starting fine with 3 of the sequences ( 
portal_seq, instance_seq, sec_seq) giving error as (e.g. Table Not Found: 
portal_seq), then when i try to login to portal using portal user or admin. It 
is not going through. 

I'm wondering why not able to get into JBP when JBP is started with a DB user 
not having system privilege while it is working with a DB user having system 
privilege. Since the tables, sequences are already created and the newly 
created user is being given all privileges on the tables and sequence 
synonyms. 

Has anyone faced this issue or this is a limitation in JBP ? 

Appreciate your response ? 

Regards
-Sambit

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

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


[jboss-user] [JBoss jBPM] - Re: JBPM4: FOREIGN KEY problem

2009-07-08 Thread hexiaofeng
no found similar isues in forum. Who can give me some suggests? Thanks

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

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


[jboss-user] [JBossWS] - resteasy-maven-import not found

2009-07-08 Thread samwan808
Sorry everyone, since there is no REST group in this forum. 
And REST is kind of Web Service, therefore I think here is the best place I ask 
for help.

I am trying to install an resteasy example called spring-hibernate, but I 
encountered  the following errors (can't download resteasy-maven-import)

Hi,
I was trying to install an RESTeasy example, but got some errors.
This example I want to install:
/usr/resteasy-jaxrs-1.1.GA/examples/spring-hibernate

Getting the following errors:
spring-hibernate # !mv
mvn clean install
[INFO] Scanning for projects...
Downloading: 
http://download.java.net/maven/1/org.jboss.resteasy/poms/resteasy-maven-import-1.1.GA.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA' in repository
java.net (http://download.java.net/maven/1)
Downloading: 
http://repo1.maven.org/maven2//org/jboss/resteasy/resteasy-maven-import/1.1.GA/resteasy-maven-import-1.1.GA.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA' in repository
maven repo (http://repo1.maven.org/maven2/)
Downloading: 
http://repository.jboss.org/maven2/org/jboss/resteasy/resteasy-maven-import/1.1.GA/resteasy-maven-import-1.1.GA.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA' in repository
jboss (http://repository.jboss.org/maven2)
Downloading: 
http://scannotation.sf.net/maven2/org/jboss/resteasy/resteasy-maven-import/1.1.GA/resteasy-maven-import-1.1.GA.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA' in repository
scannotation (http://scannotation.sf.net/maven2)
Downloading: 
http://repo1.maven.org/maven2/org/jboss/resteasy/resteasy-maven-import/1.1.GA/resteasy-maven-import-1.1.GA.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA' in repository
central (http://repo1.maven.org/maven2)
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] Error building POM (may not be this project's POM).


Project ID: org.jboss.resteasy:resteasy-maven-import

Reason: POM 'org.jboss.resteasy:resteasy-maven-import' not found in
repository: Unable to download the artifact from any repository

 org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA

from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 java.net (http://download.java.net/maven/1),
 scannotation (http://scannotation.sf.net/maven2),
 maven repo (http://repo1.maven.org/maven2/),
 jboss (http://repository.jboss.org/maven2)

 for project org.jboss.resteasy:resteasy-maven-import

Your help is very much appreciated.
Thanks



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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: TomcatDeployment hangs when struts is configured in web.

2009-07-08 Thread jaikiran
19:37:54,679 INFO [TomcatDeployment] deploy, ctxPath=/web 

That line does not indicated a hang. What exactly do you mean by the server 
hanging? The server.log will have more information about the activities. Also 
did you try accessing the server through the browser when this happens? What 
does it show?

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - resteasy-maven-import not found

2009-07-08 Thread samwan808
Hi,
I was trying to install an RESTeasy example, but got some errors.
This example I want to install:
/usr/resteasy-jaxrs-1.1.GA/examples/spring-hibernate

Getting the following errors:
spring-hibernate # !mv
mvn clean install
[INFO] Scanning for projects...
Downloading: 
http://download.java.net/maven/1/org.jboss.resteasy/poms/resteasy-maven-import-1.1.GA.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA' in repository
java.net (http://download.java.net/maven/1)
Downloading: 
http://repo1.maven.org/maven2//org/jboss/resteasy/resteasy-maven-import/1.1.GA/resteasy-maven-import-1.1.GA.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA' in repository
maven repo (http://repo1.maven.org/maven2/)
Downloading: 
http://repository.jboss.org/maven2/org/jboss/resteasy/resteasy-maven-import/1.1.GA/resteasy-maven-import-1.1.GA.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA' in repository
jboss (http://repository.jboss.org/maven2)
Downloading: 
http://scannotation.sf.net/maven2/org/jboss/resteasy/resteasy-maven-import/1.1.GA/resteasy-maven-import-1.1.GA.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA' in repository
scannotation (http://scannotation.sf.net/maven2)
Downloading: 
http://repo1.maven.org/maven2/org/jboss/resteasy/resteasy-maven-import/1.1.GA/resteasy-maven-import-1.1.GA.pom
[INFO] Unable to find resource
'org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA' in repository
central (http://repo1.maven.org/maven2)
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] Error building POM (may not be this project's POM).


Project ID: org.jboss.resteasy:resteasy-maven-import

Reason: POM 'org.jboss.resteasy:resteasy-maven-import' not found in
repository: Unable to download the artifact from any repository

 org.jboss.resteasy:resteasy-maven-import:pom:1.1.GA

from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 java.net (http://download.java.net/maven/1),
 scannotation (http://scannotation.sf.net/maven2),
 maven repo (http://repo1.maven.org/maven2/),
 jboss (http://repository.jboss.org/maven2)

 for project org.jboss.resteasy:resteasy-maven-import

Your help is very much appreciated.
Thanks

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

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


[jboss-user] [JBoss jBPM] - Re: jBpm 3.2.6GA - ERROR [GraphSession] org.hibernate.Hibern

2009-07-08 Thread vignesh57
I am also facing the same issue.
Did you fixed it or anyone else know the root cause for this ?
Thanks.

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

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


[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: resteasy-maven-import not found

2009-07-08 Thread samwan808
In the link 
http://www.jboss.org/file-access/default/members/resteasy/freezone/docs/1.1.GA/userguide/html/Maven_and_RESTEasy.html,
 

it said that:

  |  There is also a pom that can be imported so the versions of the individual 
modules do not have to be specified. Note that maven 2.0.9 is required for this.
  | 
  | dependencyManagement
  | dependencies
  | dependency
  | groupIdorg.jboss.resteasy/groupId
  | artifactIdresteasy-maven-import/artifactId
  | version1.1.GA/version
  | typepom/type
  | scopeimport/scope
  | /dependency
  | /dependencies
  | /dependencyManagement
  | 

But it doesn't mentioned where I can download this pom from.

Thanks


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

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