Thymeleaf with Spring 3 on Websphere 7

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Thymeleaf with Spring 3 on Websphere 7

srbala
Anybody tried/using Thymeleaf with Spring 3 with Websphere 7?

I have tried the petclinic tutorial, it deploys it, but it is not showing any pages or errors.
at the end of the deployment log I see one message com.ibm.ws.webcontainer.webapp.WebApp initializeStaticFileHandler SRVE0278E: Error while adding servlet mapping --> /*. is that could be problem?

<code>
Deployment log as below:
[4/8/13 15:33:40:661 EDT] 00000021 ApplicationMg A   WSVR0200I: Starting application: petclinic_war
[4/8/13 15:33:40:661 EDT] 00000021 ApplicationMg A   WSVR0204I: Application: petclinic_war  Application build level: Unknown
[4/8/13 15:33:40:848 EDT] 00000021 webapp        I com.ibm.ws.webcontainer.webapp.WebGroupImpl WebGroup SRVE0169I: Loading Web Module: Spring PetClinic + Thymeleaf.
[4/8/13 15:33:40:910 EDT] 00000021 WASSessionCor I SessionContextRegistry getSessionContext SESN0176I: Will create a new session context for application key default_host/petclinic
[4/8/13 15:33:41:222 EDT] 00000021 webapp        I com.ibm.ws.webcontainer.webapp.WebApp log SRVE0292I: Servlet Message - [petclinic_war#petclinic.war]:.Initializing Spring root WebApplicationContext
[4/8/13 15:33:41:238 EDT] 00000021 SystemOut     O INFO  ContextLoader - Root WebApplicationContext: initialization started
[4/8/13 15:33:41:363 EDT] 00000021 SystemOut     O INFO  XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Mon Apr 08 15:33:41 EDT 2013]; root of context hierarchy
[4/8/13 15:33:41:441 EDT] 00000021 SystemOut     O INFO  XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring/business-config.xml]
[4/8/13 15:33:41:488 EDT] 00000021 SystemOut     O INFO  XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring/datasource-config.xml]
[4/8/13 15:33:41:675 EDT] 00000021 SystemOut     O INFO  XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring/tools-config.xml]
[4/8/13 15:33:41:909 EDT] 00000021 SystemOut     O INFO  PropertySourcesPlaceholderConfigurer - Loading properties file from class path resource [spring/data-access.properties]
[4/8/13 15:33:41:909 EDT] 00000021 SystemOut     O INFO  PropertySourcesPlaceholderConfigurer - Loading properties file from class path resource [spring/data-access.properties]
[4/8/13 15:33:42:018 EDT] 00000021 SystemOut     O INFO  DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@59605960: defining beans [org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0,dataSource,org.springframework.jdbc.datasource.init.DataSourceInitializer#0,clinicServiceImpl,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.support.PropertySourcesPlaceholderConfigurer#1,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,transactionManager,jdbcTemplate,namedParameterJdbcTemplate,jdbcOwnerRepositoryImpl,jdbcPetRepositoryImpl,jdbcVetRepositoryImpl,jdbcVisitRepositoryImpl,callMonitor,mbeanExporter,org.springframework.cache.annotation.AnnotationCacheOperationSource#0,org.springframework.cache.interceptor.CacheInterceptor#0,org.springframework.cache.config.internalCacheAdvisor,cacheManager,ehcache,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy
[4/8/13 15:33:43:001 EDT] 00000021 SystemOut     O INFO  ResourceDatabasePopulator - Executing SQL script from class path resource [db/hsqldb/initDB.sql]
[4/8/13 15:33:43:017 EDT] 00000021 SystemOut     O INFO  ResourceDatabasePopulator - Done executing SQL script from class path resource [db/hsqldb/initDB.sql] in 16 ms.
[4/8/13 15:33:43:017 EDT] 00000021 SystemOut     O INFO  ResourceDatabasePopulator - Executing SQL script from class path resource [db/hsqldb/populateDB.sql]
[4/8/13 15:33:43:017 EDT] 00000021 SystemOut     O INFO  ResourceDatabasePopulator - Done executing SQL script from class path resource [db/hsqldb/populateDB.sql] in 0 ms.
[4/8/13 15:33:43:219 EDT] 00000021 SystemOut     O INFO  EhCacheManagerFactoryBean - Initializing EhCache CacheManager
[4/8/13 15:33:43:500 EDT] 00000021 SystemOut     O INFO  AnnotationMBeanExporter - Registering beans for JMX exposure on startup
[4/8/13 15:33:43:516 EDT] 00000021 SystemOut     O INFO  AnnotationMBeanExporter - Bean with name 'callMonitor' has been autodetected for JMX exposure
[4/8/13 15:33:43:516 EDT] 00000021 SystemOut     O INFO  AnnotationMBeanExporter - Located managed bean 'callMonitor': registering with JMX server as MBean [petclinic:type=CallMonitor]
[4/8/13 15:33:43:563 EDT] 00000021 SystemOut     O INFO  ContextLoader - Root WebApplicationContext: initialization completed in 2325 ms
[4/8/13 15:33:43:609 EDT] 00000021 webapp        I com.ibm.ws.webcontainer.webapp.WebApp log SRVE0292I: Servlet Message - [petclinic_war#petclinic.war]:.Initializing Spring FrameworkServlet 'petclinic'
[4/8/13 15:33:43:609 EDT] 00000021 SystemOut     O INFO  DispatcherServlet - FrameworkServlet 'petclinic': initialization started
[4/8/13 15:33:43:609 EDT] 00000021 SystemOut     O INFO  XmlWebApplicationContext - Refreshing WebApplicationContext for namespace 'petclinic-servlet': startup date [Mon Apr 08 15:33:43 EDT 2013]; parent: Root WebApplicationContext
[4/8/13 15:33:43:609 EDT] 00000021 SystemOut     O INFO  XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring/mvc-core-config.xml]
[4/8/13 15:33:43:641 EDT] 00000021 SystemOut     O INFO  XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring/mvc-view-config.xml]
[4/8/13 15:33:43:921 EDT] 00000021 SystemOut     O INFO  DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@21392139: defining beans [templateResolver,templateEngine,org.springframework.web.servlet.view.ContentNegotiatingViewResolver#0,cnManager,vets/vetList.atom,vets/vetList.xml,marshaller,crashController,ownerController,petController,vetController,visitController,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,mvcContentNegotiationManager,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0,org.springframework.web.servlet.resource.ResourceHttpRequestHandler#1,org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#1,org.springframework.web.servlet.config.viewControllerHandlerMapping,conversionService,messageSource,org.springframework.web.servlet.handler.SimpleMappingExceptionResolver#0,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@59605960
[4/8/13 15:33:44:218 EDT] 00000021 SystemOut     O INFO  Jaxb2Marshaller - Creating JAXBContext with classes to be bound [class org.springframework.samples.petclinic.model.Vets]
[4/8/13 15:33:44:327 EDT] 00000021 SystemOut     O INFO  RequestMappingHandlerMapping - Mapped "{[/oups],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.springframework.samples.petclinic.web.CrashController.triggerException()
[4/8/13 15:33:44:327 EDT] 00000021 SystemOut     O INFO  RequestMappingHandlerMapping - Mapped "{[/owners/new],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.springframework.samples.petclinic.web.OwnerController.initCreationForm(org.springframework.ui.Model)
[4/8/13 15:33:44:327 EDT] 00000021 SystemOut     O INFO  RequestMappingHandlerMapping - Mapped "{[/owners/new],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.springframework.samples.petclinic.web.OwnerController.processCreationForm(org.springframework.samples.petclinic.model.Owner,org.springframework.validation.BindingResult,org.springframework.web.bind.support.SessionStatus)
[4/8/13 15:33:44:327 EDT] 00000021 SystemOut     O INFO  RequestMappingHandlerMapping - Mapped "{[/owners/find],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.springframework.samples.petclinic.web.OwnerController.initFindForm(org.springframework.ui.Model)
[4/8/13 15:33:44:327 EDT] 00000021 SystemOut     O INFO  RequestMappingHandlerMapping - Mapped "{[/owners],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.springframework.samples.petclinic.web.OwnerController.processFindForm(org.springframework.samples.petclinic.model.Owner,org.springframework.validation.BindingResult,org.springframework.ui.Model)
[4/8/13 15:33:44:327 EDT] 00000021 SystemOut     O INFO  RequestMappingHandlerMapping - Mapped "{[/owners/{ownerId}/edit],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.springframework.samples.petclinic.web.OwnerController.initUpdateOwnerForm(int,org.springframework.ui.Model)
[4/8/13 15:33:44:327 EDT] 00000021 SystemOut     O INFO  RequestMappingHandlerMapping - Mapped "{[/owners/{ownerId}/edit],methods=[PUT],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.springframework.samples.petclinic.web.OwnerController.processUpdateOwnerForm(org.springframework.samples.petclinic.model.Owner,org.springframework.validation.BindingResult,org.springframework.web.bind.support.SessionStatus)
[4/8/13 15:33:44:327 EDT] 00000021 SystemOut     O INFO  RequestMappingHandlerMapping - Mapped "{[/owners/{ownerId}],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.samples.petclinic.web.OwnerController.showOwner(int)
[4/8/13 15:33:44:327 EDT] 00000021 SystemOut     O INFO  RequestMappingHandlerMapping - Mapped "{[/owners/{ownerId}/pets/new],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.springframework.samples.petclinic.web.PetController.initCreationForm(int,org.springframework.ui.Model)
[4/8/13 15:33:44:327 EDT] 00000021 SystemOut     O INFO  RequestMappingHandlerMapping - Mapped "{[/owners/{ownerId}/pets/new],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.springframework.samples.petclinic.web.PetController.processCreationForm(org.springframework.samples.petclinic.model.Pet,org.springframework.validation.BindingResult,org.springframework.web.bind.support.SessionStatus)
[4/8/13 15:33:44:327 EDT] 00000021 SystemOut     O INFO  RequestMappingHandlerMapping - Mapped "{[/owners/*/pets/{petId}/edit],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.springframework.samples.petclinic.web.PetController.initUpdateForm(int,org.springframework.ui.Model)
[4/8/13 15:33:44:327 EDT] 00000021 SystemOut     O INFO  RequestMappingHandlerMapping - Mapped "{[/owners/{ownerId}/pets/{petId}/edit],methods=[PUT || POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.springframework.samples.petclinic.web.PetController.processUpdateForm(org.springframework.samples.petclinic.model.Pet,org.springframework.validation.BindingResult,org.springframework.web.bind.support.SessionStatus)
[4/8/13 15:33:44:327 EDT] 00000021 SystemOut     O INFO  RequestMappingHandlerMapping - Mapped "{[/vets],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.springframework.samples.petclinic.web.VetController.showVetList(org.springframework.ui.Model)
[4/8/13 15:33:44:327 EDT] 00000021 SystemOut     O INFO  RequestMappingHandlerMapping - Mapped "{[/owners/*/pets/{petId}/visits/new],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.springframework.samples.petclinic.web.VisitController.initNewVisitForm(int,org.springframework.ui.Model)
[4/8/13 15:33:44:327 EDT] 00000021 SystemOut     O INFO  RequestMappingHandlerMapping - Mapped "{[/owners/{ownerId}/pets/{petId}/visits/new],methods=[POST],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public java.lang.String org.springframework.samples.petclinic.web.VisitController.processNewVisitForm(org.springframework.samples.petclinic.model.Visit,org.springframework.validation.BindingResult,org.springframework.web.bind.support.SessionStatus)
[4/8/13 15:33:44:343 EDT] 00000021 SystemOut     O INFO  RequestMappingHandlerMapping - Mapped "{[/owners/*/pets/{petId}/visits],methods=[GET],params=[],headers=[],consumes=[],produces=[],custom=[]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.samples.petclinic.web.VisitController.showVisits(int)
[4/8/13 15:33:44:389 EDT] 00000021 SystemOut     O INFO  Version - HV000001: Hibernate Validator 4.3.0.Final
[4/8/13 15:33:44:842 EDT] 00000021 SystemOut     O INFO  SimpleUrlHandlerMapping - Mapped URL path [/resources/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0'
[4/8/13 15:33:44:842 EDT] 00000021 SystemOut     O INFO  SimpleUrlHandlerMapping - Mapped URL path [/webjars/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#1'
[4/8/13 15:33:44:857 EDT] 00000021 SystemOut     O INFO  SimpleUrlHandlerMapping - Root mapping to handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
[4/8/13 15:33:44:904 EDT] 00000021 SystemOut     O INFO  DispatcherServlet - FrameworkServlet 'petclinic': initialization completed in 1295 ms
[4/8/13 15:33:44:904 EDT] 00000021 servlet       I com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0242I: [petclinic_war] [/petclinic] [petclinic]: Initialization successful.
[4/8/13 15:33:44:904 EDT] 00000021 webapp        W com.ibm.ws.webcontainer.webapp.WebApp initializeStaticFileHandler SRVE0278E: Error while adding servlet mapping --> /*.
[4/8/13 15:33:44:904 EDT] 00000021 webcontainer  I com.ibm.ws.wswebcontainer.VirtualHost addWebApplication SRVE0250I: Web Module Spring PetClinic + Thymeleaf has been bound to default_host[*:9081,*:80,*:9444,*:5065,*:5064,*:443].
[4/8/13 15:33:44:920 EDT] 00000021 ApplicationMg A   WSVR0221I: Application started: petclinic_war
[4/8/13 15:33:44:920 EDT] 00000021 CompositionUn A   WSVR0191I: Composition unit WebSphere:cuname=petclinic_war in BLA WebSphere:blaname=petclinic_war started.
[4/8/13 15:33:44:920 EDT] 00000021 AppBinaryProc I   ADMA7021I: Distribution of application petclinic_war completed successfully.
</code>
Reply | Threaded
Open this post in threaded view
|

Re: Thymeleaf with Spring 3 on Websphere 7

Emanuel
Administrator
I haven't tried Thymeleaf on Websphere, but that line you've pointed out sounds like a problem.  If it can't map /* to the Spring DispatcherServlet, then you're not going to get any pages/actions at all.

Is there any way to find out what might be the cause of that?  The log you've pasted doesn't look like it'll help there.
Reply | Threaded
Open this post in threaded view
|

Re: Thymeleaf with Spring 3 on Websphere 7

srbala
It stomped me too. The log message I have posted is from Server log console. I have to find a way to enable bigger trace to find the problem. Any help would be appreciated.
Thanks,
Bala