0 Replies Latest reply on Apr 8, 2002 1:00 PM by Mac Rinehart

    Are their changes to mail-service configuration?

    Mac Rinehart Newbie

      Hi,

      I've been working with JBoss-3.0.0beta2 for the past several weeks. I had an application all set up properly, and using the mail service without a hitch. Then, yesterday, I did a clean checkout and rebuild, setup mail service as I have always done, and tested my application again (which has been unchanged). I get a naming exception stating that the name "Mail" is not bound.

      When I browsed through my through the startup log I clearly saw all the messages that indicated that the "Mail" name is bound. The only other oddity that I detect is when I change mail-service.xml and save while JBoss is running, I get a NameAlreadyBoundException. The message indicates that the name is already bound in something to do with JSR-77. The log output and stack trace is shown below. I removed my password and replaced with .

      2002-04-08 09:53:46,914 INFO [org.jboss.deployment.MainDeployer] Undeploying file:/C:/jboss-3.0.0beta/server/default/deploy/mail-service.xml
      2002-04-08 09:53:46,914 DEBUG [org.jboss.deployment.SARDeployer] undeploying document file:/C:/jboss-3.0.0beta/server/default/deploy/mail-service.xml
      2002-04-08 09:53:46,914 DEBUG [org.jboss.deployment.SARDeployer] stopping mbean jboss:service=Mail
      2002-04-08 09:53:46,914 DEBUG [org.jboss.system.ServiceController] stopping service: jboss:service=Mail
      2002-04-08 09:53:46,914 DEBUG [org.jboss.system.ServiceController] service context has 0 depending services
      2002-04-08 09:53:46,914 INFO [org.jboss.mail.MailService] Stopping
      2002-04-08 09:53:46,914 INFO [org.jboss.mail.MailService] Mail service 'java:/Mail' removed from JNDI
      2002-04-08 09:53:46,914 INFO [org.jboss.mail.MailService] Stopped
      2002-04-08 09:53:46,914 DEBUG [org.jboss.deployment.SARDeployer] destroying mbean jboss:service=Mail
      2002-04-08 09:53:46,914 DEBUG [org.jboss.system.ServiceController] destroying service: jboss:service=Mail
      2002-04-08 09:53:46,914 INFO [org.jboss.mail.MailService] Destroying
      2002-04-08 09:53:46,914 INFO [org.jboss.mail.MailService] Destroyed
      2002-04-08 09:53:46,914 DEBUG [org.jboss.deployment.SARDeployer] removing mbean jboss:service=Mail
      2002-04-08 09:53:46,914 DEBUG [org.jboss.system.ServiceController] removing service: jboss:service=Mail
      2002-04-08 09:53:46,924 DEBUG [org.jboss.system.ServiceController] removing jboss:service=Mail from server
      2002-04-08 09:53:46,924 DEBUG [org.jboss.system.ServiceCreator] unregistered caossloader for: jboss:service=Mail
      2002-04-08 09:53:46,924 INFO [org.jboss.deployment.MainDeployer] Cleaned Deployment file:/C:/jboss-3.0.0beta/server/default/deploy/mail-service.xml
      2002-04-08 09:53:46,924 INFO [org.jboss.deployment.MainDeployer] Undeployed file:/C:/jboss-3.0.0beta/server/default/deploy/mail-service.xml
      2002-04-08 09:53:46,924 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/C:/jboss-3.0.0beta/server/default/deploy/mail-service.xml
      2002-04-08 09:53:46,924 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/C:/jboss-3.0.0beta/server/default/deploy/mail-service.xml
      2002-04-08 09:53:46,934 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.SARDeployer@1fc2fb
      2002-04-08 09:53:46,944 DEBUG [org.jboss.deployment.SARDeployer] Found classpath element:
      2002-04-08 09:53:46,944 DEBUG [org.jboss.deployment.SARDeployer] Setting up classpath from raw codebase: lib
      2002-04-08 09:53:46,944 DEBUG [org.jboss.deployment.SARDeployer] codebase is file:/C:/jboss-3.0.0beta/lib/
      2002-04-08 09:53:46,944 DEBUG [org.jboss.deployment.SARDeployer] archives are mail.jar, activation.jar, mail-plugin.jar
      2002-04-08 09:53:46,944 DEBUG [org.jboss.deployment.SARDeployer] deployed classes for file:/C:/jboss-3.0.0beta/lib/activation.jar
      2002-04-08 09:53:46,944 DEBUG [org.jboss.deployment.SARDeployer] deployed classes for file:/C:/jboss-3.0.0beta/lib/mail.jar
      2002-04-08 09:53:46,944 DEBUG [org.jboss.deployment.SARDeployer] deployed classes for file:/C:/jboss-3.0.0beta/lib/mail-plugin.jar
      2002-04-08 09:53:46,944 DEBUG [org.jboss.deployment.SARDeployer] about to copy 0 local directories
      2002-04-08 09:53:46,944 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/C:/jboss-3.0.0beta/server/default/deploy/mail-service.xml
      2002-04-08 09:53:46,944 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/C:/jboss-3.0.0beta/server/default/deploy/mail-service.xml
      2002-04-08 09:53:46,944 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/C:/jboss-3.0.0beta/server/default/deploy/mail-service.xml
      2002-04-08 09:53:46,944 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, create step: url file:/C:/jboss-3.0.0beta/server/default/deploy/mail-service.xml
      2002-04-08 09:53:46,944 DEBUG [org.jboss.system.ServiceCreator] About to create bean: jboss:service=Mail
      2002-04-08 09:53:46,944 DEBUG [org.jboss.system.ServiceCreator] code: org.jboss.mail.MailService
      2002-04-08 09:53:46,944 DEBUG [org.jboss.system.ServiceCreator] Created bean: jboss:service=Mail
      2002-04-08 09:53:47,004 DEBUG [org.jboss.ejb.plugins.EnterpriseContextCachePolicy] Resized cache for bean ATMTransactionEJB: old capacity = 1000000, new capacity = 50
      2002-04-08 09:53:47,014 DEBUG [org.jboss.system.ServiceConfigurator] JNDIName set to java:/Mail in jboss:service=Mail
      2002-04-08 09:53:47,094 DEBUG [org.jboss.system.ServiceConfigurator] User set to rinehart in jboss:service=Mail
      2002-04-08 09:53:47,154 DEBUG [org.jboss.system.ServiceConfigurator] Password set to in jboss:service=Mail
      2002-04-08 09:53:47,154 DEBUG [org.jboss.system.ServiceConfigurator] Configuration set to
      <!-- Change to your mail server prototocol -->



      <!-- Change to the user who will receive mail -->


      <!-- Change to the mail server -->


      <!-- Change to the SMTP gateway server -->


      <!-- Change to the address mail will be from -->


      <!-- Enable debugging output from the javamail classes -->

      in jboss:service=Mail
      2002-04-08 09:53:47,164 INFO [org.jboss.mail.MailService] Creating
      2002-04-08 09:53:47,164 DEBUG [org.jboss.management.j2ee.J2EEManagedObject] getObjectName(), name: jboss.management.single:J2EEServer=Single,j2eeType=JavaMailResource,name=Mail
      2002-04-08 09:53:47,164 DEBUG [org.jboss.management.j2ee.J2EEManagedObject] postRegister(), parent: jboss.management.single:j2eeType=J2EEServer,name=Single
      2002-04-08 09:53:47,174 ERROR [org.jboss.management.j2ee.JavaMailResource] Could not create JSR-77 JavaMail Resouce
      javax.management.InstanceAlreadyExistsException: jboss.management.single:J2EEServer=Single,j2eeType=JavaMailResource,name=Mail already registered.
      at org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistry.java:664)
      at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:255)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:441)
      at org.jboss.mx.util.MBeanProxy$JMXInvocationHandler.invoke(MBeanProxy.java:165)
      at $Proxy0.registerMBean(Unknown Source)
      at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:856)
      at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:233)
      at org.jboss.management.j2ee.JavaMailResource.create(JavaMailResource.java:139)
      at org.jboss.mail.MailService.createService(MailService.java:139)
      at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:134)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:441)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:805)
      at $Proxy1.create(Unknown Source)
      at org.jboss.system.ServiceController.create(ServiceController.java:239)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:441)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy4.create(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:633)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:516)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:480)
      at java.lang.reflect.Method.invoke(Native Method)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:441)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:329)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:439)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:202)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      2002-04-08 09:53:47,174 INFO [org.jboss.mail.MailService] Created
      2002-04-08 09:53:47,174 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying mail-service.xml
      2002-04-08 09:53:47,174 DEBUG [org.jboss.deployment.MainDeployer] start step for deployment file:/C:/jboss-3.0.0beta/server/default/deploy/mail-service.xml
      2002-04-08 09:53:47,174 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, start step: url file:/C:/jboss-3.0.0beta/server/default/deploy/mail-service.xml
      2002-04-08 09:53:47,174 INFO [org.jboss.mail.MailService] Starting
      2002-04-08 09:53:47,174 DEBUG [org.jboss.mail.MailService] setting property mail.store.protocol=pop3
      2002-04-08 09:53:47,174 DEBUG [org.jboss.mail.MailService] setting property mail.transport.protocol=smtp
      2002-04-08 09:53:47,174 DEBUG [org.jboss.mail.MailService] setting property mail.user=rinehart
      2002-04-08 09:53:47,174 DEBUG [org.jboss.mail.MailService] setting property mail.pop3.host=mail.spiritone.com
      2002-04-08 09:53:47,174 DEBUG [org.jboss.mail.MailService] setting property mail.smtp.host=mail.spiritone.com
      2002-04-08 09:53:47,174 DEBUG [org.jboss.mail.MailService] setting property mail.from=rinehart@sextanttech.com
      2002-04-08 09:53:47,174 DEBUG [org.jboss.mail.MailService] setting property mail.debug=false
      2002-04-08 09:53:47,184 DEBUG [org.jboss.mail.MailService] Using properties: {mail.pop3.host=mail.spiritone.com, mail.debug=false, mail.from=rinehart@sextanttech.com, mail.transport.protocol=smtp, mail.user=rinehart, mail.smtp.host=mail.spiritone.com, mail.store.protocol=pop3}
      2002-04-08 09:53:47,285 INFO [org.jboss.mail.MailService] Mail Service bound to java:/Mail
      2002-04-08 09:53:47,285 INFO [org.jboss.mail.MailService] Started
      2002-04-08 09:53:47,285 DEBUG [org.jboss.deployment.MainDeployer] Final (start) deployment step successfully completed on package: mail-service.xml
      2002-04-08 09:53:47,285 INFO [org.jboss.deployment.MainDeployer] Successfully completed deployment of package: file:/C:/jboss-3.0.0beta/server/default/deploy/mail-service.xml