|
|
|
|
|
Re: Tomcat directory inesistent [message #527597 is a reply to message #527582] |
Thu, 15 April 2010 17:30 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
Vito wrote:
> Thanks for answer, but i resolved it too.
> I've an other question:
> In my PC when it's turn on, tomcat automaticly start, in localhost:8080
> there is the page, but in localhost:8080/myProject there is some error,
> so i try with eclipse and when i click "run on server" eclipse says me
> the port 8080, 8009, ... are used from an other application.....
>
> What can i do???
>
> [Exuse me for my english i hope the message is clear!]
The Tomcat FAQ[1] explains that WTP creates a separate server instance
by default. You can run this WTP instance at the same time as your
installed Tomcat, provided they aren't trying to use the same port
numbers. Double-click on the Tomcat server in the Servers view to open
up the server editor. In the Ports section, change the port numbers to
non-conflicting values and save. See the Tomcat FAQ for more details
about the WTP Tomcat support.
Cheers,
Larry
[1] http://wiki.eclipse.org/WTP_Tomcat_FAQ
|
|
|
|
|
|
Re: Tomcat directory inesistent [message #528441 is a reply to message #528065] |
Tue, 20 April 2010 14:23 |
Larry Isaacs Messages: 1354 Registered: July 2009 |
Senior Member |
|
|
Vito wrote:
> Hi, I changed ports, i restart my pc and it worked! but...
> i've an index.html page placed in "localhost:2580/myApplication" and in
> the index page there's a button that call a servlet, the page work but
> when a push the button i have the error page ( the same page! ).
> The error page say me the resource is not available and its title is
> abaut "status 404" !!!
> What can i do for eliminate this problem???
If this is still a problem, you should note that Tomcat returns 404
errors for the great majority of problems that can occur. In many
cases, Tomcat could easily be more specific but isn't because to be more
specific could represent a security risk. If there is specific
information about a problem to be had, it would appear in a log or
console output. As for this specific error, I would recommend testing
the URL to to servlet by entering it directly in the browser to verify
the servlet is working. If it works, then it implies there's something
wrong with the programming for your button. If the servlet doesn't
work, you will need to fix that before you can verify if your button is
working correctly. If the servlet isn't working, the first thing to
check is to ensure the URL you are using is appropriate for the mapping
declared for the servlet.
Cheers,
Larry
|
|
|
|
Powered by
FUDForum. Page generated in 0.03939 seconds