943,898 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 633
  • JSP RSS
Aug 20th, 2009
0

servlets and linux server

Expand Post »
Hi experts, I have finished writing my servlets and web pages. all my servlets tested using tomcat in windows operating system. In other words , I have finished the development stage. Now I need to move all my servlets and web pages to web server for deployment. but my web server is Centos web server. I don't know where to put servlets and web pages (i don't know in which directory in the server)

also do I need to install java program (like JCreator )to run the servlets....

please guys tell me what to do , and where to start.

could you please help me , and thank you in advance
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
alsoumhi is offline Offline
66 posts
since Aug 2007
Aug 20th, 2009
-1

Re: servlets and linux server

You need to package your web application as WAR or EAR and deploy on Java server like Tomcat, JBoss etc. There is no need for JCreator...
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 873
Code tags enforcer
peter_budo is offline Offline
6,656 posts
since Dec 2004
Aug 20th, 2009
1

Re: servlets and linux server

Well you seem to be confused a lot, if what you are doing is for a production system for some organization I suggest you hand over the task to someone who knows what he is doing.

On the other hand if this is just some past time project you are doing to get your concepts clear in Java, then you need to learn a lot more. I will clarify a few facts for you here.

Firstly CentOS is not a web server, it is an Operating System, just like Windows XP. Apache Tomcat is a Web Server, and you need that along with a JRE (Java Runtime Environment) to run your servlets/JSPs.
Here is a good tutorial on installing the Sun JRE and Tomcat on CentOS 5.

Also as far as deploying your web application is concerned, according to me the best approach would be to package it into a properly organized WAR file and then deploy using the "Tomcat Manager" web application.

Also here are some more links to help you out:-
Apache Tomcat Documentation
Apache Tomcat Download Link
CentOS 5 Documentation


Also one final note, I would not recommend using the Apache Tomcat version that comes in repositories of CentOS, as it is configured to work with gcj which is only partially compliant with the 1.4.2 version of the JRE and although getting it to work with the Sun JRE is possible, you will have to subject yourself to a lot more unnecessary pain for that.
Featured Poster
Reputation Points: 653
Solved Threads: 151
Nearly a Posting Virtuoso
stephen84s is offline Offline
1,316 posts
since Jul 2007
Aug 21st, 2009
0

Re: servlets and linux server

Thank you guys you do the best , I will read the articles first then come to you if I face something

Thank you again
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
alsoumhi is offline Offline
66 posts
since Aug 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: Struts 2 Tag: <s:radio />
Next Thread in JSP Forum Timeline: JSP audio conversion problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC