4 Replies Latest reply on Nov 9, 2010 8:32 PM by stan8688

    Seam2.2.1 Jboss6M5 MDB receive mail MDB deploy depency error

    stan8688

      use seam 2.2.1CR2 jboss 6 M5 mail-ra.rar send mail ok, but i use the MDB can't deploy ok

       

      first  error is @ResourceAdapter("mail-ra.rar") not define can't compile, so i  download a jboss-ejb3-ext-api.jar now can ant ok! but

       

      then run jboss error show below. send ok but MDB can't deploy , what Dependency i need!

       

      Does anybody help ! thanks.

       

      server log

      DEPLOYMENTS MISSING DEPENDENCIES:
         Deployment  "auto-timer-initializer:vfs:///E:/java/jboss-6.0.0.20100911-M5/server/default/deploy/mail.ear/jboss-seam.jar/$TimerServiceDispatcher"  is missing the following dependencies:
          Dependency  "jboss.j2ee:ear=mail.ear,jar=jboss-seam.jar,name=TimerServiceDispatcher,service=EJB3"  (should be in state "Installed", but is actually in state "**ERROR**")
         Deployment  "jboss.j2ee:ear=mail.ear,jar=jboss-seam.jar,name=EjbSynchronizations,service=EJB3_endpoint"  is missing the following dependencies:
          Dependency  "jboss.j2ee:ear=mail.ear,jar=jboss-seam.jar,name=EjbSynchronizations,service=EJB3"  (should be in state "Installed", but is actually in state "**ERROR**")
         Deployment  "jboss.j2ee:ear=mail.ear,jar=jboss-seam.jar,name=TimerServiceDispatcher,service=EJB3_endpoint"  is missing the following dependencies:
          Dependency  "jboss.j2ee:ear=mail.ear,jar=jboss-seam.jar,name=TimerServiceDispatcher,service=EJB3"  (should be in state "Installed", but is actually in state "**ERROR**")
         Deployment  "jboss.j2ee:ear=mail.ear,jar=mail.jar,name=AuthenticatorBean,service=EJB3_endpoint"  is missing the following dependencies:
          Dependency  "jboss.j2ee:ear=mail.ear,jar=mail.jar,name=AuthenticatorBean,service=EJB3"  (should be in state "Installed", but is actually in state "**ERROR**")

       

      DEPLOYMENTS IN ERROR:
         Deployment  "jboss.j2ee:ear=mail.ear,jar=mail.jar,name=MailListenerMDB,service=EJB3"  is in error due to the following reason(s):  java.lang.ClassCastException: $Proxy191 cannot be cast to  org.jboss.ejb3.annotation.Pool
        Deployment  "jboss.j2ee:ear=mail.ear,jar=jboss-seam.jar,name=EjbSynchronizations,service=EJB3"  is in error due to the following reason(s):  java.lang.ClassCastException: $Proxy191 cannot be cast to  org.jboss.ejb3.annotation.Pool, **ERROR**
        Deployment  "jboss.j2ee:ear=mail.ear,jar=jboss-seam.jar,name=TimerServiceDispatcher,service=EJB3"  is in error due to the following reason(s):  java.lang.ClassCastException: $Proxy191 cannot be cast to  org.jboss.ejb3.annotation.Pool, **ERROR**
        Deployment  "jboss.j2ee:ear=mail.ear,jar=mail.jar,name=AuthenticatorBean,service=EJB3"  is in error due to the following reason(s):  java.lang.ClassCastException: $Proxy191 cannot be cast to  org.jboss.ejb3.annotation.Pool, **ERROR**

       

          at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.0.Alpha7]
          at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.0.Alpha7]
           at  org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87)  [:6.0.0.20100911-M5]
          at  org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:118)  [:0.1.0.Alpha1]
          at  org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:133)  [:6.0.0.20100911-M5]
          at  org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56)  [:6.0.0.20100911-M5]
          at  org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827)  [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
          at  org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417)  [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
          at java.lang.Thread.run(Unknown Source) [:1.6.0_22]

        • 1. Re: Seam2.2.1 Jboss6M5 MDB receive mail MDB deploy depency error
          jaikiran

          Don't package JBoss specific jar files (like the jboss-ejb3-ext-api.jar) in your application. You can use them in your compile time classpath, but don't include them in the final deployable jar/ear/war.

          • 2. Re: Seam2.2.1 Jboss6M5 MDB receive mail MDB deploy depency error
            stan8688

            Hi, Thanks a lot, now it seam to work! but cant check the correct receive mail folder!

             

            I config my mail-server use virtual domain and mail folder is

            /var/mail/virtual/9minute.com/stan.   How to set My      @ActivationConfigProperty(propertyName="mailFolder", propertyValue="9minute.com/stan/Maildir"),

             

            I try /var/mail/virtual/9minute.com/stan or INBOX or  virtual/9minute.com/stan  Or Failed

             

            Error Log:

            2010-11-09 08:11:02,109 ERROR [org.jboss.resource.adapter.mail.inflow.MailActivation] (pool-1-thread-2) Failed to execute folder check, spec=MailActivationSpec(mailServer=192.168.1.41, storeProtocol=pop3, mailFolder=9minute.com/stan/Maildir, pollingInterval=60000, messageSelector=null, userName=stan@9minute.com, maxMessages=1, debug=false, starttls=false, port=0)

            • 3. Re: Seam2.2.1 Jboss6M5 MDB receive mail MDB deploy depency error
              stan8688

              Hi, I Know I cant receive mail because of My mail server use ssl but my MDB not config, Does Anybody know how to config SSL to pop3 mail server?

               

              And i fond issue https://jira.jboss.org/browse/JBAS-4810  it resolved ssl with mail-ra.rar, but how to config MDB? I dont konw

               

              Just Like below ,howto config?

                  @ActivationConfigProperty(propertyName="password", propertyValue="888888"),    

                  @ActivationConfigProperty(propertyName="debug", propertyValue="true")

               

               

               

               

              My jboss log:

               

              2010-11-09 08:34:14,671 INFO  [STDOUT] (pool-1-thread-2) DEBUG POP3: connecting to host "192.168.1.41", port 110, isSSL false

               

              2010-11-09 08:34:14,671 INFO  [STDOUT] (pool-1-thread-2) S: +OK Dovecot ready.

               

              2010-11-09 08:34:14,671 INFO  [STDOUT] (pool-1-thread-2) C: USER stan@9minute.com

               

              2010-11-09 08:34:14,671 INFO  [STDOUT] (pool-1-thread-2) S: -ERR Plaintext authentication disallowed on non-secure (SSL/TLS) connections.

               

              2010-11-09 08:34:14,671 INFO  [STDOUT] (pool-1-thread-2) C: QUIT

               

              2010-11-09 08:34:14,671 INFO  [STDOUT] (pool-1-thread-2) S: +OK Logging out

               

              2010-11-09 08:34:14,671 ERROR [org.jboss.resource.adapter.mail.inflow.MailActivation] (pool-1-thread-2) Failed to execute folder check, spec=MailActivationSpec(mailServer=192.168.1.41, storeProtocol=pop3, mailFolder=INBOX, pollingInterval=60000, messageSelector=null, userName=stan@9minute.com, maxMessages=1, debug=true, starttls=false, port=0)

               

              2010-11-09 08:34:14,671 INFO  [STDOUT] (pool-1-thread-2) DEBUG POP3: connecting to host "192.168.1.41", port 110, isSSL false
              2010-11-09 08:34:14,671 INFO  [STDOUT] (pool-1-thread-2) S: +OK Dovecot ready.
              2010-11-09 08:34:14,671 INFO  [STDOUT] (pool-1-thread-2) C: USER stan@9minute.com
              2010-11-09 08:34:14,671 INFO  [STDOUT] (pool-1-thread-2) S: -ERR Plaintext authentication disallowed on non-secure (SSL/TLS) connections.
              2010-11-09 08:34:14,671 INFO  [STDOUT] (pool-1-thread-2) C: QUIT
              2010-11-09 08:34:14,671 INFO  [STDOUT] (pool-1-thread-2) S: +OK Logging out
              2010-11-09 08:34:14,671 ERROR [org.jboss.resource.adapter.mail.inflow.MailActivation] (pool-1-thread-2) Failed to execute folder check, spec=MailActivationSpec(mailServer=192.168.1.41, storeProtocol=pop3, mailFolder=INBOX, pollingInterval=60000, messageSelector=null, userName=stan@9minute.com, maxMessages=1, debug=true, starttls=false, port=0)
              • 4. Re: Seam2.2.1 Jboss6M5 MDB receive mail MDB deploy depency error
                stan8688

                Hi, I Know I cant receive mail because of My mail server use ssl but my MDB not config, Does Anybody know how to config SSL to pop3 mail server?

                 

                And i fond issue https://jira.jboss.org/browse/JBAS-4810  it resolved ssl with mail-ra.rar, but how to config MDB? I dont konw

                 

                Just Like below ,howto config?

                 

                    @ActivationConfigProperty(propertyName="password", propertyValue="888888"),   

                    @ActivationConfigProperty(propertyName="debug", propertyValue="true")

                 

                 

                 

                 

                 

                My jboss log:

                 

                2010-11-09 08:34:14,671 INFO  [STDOUT] (pool-1-thread-2) DEBUG POP3: connecting to host "192.168.1.41", port 110, isSSL false

                 

                2010-11-09 08:34:14,671 INFO  [STDOUT] (pool-1-thread-2) S: +OK Dovecot ready.

                 

                2010-11-09 08:34:14,671 INFO  [STDOUT] (pool-1-thread-2) C: USER stan@9minute.com

                 

                2010-11-09 08:34:14,671 INFO  [STDOUT] (pool-1-thread-2) S: -ERR Plaintext authentication disallowed on non-secure (SSL/TLS) connections.

                 

                2010-11-09 08:34:14,671 INFO  [STDOUT] (pool-1-thread-2) C: QUIT

                 

                2010-11-09 08:34:14,671 INFO  [STDOUT] (pool-1-thread-2) S: +OK Logging out

                 

                2010-11-09 08:34:14,671 ERROR [org.jboss.resource.adapter.mail.inflow.MailActivation] (pool-1-thread-2) Failed to execute folder check, spec=MailActivationSpec(mailServer=192.168.1.41, storeProtocol=pop3, mailFolder=INBOX, pollingInterval=60000, messageSelector=null, userName=stan@9minute.com, maxMessages=1, debug=true, starttls=false, port=0)