开发者

Java struts application deployed but refuses to start

开发者 https://www.devze.com 2023-03-03 07:41 出处:网络
I have built the war archieve for a struts application and deployed but sometimes it refuses to start. when i througly checked it, i found that tomcat refuses to start the application if there is no i

I have built the war archieve for a struts application and deployed but sometimes it refuses to start. when i througly checked it, i found that tomcat refuses to start the application if there is no internet connection even tho开发者_运维百科ugh its just a hello world application with no web service being used. On closer examination I found that the error is thrown while parsing struts.xml file when there is no internet connection. Seems as though the DTD is being checked to parse it and in absence of internet connection its not possible to fetch DTD and auto extracting and starting of the war archieve file fails.

How can this problem be avoided so as to work with no internet connection. I use netbeans and am a novice.


Try downloading the DTD, putting it on your local host and pointing to the local DTD in your doctype declaration.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号