[jboss-user] [JBoss Seam] - Re: Upgrade from Seam 1.1 to 1.2.1

m.alex do-not-reply at jboss.com
Thu Apr 19 06:35:41 EDT 2007


Ok, here goes.

I tried as advised (using this in a single components.xml):

<components>
  | 	<component class="org.jboss.seam.remoting.messaging.SubscriptionRegistry" install="true">
  | 		<property name="allowedTopics">clientNotificationTopic, inventoryNotifications</property>
  | 	</component>
  | </components>

and I got an error at deploy time:

2007-04-19 13:33:51,439 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/emp-filter]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
  | java.lang.RuntimeException: Could not create Component: org.jboss.seam.remoting.messaging.subscriptionRegistry
  | 	at org.jboss.seam.init.Initialization.addComponent(Initialization.java:865)
  | 	at org.jboss.seam.init.Initialization.installComponents(Initialization.java:796)
  | 	at org.jboss.seam.init.Initialization.init(Initialization.java:503)
  | 	at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:33)
  | 	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
  | ...

When using this in a single components.xml:

  | <components>
  | 	<component name="org.jboss.seam.remoting.messaging.subscriptionRegistry">
  | 		<property name="allowedTopics">clientNotificationTopic, inventoryNotifications</property>
  | 	</component>
  | </components>

I can deploy without error, but when I try to actually use remoting, I get:

13:25:16,997 ERROR [Remoting] Error
  | java.lang.IllegalStateException: No SubscriptionRegistry exists
  |         at org.jboss.seam.remoting.messaging.SubscriptionRegistry.instance(SubscriptionRegistry.java:65)
  |         at org.jboss.seam.remoting.messaging.SubscriptionRequest.subscribe(SubscriptionRequest.java:22)
  |         at org.jboss.seam.remoting.SubscriptionHandler.handle(SubscriptionHandler.java:78)
  |         at org.jboss.seam.remoting.Remoting.getResource(Remoting.java:110)
  |         at org.jboss.seam.servlet.ResourceServlet.doGet(ResourceServlet.java:68)
  |         at org.jboss.seam.servlet.ResourceServlet.doPost(ResourceServlet.java:77)
  |         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | ...

Apparently I can't figure out which is the right place to insert that declaration...

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

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



More information about the jboss-user mailing list