[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"howto:war:mac:en":3},{"resolvedFromAlias":4,"canonicalExt":5,"ext":5,"name":6,"category":7,"categoryName":8,"updatedAt":9,"os":10,"osLabel":11,"quickSolution":12,"stepByStep":13,"recommendedSoftware":16,"alternativeMethods":17,"commonIssues":18,"securityNote":39,"extensionPath":40,"extensionLabel":41,"breadcrumbs":42,"metaDescription":52},false,"war","Web Application Archive (WAR)","web","Web","2026-06-12T09:13:27.637Z","mac","Mac","To open .WAR files on Mac, to run it: use a servlet container such as Apache Tomcat or Jetty and deploy the .war per the container’s deployment instructions (for example, placing it in the deployment directory).",[14,15],"To run it: use a servlet container such as Apache Tomcat or Jetty and deploy the .war per the container’s deployment instructions (for example, placing it in the deployment directory).","To inspect it: open it with an archive utility to view the standard web-app layout (WEB-INF, libraries under WEB-INF/lib, and optional WEB-INF/web.xml).",[],[],[19,26,33],{"title":20,"description":21,"steps":22},"Copied the WAR but the app does not deploy or start","Servlet containers expect a specific web application structure inside the WAR. If required classes, libraries, or descriptors are missing or placed incorrectly, deployment can fail.",[23,24,25],"Inspect the WAR contents and verify the standard layout exists (for example: WEB-INF/classes for your compiled classes and WEB-INF/lib for dependency JARs).","If you use a deployment descriptor, confirm WEB-INF/web.xml is present and correctly packaged.","Redeploy using your container’s documented method (for example, place the WAR in Tomcat’s appBase/webapps or deploy via the Tomcat Manager app).",{"title":27,"description":28,"steps":29},"Deployed application behaves differently than expected due to class/library loading","Servlet containers follow defined class loading and web application packaging rules. If you have duplicate libraries, incompatible versions, or misunderstand where classes should be placed, you can get runtime errors or unexpected behavior.",[30,31,32],"Confirm libraries are packaged under WEB-INF/lib and your application classes under WEB-INF/classes (per common container deployment layouts).","Remove duplicate or conflicting JARs in WEB-INF/lib and rebuild the WAR with a clean dependency set.","Consult your container/spec documentation for how the container loads web application classes and resources.",{"title":34,"description":35,"steps":36},"Tried to open the WAR like a normal app and nothing runs","A WAR is a deployment package for a server-side web application; it is not an executable desktop application. It must be run by a servlet container.",[37,38],"If your goal is to run the web app, deploy the WAR to a servlet container such as Tomcat or Jetty and access it through a web browser.","If your goal is to inspect or extract contents, open it as an archive and review the files (WEB-INF, static assets, and libraries).","A WAR is server-deployed code: deploying an untrusted WAR to Tomcat/Jetty can execute attacker-controlled application logic within your server environment.","/file-extension/war",".WAR",[43,46,49],{"label":44,"to":45},"Home","/",{"label":47,"to":48},"How To","/file-extension",{"label":50,"to":51},"Open .WAR on Mac","/how-to/open-war-on-mac","Learn how to open .WAR files on Mac with step-by-step instructions, recommended software, and troubleshooting tips."]