Deploying a Servlet In A Linux System
Hi, I am working on the Linux platform. I tried to follow a tutorial to run my first servlet in this tutorial all goes through the command prompt.
- I was able to install Tomcat and start it from the command prompt.
- In the compilation of my Servlet I am getting the problem.
I want to know how can I simply able to deploy the Servlet in my Linux platform.
Re: Deploying a Servlet In A Linux System
Hello, If you want to do it by command line, I suggest you start command javac without parameter (or javac-help). It will tell you that to specify the classpath is the option-cp. So you must write a command to resemble it. I have the following command. So, just make use of it.
Code:
javac-cp "xxxxxx/apache-tomcat-6.0.24/bin /" -d .. / WEB-INF / classes / TestingServlet.java
Re: Deploying a Servlet In A Linux System
Hello, you need to make use of the following command for Apache configuration:
Code:
./configure --prefix=/usr/local/apache
--add-module=/usr/local/src/
jserv0.9.11/mod_jserv.c
Re: Deploying a Servlet In A Linux System
Hello for deploying a Servlet in a Linux System you must need to use the Apache which is having following features:
- Unix Threading
- New Build System
- Multiprotocol Support
- Better support for non-Unix platforms
- New Apache API
- IPv6 Support
- Filtering
- Multilanguage Error Responses
- Simplified configuration
- Regular Expression Library Updated
Re: Deploying a Servlet In A Linux System
Hello, you can use the books below for getting the reference for Deploying a Servlet in a Linux System:
- Unix Network Programming
- Just Java, 1st Edition
- Java Programming for Dummies
- Java Developer's Resource
- Java by Example, 1st Edition