Servlet /claim threw load() exception java.lang.RuntimeException: 启动环境报错,如何解决?

严重: Servlet /claim threw load() exception java.lang.RuntimeException: 无法获取environmenTypeCode,请在Web应用容器启动文件中添加environmenTypeCode变量或在调用前使用setEnvironmenTypeCode方法进行环境变量初始化!
at com.sinosoft.platform.ipservice.IPService.initEnvironmenTypeCode(IPService.java:462)
at com.sinosoft.platform.ipservice.IPService.getIpInfoBeanByKeyAndNetType(IPService.java:429)
at com.sinosoft.platform.ipservice.IpSelectAction.getIpInfoBeanByKeyAndNetType(IpSelectAction.java:86)
at cn.com.cis.claim.car.wtc.WTCServlet.init(WTCServlet.java:51)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4042)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4348)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2019-3-28 13:55:59 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8080
2019-3-28 13:55:59 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2019-3-28 13:55:59 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/15 config=null
2019-3-28 13:55:59 org.apache.catalina.startup.Catalina start
信息: Server startup in 55286 ms
2019-3-28 13:57:31 org.apache.coyote.http11.Http11Protocol pause
信息: Pausing Coyote HTTP/1.1 on http-8080
2019-3-28 13:57:32 org.apache.catalina.core.StandardService stop
信息: Stopping service Catalina
2019-3-28 13:57:38 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2019-3-28 13:57:40 org.apache.coyote.http11.Http11Protocol destroy
信息: Stopping Coyote HTTP/1.1 on http-8080

图片说明

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐