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

AppFuse JIRA | Paul Rule | 1 decade ago
  1. 0

    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.

    AppFuse JIRA | 1 decade ago | Paul Rule
    javax.servlet.ServletException: Servlet.init() for servlet action threw exception
  2. 0

    Crash on access

    GitHub | 2 years ago | GoogleCodeExporter
    javax.servlet.ServletException: Servlet.init() for servlet probe threw exception at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1247)
  3. 0

    i am getting a null pointer exception while accessing the probe application URL(deployed in Jboss 7.1.1)

    GitHub | 2 years ago | GoogleCodeExporter
    javax.servlet.ServletException: Wrapper is null at com.googlecode.psiprobe.ProbeServlet.init(ProbeServlet.java:48) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    tomcatとapacheの連携 - Java | 【OKWave】

    okwave.jp | 1 year ago
    javax.servlet.ServletException: サーブレット jsp のServlet.init()が例外を投げました
  6. 0

    Jsp, J2ee, And The Role Of The Servlet - Jsp tutorial | Wisdomjobs.com

    wisdomjobs.com | 1 year ago
    javax.servlet.ServletException: Servlet.init() for servlet DeliberateException threw exception at org.apache.catalina.core.StandardWrapper.loadServlet (StandardWrapper.java:935)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.servlet.ServletException

      Servlet.init() for servlet action threw exception

      at org.apache.catalina.core.StandardWrapper.loadServlet()
    2. Glassfish Core
      StandardWrapper.allocate
      1. org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1109)
      2. org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:725)
      2 frames