1 Reply Latest reply on Aug 20, 2013 1:09 PM by Tomaz Cerar

    How to configure mail set up in jboss7.1.1 final

    Pravin k Newbie

      when i tried the below mail settings in my standalone.xml

       

      <subsystem xmlns="urn:jboss:domain:mail:1.0">

              <mail-session jndi-name="mail/EMail">

              <username>xxxxxx</username>

              <password>yyyyyyy</password>

              <properties>               

                  <property name="mail.store.protocol">pop3</property>

                  <property name="mail.transport.protocol">smtp</property>

                  <property name="mail.user">123@4tc.com</property>

                  <property name="mail.pop3.host">mail01.b2b.com</property>

                  <property name="mail.smtp.host">smtprelay.b2b.com</property>

                  <property name="mail.smtp.port">25</property>

                  <property name="mail.from">123@4tc.com</property>

                  <property name="mail.debug">false</property>

              </properties>

            </mail-session>

              </subsystem>

       

      i got the below error msg

       

      ===============================================================================

       

      19:45:31,893 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

      19:45:32,157 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

      19:45:32,241 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" sta

      rting

      19:45:33,199 ERROR [org.jboss.as.server] JBAS015956: Caught exception during boo

      t: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS01

      4676: Failed to parse configuration

              at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(Xm

      lConfigurationPersister.java:141) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Fin

      al]

              at org.jboss.as.server.ServerService.boot(ServerService.java:266) [jboss

      -as-server-7.1.1.Final.jar:7.1.1.Final]

              at org.jboss.as.controller.AbstractControllerService$1.run(AbstractContr

      ollerService.java:155) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]

              at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_11]

      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[196,8]

      Message: Unexpected element '{urn:jboss:domain:mail:1.0}username'

              at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:1

      08) [staxmapper-1.1.0.Final.jar:1.1.0.Final]

              at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtende

      dStreamReaderImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final]

              at org.jboss.as.mail.extension.MailSubsystemParser.parseMailSession(Mail

      SubsystemParser.java:185)

              at org.jboss.as.mail.extension.MailSubsystemParser.readElement(MailSubsy

      stemParser.java:121)

              at org.jboss.as.mail.extension.MailSubsystemParser.readElement(MailSubsy

      stemParser.java:45)

              at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:1

      10) [staxmapper-1.1.0.Final.jar:1.1.0.Final]

              at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtende

      dStreamReaderImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final]

              at org.jboss.as.server.parsing.StandaloneXml.parseServerProfile(Standalo

      neXml.java:894) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

              at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_1(Stand

      aloneXml.java:330) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

              at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.j

      ava:127) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

              at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.j

      ava:100) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

              at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:1

      10) [staxmapper-1.1.0.Final.jar:1.1.0.Final]

              at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:6

      9) [staxmapper-1.1.0.Final.jar:1.1.0.Final]

              at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(Xm

      lConfigurationPersister.java:133) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Fin

      al]

              ... 3 more

       

      19:45:33,262 FATAL [org.jboss.as.server] JBAS015957: Server boot has failed in a

      n unrecoverable manner; exiting. See previous messages for details.

      19:45:33,281 INFO  [org.jboss.as] JBAS015950: JBoss AS 7.1.1.Final "Brontes" sto

      pped in 9ms