7 Replies Latest reply on Aug 7, 2009 7:23 AM by Daniel Bevenius

    Deployment problem with AS 5.1

    Stefano Morelli Newbie

      Hello

      I'm trying to transport my ear application (with seam 2.2.0) from jboss AS 4.2.2.GA to AS 5.1.0.GA, I use the JBossEsb 4.6 version.

      With AS 5.1.0 I need to remove the spring.esb directory, otherwise at start up the AS first create and next destroy the spring singleton and I get an exception, like this:

      
      2009-08-03 11:08:53,470 INFO [org.hibernate.impl.SessionFactoryObjectFactory] (main) Not binding factory to JNDI, no JNDI name configured
      2009-08-03 11:08:53,494 INFO [org.springframework.orm.hibernate3.HibernateTransactionManager] (main) Using DataSource [org.jboss.resource.adapter.jdbc.WrapperDataSource@d5a575] of Hibernate SessionFactory for HibernateTransactionManager
      2009-08-03 11:08:54,142 INFO [org.springframework.scheduling.quartz.SchedulerFactoryBean] (main) Loading Quartz config from [ServletContext resource [/WEB-INF/quartz.properties]]
      2009-08-03 11:08:54,187 INFO [org.quartz.core.QuartzScheduler] (main) Quartz Scheduler v.1.5.2 created.
      2009-08-03 11:08:54,187 INFO [org.quartz.plugins.management.ShutdownHookPlugin] (main) Registering Quartz shutdown hook.
      
      2009-08-03 11:08:54,202 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] (main) Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1f72309: defining beans [dataSource,storeProcedureManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor,txManager,sessionFactory,usersDao,rolesDao,violazioniDao,immaginiDao,imgContextDao,tipoveicoloDao,stepelaborazioneDao,listeNereDao,processViolDao,contatoriDao,operatorActivityDao,elencovarchiDao,alarmGateGroupDao,alarmDao,statusDao,alarmGestDao,alarmLevelDao,whiteListDao,conversionePermessiDao,conversioneAccessiDao,tipoGiornoDao,tipoFasciaDao,tipoCalendarioDao,workCycleDao,tipoGiornoGroupDao,cfgGateDao,refreshViewDao,prmGateDao,proprietarioDao,specialListDao,categoriaLSDao,logEventiPccDao,eventiPccDao,groupPccDao,cancellazioneDao,propertyPlaceholderConfigurer,mailSender,blackListMailSender,contatoriMailSender,gateMaintenanceMailSender,mailTransformResource,operatorActivityTransformResource,processViolTransformResource,specialListTransformResource,logEventiPccTransformResource,blackListMessageConverter,org.jboss.seam.ioc.spring.SeamScopePostProcessor,register,scheduler,activityDao,comunicationManagerDao,schedulTaskDao,serviceSchedConfig,serviceAuthentication,serviceUsers,serviceElencovarchi,serviceViolazioni,serviceStatusViolazioni,serviceCancellazione,serviceContatori,serviceAlarmGest,serviceAlarmStatus,serviceAlarmLevel,spViewConversioneAccessi,serviceListe,serviceAlarmGateGroup,serviceSignal,serviceMonitor,alarmSender,serviceLogEventi,serviceLog,cacheManager,cacheProviderFacade,cachingAttributeSource,cachingInterceptor,cachingAttributeSourceAdvisor,flushingAttributeSource,flushingInterceptor,flushingAttributeSourceAdvisor]; root of factory hierarchy
      
      2009-08-03 11:08:54,202 INFO [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean] (main) Closing Hibernate SessionFactory
      2009-08-03 11:08:54,202 INFO [org.hibernate.impl.SessionFactoryImpl] (main) closing
      2009-08-03 11:08:54,204 INFO [org.springframework.cache.ehcache.EhCacheManagerFactoryBean] (main) Shutting down EHCache CacheManager
      2009-08-03 11:08:54,226 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/SirioWeb]] (main) Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
      org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.ioc.spring.contextLoader
       at org.jboss.seam.Component.newInstance(Component.java:2144)
       at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
       at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
       at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:116)
       at org.jboss.seam.init.Initialization.init(Initialization.java:740)
       at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4393)
       at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)
       at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)
       at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)
       at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)
       at org.jboss.web.deployers.WebModule.start(WebModule.java:97)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      
      

      Thank you

      Stefano

        • 1. Re: Deployment problem with AS 5.1
          Daniel Bevenius Master

          Hi Stefano,

          could you tell me what jar are included in your .ear application?

          Thanks,

          /Daniel

          • 2. Re: Deployment problem with AS 5.1
            Stefano Morelli Newbie

            Hi Daniel,

            this is the jar list (spring version 2.0.8)

            
             Directory di C:\jboss-5.1.0.GA\server\default\deploy\JSirio.ear\lib
            
            24/03/2009 13.16 92.015 antlr-runtime.jar
            24/03/2009 13.16 114.989 aspectjrt-1.5.3.jar
            24/03/2009 13.16 1.887.781 aspectjweaver-1.5.3.jar
            24/03/2009 13.16 245.274 commons-lang-2.3.jar
            31/07/2009 11.10 127.170 drools-api.jar
            31/07/2009 11.10 1.158.010 drools-compiler.jar
            31/07/2009 11.10 1.790.798 drools-core.jar
            31/07/2009 11.10 47.197 drools-decisiontables.jar
            31/07/2009 11.10 46.140 drools-templates.jar
            24/03/2009 13.16 229.747 ehcache-1.6.0-beta3.jar
            24/03/2009 13.16 279.714 hibernate-annotations.jar
            24/03/2009 13.16 66.993 hibernate-commons-annotations.jar
            24/03/2009 13.16 62.574 hibernate-validator.jar
            24/03/2009 13.16 2.766.130 hibernate3.jar
            31/07/2009 12.03 134.652 jboss-el.jar
            31/07/2009 11.10 1.171.234 jboss-seam.jar
            24/03/2009 13.16 668.249 jbpm-jpdl.jar
            24/03/2009 13.16 534.827 joda-time-1.6.jar
            24/03/2009 13.16 413.756 mvel14.jar
            24/03/2009 13.16 65.261 oro-2.0.8.jar
            24/03/2009 13.16 168.454 richfaces-api-3.2.2.GA.jar
            30/04/2009 18.22 126.261 saxon9-dom.jar
            30/04/2009 18.22 34.383 saxon9-dom4j.jar
            30/04/2009 18.22 192.550 saxon9-xqj.jar
            30/04/2009 18.22 5.039.164 saxon9.jar
            24/03/2009 13.16 22.338 slf4j-api-1.5.6.jar
            24/03/2009 13.16 9.678 slf4j-log4j12-1.5.6.jar
            24/03/2009 13.16 11.236 spring-aspects.jar
            24/03/2009 13.16 103.960 spring-mock.jar
            24/03/2009 13.16 185.323 spring-modules-cache.jar
            24/03/2009 13.16 2.708.329 spring.jar
            
             Directory di C:\jboss-5.1.0.GA\server\default\deploy\JSirio.ear\JSirioWeb.war\WEB-INF\lib
            
            24/03/2009 13.31 188.671 commons-beanutils.jar
            24/03/2009 13.31 143.602 commons-digester.jar
            24/03/2009 13.31 112.341 commons-el-1.0.jar
            24/03/2009 13.31 31.825 commons-fileupload-1.1.jar
            24/03/2009 13.31 174.535 commons-math.jar
            24/03/2009 13.31 138.956 commons-validator-1.3.1.jar
            24/03/2009 13.31 213.581 jai_codec.jar
            24/03/2009 13.31 96.067 jai_codec_depl.jar
            24/03/2009 13.31 1.576.540 jai_core.jar
            24/03/2009 13.31 258.264 jai_core_depl.jar
            31/07/2009 11.10 16.151 jboss-seam-debug.jar
            31/07/2009 11.10 121.034 jboss-seam-excel.jar
            31/07/2009 11.10 55.088 jboss-seam-ioc.jar
            31/07/2009 11.10 2.511 jboss-seam-jul.jar
            31/07/2009 11.10 28.258 jboss-seam-mail.jar
            31/07/2009 11.10 85.693 jboss-seam-pdf.jar
            31/07/2009 11.10 101.561 jboss-seam-remoting.jar
            31/07/2009 12.03 6.849 jboss-seam-rss.jar
            31/07/2009 11.10 295.434 jboss-seam-ui.jar
            24/03/2009 13.31 459.221 jenia4faces_1.2.2.jar
            24/03/2009 13.31 302.352 jsf-facelets.jar
            24/03/2009 13.31 1.096.411 primefaces-ui-0.8.1.jar
            24/03/2009 13.31 1.494.439 richfaces-impl-3.2.2.GA.jar
            24/03/2009 13.31 2.525.798 richfaces-ui-3.2.2.GA.jar
            24/03/2009 13.31 22.338 slf4j-api-1.5.6.jar
            24/03/2009 13.31 9.678 slf4j-log4j12-1.5.6.jar
            24/03/2009 13.31 3.494.044 tomahawk-1.1.8.jar
            


            Stefano

            • 3. Re: Deployment problem with AS 5.1
              Daniel Bevenius Master

              Hi Stefano,

              sorry for the late reply.

              Would you be able to send me your application so I can try this out and reproduce this locally to find out what is happening?

              Thanks,

              /Daniel

              • 4. Re: Deployment problem with AS 5.1
                Stefano Morelli Newbie

                Hi Daniel,

                sorry I can't send you my application (contractual limits) , but I will be happy to help you to find the problem.

                What do you need that I can do ?


                Stefano

                • 5. Re: Deployment problem with AS 5.1
                  Daniel Bevenius Master

                  Hi Stefano,

                  sorry I can't send you my application (contractual limits) , but I will be happy to help you to find the problem.

                  I suspected that would be the case but I thought I'd ask anyway.
                  If you are able to reproduce this by modifying one of the spring quickstart that would be great. This is what I'll try to when I get chance. Hopefully I'll get some time to try this later on this week.

                  Regards,

                  /Daniel

                  • 6. Re: Deployment problem with AS 5.1
                    Stefano Morelli Newbie

                    Hi Daniel,

                    I removed all the code from my application (only an empty seam + spring application), with only :

                    applicationContext.xml

                     <import resource="applicationContext_dao.xml" />
                    
                     <seam:configure-scopes default-auto-create="false"/>
                    
                     <bean id="scheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
                     <property name="dataSource" ref="dataSource" />
                     <property name="configLocation" value="WEB-INF/quartz.properties"/>
                     <property name="applicationContextSchedulerContextKey">
                     <value>applicationContext</value>
                     </property>
                     </bean>


                    and

                    applicationContext_dao.xml

                     <jee:jndi-lookup id="dataSource" jndi-name="java:comp/env/jdbc/sirioWebDB"/>
                     <aop:aspectj-autoproxy/>
                    


                    The libreries used are those in the previus post plus someone in AS 4.2.2 not more present in AS 5.1.

                    With spring.esb deployed, the AS, after the scheduler bean creation, destroy the spring singletons.

                    If you need the application (33 MB), the log files ecc... give me a reference.

                    Regards,

                    Stefano

                    • 7. Re: Deployment problem with AS 5.1
                      Daniel Bevenius Master

                      Hi Stefano

                      If you need the application (33 MB), the log files ecc... give me a reference.

                      Can you send me an email (address exists on my user profile, just click my username to the right) and we can work out how you can get this file to me.

                      Thanks,

                      /Daniel