My problem is that sometimes when i'm working in Eclipse IDE (using Tomcat 8),something goes wrong.It gives me a HTTP 404 error code, which seems obvious for the first look, but the problem is not with the configuration or anything like that,because this happens even with working projects.The only difference i see is that the tomcat is starting faster when i run the project(then i know i will get a 404 error),even if that worked before.Or its loading faster as i mentioned but when i change something its not "loading" that.But here comes the interesting thing,if i make changes in the design which worked already, the changes appears after a refresh/restart.But for example if i delete or change a controller that keeps working or not(depends how was before)One more interesting thing.When i get 404 error and i see its loading faster, and i try to start the server again without stop it,its not asking me if i want to restart it...just brings up the index page.So sometimes its not working the project at all....(404 error)...and sometimes just not "updadeting" it.When this happens i try to clean tomcat/web directory, clean the project, restart the tomcat several times or just restart Eclipse.But even all this sometimes has no effect,and i loose a lot of time with it...
Anyone faced something similar before?And have a solution for this? Or an idea what causing this?
Thanks in advance.
Without your code, It's hard to determine your issue, but as deep I recognized you must some bits slipped in Tomcat Server Configuration in Eclipse Server.
Install and Configure Apache Tomcat Web Server in Eclipse IDE
You should upload your code so that we can see what is the problem here.
Anyway try reinstalling Tomcat and follow the configuration steps. The error ERROR 404 usually caused when the server could not reach what you requested. In your case the Tomcat is not starting. Reinstall and reconfigure it again.
Related
Problem
My code runs without problem but this prompt keeps appearing. I have run into this problem a lot but I just ignored it since the code runs fine. However it's starting to get rather annoying and all the fixes I saw online did not work. I suspect this has something to do with 'hot code replace'.
I also did set "Build automatically".
I saw on some other post that I could disable hot code replace by going to Preferences>Run/Debug, but I found no such option.
Any help is appreciated, thanks!
Apparently I was running in debug, I confused my shortcut keys... Problem fixed lol
I have installed Eclipse Mars2 and when I try to save changes I got a message saying "Processing JAX-RS changes... (Waiting)" and Eclipse freezes for a couple of minutes. I'm developing a spring-mvc maven based application using jboss as server (I don't know whether this is relevant or not).
In this answer a nullPointer is gotten, but I can't see any errors whatsoever. I can't find the "jax-rs- support" option in my project either.
Any clues?
Thank you very much!
The reason for this problem to exist is unclear. A quick Google for the problem doesn't seem to bring up any existing bug report.
Meanwhile, whatever processing features Eclipse has for JAX-RS are quite superfluous and you can easily do without - especially if you do not actually use JAX-RS in your project. So in this case disabling the builder which you will find in the Project properties does the trick to make the problem go away.
You can uncheck JAX-RS from project->properties->project facets . This helped me
I'm a noob in JRebel. In our project we have to set rebel.load_embedded_plugins to false because otherwise issues will occur. But at the same time we are not able to hot deploy the .jsp files in this project. In another word, after execute "ant deploy-jsp" we have to restart the whole server to see the effects. That is really time-wasting. Is there any way to hot deploy the .jsp files but keep rebel.load_embedded_plugins = false? Thank you so much!!
Setting rebel.load_embedded_plugins=false to resolve a problem is like turning off electricity in whole building just because you wanted to turn off light in the bathroom. It disables whole lot of plugins that aren't actually causing any kind of issues for you. Send a trace-level jrebel.log as per the manual and server log to support#zeroturnaround.com with the description of the issue for them to find at least better temporary workaround.
It's also possible to disable plugins on individual basis. This is most easy to be done via plugins tab in the JRebel settings in IDE. Guess to which plugin is your error related to, disable it and check if the problem is still there.
for those who are familiar with the web application iteraplan, I really need help. I've been having trouble getting iteraplan to work on my Mac because some factors or requirements can't be fulfilled.
For this reason I needed to install Tomcat since it's a web application but I'm a newbie to it. Tomcat doesn't work even though I installed it properly, moved it to the right folder and made sure that Eclipse recognizes it as a server. When I'm trying to open anything on Tomcat on my localhost I can't open further pages of Tomcat because I always receive the same error:"The requested resource is not available" When I'm trying to run the web application iteraplan through my terminal, the localhost doesn't open either and I get the same error.
I already changed most of the server file (which seems necessary for getting the web application to work) but that doesn't help either. Is there anything I might gave forgotten? Maybe something I would have to launch or something?
I would be glad for any advice because I desperately need this to work for my thesis.
Thanks in advance.
Yash, have you made sure that your Tomcat installation is working properly? You should be able to access the manager app (usually under localhost:8080/manager/html) and see all running applications, regardless of whether you have iteraplan deployed on the server or not. Also, to run iteraplan, you need a database (details can be found in the iteraplan installation guide: http://www.iteraplan.de/wiki/display/iteraplan34/Installation+Guide). Finally, if you just want to run the application, without modifying the code, it would be simpler to download one of the bundles available in sourceforge (http://sourceforge.net/projects/iteraplan/files/iteraplan Community Edition/). They have a Tomcat server and a database included.
I have eclipse installed on a local computer, and am working on a project by myself. No one else is collaborating on the coding, I am doing it all myself.
Sometimes, I get ambiguous error messages in my spring mvc app when I run it on tomcat server using eclipse's run as...run on server command. For example, there is sometimes NO stack trace. In those cases, I would like to at least be able to see when each file in the app was last saved, so that I can try to figure out what I changed since the last time the app ran successfully. Ideally, I would like to also be able to see what changes I made to specific files.
Can anyone show me how to accomplish this?
Eclipse has Local History feature: try Team > Show Local History from context menu.
But I recommend you to use some version control system (svn, git) even if you work on your project alone.