3 Replies Latest reply on Dec 13, 2012 1:47 AM by nickarls

    I am getting 77 services missing when i deploy my app on JBOSS 7.1.1 final related to mail services.

    gg.svce

      Server.log:

       

      12:22:35,899 ERROR [org.jboss.as] (MSC service thread 1-1) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 83803ms - Started 1531 of 1692 services (77 services failed or missing dependencies, 83 services are passive or on-demand)

      12:22:36,105 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "protectoria.ear" was rolled back with failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.protectoria.\"app.jar\".SMTPHandler.env.\"no.messageman.protectoria.core.smtp.SMTPHandler\".notificationSessionjboss.naming.context.java.comp.protectoria.\"app.jar\".SMTPHandler.env.protectoria.notification.mailMissing[jboss.naming.context.java.comp.protectoria.\"app.jar\".SMTPHandler.env.\"no.messageman.protectoria.core.smtp.SMTPHandler\".notificationSessionjboss.naming.context.java.comp.protectoria.\"app.jar\".SMTPHandler.env.protectoria.notification.mail]","jboss.naming.context.java.comp.protectoria.\"app.jar\".SMTPHandler.env.\"no.messageman.protectoria.core.smtp.SMTPHandler\".outboundSessionjboss.naming.context.java.comp.protectoria.\"app.jar\".SMTPHandler.env.protectoria.outbound.mailMissing[jboss.naming.context.java.comp.protectoria.\"app.jar\".SMTPHandler.env.\"no.messageman.protectoria.core.smtp.SMTPHandler\".outboundSessionjboss.naming.context.java.comp.protectoria.\"app.jar\".SMTPHandler.env.protectoria.outbound.mail]"]}

      12:22:36,213 INFO  [org.jboss.as.webservices] (MSC service thread 1-3) JBAS015540: Stopping service jboss.ws.endpoint."protectoria.ear"."app.jar".CoreWsImpl

      12:22:36,229 INFO  [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-3) remove: jboss.ws:context=app,endpoint=CoreWsImpl

      12:22:36,213 INFO  [org.jboss.as.webservices] (MSC service thread 1-1) JBAS015540: Stopping service jboss.ws.endpoint."protectoria.ear"."app.jar".ThickClientSharedSecretEncryptedWS

      12:22:36,241 INFO  [org.jboss.as.jpa] (MSC service thread 1-4) JBAS011403: Stopping Persistence Unit Service 'protectoria.ear/app.jar#protectoria'

      12:22:36,247 INFO  [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-1) remove: jboss.ws:context=app,endpoint=ThickClientSharedSecretEncryptedWS

      12:22:36,357 INFO  [org.jboss.as.webservices] (MSC service thread 1-1) JBAS015540: Stopping service jboss.ws.port-component-link

      12:22:36,368 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment app.jar in 264ms

      12:22:36,417 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment app.war in 313ms

      12:22:36,544 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment protectoria.ear in 442ms

      12:22:36,549 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

      JBAS014775:    New missing/unsatisfied dependencies:

            service jboss.naming.context.java.comp.protectoria."app.jar".SMTPHandler.env.protectoria.notification.mail (missing) dependents: [service jboss.naming.context.java.comp.protectoria."app.jar".SMTPHandler.env."no.messageman.protectoria.core.smtp.SMTPHandler".notificationSession]

            service jboss.naming.context.java.comp.protectoria."app.jar".SMTPHandler.env.protectoria.outbound.mail (missing) dependents: [service jboss.naming.context.java.comp.protectoria."app.jar".SMTPHandler.env."no.messageman.protectoria.core.smtp.SMTPHandler".outboundSession]

       

      12:22:36,581 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.protectoria.\"app.jar\".SMTPHandler.env.\"no.messageman.protectoria.core.smtp.SMTPHandler\".notificationSessionjboss.naming.context.java.comp.protectoria.\"app.jar\".SMTPHandler.env.protectoria.notification.mailMissing[jboss.naming.context.java.comp.protectoria.\"app.jar\".SMTPHandler.env.\"no.messageman.protectoria.core.smtp.SMTPHandler\".notificationSessionjboss.naming.context.java.comp.protectoria.\"app.jar\".SMTPHandler.env.protectoria.notification.mail]","jboss.naming.context.java.comp.protectoria.\"app.jar\".SMTPHandler.env.\"no.messageman.protectoria.core.smtp.SMTPHandler\".outboundSessionjboss.naming.context.java.comp.protectoria.\"app.jar\".SMTPHandler.env.protectoria.outbound.mailMissing[jboss.naming.context.java.comp.protectoria.\"app.jar\".SMTPHandler.env.\"no.messageman.protectoria.core.smtp.SMTPHandler\".outboundSessionjboss.naming.context.java.comp.protectoria.\"app.jar\".SMTPHandler.env.protectoria.outbound.mail]"]}}}

       

       

      SMTPHandler.java:

       

       

      @Stateless

      public class SMTPHandler implements ISMTP {

       

       

          /**

           * failed recipients message

           */

          private static final String FAILED_RECIPIENTS_MESSAGE = "<br/>Protectoria service failed to check the Read Mail status of following recipients:";

       

       

          /**

           * Logger handle.

           */

          private static Logger logger = Logger.getLogger(SMTPHandler.class);

       

       

          @EJB(mappedName = "pp/LookupHandler/local")

          private ILookup lookupHandler;

       

       

          /**

           * Mail session for outbound mails.

           */

         @Resource(mappedName = "pp/outbound/mail")

          private javax.mail.Session outboundSession;

       

       

          /**

           * Mail session for sending notification mails.

           */

         @Resource(mappedName = "pp/notification/mail")

          private javax.mail.Session notificationSession;

       

      i have configured it in standalone.xml:

       

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

                                         <mail-session jndi-name="pp/outbound/mail" from="no-dd@smtp.pp.com">

                                                        <smtp-server outbound-socket-binding-ref="mail-smtp" ssl="true">

                                                                       <login name="nobody" password="password" />

                                                        </smtp-server>

                                              <pop3-server outbound-socket-binding-ref="mail-pop3"/>

                                         </mail-session>

                                         <mail-session jndi-name="pp/notification/mail" from="no-dd@smtp.pp.com">

                                                        <smtp-server outbound-socket-binding-ref="mail-smtp" ssl="true">

                                                                       <login name="nobody" password="password" />

                                                        </smtp-server>

                                              <pop3-server outbound-socket-binding-ref="mail-pop3"/>

                                         </mail-session>

                          </subsystem>

       

       

      <outbound-socket-binding name="mail-smtp">

                  <remote-destination host="111.46.10.47" port="25"/>

              </outbound-socket-binding>

                          <outbound-socket-binding name="mail-pop3">

                                         <remote-destination host="111.46.10.47" port="25"/>

      </outbound-socket-binding>

       

      how can i resolve this issue, if anyone is aware please let me know.

       

      Thanks in advance:)