diff --git a/Semester 3/Assignments/lab2_CalebFontenot/fx3.pdf b/Semester 3/Assignments/lab2_CalebFontenot/fx3.pdf new file mode 100644 index 0000000..6b3b4e0 Binary files /dev/null and b/Semester 3/Assignments/lab2_CalebFontenot/fx3.pdf differ diff --git a/Semester 3/Assignments/lab2_CalebFontenot/pom.xml b/Semester 3/Assignments/lab2_CalebFontenot/pom.xml new file mode 100644 index 0000000..9be73e5 --- /dev/null +++ b/Semester 3/Assignments/lab2_CalebFontenot/pom.xml @@ -0,0 +1,77 @@ + + 4.0.0 + edu.slcc.asdv.caleb + lab2_CalebFontenot + 1.0-SNAPSHOT + war + lab2_CalebFontenot-1.0-SNAPSHOT + + + 11 + 11 + ${project.build.directory}/endorsed + UTF-8 + false + 10.0.0 + + + + + jakarta.platform + jakarta.jakartaee-api + ${jakartaee} + provided + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + 11 + 11 + + ${endorsed.dir} + + + + + org.apache.maven.plugins + maven-war-plugin + 2.3 + + false + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.6 + + + validate + + copy + + + ${endorsed.dir} + true + + + jakarta.platform + jakarta.jakartaee-api + ${jakartaee} + jar + + + + + + + + + \ No newline at end of file diff --git a/Semester 3/Assignments/lab2_CalebFontenot/src/main/java/edu/slcc/asdv/caleb/lab2_calebfontenot/JakartaRestConfiguration.java b/Semester 3/Assignments/lab2_CalebFontenot/src/main/java/edu/slcc/asdv/caleb/lab2_calebfontenot/JakartaRestConfiguration.java new file mode 100644 index 0000000..7e6aea5 --- /dev/null +++ b/Semester 3/Assignments/lab2_CalebFontenot/src/main/java/edu/slcc/asdv/caleb/lab2_calebfontenot/JakartaRestConfiguration.java @@ -0,0 +1,13 @@ +package edu.slcc.asdv.caleb.lab2_calebfontenot; + +import jakarta.ws.rs.ApplicationPath; +import jakarta.ws.rs.core.Application; + +/** + * Configures Jakarta RESTful Web Services for the application. + * @author Juneau + */ +@ApplicationPath("resources") +public class JakartaRestConfiguration extends Application { + +} diff --git a/Semester 3/Assignments/lab2_CalebFontenot/src/main/java/edu/slcc/asdv/caleb/lab2_calebfontenot/resources/JakartaEE10Resource.java b/Semester 3/Assignments/lab2_CalebFontenot/src/main/java/edu/slcc/asdv/caleb/lab2_calebfontenot/resources/JakartaEE10Resource.java new file mode 100644 index 0000000..be61804 --- /dev/null +++ b/Semester 3/Assignments/lab2_CalebFontenot/src/main/java/edu/slcc/asdv/caleb/lab2_calebfontenot/resources/JakartaEE10Resource.java @@ -0,0 +1,20 @@ +package edu.slcc.asdv.caleb.lab2_calebfontenot.resources; + +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.core.Response; + +/** + * + * @author + */ +@Path("jakartaee10") +public class JakartaEE10Resource { + + @GET + public Response ping(){ + return Response + .ok("ping Jakarta EE") + .build(); + } +} diff --git a/Semester 3/Assignments/lab2_CalebFontenot/src/main/resources/META-INF/persistence.xml b/Semester 3/Assignments/lab2_CalebFontenot/src/main/resources/META-INF/persistence.xml new file mode 100644 index 0000000..7582bf1 --- /dev/null +++ b/Semester 3/Assignments/lab2_CalebFontenot/src/main/resources/META-INF/persistence.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Semester 3/Assignments/lab2_CalebFontenot/src/main/webapp/WEB-INF/beans.xml b/Semester 3/Assignments/lab2_CalebFontenot/src/main/webapp/WEB-INF/beans.xml new file mode 100644 index 0000000..9dfae34 --- /dev/null +++ b/Semester 3/Assignments/lab2_CalebFontenot/src/main/webapp/WEB-INF/beans.xml @@ -0,0 +1,6 @@ + + + \ No newline at end of file diff --git a/Semester 3/Assignments/lab2_CalebFontenot/src/main/webapp/WEB-INF/glassfish-web.xml b/Semester 3/Assignments/lab2_CalebFontenot/src/main/webapp/WEB-INF/glassfish-web.xml new file mode 100644 index 0000000..673cc06 --- /dev/null +++ b/Semester 3/Assignments/lab2_CalebFontenot/src/main/webapp/WEB-INF/glassfish-web.xml @@ -0,0 +1,25 @@ + + + + + + + + Keep a copy of the generated servlet class' java code. + + + diff --git a/Semester 3/Assignments/lab2_CalebFontenot/src/main/webapp/WEB-INF/web.xml b/Semester 3/Assignments/lab2_CalebFontenot/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000..4ae23ce --- /dev/null +++ b/Semester 3/Assignments/lab2_CalebFontenot/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,11 @@ + + + + + 30 + + + diff --git a/Semester 3/Assignments/lab2_CalebFontenot/src/main/webapp/index.html b/Semester 3/Assignments/lab2_CalebFontenot/src/main/webapp/index.html new file mode 100644 index 0000000..3368e9c --- /dev/null +++ b/Semester 3/Assignments/lab2_CalebFontenot/src/main/webapp/index.html @@ -0,0 +1,10 @@ + + + + Start Page + + + +

Hello World!

+ +