简体   繁体   中英

deploy web service on tomcat

I have problem when I try to run my service after deploy it on tomcat, after deploy my war file on tomcat, I got the war and its unzip on tomcat/webapp, but I can't see it on the Applications list, and when I try to access to my application manually:

localhost:8080/Test myWS/ >> I got HTTP 404 error

when I checked the log file I found the following:

WARNING: Error while removing context [/Test myWS]
java.lang.NullPointerException
    at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:915)
    at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1248)
    at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1219)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:316)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)
    at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
    at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
    at org.apache.catalina.core.StandardService.stop(StandardService.java:584)
    at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
    at org.apache.catalina.startup.Catalina.stop(Catalina.java:633)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:608)
    at sun.reflect.NativeMethodAccessorImpl.inenter code herevoke0(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:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

can you please help me ? thanks

我从未尝试过部署名称中带有空格的webapp-您可以将名称更改为没有空格或将要测试的URL更改为localhost:8080 / Test + myWS或localhost:8080 / Test%20myWS吗?

Thanks a lot guys, I have solved the problem, It was because of TOMCAT version ans the name of the war file with spaces.

thanks again :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM