I’m sure by now, you’ve already seen my post on how to install Tomcat on your custom built (or non-HP) home server. If you haven’t, you may want to check it out here. One of the things that I mentioned was that there are some special considerations for installing on the HP MediaSmart Servers. Well, the EX485 and EX487 already have Tomcat installed and configured, so you won’t need to even bother with this. And though I don’t have a EX490, EX495 or the DataVault, I’m pretty sure it falls under the same category as the EX485/487 and uses the same or upgraded software. (HP, feel free to send me one).
However, there is a bit of extra work on getting it to work on the EX470 and EX475 because while it has a java server installed, it’s not Tomcat. Jetty was used for these systems and is a lot more difficult to use, and configure. While I would rather just replace Jetty (as HP has done), but the less monkeying with stuff, the better.
What you will need:
- Apache Tomcat – Grab the “Windows Service Installer” from the bottom part of the page
Instructions
Start the Tomcat installer. Agree (and read) the license agreement, and then proceed to the options. You’ll want to enable the “Service” and “Examples” options, and if you want, the “Native” option also. After that, you should be able to just use all the defaults and it should pick up the location that Java is installed. If not, the location is “C:\jre1.4.2_13″, so use that if it wants to use the below path (which is incorrect).
Once you’ve finished installing it, it probably won’t start. Why? Because Jetty is already using the same default ports. So head over to “C:\program files\apache software foundation\tomcat 6.0\conf\” and open up “server.xml”. You may want to download a “real” text editor like Notepad++, notepad2, or the like as the built in notepad program doesn’t read the file right and may prevent tomcat from starting. Once you’ve opened it, find ‘<Server port=”8005″ shutdown=”SHUTDOWN”>’ (should be right near the top) and change the port number from “8005″ to “8015″ or something else distinct. Now find “<Connector port=”8009″ protocol=”AJP/1.3″ redirectPort=”8443″ />” and change this to “8089″ (ideal if you want to install the 2.5 update). Once you’ve made these changes, save “server.xml”.
You’ll probably have to start the Tomcat service now. Either just reboot the server, or open up Services console (located in Administrative Tools, or by running “services.msc”). It should be near the top and named “Apache Tomcat 6″, or similar. Start the service, and leave this console open, you’ll need it later.
If the Tomcat service doesn’t start here, you may want to download and install the updated java runtime, either to the same location or another and use that here.
After it’s started, try opening “http://localhost:8080/examples/servlets/servlet/HelloWorldExample” on your server, if you installed the examples that greets you with “Hello World”.
After that’s done and you’ve verified that it’s working, we’ll need to reconfigure jakarta to work with tomcat. Jakarta is the connector for IIS and Tomcat that passes IIS web requests to tomcat. HP did you a favor and already installed and configured it. Now all we have to do is hi-jack it.
So, now head over to “C:\Program Files\Hewlett-Packard\HP MediaSmart Server\jetty\conf\” and open “workers.properties”. Set the file to the following:
worker.list=ajp13,tomcat6
worker.tomcat6.port=8089 worker.tomcat6.host=localhost worker.tomcat6.type=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
Save the file, close it and now open “uriworkermap.properties” in the same folder and add the following line to the end:
/examples*=tomcat6
This last file configures what directories will be passed on from tomcat to IIS. Right now, this enables the “examples” directory to be passed on and accessible from the remote access website. If you need to add more, like subsonic, add “/subsonic*=tomcat6″.
Now open up the Services console again and restart the “World Wide Web Publishing Service” .
Once that is done, open up “https://mydomain.homeserver.com/examples/servlets/servlet/HelloWorldExample” on any computer and you should be greeted with a familiar “Hello World” page.








This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.