8 Replies Latest reply on Dec 3, 2012 11:32 AM by chandra sekaran

    Unable to deploy using JBoss AS 7.1.0: New missing/unsatisfied dependencies:

    chandra sekaran Newbie

      Hi All,


      I am trying to deploy my application which was previously running in JBoss 3.2. The application uses liferay portlet framework. I am using eclipse (juno version) IDE and I created the project by importing the EAR file and manually copying source files.

       

      01:21:46,304 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "spinnaker_im.ear" was rolled back with failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheMDB.env.jms.liferay.CacheQueuejboss.naming.context.java.jboss.resources.jms.liferay.CacheQueueMissing[jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheMDB.env.jms.liferay.CacheQueuejboss.naming.context.java.jboss.resources.jms.liferay.CacheQueue]","jboss.naming.context.java.module.spinnaker_im.portal-web-complete.env.jdbc.LiferayPooljboss.naming.context.java.jdbc.LiferayPoolMissing[jboss.naming.context.java.module.spinnaker_im.portal-web-complete.env.jdbc.LiferayPooljboss.naming.context.java.jdbc.LiferayPool]","jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailMDB.env.jms.LiferayQCFjboss.naming.context.java.jboss.resources.jms.LiferayQCFMissing[jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailMDB.env.jms.LiferayQCFjboss.naming.context.java.jboss.resources.jms.LiferayQCF]","jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailManager.env.jms.liferay.MailQueuejboss.naming.context.java.jboss.resources.jms.liferay.MailQueueMissing[jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailManager.env.jms.liferay.MailQueuejboss.naming.context.java.jboss.resources.jms.liferay.MailQueue]","jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheMDB.env.jms.LiferayQCFjboss.naming.context.java.jboss.resources.jms.LiferayQCFMissing[jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheMDB.env.jms.LiferayQCFjboss.naming.context.java.jboss.resources.jms.LiferayQCF]","jboss.naming.context.java.module.spinnaker_im.portal-web-complete.env.mail.MailSessionjboss.naming.context.java.mail.MailSessionMissing[jboss.naming.context.java.module.spinnaker_im.portal-web-complete.env.mail.MailSessionjboss.naming.context.java.mail.MailSession]","jboss.web.deployment.default-host./tunnel.realmjboss.security.security-domain.PortalRealmMissing[jboss.web.deployment.default-host./tunnel.realmjboss.security.security-domain.PortalRealm]","jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailManager.env.jms.LiferayQCFjboss.naming.context.java.jboss.resources.jms.LiferayQCFMissing[jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailManager.env.jms.LiferayQCFjboss.naming.context.java.jboss.resources.jms.LiferayQCF]","jboss.web.deployment.default-host./.realmjboss.security.security-domain.PortalRealmMissing[jboss.web.deployment.default-host./.realmjboss.security.security-domain.PortalRealm]","jboss.deployment.subunit.\"spinnaker_im.ear\".\"cache-ejb.jar\".component.com_liferay_cache_ejb_CacheMDB.CREATEjboss.ra.hornetq-raMissing[jboss.deployment.subunit.\"spinnaker_im.ear\".\"cache-ejb.jar\".component.com_liferay_cache_ejb_CacheMDB.CREATEjboss.ra.hornetq-ra]","jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailMDB.env.jms.liferay.MailQueuejboss.naming.context.java.jboss.resources.jms.liferay.MailQueueMissing[jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailMDB.env.jms.liferay.MailQueuejboss.naming.context.java.jboss.resources.jms.liferay.MailQueue]","jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheManager.env.jms.liferay.CacheQueuejboss.naming.context.java.jboss.resources.jms.liferay.CacheQueueMissing[jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheManager.env.jms.liferay.CacheQueuejboss.naming.context.java.jboss.resources.jms.liferay.CacheQueue]","jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheManager.env.jms.LiferayQCFjboss.naming.context.java.jboss.resources.jms.LiferayQCFMissing[jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheManager.env.jms.LiferayQCFjboss.naming.context.java.jboss.resources.jms.LiferayQCF]","jboss.deployment.subunit.\"spinnaker_im.ear\".\"mail-ejb.jar\".component.com_liferay_mail_ejb_MailMDB.CREATEjboss.ra.hornetq-raMissing[jboss.deployment.subunit.\"spinnaker_im.ear\".\"mail-ejb.jar\".component.com_liferay_mail_ejb_MailMDB.CREATEjboss.ra.hornetq-ra]"]}

      I copied the ear file to the standalone/deployment folder and used the deploy file (eg. spinnaker_im.ear.dodeploy). The project folder in my eclipse ide is as follows:

      project_folder_structure.jpg

       

      Under each project I have got jars which is all shipped in the spinnaker_im. Could you please help me figure out how deployment is happening, whether I am missing any confguration files. Already I went through the Jboss Class Loading sections but I am unable to get clear idea.

        • 1. Re: Unable to deploy using JBoss AS 7.1.0: New missing/unsatisfied dependencies:
          Nicklas Karlsson Master

          Ouch. That's a lot of missing stuff. Hard to pinpoint a single place of failure.

           

          Where does the portlet stuff come in? You have a JBoss-bundled Liferay you are deploying to or have you manually installed Liferay in a JBoss?

          • 2. Re: Unable to deploy using JBoss AS 7.1.0: New missing/unsatisfied dependencies:
            chandra sekaran Newbie

            The portlet is not coming with the JBoss-bundle. I am using the liferay portlet present in the ear (spinnaker_im.ear) which was deployed in older version jboss 3.2.

            I am trying to deploy an ear file in JBoss AS 7.1.0 which was deployed previously in Jboss 3.2

            • 3. Re: Unable to deploy using JBoss AS 7.1.0: New missing/unsatisfied dependencies:
              Nicklas Karlsson Master

              You might want to start by looking through every xml file in the whole deployment for JNDI references (datasources, message queues etc). Then look through all uses of @Resource injection for similar references.

              1 of 1 people found this helpful
              • 4. Re: Unable to deploy using JBoss AS 7.1.0: New missing/unsatisfied dependencies:
                chandra sekaran Newbie

                Should I have to include all the xml files from the previous jboss version or only include the contents of the existing xml to the newer jboss version. Also can you let me know which xml files are referred from Jboss 7.1 for deploying

                • 6. Re: Unable to deploy using JBoss AS 7.1.0: New missing/unsatisfied dependencies:
                  chandra sekaran Newbie

                  I was able to get rid of  the following deployment error trace :

                   

                  JBAS014775:    New missing/unsatisfied dependencies:
                        service jboss.naming.context.java.jboss.resources.jms.LiferayQCF (missing) dependents: [service jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailMDB.env.jms.LiferayQCF, service jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheMDB.env.jms.LiferayQCF, service jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailManager.env.jms.LiferayQCF, service jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheManager.env.jms.LiferayQCF]
                        service jboss.naming.context.java.jboss.resources.jms.liferay.CacheQueue (missing) dependents: [service jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheManager.env.jms.liferay.CacheQueue, service jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheMDB.env.jms.liferay.CacheQueue]
                        service jboss.naming.context.java.jboss.resources.jms.liferay.MailQueue (missing) dependents: [service jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailMDB.env.jms.liferay.MailQueue, service jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailManager.env.jms.liferay.MailQueue]
                        service jboss.naming.context.java.jdbc.LiferayPool (missing) dependents: [service jboss.naming.context.java.module.spinnaker_im.portal-web-complete.env.jdbc.LiferayPool]
                        service jboss.naming.context.java.mail.MailSession (missing) dependents: [service jboss.naming.context.java.module.spinnaker_im.portal-web-complete.env.mail.MailSession]
                        service jboss.ra.hornetq-ra (missing) dependents: [service jboss.deployment.subunit."spinnaker_im.ear"."cache-ejb.jar".component.com_liferay_cache_ejb_CacheMDB.CREATE, service jboss.deployment.subunit."spinnaker_im.ear"."mail-ejb.jar".component.com_liferay_mail_ejb_MailMDB.CREATE]

                   

                  I included the below content on standalone.xml under subsystem, domain:ee and deployed.

                   

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

                   

                            <global-modules>
                    <module name="com.h2database.h2"/>
                    <module name="com.ibm.db2"/>
                    <module name="com.liferay.portal"/>
                           <module name="org.hornetq"/>
                    <module name="org.hornetq.ra"/>
                    <module name="javax.jms.api"/>
                     </global-modules>
                          </subsystem>

                   

                  I could see it reflected as shown below in the deployment trace

                   

                  18:56:44,515 INFO  [org.jboss.as.controller185] JBAS014774: Service status report
                  JBAS014776:    Newly corrected services:
                        service jboss.naming.context.java.jboss.resources.jms.LiferayQCF (new available)
                        service jboss.naming.context.java.jboss.resources.jms.liferay.CacheQueue (new available)
                        service jboss.naming.context.java.jboss.resources.jms.liferay.MailQueue (new available)
                        service jboss.naming.context.java.jdbc.LiferayPool (new available)
                        service jboss.naming.context.java.mail.MailSession (new available)
                        service jboss.ra.hornetq-ra (new available)

                   

                  But still I get deployment failed and the error trace are as below:

                   

                  18:56:44,577 ERROR [org.jboss.as.server.deployment.scanner1048] {"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.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheManager.env.jms.liferay.CacheQueuejboss.naming.context.java.jboss.resources.jms.liferay.CacheQueueMissing[jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheManager.env.jms.liferay.CacheQueuejboss.naming.context.java.jboss.resources.jms.liferay.CacheQueue]","jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheMDB.env.jms.liferay.CacheQueuejboss.naming.context.java.jboss.resources.jms.liferay.CacheQueueMissing[jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheMDB.env.jms.liferay.CacheQueuejboss.naming.context.java.jboss.resources.jms.liferay.CacheQueue]","jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheMDB.env.jms.LiferayQCFjboss.naming.context.java.jboss.resources.jms.LiferayQCFMissing[jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheMDB.env.jms.LiferayQCFjboss.naming.context.java.jboss.resources.jms.LiferayQCF]","jboss.naming.context.java.module.spinnaker_im.portal-web-complete.env.mail.MailSessionjboss.naming.context.java.mail.MailSessionMissing[jboss.naming.context.java.module.spinnaker_im.portal-web-complete.env.mail.MailSessionjboss.naming.context.java.mail.MailSession]","jboss.deployment.subunit.\"spinnaker_im.ear\".\"cache-ejb.jar\".component.com_liferay_cache_ejb_CacheMDB.CREATEjboss.ra.hornetq-raMissing[jboss.deployment.subunit.\"spinnaker_im.ear\".\"cache-ejb.jar\".component.com_liferay_cache_ejb_CacheMDB.CREATEjboss.ra.hornetq-ra]","jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheManager.env.jms.LiferayQCFjboss.naming.context.java.jboss.resources.jms.LiferayQCFMissing[jboss.naming.context.java.comp.spinnaker_im.cache-ejb.com_liferay_cache_ejb_CacheManager.env.jms.LiferayQCFjboss.naming.context.java.jboss.resources.jms.LiferayQCF]","jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailManager.env.jms.liferay.MailQueuejboss.naming.context.java.jboss.resources.jms.liferay.MailQueueMissing[jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailManager.env.jms.liferay.MailQueuejboss.naming.context.java.jboss.resources.jms.liferay.MailQueue]","jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailMDB.env.jms.liferay.MailQueuejboss.naming.context.java.jboss.resources.jms.liferay.MailQueueMissing[jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailMDB.env.jms.liferay.MailQueuejboss.naming.context.java.jboss.resources.jms.liferay.MailQueue]","jboss.naming.context.java.module.spinnaker_im.portal-web-complete.env.jdbc.LiferayPooljboss.naming.context.java.jdbc.LiferayPoolMissing[jboss.naming.context.java.module.spinnaker_im.portal-web-complete.env.jdbc.LiferayPooljboss.naming.context.java.jdbc.LiferayPool]","jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailManager.env.jms.LiferayQCFjboss.naming.context.java.jboss.resources.jms.LiferayQCFMissing[jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailManager.env.jms.LiferayQCFjboss.naming.context.java.jboss.resources.jms.LiferayQCF]","jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailMDB.env.jms.LiferayQCFjboss.naming.context.java.jboss.resources.jms.LiferayQCFMissing[jboss.naming.context.java.comp.spinnaker_im.mail-ejb.com_liferay_mail_ejb_MailMDB.env.jms.LiferayQCFjboss.naming.context.java.jboss.resources.jms.LiferayQCF]","jboss.deployment.subunit.\"spinnaker_im.ear\".\"mail-ejb.jar\".component.com_liferay_mail_ejb_MailMDB.CREATEjboss.ra.hornetq-raMissing[jboss.deployment.subunit.\"spinnaker_im.ear\".\"mail-ejb.jar\".component.com_liferay_mail_ejb_MailMDB.CREATEjboss.ra.hornetq-ra]"]}}}

                   

                  Could somebody help on clarifying why deployment is still failing?

                  • 7. Re: Unable to deploy using JBoss AS 7.1.0: New missing/unsatisfied dependencies:
                    Nicklas Karlsson Master

                    Did you check all xml files for these? Nowhere anything that mentions e.g. LiferayPool? Not in a portal-web.war web.xml or such?

                    • 8. Re: Unable to deploy using JBoss AS 7.1.0: New missing/unsatisfied dependencies:
                      chandra sekaran Newbie

                      Hi,

                       

                      I was able to resolve after I modified jboss-web.xml from portal-web-complete/WEB-INF  and jboss.xml from cache-ejb/META-INF and mail-ejb/META-INF as follows:

                       

                      Changed the jndi reference to point to <jndi-name>java:jboss/ConnectionFactory</jndi-name> instead of <jndi-name>java:ConnectionFactory</jndi-name>. This jndi reference was under <res-ref-name>jms/LiferayQCF</res-ref-name>

                       

                      Thanks Nicklas for your help !!

                       

                      Now I have some other errors:

                      Caused by: java.lang.ClassNotFoundException: com.liferay.portlet.imagegallery.model.IGFolderModel from [Module "deployment.spinnaker_im.ear.portal-ejb.jar:main" from Service Module Loader]

                       

                      I will post it under separate thread.

                       

                      Thanks,

                      Chandru