This forum is no longer active. Please post your questions to our new community site

clueless - installing on an existing Windows 2k3 Tomcat server

Subscribe to clueless - installing on an existing Windows 2k3 Tomcat server 5 post(s), 2 voice(s)

 
Avatar mrmexi 4 post(s)

Hi,

I’m running a company intranet software that has its own installation of Tomcat and a PostGreSQL db on Windows Server 2003. It’s not running as a service and serves web pages from http://ourintranet:8080.

1 – If I install the JRubyStack, will it mess up our current server?

2 – Do I need to integrate JRubyStack into that instance of Tomcat, or can I just let JRubyStack run its own instance of Tomcat (the one it installs)? Usage is light, ~20-30 max simultaneous users.

3 – If so, will I need to run it on a different port (http://ourintranet:8081)?

thanks for your great tools!

RM

 
Avatar mrmexi 4 post(s)

Errr… it occurs to me that if I don’t integrate JRubyStack into the existing Tomcat, I might just as well use RubyStack, correct? Would this be less efficient?

My question regarding the webserver’s URL would still apply – if I went with RubyStack, I’d need to use a different port, right?

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

1 – If I install the JRubyStack, will it mess up our current server?

No, anything change in your system. If your current application is using the 8080 port the installer asks you the new port that it should use. Everything is installed in one directory so you can uninstall it easily and it does not change the environment variables.

2 – Do I need to integrate JRubyStack into that instance of Tomcat, or can I just let JRubyStack run its own instance of Tomcat (the one it installs)? Usage is light, ~20-30 max simultaneous users

It ships their own tomcat instance.

3 – If so, will I need to run it on a different port (http://ourintranet:8081)?

Yes, if you have running your application in 8080 port the installer realizes that this port is binded and you should specify another one.

Errr… it occurs to me that if I don’t integrate JRubyStack into the existing Tomcat, I might just as well use RubyStack, correct? Would this be less efficient?

Both stacks are different, RubyStack ships Ruby and JRubyStack includes Jruby (which is an implementation 100% Java of the Ruby programming language). Take a look to the changelog to see what components are included into both stacks.

My question regarding the webserver’s URL would still apply – if I went with RubyStack, I’d need to use a different port, right?

RubyStack includes Apache which uses 80 port by default, it is not necessary to bind the 8080 port.

I hope it helps

 
Avatar mrmexi 4 post(s)

Thanks Beltran! My thinking was that running both Jruby and my Java-based intranet software on the same instance of Tomcat might perform better than having two web servers (two instances of Tomcat if I used JRubyStack, or one Tomcat and one Apache, if I used RubyStack).

Anyway, I chose RubyStack, and installed everything. PhpmyAdmin is running fine. However, I can’t see anything on http://127.0.0.1:3000/, and the command line doesn’t recognize the server script:

D:\Documents and Settings\Administrator\BitNami RubyStack projects\rubystack\script>server

‘server’ is not recognized as an internal or external command,operable program or batch file.

Anyone see what I’m doing wrong?

I did build a test app with the batch file, and the RubyStack and RubyMySQL services are running. I installed on a D: partition installation, if that matters…

thanks again!

 
Avatar mrmexi 4 post(s)

woops. sorry – on windows you have to call the exe. With this I’m up and running.

D:\Documents and Settings\Administrator\BitNami RubyStack projects\rubystack\>ruby.exe server/script