Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!

Andrey Dmitriev

Ranch Hand
+ Follow
since Jan 04, 2019
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Andrey Dmitriev

   Thank you! It s a foolishness, but I mixed up Apache Maven and Apache Tomcat
1 month ago
What is the valid tomcat directory in Windows?

I tried to configure apache-maven in Idea in C:\Program Files

But receive: "The selected directory is not a valid tomcat home"
1 month ago
WildFly 14.0.1:

I enter ""; in browser succesfully.

But when when I enter "", I receive "Cannot access to site".

Trying to run WildFly I receive following exceptions:

Also I see, that it does not have data-directory and logs.

jBoss is installed, but i cant run it too due to the above reason.

jdk-8 is installed in the same root-directory: C:\Program Files
2 months ago
  I'm still "anchored"....
3 months ago

 I have the following maven-dependency:


And try to use it by spring-xml-configuration:

SDK is 11.0.6.

I tried:
1. Rebuild project.

2. Invalidate Caches/Restart

3. Maven Clean/Install.  But Install failed by the reason of:

     Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project user_service: Fatal error compiling

Help me, please!!!  I almost a day battle with this problem

3 months ago
    I have found the solution:

   I add separate controller:


And conroller for the root-mappring:

new spring-config:

Besides I remain @RestController.  

So this solution cost for my project architecture-sophistication...
4 months ago
Hibernate properties are represent as:

Postgres-driver is 42.2.10
Spring Data JPA

In general hybernate working well: it provides all CRUD-operations.

But if try to update my Entity (for example, by adding new field), assigned table in database is not changing.

    I add to spring-mvc.xml the following:


   and controller:

directory: test/webapp/access_approved.html.

It redirects me on http://localhost:8080/test/access_approved.    But with the same 404-error.

I tried "forward:access_approved"
But it forwards me on http://localhost:8080/test/
4 months ago

Stephan van Hulst wrote:I mean, what is the literal file name of the built WAR, including the .war extension?

4 months ago
   test:war eplored

Application context:  /test




4 months ago



4 months ago
Stephan van Hulst, yes, i understand, that it was bad idea to test @RestController on redirecting on localpages inside webapp.

But now I'am trying to run my simple index.html page during running tomcat-app. Without any methods-invoking.

But I receive the same error: 404.

4 months ago

Stephan van Hulst wrote:What is the absolute URI that you are redirected to, and where under the webapp folder are your views located?

  absolute URL is   localhost:8080/test/

  webbapp-folder in a root of project, named "test"


4 months ago