Jim Ritchhart

Greenhorn
+ Follow
since Apr 02, 2020
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jim Ritchhart

Issue seemed to be with JWT getting in the way.    I had started pairing down as much stuff as possible and nothing was working.   This morning I removed all JWT code and disabled security and that worked.   Now I started putting things back.  
4 years ago


I'm new to Java / Spring / Rest / etc/   I have gone through the Java Full Stack with Spring Boot and Angular by in28Minutes.  

I'm having an issue that I'v been frustrated with all day.   Getting Resource Not Found Complete 4040 NOT_FOUND error when trying a very simple rest call.  
I have researched all over the web trying to help myself.   Need to reach out for some help.     THANKS IN ADVANCE!!!

I make the URL call as:  http://localhost:9090/test   in Postman and get the Resource Not Found Error.

Application class is this:


Rest endpoint looks like this:





POM is this:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.6.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.replicatedtablereference</groupId>
<artifactId>replicatedtablereference</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>replicatedtablereference</name>
<description>Replicated Table Reference</description>

<properties>
<java.version>1.8</java.version>
</properties>

<dependencies>
<!-- <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-cassandra</artifactId>
</dependency> -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-ldap</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-rest</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-solr</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
<version>2.2.2.RELEASE</version>
</dependency>

<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt</artifactId>
<version>0.9.1</version>
<url>https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt</url>;
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.ibm.db2</groupId>
<artifactId>jcc</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

</project>



Spring Error is:
2020-04-02 15:31:38.065  INFO 52136 --- [  restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 9090 (http) with context path ''
2020-04-02 15:31:38.066  INFO 52136 --- [  restartedMain] c.r.r.w.r.RestfulWebServicesApplication  : Started RestfulWebServicesApplication in 2.028 seconds (JVM running for 522.125)
2020-04-02 15:31:38.069  INFO 52136 --- [  restartedMain] .ConditionEvaluationDeltaLoggingListener : Condition evaluation unchanged
2020-04-02 15:39:14.472  INFO 52136 --- [nio-9090-exec-4] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring DispatcherServlet 'dispatcherServlet'
2020-04-02 15:39:14.472  INFO 52136 --- [nio-9090-exec-4] o.s.web.servlet.DispatcherServlet        : Initializing Servlet 'dispatcherServlet'
2020-04-02 15:39:14.472 DEBUG 52136 --- [nio-9090-exec-4] o.s.web.servlet.DispatcherServlet        : Detected StandardServletMultipartResolver
2020-04-02 15:39:14.479 DEBUG 52136 --- [nio-9090-exec-4] o.s.web.servlet.DispatcherServlet        : enableLoggingRequestDetails='false': request parameters and headers will be masked to prevent unsafe logging of potentially sensitive data
2020-04-02 15:39:14.480  INFO 52136 --- [nio-9090-exec-4] o.s.web.servlet.DispatcherServlet        : Completed initialization in 8 ms
2020-04-02 15:39:14.487 DEBUG 52136 --- [nio-9090-exec-4] o.s.web.servlet.DispatcherServlet        : GET "/test", parameters={}
2020-04-02 15:39:14.488 DEBUG 52136 --- [nio-9090-exec-4] o.s.w.s.handler.SimpleUrlHandlerMapping  : Mapped to ResourceHttpRequestHandler ["classpath:/META-INF/resources/", "classpath:/resources/", "classpath:/static/", "classpath:/public/", "/"]
2020-04-02 15:39:14.495 DEBUG 52136 --- [nio-9090-exec-4] o.s.w.s.r.ResourceHttpRequestHandler     : Resource not found
2020-04-02 15:39:14.496 DEBUG 52136 --- [nio-9090-exec-4] o.s.web.servlet.DispatcherServlet        : Completed 404 NOT_FOUND






4 years ago