TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/LucaXGit/proyecto-final-jaz/llms.txt
Use this file to discover all available pages before exploring further.
ServidorTiendaPlayeras backend is a Jakarta EE 10 WAR artifact built with Maven. It exposes a single servlet — ProductoServlet — at /ServidorTiendaPlayeras/ProductoServlet that handles all product CRUD and sell operations via HTTP. Follow the steps below to create the database, build the WAR, and get it running on Apache Tomcat.
Create the database
Start your MySQL server (via XAMPP Control Panel or your system service manager), then run the following SQL to create the database and the You can execute this in the XAMPP phpMyAdmin interface, MySQL Workbench, or directly from the MySQL CLI:
productos table:Build the WAR
Navigate to the Maven will compile the sources with Java 17, package the Jakarta EE 10 WAR, and bundle the
ServidorTiendaPlayeras directory and run the Maven build:mysql-connector-j:8.3.0 and gson:2.10.1 runtime dependencies. The finished artifact is placed at:Deploy to Tomcat
Copy the WAR file into Tomcat’s Tomcat will detect the new WAR and auto-deploy it. The If Tomcat is not already running, start it with:
webapps/ directory:context.xml sets the context path to /ServidorTiendaPlayeras, so the application root becomes:Verify deployment
Once Tomcat has deployed the WAR, verify the servlet is responding by making a GET request to the Expected response:A
ProductoServlet endpoint. With an empty database it should return an empty JSON array.404 response means the WAR was not deployed correctly — check the Tomcat logs/catalina.out file for errors. A database connection error usually means MySQL is not running or the credentials in Conexion.java do not match your setup.