Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » [SOLVED] Problem Creating a Tomcat 6 Localhost Server Project
icon14.gif  [SOLVED] Problem Creating a Tomcat 6 Localhost Server Project [message #489441] Sat, 03 October 2009 02:39 Go to next message
R. S. Patil is currently offline R. S. PatilFriend
Messages: 13
Registered: July 2009
Junior Member
Hello,

I am using Eclipse J2EE on Kubuntu 9.04 AMD64. I have Installed Tomcat 6.0.20
through Repositories and I am able to Connect to it via http://localhost:8080/
I am trying a web application for first time I have read about this repository
installed Tomcat that it relocates some of the files/directories than tar.gz
installation from Direct Tomcat website download and install,
anyway this installation is working.

I followed File->New->Dynamic Web Project wizard and created a web project.
Created a simple index.html in WebContent Directory and was eager to test it.
When I tried to run that It took me to New Server Dialog. In that when I am trying to
define localhost as server's name and Apache Tomcat 6 as server type it gives error
"Cannot create a server using the selected type" but with 5.5 that is not there

I would like to run/debug the application on Tomcat 6 which is installed how can I do
that. If I try to define a new server project same error occurs. But in Windows->preferences->runtime environment I am able to define Tomcat 6 server

Can somebody guide me about how should I set up J2EE development/debugging
environment with Eclipse/Tomcat 6 for my first web project.

Thanks and best regards

Raja.

p.s. Screen shot attached herewith


Here is what I did and thing is working like a charm. Smile
I am putting this here to help others like me facing such problem
This relates to Kubuntu 9.04 AMD64, Tomcat 6 from repository,
eclipse J2EE 64 bit downloaded from eclipse original site as tar.gz

$ cd /usr/share/tomcat6
$ sudo ln -s conf /etc/tomcat6
$ cd conf
$ sudo cp policy.d/03catalina.policy ./catalina.policy

Note : conf directory should have rwx rwx rwx permissions

Thats all.

However in first attempt it did not worked. So I renamed old workspace and
let eclipse create new workspace and then created a fresh "dynamic web project"
now I can define new servers and start stop them in normal as well in debug mode
with in eclipse itself. As well My first test web application with one servlet also
works fine and I can debug that also.

Thanks and best regards

Raja


[Updated on: Sun, 04 October 2009 01:28]

Report message to a moderator

Re: Problem Creating a Tomcat 6 Localhost Server Project [message #489696 is a reply to message #489441] Mon, 05 October 2009 15:25 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1310
Registered: July 2009
Senior Member
Are you able to create the runtime for Tomcat 6.0.20 first using Window
-> Preferences -> Server -> Runtime Environments?

Cheers,
Larry

R. S. Patil wrote:
> Hello,
>
> I am using Eclipse J2EE on Kubuntu 9.04 AMD64. I have Installed Tomcat
> 6.0.20
> through Repositories and I am able to Connect to it via
> http://localhost:8080/
> I am trying a web application for first time I have read about this
> repository
> installed Tomcat that it relocates some of the files/directories than
> tar.gz
> installation from Direct Tomcat website download and install, anyway
> this installation is working.
> I followed File->New->Dynamic Web Project wizard and created a web project.
> Created a simple index.html in WebContent Directory and was eager to
> test it.
> When I tried to run that It took me to New Server Dialog. In that when I
> am trying to
> define localhost as server's name and Apache Tomcat 6 as server type it
> gives error
> "Cannot create a server using the selected type" but with 5.5 that is
> not there
>
> I would like to run/debug the application on Tomcat 6 which is installed
> how can I do
> that. If I try to define a new server project same error occurs. But in
> Windows->preferences->runtime environment I am able to define Tomcat 6
> server
>
> Can somebody guide me about how should I set up J2EE development/debugging
> environment with Eclipse/Tomcat 6 for my first web project.
>
> Thanks and best regards
>
> Raja.
>
> p.s. Screen shot attached herewith
Re: [SOLVED] Problem Creating a Tomcat 6 Localhost Server Project [message #676202 is a reply to message #489441] Fri, 03 June 2011 07:46 Go to previous message
Dubuc  is currently offline Dubuc Friend
Messages: 1
Registered: June 2011
Junior Member
Hi,

I've encounter this problem. I found this solution according to the response of Larry Isaacs .

Suppress all server define on "Window -> Preferences -> Server -> Runtime Environments" and recreate the good one.


PS : I wasn't able to create a "Apache Tomcat 6.0" because I've already a "Apache Tomcat 6.0" server defined.

Nicolas.
Previous Topic:Code Hinting on JSP with Custom Tags (taglib)
Next Topic:how to override addBreakpoint and deleteBreakpoint listener of javascript
Goto Forum:
  


Current Time: Sun Nov 23 22:38:24 GMT 2014

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

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