Servlet : SEVERE: Allocate exception for servlet

前端 未结 11 1771
故里飘歌
故里飘歌 2021-02-06 03:38

The following stacktrace is what I get when i try to access a servlet, which seems running fine from Tomcat manager.

11 Sep, 2012 11:50:12 AM org.apache.catalin         


        
11条回答
  •  猫巷女王i
    2021-02-06 04:03

    I got the similar exception
    While moving from java 8 to java 11 I got the following error

    Exception org.apache.catalina.core.ApplicationContext.log Servlet.init() for servlet [health-servlet] threw exception java.lang.IllegalArgumentException

    To fix the error i upgraded the version in pom

    2.23.2
    2.30.1
    

    I had the following entry in my web.xml

        
        health-servlet
        org.glassfish.jersey.servlet.ServletContainer
        
            javax.ws.rs.Application
            com.xyz.platform.registry.service.ServiceRegistryApplication
        
        1
    
    

提交回复
热议问题