File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes How to configure JBossWorkManager? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How to configure JBossWorkManager?" Watch "How to configure JBossWorkManager?" New topic
Author

How to configure JBossWorkManager?

Ravi Raghava
Greenhorn

Joined: Feb 22, 2004
Posts: 7
Hi,
I am migrating from WebSphere to JBoss 5.1. Can you please tell me the right configuration that I need to use in web.xml or applicationContext.xml for using JBossWorkManager. Also, please suggest if I had to make any code changes (I replaced async bean package for WebSphere with JBossWorkManager package). Furnished is the configuration that I have right now but it is throwing Exception. Your help is much appreciated.

Code in applicationContext.xml:


Code in web.xml:


009-09-18 13:25:58,382 SEVERE [org.springframework.web.context.ContextLoader] (HDScanner) Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'taskExecutor' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: WorkManager not bound
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
.
.
.
Caused by: javax.naming.NameNotFoundException: WorkManager not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)


Thanks,
Ravi


Ravi Raghava
SCJP
SCWCD
Ravi Raghava
Greenhorn

Joined: Feb 22, 2004
Posts: 7
I am answering my own question. Might be useful for others.

jboss-web.xml


applicationContext.xml

 
 
subject: How to configure JBossWorkManager?