[SOLVED] Problem Creating a Tomcat 6 Localhost Server Project [message #489441] |
Fri, 02 October 2009 22:39  |
R. S. Patil 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.
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: Sat, 03 October 2009 21:28] Report message to a moderator
|
|
|
|
| Re: [SOLVED] Problem Creating a Tomcat 6 Localhost Server Project [message #676202 is a reply to message #489441] |
Fri, 03 June 2011 03:46  |
Dubuc 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.
|
|
|
Powered by
FUDForum. Page generated in 0.02027 seconds