0 Replies Latest reply on Mar 30, 2005 4:35 AM by samfra

    Problem with 2 Mail Services

    samfra Newbie

      I try to deploy 2 Mail Services (to use several pop3 and smtp accounts)

      I have no problem to run one in mail-service.xml



      but the second can not start...

      2005-03-30 11:28:19,296 ERROR [org.jboss.mail.MailService] Starting failed jboss:service=Mail3
      java.lang.ClassCastException
       at org.jboss.mail.MailService.bind(MailService.java:319)
       at org.jboss.mail.MailService.startService(MailService.java:221)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
       at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
       at $Proxy13.start(Unknown Source)


      ....
       <mbean code="org.jboss.mail.MailService"
       name="jboss:service=Mail">
       <attribute name="JNDIName">java:/Mail</attribute>
      ...
       <mbean code="org.jboss.mail.MailService"
       name="jboss:service=Mail2">
       <attribute name="JNDIName">java:/Mail2</attribute>
      ...