commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From milli new <milline...@yahoo.com>
Subject [messenger] Adding Listener problem
Date Wed, 05 Mar 2003 12:26:53 GMT
Hi, Im trying to implement Messenger in Websphere
server. After struggling thru a lot without proper
docs, im struck in setting up and using MDO /
Messagelisteners in my servlet . Basically i have
bunch of servlet that produces and also consume the
message. when ever i try to define a listener (from
inside code using addListener() or in the web.xml ) i
get the following exception. The websphere strictly
enforces not to allow
Listener classes within web container. What is the
right way to define, and refer to these Listener
classes?
thanks,
Sam



[3/5/03 4:03:04:641 PST] 66555b63 ConnectionMan W
J2CA0075W: An active transaction should be present
while processing method initializeForUOW.
[3/5/03 4:03:05:234 PST] 66555b63 ServletInstan E
SRVE0100E: Did not realize  init() exception thrown by
servlet managerServlet:
javax.servlet.ServletException: Failed to initialize:
javax.jms.IllegalStateException: Method
setMessageListener not permitted
	at
org.apache.commons.messagelet.ManagerServlet.init(ManagerServlet.java:104)
	at
javax.servlet.GenericServlet.init(GenericServlet.java:258)
	at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:82)
	at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
	at
com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
	at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
	at
com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:175)
	at
javax.servlet.GenericServlet.init(GenericServlet.java:258)
	at
com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:761)
	at
com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:257)
	at
com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:453)
	at
com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1233)
	at
com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:273)
	at
com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:317)
	at
com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:194)
	at
com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:950)
	at
com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:133)
	at
com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:360)
	at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:401)
	at
com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:743)
	at
com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:337)
	at
com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:531)
	at
com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:254)
	at
com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:232)
	at
com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:343)
	at
com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:234)



Please share any idea that you might have on this
thanks,
Sam


___________________________________________________________
Sent by ePrompter, the premier email notification
software.
Free download at http://www.ePrompter.com.

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

Mime
View raw message