Toolvito

WAR File Viewer

Choose a .war file. You see the servlets with the URLs they answer, the filters and listeners, the settings of web.xml, the libraries in WEB-INF/lib with their versions, and problems that stop a server from starting the application. Every file inside can be opened. The file is read in your browser and never uploaded, and nothing in it is run.

Open a WAR file

How to look inside a WAR

  1. Choose the .war file, or press “Try the sample WAR”.
  2. Read the problems first: a mapping to a servlet that does not exist, or one URL mapped to two servlets, stops the deployment.
  3. Check the servlets and their URL patterns, and the libraries with their versions.
  4. Find any file in the list and open it; a class shows its methods and bytecode.

What is read

  • WEB-INF/web.xml: servlets, servlet and filter mappings, listeners, context parameters, welcome and error pages, security constraints, the session timeout and the login method.
  • Classes in WEB-INF/classes with @WebServlet, @WebFilter or @WebListener (unless web.xml says metadata-complete="true"), and whether they use the old javax.servlet or the new jakarta.servlet names.
  • Every jar in WEB-INF/lib: its Maven coordinates (from pom.properties), version and the Java version its classes need.
  • Files of particular servers: META-INF/context.xml (Tomcat), WEB-INF/jboss-web.xml, weblogic.xml, jetty-web.xml and others.

javax or jakarta

  • Java EE used the package names javax.servlet; Jakarta EE 9 and later use jakarta.servlet. Tomcat 10 and later run only jakarta.servlet applications; Tomcat 9 and older only javax.servlet. The page warns when web.xml and the classes do not agree.

Limits you should know

  • Servlets registered in code (for example by Spring) are not seen. The page does not decompile classes to Java source, and does not check signatures.
  • WAR files of more than 4 GB (ZIP64) cannot be opened here.

Related tools