servlets and linux server

Reply

Join Date: Aug 2007
Posts: 63
Reputation: alsoumhi is an unknown quantity at this point 
Solved Threads: 0
alsoumhi alsoumhi is offline Offline
Junior Poster in Training

servlets and linux server

 
0
  #1
Aug 20th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,190
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 483
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is online now Online
Code tags enforcer

Re: servlets and linux server

 
-1
  #2
Aug 20th, 2009
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...
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 1,175
Reputation: stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light 
Solved Threads: 125
Featured Poster
stephen84s's Avatar
stephen84s stephen84s is offline Offline
Veteran Poster

Re: servlets and linux server

 
1
  #3
Aug 20th, 2009
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.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."

"How to ask questions the smart way ?"
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 63
Reputation: alsoumhi is an unknown quantity at this point 
Solved Threads: 0
alsoumhi alsoumhi is offline Offline
Junior Poster in Training

Re: servlets and linux server

 
0
  #4
Aug 21st, 2009
Thank you guys you do the best , I will read the articles first then come to you if I face something

Thank you again
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JSP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC