Naveen N Kumar

Greenhorn
+ Follow
since Mar 01, 2017
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 Naveen N Kumar

@Tim

I don't have tomcat plugin in POM.xml. I would give a try with plugin.  I am following JavaBrains tutorials on YouTube and Spring/Hibernate reference documents.

Thanks for your reply
7 years ago
@Tim
I was working on a maven project and when I clean and recompile the project and deploy on Tomcat  which is added Eclipse I get 404 error,

although same is working when I create a war and deploy from tomcat console.

If I don't clean the project, it works fine, wondering whats happening behind ??
7 years ago
I have an issue in running a Spring MVC project on tomcat in eclipse IDE, when I launch the URL, I get 404. The same code is working perfectly fine when I create a war file and deploy from tomcat console.
Does anyone had this issue ? Any inputs would be greatly appreciated, I have been spending lot of time to test small change.
7 years ago
@Somashekar: have  you tried to create a war and deploy separately  instead of from IDE (Assuming you are trying to deploy from IDE)?  I am facing something similar although my code works perfectly when I create a war and deploy from tomcat console, however I get 404 when I do the same in eclipse.

I am still trying to figure out a solution.
7 years ago
Thank you Campbell and Sorry about the formatting, it was my first post.  I have made some changes to the logic, I still don't feel it is an efficient logic but close to what we were looking.

   
7 years ago
I have come up with a below code for your requirement. The requirement to create a array size of exact even number didn't meet although it can be achieved by doing a second iteration through the numbers.

But didn't feel right to write a second for loop to separate move even numbers into the array. If someone come up with a logic with single for loop, it would be awesome I guess.

Here is the code :

7 years ago