deploying java servlets

I am a Java developer and I've written a few web-based applications based around servlets and web pages that access those servlets that I'd like to deploy on our Mac Server but I don't know how to go about this. Under services in the Server Admin app, I see entries for MySQL, Netboot, etc, but nothing for Java. And if Tomcat or something is running by default (I see that there is a Tomcat directory under Library) just sticking the files under the webapps folder doesn't seem to be working. I've tried to find documentation about this or a tutorial or something but haven't found what I need. Could someone please help me with this?

Posted on Dec 10, 2010 12:41 PM

Reply
3 replies

Dec 17, 2010 8:01 AM in response to MrHoffman

Well, I at least figured out how to start Tomcat. Here is the article which tells you how to enable it in Server Admin 10.5:

http://docs.info.apple.com/article.html?path=ServerAdmin/10.5/en/c2ws4.html

The problem I'm having now is how to access my jervlets and apps. All the tomcat documentation is for running stuff on localhost:8080 but I don't want to run it there. I want to run it on my Mac Server 10.5. Just using http://mymacserver.net/mywebbapp/page.html doesn't seem to work. I've put my files in the Library/Tomcat/webapps directory (as per the documentation) but it can't find them.

The help files say that you can verify Tomcat is running by entering the URL for your site followed by :9006 but that isn't working. I've started and stopped the web container so Tomcat should be running but I can't even get the default page to show up.

Dec 22, 2010 12:02 PM in response to netdeep

I finally got the default web page for Tomcat to come up, and I even put a war file into the webapps directory and Tomcat built it out to a folder when I restarted it, but it won't allow me to access it as a url. I know Tomcat is running and my servlet works perfectly on my development machine running Tomcat locally. It just won't let me access my servlets/app when deployed on the server.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

deploying java servlets

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.