PDA

View Full Version : [SOLVED] Netbeans 6.1 + Tomcat6 + Web application development



dynamethod
November 13th, 2008, 09:01 AM
hey there, i have installed netbeans 6.1 via apt-get same as tomcat6, im trying to follow this guide here:

http://www.netbeans.org/kb/60/web/quickstart-webapps.html

however, i get to "Select the server to which you want to deploy your application. Only servers that are registered with the IDE are listed."

Heres a SS to help explain my problem:

http://img224.imageshack.us/my.php?image=wtftd3.png

CptPicard
November 13th, 2008, 03:33 PM
It is much, much easier just to use the built-in tomcat when developing. I use appservers I configure myself only on my deployment servers.

cl333r
November 13th, 2008, 05:48 PM
hey there, i have installed netbeans 6.1 via apt-get same as tomcat6, im trying to follow this guide here:

http://www.netbeans.org/kb/60/web/quickstart-webapps.html

however, i get to "Select the server to which you want to deploy your application. Only servers that are registered with the IDE are listed."

Heres a SS to help explain my problem:

http://img224.imageshack.us/my.php?image=wtftd3.png

I usually download the NetBeans version which comes bundled with GlassFish and Tomcat so Netbeans knows where your server(s) are located.

dynamethod
November 13th, 2008, 11:19 PM
I usually download the NetBeans version which comes bundled with GlassFish and Tomcat so Netbeans knows where your server(s) are located.


Sorry but do you have a link, im having trouble finding the package myself(I actually downloaded netbeans via apt-get)

On a windows machine i had downloaded netbeans from the netbeans site, it did have the tomcat6 plugin and web services plugins installed, however im having the same problem on the windows machine too, it keeps telling me "the specified catalina home folder is not valid", i havet to ask, what IS the catalina home folder supposed to be??

tinny
November 14th, 2008, 12:01 AM
It is much, much easier just to use the built-in tomcat when developing. I use appservers I configure myself only on my deployment servers.

The problem is that Netbeans 6.1 doesnt bundle with tomcat by default. (it use to in version 5.x)

I personally just use Glassfish when developing within Netbeans (because its already configured)

Ive never tried configuring tomcat in Netbeans 6.1. Maybe you need to point to the "bin" folder?

cl333r
November 14th, 2008, 12:33 AM
Sorry but do you have a link, im having trouble finding the package myself(I actually downloaded netbeans via apt-get)

On a windows machine i had downloaded netbeans from the netbeans site, it did have the tomcat6 plugin and web services plugins installed, however im having the same problem on the windows machine too, it keeps telling me "the specified catalina home folder is not valid", i havet to ask, what IS the catalina home folder supposed to be??

Go to:
http://www.netbeans.org/downloads/index.html
and choose to download the NetBeans version called "Web & Java EE" its size is 139MB (as you can notice below). It contains the Tomcat server and as you install that version of NetBeans it (I mean the NetBeans installer) will ask you which servers you wanna install together with NetBeans, choose Tomcat only, since you probably don't wanna have 2 servers installed.
I also wanna note that in a week (on the 20th November) Sun will release NetBeans 6.5 which will have many cool improvements.

cl333r
November 14th, 2008, 12:38 AM
The catalina home folder is the folder where the Tomcat server is installed. Yes, the name should be like "Tomcat home folder", not "Catalina home folder".
But, if you install NetBeans as I suggested you won't have to specify the catalina home folder since NetBeans keeps track of that while installing itself and the Tomcat server.

dynamethod
November 14th, 2008, 01:34 AM
Sigh...


http://img219.imageshack.us/my.php?image=screenshotyr9.png

I cant make sense of what the problem is,

cl333r
November 14th, 2008, 02:47 AM
If you are installing NetBeans from the web as I suggested please make sure first that you uninstalled the previous version of NetBeans and the Tomcat server.

cl333r
November 14th, 2008, 03:02 AM
Here's a short video where I install tomcat from the NetBeans installer. Normally it would also install NetBeans and GlassFish, but since those were already installed on my computer, the installer only allowed me to install Tomcat.
After I started NetBeans it already knew where tomcat is located, so no other steps were required from me. So I created a little web demo project on Tomcat. Here's the video (9MB):
http://xlinuks.googlepages.com/tomcat.ogv

aszxcv
November 14th, 2008, 05:36 AM
what player players ogv format

cl333r
November 14th, 2008, 11:28 AM
Pretty much every Linux supports the ogg video, if you're using windows you should install the "k lite codec" video codecs package.

dynamethod
November 15th, 2008, 07:15 AM
thanks guys its working fine now, i uninstalled the version installed via apt-get, and downloaded the netbeans package from the site with the tomcat addon, working fine, thanks again

slowtrain
April 1st, 2009, 04:10 AM
Hi folks: I got the same "the specified catalina home folder is not valid" error message trying to set up my Tomcat6 server with Netbeans 6.1. The thing is, I know exactly what the catalina home path is and fed it to Netbeans 6.1. The first time I put it in, Netbeans took it but I got hung up on user / password issues and closed the window. The next 5 times I tried it, I got the 'not valid' error. I'm going to try the suggestion here of installing the 'all components' version of Netbeans without Synaptic. Just wish the Ubuntu repositories would work!