Cannot deploy Spring App to Websphere

后端 未结 7 1701
傲寒
傲寒 2020-12-31 09:28

I\'ve been developing an application to tomcat during development phase. As we\'re moving forward, my client wants to be deployed to websphere. I\'m attempting to do so on

7条回答
  •  难免孤独
    2020-12-31 10:06

    I'm not terribly happy about my solution, but it works for the time being. Websphere's support of web.xml-less initialization is a bit sub-standard. Even replies from their techs were unhelpful. In the end I had to move a bit of the spring initialization to the web.xml. I was still able to configure most of my JPA, security, and Web features via config files, but I had to give Spring a bit of kickstart. Below is my altered web.xml for anyone that is interested. Thanks everyone for the help and guidance.

    
    
        
        
            /generalError
        
        
          15
       
       app
       
          contextClass
          
              org.springframework.web.context.support.AnnotationConfigWebApplicationContext
          
       
    
        
            contextConfigLocation
            org.proj.config.ApplicationConfig 
                        org.proj.config.DefaultDataSourceConfig
                        org.proj.config.JpaConfig
                        org.proj.config.SecurityConfig
                        org.proj.config.MailConfig
                        org.proj.config.WebMvcConfig
           
        
    
        
        
            org.springframework.web.context.ContextLoaderListener
        
    
       
            spring
            org.springframework.web.servlet.DispatcherServlet        
            
              contextClass
              org.springframework.web.context.support.AnnotationConfigWebApplicationContext
             
              
              
                  contextConfigLocation
                  org.proj.config.ApplicationConfig 
                               org.proj.config.DefaultDataSourceConfig
                               org.proj.config.JpaConfig
                               org.proj.config.SecurityConfig
                               org.proj.config.MailConfig
                               org.proj.config.WebMvcConfig  
                   
              
              1
        
        
            spring
            /*
        
        
            springSecurityFilterChain
            org.springframework.web.filter.DelegatingFilterProxy
        
    
        
          springSecurityFilterChain
          /*
          ERROR
          REQUEST
        
    
    

提交回复
热议问题