Monday 17 September 2007

NetBeans 6.0 Beta 1 and custom Tomcat

I've just installed the first beta version of NetBeans 6.0, which was released today. Just out of curiosity, to see how it looks, performs and whether or not there is something better than Eclipse has. It was the full pack including Java SE, Web & Java EE, Mobility, SOA, Ruby, C/C++ and GlassFish. I decided not to install Tomcat as I had it already. To be honest, I got surprised before I even started using it ...

The installation took a long while, about 3, maybe 5 minutes. It was the full installation, so fair enough, though still don't understand why it has to take so long. Eclipse can be installed just by unzipping it to a directory of your choice and that's it. +1 for Eclipse.

NetBeans 6.0 requires about 400 MB for the full installation, plus 140 for GlassFish, if you choose to install it. Quite a lot, however my Eclipse 3.3 takes about the same size with the latest patches and the following plug-ins: Subclipse, Spring IDE, Tomcat , Maven 2, Web Tools and PMD.

The biggest surprise, however, was Tomcat integration. As I mentioned before, I chose to use my own Tomcat, so the first thing I did after startup was to add it to the servers. Here I got an odd warning saying that I might have problems running Tomcat as the startup scripts are missing (due to the windows installation which does not include these). The 'add server' wizard closed down, Tomcat was added successfully. When I tried to start it I understood what the warning was all about:


You must be joking, I thought. That's ridiculous! Why the Tomcat plug-in in Eclipse can start any Tomcat since version 3.3 (including my Windows-based) without any startup scripts, and NetBeans simply can not?! I don't believe the NetBeans team don't know that they can use bootstrap.jar instead. And guess what, all the instructions how to use it are in catalina.bat!

After that, I decided not to play with NetBeans 6.0 Beta 1 any more. And if there is anything I am going to uninstall is definitely not Tomcat, but NetBeans.

Oh, and one more thing. Does anyone know why NetBeans reads my floppy disk on startup and exit? Does it search for the missing catalina.bat??

3 comments:

Anonymous said...

hello

I try it and tomcat work very well with netbeans6 beta. But you should not use the windows installer to install tomcat otherwise it doesn't work with netbeans that's all

Anonymous said...

Geez, you missed all the fun when you decided to use your own tomcat. I went for the install tomcat option, 8MB worth, and, as far as I can tell, it's not on my system. Well, OK, there is that suspiciously named file org-netbeans-modules-tomcat5.jar in a subfolder, but one wonders why, if anything was indeed installed, it has to be located as an "external server"?

Marcin Domanski said...

The reason why I went for the non Tomcat option was that I had one Tomcat already, which I used with Eclipse. I just wanted to reuse the same instance and was pretty sure I could do it the same way you can do from Eclipse (where catalina.bat isn't required at all).

Normally I would go for the boundled version and probably never find this issue.