javax.servlet.ServletException: Servlet.init() for servlet action threw exception

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • It would be convenient to include validator_1_1_3.dtd in the web application so that the application can be run without having a connection to the internet. It seems to be required when starting the application. I first came across the problem described in more detail below when trying to run the app behind a password protected proxy. I never did find out how to configure the proxy password settings in for the JVM. When the application starts, I get the exception shown below: ERROR - DefaultValidatorFactory.init(89) | Error loading validation rules in file: validation.xml java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) ... It seems that because I am running behind a proxy (which is password protected) it blows up when it tries to get the DTD from the internet. This caused the application to fail with this exception when clicking on the 'View Demonstration' button: javax.servlet.ServletException: Servlet.init() for servlet action threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1109) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:725) ... As a quick fix to test if this was really the issue, I changed the web/WEB-INF/validation.xml file to load the DTD from the local webserver therefore not going through the proxy i.e. In validation.xml I changed: to: and put the DTD on my webserver. Everything seemed to work then. I can successfully run the application and add/edit/delete users. I guess the real solution would be to configure the JVM with the proxy settings including username/password but I'll figure that out another time.
    via by Paul Rule,
  • Crash on access
    via GitHub by GoogleCodeExporter
    ,
  • tomcatとapacheの連携 - Java | 【OKWave】
    via by Unknown author,
  • servlet tomcat
    via by 843840,
  • RestComm Getting Started
    via by DaveS,
  • Tomcat starting trouble
    via by Rex Rock,
  • Struts starting problems.
    via by Arun M'Purushothaman,
    • javax.servlet.ServletException: Servlet.init() for servlet action threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1109) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:725)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor2 times, last one,