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
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
5
Received in last 30 days
0
Total given
6
Given in last 30 days
0
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 "http://127.0.0.1:8080/"; in browser succesfully.

But when when I enter "http://127.0.0.1:9990/console", 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
 Hello!

 I have the following maven-dependency:



 Project-properties:



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?



test.war
4 months ago
   text:war
   test:war eplored

Application context:  /test

spring-app



spring-db:



spring-mvc:






4 months ago
http://localhost:8080/test/

web-xml:



context.xml:







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.
test/webapp/index.html.

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"

  test/webapp/access_approved.html

  test/webapp/WEB-INF/web.xml
 test/webapp/WEB-INF/access_denied.xml
4 months ago