6 Replies Latest reply on Nov 13, 2012 9:59 AM by Eric Hein

    JBoss 4 to JBoss 7 migration - Web context fails to register

    Eric Hein Newbie

      I am migrating a web app to JBoss 7.2.0 Alpha1 "Steropes".  The app does get deployed but the web context doesn't get started.  The only error message I see in the logs is not very helpful. Log file is attached.

       

      12:33:21,926 ERROR [org.apache.catalina.core] (MSC service thread 1-4) JBWEB001103: Error detected during context /collect start, will stop it

      12:33:21,941 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.web.deployment.default-host./collect: org.jboss.msc.service.StartException in service jboss.web.deployment.default-host./collect: JBAS018040: Failed to start context

          at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:107)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.6.0_24]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.6.0_24]

          at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_24]

       

       

      Any help would be greatly appreciated. 

       

      Thanks,

      Eric

        • 1. Re: JBoss 4 to JBoss 7 migration - Web context fails to register
          Nicklas Karlsson Master

          You have something else occupying some ports

           

          Address already in use /127.0.0.1:8080

           

          Another tomcat/jboss?

          • 2. Re: JBoss 4 to JBoss 7 migration - Web context fails to register
            Eric Hein Newbie

            Oops!  Thank you Nicklas... that was an oversite that I just made this morning.  Shutting that service down results in the same error.  I attached a new log file.

            • 3. Re: JBoss 4 to JBoss 7 migration - Web context fails to register
              Nicklas Karlsson Master

              Hmm. The first ERROR level log doesn't say that much. Can you show a "jar tf" of the war? And your web.xml.

              • 4. Re: JBoss 4 to JBoss 7 migration - Web context fails to register
                Eric Hein Newbie

                Here you go...

                 

                META-INF/

                META-INF/MANIFEST.MF

                WEB-INF/

                WEB-INF/applicationContext-jpa.xml

                WEB-INF/applicationContext-service.xml

                WEB-INF/web.xml

                WEB-INF/lib/

                WEB-INF/lib/aspectjrt.jar

                WEB-INF/lib/aspectjweaver.jar

                WEB-INF/lib/commons-beanutils-1.7.0.jar

                WEB-INF/lib/commons-beanutils-bean-collections.jar

                WEB-INF/lib/commons-beanutils-core.jar

                WEB-INF/lib/commons-collections-3.2.jar

                WEB-INF/lib/commons-collections-testframework-3.2.jar

                WEB-INF/lib/commons-configuration-1.6.jar

                WEB-INF/lib/commons-dbcp-1.2.2.jar

                WEB-INF/lib/commons-lang-2.3-javadoc.jar

                WEB-INF/lib/commons-lang-2.3-sources.jar

                WEB-INF/lib/commons-lang-2.3.jar

                WEB-INF/lib/commons-logging-1.1.jar

                WEB-INF/lib/commons-logging-adapters-1.1.jar

                WEB-INF/lib/commons-logging-api-1.1.jar

                WEB-INF/lib/commons-pool-1.3.jar

                WEB-INF/lib/ehcache-core-2.3.2.jar

                WEB-INF/lib/ehcache-spring-annotations.jar

                WEB-INF/lib/ijetcommon.jar

                WEB-INF/lib/jakarta-oro-2.0.8.jar

                WEB-INF/lib/jibx-run.jar

                WEB-INF/lib/log4j-1.2.14.jar

                WEB-INF/lib/slf4j-api-1.5.11.jar

                WEB-INF/lib/slf4j-jdk14-1.5.11.jar

                WEB-INF/lib/spring-agent.jar

                WEB-INF/lib/spring-aop.jar

                WEB-INF/lib/spring-aspects.jar

                WEB-INF/lib/spring-beans.jar

                WEB-INF/lib/spring-context-support.jar

                WEB-INF/lib/spring-context.jar

                WEB-INF/lib/spring-core.jar

                WEB-INF/lib/spring-jdbc.jar

                WEB-INF/lib/spring-jms.jar

                WEB-INF/lib/spring-modules-cache.jar

                WEB-INF/lib/spring-modules-jakarta-commons.jar

                WEB-INF/lib/spring-orm.jar

                WEB-INF/lib/spring-test.jar

                WEB-INF/lib/spring-tomcat-weaver.jar

                WEB-INF/lib/spring-tx.jar

                WEB-INF/lib/spring.jar

                WEB-INF/lib/xpp3.jar

                WEB-INF/classes/

                WEB-INF/classes/com/

                WEB-INF/classes/com/ijet/

                WEB-INF/classes/com/ijet/aia/

                WEB-INF/classes/com/ijet/aia/collection/

                WEB-INF/classes/com/ijet/aia/collection/AiaCollectionDriver.class

                WEB-INF/classes/com/ijet/aia/collection/AiaPreProcessor.class

                WEB-INF/classes/com/ijet/aia/collection/AirRule.class

                WEB-INF/classes/com/ijet/aia/collection/ClasspathXmlCache.class

                WEB-INF/classes/com/ijet/aia/collection/ClasspathXmlCacheTest.class

                WEB-INF/classes/com/ijet/aia/collection/CollectionRepository.class

                WEB-INF/classes/com/ijet/aia/collection/CollectionWorkflow.class

                WEB-INF/classes/com/ijet/aia/collection/Environment.class

                WEB-INF/classes/com/ijet/aia/collection/EnvironmentException.class

                WEB-INF/classes/com/ijet/aia/collection/Gds.class

                WEB-INF/classes/com/ijet/aia/collection/GdsCommunicationException.class

                WEB-INF/classes/com/ijet/aia/collection/GdsData.class

                WEB-INF/classes/com/ijet/aia/collection/GdsDocument.class

                WEB-INF/classes/com/ijet/aia/collection/GdsError.class

                WEB-INF/classes/com/ijet/aia/collection/GdsException.class

                WEB-INF/classes/com/ijet/aia/collection/GdsParameter.class

                WEB-INF/classes/com/ijet/aia/collection/GdsRemark.class

                WEB-INF/classes/com/ijet/aia/collection/GdsRepository.class

                WEB-INF/classes/com/ijet/aia/collection/GdsRequest.class

                WEB-INF/classes/com/ijet/aia/collection/GdsTrip.class

                WEB-INF/classes/com/ijet/aia/collection/Hotel.class

                WEB-INF/classes/com/ijet/aia/collection/ItineraryReceiver.class

                WEB-INF/classes/com/ijet/aia/collection/ItinerarySender.class

                WEB-INF/classes/com/ijet/aia/collection/ItineraryTransform.class

                WEB-INF/classes/com/ijet/aia/collection/Job.class

                WEB-INF/classes/com/ijet/aia/collection/JobFactory.class

                WEB-INF/classes/com/ijet/aia/collection/RemarkMap.class

                WEB-INF/classes/com/ijet/aia/collection/ResponseParser.class

                WEB-INF/classes/com/ijet/aia/collection/Scheduler.class

                WEB-INF/classes/com/ijet/aia/collection/SimpleScheduler.class

                WEB-INF/classes/com/ijet/aia/collection/SoapMessage.class

                WEB-INF/classes/com/ijet/aia/collection/Source.class

                WEB-INF/classes/com/ijet/aia/collection/Transaction.class

                WEB-INF/classes/com/ijet/aia/collection/TransactionFactory.class

                WEB-INF/classes/com/ijet/aia/collection/TransactionSender.class

                WEB-INF/classes/com/ijet/aia/collection/Udef.class

                WEB-INF/classes/com/ijet/aia/collection/XPathCache.class

                WEB-INF/classes/com/ijet/aia/collection/XPathFunctionRemarks.class

                WEB-INF/classes/com/ijet/aia/collection/XPathFunctionResolverRemarks.class

                WEB-INF/classes/com/ijet/aia/collection/XPathFunctionResolverUdef.class

                WEB-INF/classes/com/ijet/aia/collection/XPathFunctionUdef.class

                WEB-INF/classes/com/ijet/aia/collection/XmlCache.class

                WEB-INF/classes/com/ijet/aia/collection/amex/

                WEB-INF/classes/com/ijet/aia/collection/amex/CollectionWorkflowAmex.class

                WEB-INF/classes/com/ijet/aia/collection/amex/ItineraryAdapterAmex.class

                WEB-INF/classes/com/ijet/aia/collection/amex/NamespaceContextAmex.class

                WEB-INF/classes/com/ijet/aia/collection/cwt/

                WEB-INF/classes/com/ijet/aia/collection/cwt/AirTransformCWT.class

                WEB-INF/classes/com/ijet/aia/collection/cwt/CWTPreProcessor.class

                WEB-INF/classes/com/ijet/aia/collection/cwt/CarTransformCWT.class

                WEB-INF/classes/com/ijet/aia/collection/cwt/CollectionWorkflowCwt.class

                WEB-INF/classes/com/ijet/aia/collection/cwt/GdsDateResolverCWT$DateResult.class

                WEB-INF/classes/com/ijet/aia/collection/cwt/GdsDateResolverCWT$GdsDateFormat.class

                WEB-INF/classes/com/ijet/aia/collection/cwt/GdsDateResolverCWT.class

                WEB-INF/classes/com/ijet/aia/collection/cwt/HotelTransformCWT.class

                WEB-INF/classes/com/ijet/aia/collection/cwt/ItineraryTransformCWT.class

                WEB-INF/classes/com/ijet/aia/collection/cwt/NamespaceContextCWT.class

                WEB-INF/classes/com/ijet/aia/collection/cwt/RailTransformCWT.class

                WEB-INF/classes/com/ijet/aia/collection/cwt/TravelerTransformCWT.class

                WEB-INF/classes/com/ijet/aia/collection/hibenate/

                WEB-INF/classes/com/ijet/aia/collection/jms/

                WEB-INF/classes/com/ijet/aia/collection/jms/ItineraryReceiverFactory.class

                WEB-INF/classes/com/ijet/aia/collection/jms/ItineraryReceiverJms.class

                WEB-INF/classes/com/ijet/aia/collection/jms/ItinerarySenderJms$1.class

                WEB-INF/classes/com/ijet/aia/collection/jms/ItinerarySenderJms.class

                WEB-INF/classes/com/ijet/aia/collection/jms/JmsTemplateFactory.class

                WEB-INF/classes/com/ijet/aia/collection/jms/TransactionSenderFactory.class

                WEB-INF/classes/com/ijet/aia/collection/jms/TransactionSenderJms$1.class

                WEB-INF/classes/com/ijet/aia/collection/jms/TransactionSenderJms.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/

                WEB-INF/classes/com/ijet/aia/collection/sabre/AgencyException.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/AirTransformSabre.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/AuthorizationException.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/CachableAirRule.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/CarTransformSabre.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/CommunicationException.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/GdsClientSabre.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/GdsDateResolverSabre$DateResult.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/GdsDateResolverSabre$GdsDateFormat.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/GdsDateResolverSabre.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/GdsRequestProcessor.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/GdsWorkflowSabre.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/GdsWorkflowSabreDirect.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/HotelTransformSabre.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/ItineraryExpiredException.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/ItineraryTransformSabre.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/NamespaceContextOta.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/NamespaceContextSabre.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/OffQueueException.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/OnQueueException.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/QueueEmptyException.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/RailTransformSabre.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/SabreAction.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/SabreActionFactory.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/SabreAirRule.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/SabreCar.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/SabreClient.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/SabreEtr.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/SabreHotel.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/SabreItinerary.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/SabreItineraryPostProcessor.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/SabrePreProcessor.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/SabreQueue.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/SabreSession.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/SabreTemplateCache.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/SessionFailure.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/TimeoutException.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/TravelerTransformSabre.class

                WEB-INF/classes/com/ijet/aia/collection/sabre/UndocumentedException.class

                WEB-INF/classes/com/ijet/aia/collection/trondent/

                WEB-INF/classes/com/ijet/aia/collection/trondent/AirTransformTrondent.class

                WEB-INF/classes/com/ijet/aia/collection/trondent/CarTransformTrondent.class

                WEB-INF/classes/com/ijet/aia/collection/trondent/CollectionWorkflowTrondent.class

                WEB-INF/classes/com/ijet/aia/collection/trondent/GdsDateResolverTrondent$DateResult.class

                WEB-INF/classes/com/ijet/aia/collection/trondent/GdsDateResolverTrondent$GdsDateFormat.class

                WEB-INF/classes/com/ijet/aia/collection/trondent/GdsDateResolverTrondent.class

                WEB-INF/classes/com/ijet/aia/collection/trondent/HotelTransformTrondent.class

                WEB-INF/classes/com/ijet/aia/collection/trondent/ItineraryTransformTrondent.class

                WEB-INF/classes/com/ijet/aia/collection/trondent/NamespaceContextTrondent.class

                WEB-INF/classes/com/ijet/aia/collection/trondent/RailTransformTrondent.class

                WEB-INF/classes/com/ijet/aia/collection/trondent/TravelerTransformTrondent.class

                WEB-INF/classes/com/ijet/aia/collection/worldspan/

                WEB-INF/classes/com/ijet/aia/collection/worldspan/GdsClient.class

                WEB-INF/classes/com/ijet/aia/collection/worldspan/WorldspanAirSegment.class

                WEB-INF/classes/com/ijet/aia/collection/worldspan/WorldspanCarSegment.class

                WEB-INF/classes/com/ijet/aia/collection/worldspan/WorldspanClientSoap.class

                WEB-INF/classes/com/ijet/aia/collection/worldspan/WorldspanCollectionWorkflow.class

                WEB-INF/classes/com/ijet/aia/collection/worldspan/WorldspanDatePolicy.class

                WEB-INF/classes/com/ijet/aia/collection/worldspan/WorldspanEtr.class

                WEB-INF/classes/com/ijet/aia/collection/worldspan/WorldspanEtrFare.class

                WEB-INF/classes/com/ijet/aia/collection/worldspan/WorldspanFlightService.class

                WEB-INF/classes/com/ijet/aia/collection/worldspan/WorldspanGdsRepository.class

                WEB-INF/classes/com/ijet/aia/collection/worldspan/WorldspanHotelSegment.class

                WEB-INF/classes/com/ijet/aia/collection/worldspan/WorldspanNameItem.class

                WEB-INF/classes/com/ijet/aia/collection/worldspan/WorldspanPhone.class

                WEB-INF/classes/com/ijet/aia/collection/worldspan/WorldspanPreProcessor.class

                WEB-INF/classes/com/ijet/aia/collection/worldspan/WorldspanRailSegment.class

                WEB-INF/classes/com/ijet/aia/collection/worldspan/WorldspanRemark.class

                WEB-INF/classes/com/ijet/aia/collection/worldspan/WorldspanTraveler.class

                WEB-INF/classes/com/ijet/aia/collection/worldspan/WorldspanTrip.class

                WEB-INF/classes/com/ijet/common/

                WEB-INF/classes/com/ijet/common/domain/

                WEB-INF/classes/com/ijet/common/domain/Common.class

                WEB-INF/classes/com/ijet/common/domain/CreditCard.class

                WEB-INF/classes/com/ijet/common/domain/Etr.class

                WEB-INF/classes/com/ijet/common/domain/EtrCoupon.class

                WEB-INF/classes/com/ijet/common/domain/EtrFare.class

                WEB-INF/classes/com/ijet/common/domain/EtrTax.class

                WEB-INF/classes/com/ijet/common/domain/IjetRemark.class

                WEB-INF/classes/com/ijet/common/domain/Money.class

                WEB-INF/classes/com/ijet/service/

                WEB-INF/classes/com/ijet/service/BaseObject.class

                WEB-INF/classes/com/ijet/service/Constants.class

                WEB-INF/classes/com/ijet/service/LabelValue$1.class

                WEB-INF/classes/com/ijet/service/LabelValue.class

                WEB-INF/classes/com/ijet/service/StartupListener.class

                WEB-INF/classes/com/ijet/service/StatusPredicate.class

                WEB-INF/classes/com/ijet/service/StatusSupport.class

                WEB-INF/classes/com/ijet/service/StatusSupportEntity.class

                WEB-INF/classes/com/ijet/util/

                WEB-INF/classes/com/ijet/util/ArrayConverter.class

                WEB-INF/classes/com/ijet/util/BeanProvider.class

                WEB-INF/classes/com/ijet/util/CollectionsUtil.class

                WEB-INF/classes/com/ijet/util/ConvertUtil.class

                WEB-INF/classes/com/ijet/util/CurrencyConverter.class

                WEB-INF/classes/com/ijet/util/DateConverter.class

                WEB-INF/classes/com/ijet/util/DateUtil.class

                WEB-INF/classes/com/ijet/util/FileUtils$1.class

                WEB-INF/classes/com/ijet/util/FileUtils.class

                WEB-INF/classes/com/ijet/util/MultiMap.class

                WEB-INF/classes/com/ijet/util/Predicate.class

                WEB-INF/classes/com/ijet/util/PropertiesLoader.class

                WEB-INF/classes/com/ijet/util/SingletonRegistry.class

                WEB-INF/classes/com/ijet/util/Spring.class

                WEB-INF/classes/com/ijet/util/SpringApplicationContext.class

                WEB-INF/classes/com/ijet/util/StringIterator.class

                WEB-INF/classes/com/ijet/util/StringUtil.class

                WEB-INF/classes/com/ijet/util/TimestampConverter.class

                WEB-INF/classes/com/ijet/util/XMLUtil.class

                WEB-INF/classes/com/ijet/util/XmlUtils.class

                WEB-INF/lib/activation.jar

                WEB-INF/lib/jaxm-api.jar

                WEB-INF/lib/jcert.jar

                WEB-INF/lib/jnet.jar

                WEB-INF/lib/jsse.jar

                WEB-INF/lib/mail.jar

                WEB-INF/lib/practicalxml.jar

                WEB-INF/lib/saaj-api.jar

                WEB-INF/lib/saaj-ri.jar

                WEB-INF/lib/sabre.jar

                WEB-INF/lib/sabre.jar.r8547

                WEB-INF/lib/sabre.jar.r8631

                WEB-INF/lib/xalan.jar

                WEB-INF/lib/xml-apis.jar

                WEB-INF/lib/xxclient.jar

                WEB-INF/classes/log4j.properties

                WEB-INF/classes/com/ijet/aia/collection/hibenate/CollectionRepositoryHibernate.class

                META-INF/persistence.xml

                WEB-INF/jboss-deployment-structure.xml

                WEB-INF/lib/persistence.jar

                WEB-INF/lib/ejb-api.jar

                WEB-INF/lib/ejb3-persistence.jar

                WEB-INF/lib/hibernate-annotations.jar

                WEB-INF/lib/hibernate-commons-annotations.jar

                WEB-INF/lib/hibernate-entitymanager.jar

                WEB-INF/lib/hibernate-validator-4.0.2.GA.jar

                WEB-INF/lib/hibernate3.jar

                WEB-INF/jboss-web.xml

                • 5. Re: JBoss 4 to JBoss 7 migration - Web context fails to register
                  Nicklas Karlsson Master

                  That's a lot of JARs and XML configs that can go wrong there ;-)

                   

                  What version of Spring are you running? I've think I've seen someone mention problems on  versions < 3.0.2 (check around the forums). There could also be some extra JAR:s in there (hibernate etc)

                  • 6. Re: JBoss 4 to JBoss 7 migration - Web context fails to register
                    Eric Hein Newbie

                    The project uses Spring 2.5.2.  I'll look into upgrading and see if some of those libs can be removed. 

                     

                    Thanks,

                    Eric