E
E
EVOSandru62015-04-06 12:08:02
Java
EVOSandru6, 2015-04-06 12:08:02

How to run java servlet under netBeans with Tomcat?

Good afternoon,
I'm trying to create a servlet in Java using Tomcat under NetBeans IDE, I
did everything as in this tutorial:
https://www.youtube.com/watch?v=V-CH2R4n9Io
1. Launched Tomcat
2. Created a Web application
3. Created a Servlet inside a package
When I right-click on a project and click " Deploy ", the following error pops up in the console: In-place deployment to S:\DEVELOPER\NetBeans\projects\SpyServlet\build\web Deploying ... deploy?config=file% 3A%2FC%3A%2FUsers%2FEVOSDU%7E1.MSK%2FAppData%2FLocal%2FTemp%2Fcontext9013325949527666485.xml&path=/SpyServlet
Server returned HTTP response code: 504 for URL: http://localhost:8084/manager/text/deploy?config=f...
S:\DEVELOPER\NetBeans\projects\SpyServlet\nbproject\build-impl.xml:1045 : The module is not deployed.
See server log for details.
BUILD FAILED (total time: 36 seconds)
There is no point in running the project any more.
Tried with running and deflated Denwer . No difference. Browser localhost:8080/SpyServlet does not open
Anyone encountered an error? I also have Denwer with php projects, can there be a conflict with different localhost ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2015-04-09
@EVOSandru6

There can be a conflict between Denver and Tomcat if you put them on the same port (8080 for example). Judging by your "log", the tomcat is simply not running (I judge this by the error code 504). If you are running from an IDE, please check the settings in the IDE (to be honest, I don't know what it looks like in NetBeans). Also look inside the tomcat in the webapps folder, the presence of the manager folder (this is such an application for managing contexts). If there is such a folder, you need to check the settings in the %CATALINA_HOME%/conf/tomcat-users.xml file. This file describes users with a role for access to applications built into Tomcat, in particular, to the manager application.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question