RE: Tomcat Deploy

2005-03-21 Thread Allistair Crossley
Hi Geoff,

The general concensus I believe is to use a combination of Ant and source 
control (CVS, VSS). In our case, we have 4 developers all with Eclipse and 
local workstation Tomcat instances. We all check in to VSS via the VSS Plugin 
in Eclipse.

When we wish to perform a staging or production build, we have written an Ant 
build.xml file to handle deployment. For staging, our Ant script copies JSPs, 
classes and resources only, nothing fancy. The staging server detects the class 
changes and reloads the web app and we can test. For production, our Ant script 
packages everything up as a WAR file which we then deploy by copying into the 
production webapps folder. You can also use the Tomcat deploy manager tool for 
this, adn I believe there are also some Tomcat specific Ant commands. But in 
general, Ant is what you need and some form of source control is a must esp. on 
multi-dev projects.

Allisatir.

 -Original Message-
 From: Geoff Wiggs [mailto:[EMAIL PROTECTED]
 Sent: 21 March 2005 02:41
 To: tomcat-user@jakarta.apache.org
 Subject: Tomcat Deploy
 
 
 Quick question on deploying to Tomcat and Eclipse 
 integration.  If it's too
 far off topic I apologize in advance.
  
 The IDS is stellar for deploying to a single server.  I 
 personally have it
 deploying to Tomcat running on my workstation.  What approach 
 should I take
 for deploying to the production server?  Do I need to get 
 into a CVS of some
 sort?  Or is there a way to set up an alternate installation to allow
 deployment from the IDE to the Production server?
  
 Geoff 
 [EMAIL PROTECTED]
 www.orcastech.com
  
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [tomcat] deploy simple HTTP doPost servlet to tomcat 5.0.28

2004-10-01 Thread Ernesto Echeverría
Without examining details in your message I can ask:

Structure should be (maybe it is already?)

Webapp
  WEB-INF
web.xml
classess
lib

Etc. 

Then, shouldn't be you calling

http://localhost:8080/webapp/XML_RPC_Testserveur

Instead?

Regards.


José Ernesto Echeverría
[EMAIL PROTECTED]

 

-Original Message-
From: Christian Ruediger [mailto:[EMAIL PROTECTED] 
Sent: Viernes, 01 de Octubre de 2004 08:56 a.m.
To: Tomcat Users List
Subject: [tomcat] deploy simple HTTP doPost servlet to tomcat 5.0.28

Hi folks,
after trying the complex aproach without any success, I started a lowtech
approach. I simply want a small servlet deployed. Can't be too complicated.

What I have:
Apache Tomcat 5.0.28 Server
Win 2000
j2sdk1.4.2_05

I constructed the following structure in tomcats webapp folder:

webapp -
   - classes
   - testserveur
   - XML_RPC_Servlet.class
   - libs
   - web.xml

(dont bother the name XML_RPC_Servlet.its for future purposes.
currently only text is displayed - see code below)

web.xml is as follows:

!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.// DTD WebApplication
2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2.2.dtd;

web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4

display-nameTestservlet/display-name
context-parameter
param-nameLieblingsfarbe/param-name
param-valuerot/param-value
/context-parameter
servlet
  servlet-nameXML_RPC_Testserveur/servlet-name
  servlet-class
testserveur.RPC_XML_Servlet
  /servlet-class
/servlet
servlet-mapping
  servlet-nameXML_RPC_Testserveur/servlet-name
  url-pattern/XML_RPC_Testserveur/url-pattern
/servlet-mapping
/web-app

code is as follows:

public class XML_RPC_Servlet extends HttpServlet{



protected void doGet(HttpServletRequest req,
 HttpServletResponse res)
  throws ServletException, IOException
   {
 res.setContentType(text/html);
 PrintWriter out = res.getWriter();
 out.println(HTMLHEADTITLEHello There!/TITLE+
 /HEADBODYHello There!/BODY/HTML);
 out.close();
   }
   
public String getServletInfo()
   {
 return HelloClientServlet 1.0 by Stefan Zeiger;
   }
}

What i did:
-Started Tomcat (is configured to localhost:8080) -opened Browser -typed
http://localhost:8080/XML_RPC_Testserveur

- got only a message that the resource is unavailable (in french):

*
type Rapport d'état
message /XML_RPC_Testserveur
description La ressource demandée (/XML_RPC_Testserveur) n'est pas
disponible.
**

I am searching for a reason of this for nearly a day.
Is there anyone who can help me?

Thanx Christian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]