11 Replies Latest reply on Aug 11, 2009 2:02 PM by Kevin Pei

    Mail Sever 1.0M3/4/5 deployment problem. Need Help

    Kevin Pei Newbie

      Hi, folks,

      I am using JBoss 4.2.3/5.1 and trying to get Mail Server 1.0M3(or 4,5) worked with it. I follow the instructions provided by this community.

      mail.ear is installed to C:\jboss-4.2.3.GA\server\default\deploy

      However, when JBoss is starting, it reports the error like:

      [org.jboss.deployment.SARDeployer] create operation failed for package file:/C:/jboss-4.2.3.GA/server/default/deploy/mail.ear/mail.sar/
      org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.UndeclaredThrowableException)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
      at org.jboss.system.ServiceController.install(ServiceController.java:226)
      at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)...


      Caused by: java.lang.reflect.UndeclaredThrowableException
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:236)
      at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
      ... 80 more
      Caused by: java.lang.NoClassDefFoundError: org/jboss/aop/JoinPoint
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
      at java.lang.Class.getConstructor0(Unknown Source)
      at java.lang.Class.getConstructor(Unknown Source)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1232)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
      at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344)
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
      ... 82 more
      Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.aop.JoinPoint
      at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)
      at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClassInternal(Unknown Source)

      Can anybody give help on this?

      When I am using JBoss 4.0.3 comes along with the Mail Server, everyting works well.

      Thanks in advance!

      Kevin

        • 1. Re: Mail Sever 1.0M3/4/5 deployment problem. Need Help
          Kevin Pei Newbie

          Really don't know if there was something mis-configured during the installation process. I am using JDK1.6-13.

          Can anybody provide a 'really works' installation process?

          • 2. Re: Mail Sever 1.0M3/4/5 deployment problem. Need Help
            Kevin Pei Newbie

            When I installed Mail Server 1.0M4 to JBoss AS 5.1.0.GA. and tried to start it. It reported these errors:

            ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Parse: name=vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/mail.ear/ state=Not Installed mode=Manual requiredState=Parse
            org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/mail.ear/webmail.war/
            at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
            at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:362)
            at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:322)
            at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:294)
            at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:234)
            at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
            at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
            at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
            at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
            at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
            at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
            at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
            at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
            at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
            at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
            at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
            at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
            at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
            at org.jboss.Main.boot(Main.java:221)
            at org.jboss.Main$1.run(Main.java:556)
            at java.lang.Thread.run(Unknown Source)
            Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)". @ vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/mail.ear/webmail.war/WEB-INF/web.xml[74,11]
            at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
            at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
            at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:189)
            at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:166)
            at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:137)
            at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:121)
            at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:256)
            at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:188)
            at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:348)
            ... 34 more
            Caused by: org.xml.sax.SAXException: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)". @ vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/mail.ear/webmail.war/WEB-INF/web.xml[74,11]
            at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler.error(SaxJBossXBParser.java:426)
            at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
            at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
            at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
            at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
            at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
            at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
            at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
            at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
            at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
            at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
            at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
            at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
            at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
            at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:199)
            ... 42 more

            • 3. Re: Mail Sever 1.0M3/4/5 deployment problem. Need Help
              Wolfgang Knauf Master

              Hi,

              seems the "web.xml" in "webmail.war" is invalid (maybe a wrong element ordering, JBoss 5 is more strict about this than previous versions):

              The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)". @ vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/mail.ear/webmail.war/WEB-INF/web.xml[74,11]


              Edit the file with some IDE which provides xml validation, for example Eclipse + WebToolsPlatform plugin. This will save you hours of try'n'error ;-).

              Hope this helps

              Wolfgang

              • 4. Re: Mail Sever 1.0M3/4/5 deployment problem. Need Help
                Kevin Pei Newbie

                Hi, Wolfgang,

                Thanks for your suggestions. I validated the web.xml but didn't find any problem with it.

                <?xml version="1.0"?>
                <!DOCTYPE web-app PUBLIC
                "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
                "http://java.sun.com/dtd/web-app_2_3.dtd">
                <web-app>
                JBMS Webmail


                <servlet-name>WebmailRPC</servlet-name>
                <servlet-class>
                org.jboss.mail.webmail.WebmailRPCServlet
                </servlet-class>



                <servlet-name>AdminRPC</servlet-name>
                <servlet-class>
                org.jboss.mail.management.AdminRPCServlet
                </servlet-class>
                <init-param>
                <param-name>adminServiceName</param-name>
                <param-value>
                jboss.mail:type=MailServices,name=AdminTool
                </param-value>
                </init-param>


                <servlet-mapping>
                <servlet-name>WebmailRPC</servlet-name>
                <url-pattern>/webmailRPC</url-pattern>
                </servlet-mapping>

                <servlet-mapping>
                <servlet-name>AdminRPC</servlet-name>
                <url-pattern>/adminRPC</url-pattern>
                </servlet-mapping>

                <security-constraint>
                <display-name>JBMS Admin</display-name>
                <web-resource-collection>
                <web-resource-name>JBMS_Admin</web-resource-name>
                <url-pattern>/adminRPC</url-pattern>
                <http-method>GET</http-method>
                <http-method>POST</http-method>
                </web-resource-collection>
                <auth-constraint>
                <role-name>adminuser</role-name>
                </auth-constraint>
                </security-constraint>

                <security-constraint>
                <display-name>JBMS Webmail</display-name>
                <web-resource-collection>
                <web-resource-name>JBMS_Webmail</web-resource-name>
                <url-pattern>/webmailRPC</url-pattern>
                <http-method>GET</http-method>
                <http-method>POST</http-method>
                </web-resource-collection>
                <auth-constraint>
                <role-name>calendaruser</role-name>
                </auth-constraint>
                </security-constraint>

                <security-role>
                <role-name>adminuser</role-name>
                </security-role>

                <security-role>
                <role-name>calendaruser</role-name>
                </security-role>

                <login-config>
                <auth-method>FORM</auth-method>
                <realm-name>jbms</realm-name>
                <form-login-config>
                <form-login-page>/fakeloginform.html</form-login-page>
                <form-error-page>/fakeloginerror.html</form-error-page>
                </form-login-config>
                </login-config>
                </web-app>

                Any input?

                Kevin

                • 5. Re: Mail Sever 1.0M3/4/5 deployment problem. Need Help
                  Wolfgang Knauf Master

                  Hi Kevin,

                  well, Eclipse/WebToolsPlatform shows validation errors.

                  I assume that two of those were caused by the forum, which probably killed some XML snippets ("display-name" und "servlet"). Place XML code in "code" tags to keep them!
                  At least the last error is one of yours ;-): "login-config" has to be placed beetween "security-constraint" und "security-role":

                  By the way: why still using a 2.3 web app? Current version is 2.5 and I would use this one in the JBoss 5.x branch.

                  <?xml version="1.0"?>
                  <!DOCTYPE web-app PUBLIC
                  "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
                  "http://java.sun.com/dtd/web-app_2_3.dtd">
                  <web-app>
                   <display-name>JBMS Webmail</display-name>
                  
                  
                   <servlet>
                   <servlet-name>WebmailRPC</servlet-name>
                   <servlet-class>
                   org.jboss.mail.webmail.WebmailRPCServlet
                  </servlet-class>
                   </servlet>
                  
                  
                   <servlet>
                   <servlet-name>AdminRPC</servlet-name>
                   <servlet-class>org.jboss.mail.management.AdminRPCServlet</servlet-class>
                   <init-param>
                   <param-name>adminServiceName</param-name>
                   <param-value>jboss.mail:type=MailServices,name=AdminTool</param-value>
                   </init-param>
                  
                   </servlet>
                  
                   <servlet-mapping>
                   <servlet-name>WebmailRPC</servlet-name>
                   <url-pattern>/webmailRPC</url-pattern>
                   </servlet-mapping>
                  
                   <servlet-mapping>
                   <servlet-name>AdminRPC</servlet-name>
                   <url-pattern>/adminRPC</url-pattern>
                   </servlet-mapping>
                  
                   <security-constraint>
                   <display-name>JBMS Admin</display-name>
                   <web-resource-collection>
                   <web-resource-name>JBMS_Admin</web-resource-name>
                   <url-pattern>/adminRPC</url-pattern>
                   <http-method>GET</http-method>
                   <http-method>POST</http-method>
                   </web-resource-collection>
                   <auth-constraint>
                   <role-name>adminuser</role-name>
                   </auth-constraint>
                   </security-constraint>
                  
                   <security-constraint>
                   <display-name>JBMS Webmail</display-name>
                   <web-resource-collection>
                   <web-resource-name>JBMS_Webmail</web-resource-name>
                   <url-pattern>/webmailRPC</url-pattern>
                   <http-method>GET</http-method>
                   <http-method>POST</http-method>
                   </web-resource-collection>
                   <auth-constraint>
                   <role-name>calendaruser</role-name>
                   </auth-constraint>
                   </security-constraint>
                  
                   <login-config>
                   <auth-method>FORM</auth-method>
                   <realm-name>jbms</realm-name>
                   <form-login-config>
                   <form-login-page>/fakeloginform.html</form-login-page>
                   <form-error-page>/fakeloginerror.html</form-error-page>
                   </form-login-config>
                   </login-config>
                  
                   <security-role>
                   <role-name>adminuser</role-name>
                   </security-role>
                   <security-role>
                   <role-name>calendaruser</role-name>
                   </security-role>
                  
                  </web-app>


                  Best regards

                  Wolfgang

                  • 6. Re: Mail Sever 1.0M3/4/5 deployment problem. Need Help
                    Kevin Pei Newbie

                    Hi, Wolfgang,

                    Thanks a lot! I re-run the JBoss and it reported another error:

                    ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Parse: name=vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/mail.ear/ state=Not Installed mode=Manual requiredState=Parse
                    org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/mail.ear/deliverymdb.jar/
                    at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
                    at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:362)
                    at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:322)
                    at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:294)
                    at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:234)
                    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
                    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                    at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                    at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
                    at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                    at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
                    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                    at org.jboss.Main.boot(Main.java:221)
                    at org.jboss.Main$1.run(Main.java:556)
                    at java.lang.Thread.run(Unknown Source)
                    Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: The content of element type "message-driven" must match "(description?,display-name?,small-icon?,large-icon?,ejb-name,ejb-class,transaction-type,message-selector?,acknowledge-mode?,message-driven-destination?,env-entry*,ejb-ref*,ejb-local-ref*,security-identity?,resource-ref*,resource-env-ref*)". @ vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/mail.ear/deliverymdb.jar/META-INF/ejb-jar.xml[17,20]

                    I validated ejb-jar.xml:

                    <?xml version="1.0"?>
                    <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
                    <ejb-jar>
                    <enterprise-beans>
                    <message-driven>
                    <ejb-name>LocalDelivery</ejb-name>
                    <ejb-class>org.jboss.mail.delivery.DeliveryMDB</ejb-class>
                    <transaction-type>Container</transaction-type>
                    <env-entry>
                    <env-entry-name>MailListenerChain</env-entry-name>
                    <env-entry-type>java.lang.String</env-entry-type>
                    <env-entry-value>jboss.mail:type=MailServices,name=LocalDeliveryChain</env-entry-value>
                    </env-entry>
                    <message-driven-destination>
                    <destination-type>javax.jms.Queue</destination-type>
                    </message-driven-destination>
                    </message-driven>
                    <message-driven>
                    <ejb-name>RemoteDelivery</ejb-name>
                    <ejb-class>org.jboss.mail.delivery.DeliveryMDB</ejb-class>
                    <transaction-type>Container</transaction-type>
                    <env-entry>
                    <env-entry-name>MailListenerChain</env-entry-name>
                    <env-entry-type>java.lang.String</env-entry-type>
                    <env-entry-value>jboss.mail:type=MailServices,name=RemoteDeliveryChain</env-entry-value>
                    </env-entry>
                    <message-driven-destination>
                    <destination-type>javax.jms.Queue</destination-type>
                    </message-driven-destination>
                    </message-driven>
                    </enterprise-beans>
                    </ejb-jar>


                    and found there is an error between <message-driven-destination> tag.

                    I really have no idea about that. Can you help to find the problem again?

                    Cheers,
                    Kevin


                    • 7. Re: Mail Sever 1.0M3/4/5 deployment problem. Need Help
                      Kevin Pei Newbie

                      Hi, Wolfgang,

                      I fixed that problem by putting <message-driven-destination> before <env-entry>.

                      Now it reports this:

                      ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Configured: name=jboss.mail:name=Mail+SSL,service=JaasSecurityDomain state=Instantiated mode=Manual requiredState=Configured
                      java.lang.RuntimeException: Exception setting attribute KeyStoreURL on mbean jboss.mail:service=JaasSecurityDomain,name=Mail+SSL
                      at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:170)
                      at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:114)
                      at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:58)
                      at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:42)
                      at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                      at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                      at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                      at org.jboss.system.ServiceController.install(ServiceController.java:274)
                      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:90)
                      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
                      at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
                      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
                      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
                      at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
                      at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
                      at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
                      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                      at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
                      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
                      at org.jboss.Main.boot(Main.java:221)
                      at org.jboss.Main$1.run(Main.java:556)
                      at java.lang.Thread.run(Unknown Source)
                      Caused by: java.net.MalformedURLException: Failed to find url=C:\jboss-5.1.0.GA\server\default\conf\jbmail.store as a URL, file or resource
                      at org.jboss.security.plugins.JaasSecurityDomain.validateStoreURL(JaasSecurityDomain.java:722)
                      at org.jboss.security.plugins.JaasSecurityDomain.setKeyStoreURL(JaasSecurityDomain.java:243)
                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                      at java.lang.reflect.Method.invoke(Unknown Source)
                      at org.jboss.mx.interceptor.AttributeDispatcher.invoke(AttributeDispatcher.java:136)
                      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                      at org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.invoke(ModelMBeanAttributeInterceptor.java:103)
                      at org.jboss.mx.interceptor.PersistenceInterceptor.invoke(PersistenceInterceptor.java:76)
                      at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
                      at org.jboss.mx.server.AbstractMBeanInvoker.setAttribute(AbstractMBeanInvoker.java:461)
                      at org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:617)
                      at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:166)
                      ... 52 more

                      I checked the whole folder and didn't find the file jbmail.store. I didn't change anything after I installed Mail Server 1.0M4 to JBoss 5.1.

                      So many problems. Please advise!

                      Thanks in advance!

                      Kevin

                      • 8. Re: Mail Sever 1.0M3/4/5 deployment problem. Need Help
                        Wolfgang Knauf Master

                        Hi,

                        do you try to install this one: http://www.jboss.org/community/wiki/JBossMailServer ? If yes: this no longer seems to be a JBoss project and has moved to a new home. Maybe you should upgrade to a newer version.

                        About your error: I think that the security config for your mail app activates SSL. Probably you choose this option while installation. I downloaded the installer and took a look at the JAR. It seems that the security config is placed in a file "Mail.sar\jboss-service.xml". You should take a look at this one.
                        The installer template contains those lines, and you should find them in "jboss-service.xml":

                        <!-- The SSL domain setup -->
                         <mbean code="org.jboss.security.plugins.JaasSecurityDomain"
                         name="jboss.mail:service=JaasSecurityDomain,name=Mail+SSL">
                         <constructor>
                         <arg type="java.lang.String" value="Mail+SSL"/>
                         </constructor>
                         <attribute name="KeyStoreURL">${INSTALL_PATH}/server/${SERVER_CONFIG}/conf/${KEYSTORE_PATH}</attribute>
                         <attribute name="KeyStorePass">${KEYSTORE_PASS}</attribute>
                         </mbean>

                        After identifying this, you should take a look at some JBoss doc which explains how to set up SSL. The "JBoss in Action" book might help. Or you install the server without SSL ;-).

                        Best regards

                        Wolfgang

                        • 10. Re: Mail Sever 1.0M3/4/5 deployment problem. Need Help
                          Kevin Pei Newbie

                          I am using Mail Server 1.0M4, JBoss 5.1. I didn't set up any kind of SSL during installation.

                          It seems there are many problems there.

                          • 11. Re: Mail Sever 1.0M3/4/5 deployment problem. Need Help
                            Kevin Pei Newbie

                            I installed Mail Server 1.0M4 to JBoss 5.1.

                            I didn't set up any kind of SSL intentionally during the installation. Actually I unchecked all of the SSL related options.

                            It seems there are many problems there.