Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Tomcat directory inesistent
Tomcat directory inesistent [message #526837] Tue, 13 April 2010 08:20 Go to next message
Vito  is currently offline Vito
Messages: 6
Registered: April 2010
Junior Member
Hi ( excuse me for my bad english! ) i've a little problem, when i make "run on server" i've a problems... eclipse says me "...the directory /Library/Tomcat does not exist".

I've make a simbolic link with my tomcat directory in /usr/local/tomcat, but eclipse search tomcat directory in an other place....
Re: Tomcat directory inesistent [message #526903 is a reply to message #526837] Tue, 13 April 2010 13:00 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1310
Registered: July 2009
Senior Member
Vito wrote:
> Hi ( excuse me for my bad english! ) i've a little problem, when i make
> "run on server" i've a problems... eclipse says me "...the directory
> /Library/Tomcat does not exist".
>
> I've make a simbolic link with my tomcat directory in /usr/local/tomcat,
> but eclipse search tomcat directory in an other place....

The development for the Tomcat support occurs mostly on Windows. I
doubt specifying a symbolic link as the Tomcat installation directory
has been tested. You may need to specify "/usr/local/tomcat" as the
directory.

Cheers,
Larry
Re: Tomcat directory inesistent [message #527020 is a reply to message #526903] Tue, 13 April 2010 17:30 Go to previous messageGo to next message
Vito  is currently offline Vito
Messages: 6
Registered: April 2010
Junior Member
Thanks !!! I resolved it!
I have some others questions!
1. Where can i find the index.html page is displayed when run my servlet?
Re: Tomcat directory inesistent [message #527278 is a reply to message #527020] Wed, 14 April 2010 15:53 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1310
Registered: July 2009
Senior Member
Vito wrote:
> Thanks !!! I resolved it!
> I have some others questions!
> 1. Where can i find the index.html page is displayed when run my servlet?

If this is still an issue, please clarify what you are trying to
display. Are you trying to display a resource like index.html or
display a servlet?

Cheers,
Larry
Re: Tomcat directory inesistent [message #527582 is a reply to message #527278] Thu, 15 April 2010 16:49 Go to previous messageGo to next message
Vito  is currently offline Vito
Messages: 6
Registered: April 2010
Junior Member
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!]
Re: Tomcat directory inesistent [message #527597 is a reply to message #527582] Thu, 15 April 2010 17:30 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1310
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 #527719 is a reply to message #527597] Fri, 16 April 2010 08:46 Go to previous messageGo to next message
Vito  is currently offline Vito
Messages: 6
Registered: April 2010
Junior Member
Thanks realy for answer!
So after the changing the ports, when i restart the pc i have no problem?
Because my goal is make visible my server in internet for my web pages!
Re: Tomcat directory inesistent [message #527793 is a reply to message #527719] Fri, 16 April 2010 13:49 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1310
Registered: July 2009
Senior Member
Vito wrote:
> Thanks realy for answer!
> So after the changing the ports, when i restart the pc i have no problem?

No problem in the sense that you have two separate Tomcat servers, the
one that runs as a service (your "production" server) and the one you
run in Eclipse (your "development" server). This is why the default
behavior is to create a separate Tomcat server instance for use in
Eclipse. With non-conflicting ports, each Tomcat server can run
independent of the other.

> Because my goal is make visible my server in internet for my web pages!

Once you have finished developing your web project in Eclipse, you can
deploy it to the Tomcat running as a service to make it visible on the
internet.

Cheers,
Larry
Re: Tomcat directory inesistent [message #528065 is a reply to message #527793] Mon, 19 April 2010 08:01 Go to previous messageGo to next message
Vito  is currently offline Vito
Messages: 6
Registered: April 2010
Junior Member
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???
Re: Tomcat directory inesistent [message #528441 is a reply to message #528065] Tue, 20 April 2010 14:23 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1310
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
Re: Tomcat directory inesistent [message #528458 is a reply to message #528441] Tue, 20 April 2010 15:25 Go to previous message
Vito  is currently offline Vito
Messages: 6
Registered: April 2010
Junior Member
Thank you so much! as soon as possible i'm gonna control it and i'll write somethings here!
Previous Topic:How to change the name and location of an EJB client project?
Next Topic:Using Axis 2 Tools
Goto Forum:
  


Current Time: Thu Oct 30 16:51:11 GMT 2014

Powered by FUDForum. Page generated in 0.02767 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software