Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

How to deploy servlet after creating it in eclipse

Thread view: 
nitin hotmale - 19 Jul 2007 13:08 GMT
Hello .
I am a new bee in java servlet.
I have create a servlet in eclipse.
It is working properly in eclipse.

But now I have to deploy it on some machine.

I am not able to find the right instruction on the net or anywhere for
it.

I have create the web.xml file copied it under WEB-INF folder.

I created the WEB-INF folder copied my class file in the classes
folder under WEB-INF.

Copied the third party jar files in the lib folder under WEB-INF.

Thousand thanx for help in advance.
Lew - 19 Jul 2007 14:30 GMT
> Hello .
> I am a new bee in java servlet.
[quoted text clipped - 14 lines]
>
> Thousand thanx for help in advance.

The usual approach is to let Eclipse package the project into a WAR, then copy
the WAR to the application server's "webapps/" directory (or equivalent) or
use the application server's deployment tool (e.g., Tomcat's "manager"
application) to deploy the WAR.  Eclipse also lets you associate a Web project
with a server such as WebSphere Application Server or Tomcat, and will handle
that deployment for you.

Signature

Lew

Sundar - 20 Jul 2007 05:10 GMT
> > Hello .
> > I am a new bee in java servlet.
[quoted text clipped - 26 lines]
>
> - Show quoted text -

I agree with Lew. Whatever Lew stated is the usual method to deploy a
web app from eclipse.

nitin, Since you are a newbie to java servlet, I strongly recomment
you not to use any IDE for learning. Use a simple text editor like
notepad for creating the servlet and do the compilation & deployment
manually. Once you get the fundamentals right, you may move to an IDE
like eclipse. Because eclipse tends to make things easier and you may
never learn some settings about deployment.

-Sundar
http://heysundar.blogspot.com
Lew - 20 Jul 2007 13:11 GMT
nitin hotmale wrote:
>>> Hello .
>>> I am a new bee in java servlet.

> nitin, Since you are a newbie to java servlet, I strongly recomment
> you not to use any IDE for learning. Use a simple text editor like
> notepad for creating the servlet and do the compilation & deployment
> manually. Once you get the fundamentals right, you may move to an IDE
> like eclipse. Because eclipse tends to make things easier and you may
> never learn some settings about deployment.

More useful is to read the Sun JEE tutorial and just about anything written by
Marty Hall.

Signature

Lew



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.