RE: Deployment [Newbie]

2002-03-27 Thread Lawrence, Gareth

:-) lol :-) Well this horse was floating long before he went home yesterday
:-)

Full web-app deployment going no problem.  

The best way to learn web dev is from the web with mailing lists, forums,
tutorials and articles.  Books are for reference, learning by example is a
much quicker way :-)

Just my opinion :-)

G.

-Original Message-
From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 27 March 2002 5:29 p.m.
To: Tomcat Users List
Subject: RE: Deployment [Newbie]


You can lead a horse to water, but you cannot make it float on its back.

At 03:08 PM 3/27/02 +1200, you wrote:
>Lol :-)  No time for reading books - I need to get this going :-)
>
>I've found http://www.onjava.com/lpt/a//onjava/2001/04/19/tomcat.html so
>hopefully that provides me with a better starting point than the tomcat
>documentation.
>
>-Original Message-
>From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, 27 March 2002 3:05 p.m.
>To: Tomcat Users List
>Subject: Re: Deployment [Newbie]
>
>
>Get any book on servlets.  Jason Hunter's book is a good one.
>
>At 03:01 PM 3/27/02 +1200, you wrote:
> >Greetings All,
> >
> >Got tomcat going well on linux, but deployment is giving me a headache
:-((
> >
> >I'm looking at the documentation and the example web.xml file and I'm not
> >sure what I need to do to set up a webapp ???
> >
> >I've got my folder in webapps: groupa
> >
> >Directory Structure:
> > groupa
> > WEB-INF
> > classes
> > lib
> >
> >So I think its the web.xml file I'm not sure on :-(  I'm looking at the
> >example one and it isn't helping 
> >
> >I see the servelet configuration stuff:
> >
> >   graph
> >   
> >   
> > 
> >
> >
> >   graph
> >   /graph
> > 
> >
> >But do I really need to specify each servlet in the web.xml?  What do I
>need
> >to do to make the folder accessible (like examples :-))?  Or can you
direct
> >me to a good tutorial on deployment.
> >
> >Thanx heaps,
> >Gareth
> >
> >--
> >To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> >For additional commands: <mailto:[EMAIL PROTECTED]>
> >Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: Deployment [Newbie]

2002-03-26 Thread Nikola Milutinovic

> Got tomcat going well on linux, but deployment is giving me a headache :-((
> 
> I'm looking at the documentation and the example web.xml file and I'm not
> sure what I need to do to set up a webapp ???
> 
> I've got my folder in webapps: groupa
> 
> Directory Structure:
> groupa
> WEB-INF 
> classes
> lib

"classes" and "lib" should be under WEB-INF.

> So I think its the web.xml file I'm not sure on :-(  I'm looking at the
> example one and it isn't helping 
> 
> I see the servelet configuration stuff:
> 
>   graph
>   
>   
> 

You lack  tags, so Tomcat would know which class to use to instantiate 
this servlet.

> 
>   graph
>   /graph
> 

So, URL: ${URL_BASE}/graph will invoke "graph" servlet - OK. "URL_BASE" depends on 
your webapp deployment path (defined in server.xml as Context).

> But do I really need to specify each servlet in the web.xml?

Yes, each servlet has to be declared separately.

>  What do I need
> to do to make the folder accessible (like examples :-))?  Or can you direct
> me to a good tutorial on deployment.  

"Folder"? You mean webapp? Well, in Tomcat's nomenclature, each webapp is called 
"Context" and is defined with  tag(s), within a virtual host ( 
tag). This is in server.xml

Nix.



RE: Deployment [Newbie]

2002-03-26 Thread Micael Padraig Og mac Grene

You can lead a horse to water, but you cannot make it float on its back.

At 03:08 PM 3/27/02 +1200, you wrote:
>Lol :-)  No time for reading books - I need to get this going :-)
>
>I've found http://www.onjava.com/lpt/a//onjava/2001/04/19/tomcat.html so
>hopefully that provides me with a better starting point than the tomcat
>documentation.
>
>-Original Message-
>From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, 27 March 2002 3:05 p.m.
>To: Tomcat Users List
>Subject: Re: Deployment [Newbie]
>
>
>Get any book on servlets.  Jason Hunter's book is a good one.
>
>At 03:01 PM 3/27/02 +1200, you wrote:
> >Greetings All,
> >
> >Got tomcat going well on linux, but deployment is giving me a headache :-((
> >
> >I'm looking at the documentation and the example web.xml file and I'm not
> >sure what I need to do to set up a webapp ???
> >
> >I've got my folder in webapps: groupa
> >
> >Directory Structure:
> > groupa
> > WEB-INF
> > classes
> > lib
> >
> >So I think its the web.xml file I'm not sure on :-(  I'm looking at the
> >example one and it isn't helping 
> >
> >I see the servelet configuration stuff:
> >
> >   graph
> >   
> >   
> > 
> >
> >
> >   graph
> >   /graph
> > 
> >
> >But do I really need to specify each servlet in the web.xml?  What do I
>need
> >to do to make the folder accessible (like examples :-))?  Or can you direct
> >me to a good tutorial on deployment.
> >
> >Thanx heaps,
> >Gareth
> >
> >--
> >To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> >For additional commands: <mailto:[EMAIL PROTECTED]>
> >Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Deployment [Newbie]

2002-03-26 Thread Lawrence, Gareth

btw: 

It isn't necessary to add all servlets to the web.xml file; it's only
necessary when the servlet requires additional information, such as
initialization parameters.

So in most cases you wont need to worry about this :-))

-Original Message-
From: Lawrence, Gareth [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 27 March 2002 3:50 p.m.
To: 'Tomcat Users List'
Subject: RE: Deployment [Newbie]


Hi :-)

Firstly you need to add the following entry to the
TOMCAT_HOME/conf/server.xml file, setting the values for the path and
docBase to the name of your web application. 



That's the first step and then you'll be able to copy html files into the
groupa folder.

Your default web.xml file will look like:



http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";>




And then for each servlet you'll need to add:


  ExampleServlet
  packagename.ExampleServlet
  
   parameter
   value
  
  1


and copy the servlet class into the /WEB-INF/classes folder.

This should get you started (without needing a long book - although they can
be very exciting reading :-))

:-) Lol :-)

G.

-Original Message-
From: Lawrence, Gareth [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 27 March 2002 3:02 p.m.
To: '[EMAIL PROTECTED]'
Subject: Deployment [Newbie]


Greetings All,

Got tomcat going well on linux, but deployment is giving me a headache :-((

I'm looking at the documentation and the example web.xml file and I'm not
sure what I need to do to set up a webapp ???

I've got my folder in webapps: groupa

Directory Structure:
groupa
WEB-INF 
classes
lib

So I think its the web.xml file I'm not sure on :-(  I'm looking at the
example one and it isn't helping 

I see the servelet configuration stuff:

  graph
  
  



  graph
  /graph


But do I really need to specify each servlet in the web.xml?  What do I need
to do to make the folder accessible (like examples :-))?  Or can you direct
me to a good tutorial on deployment.  

Thanx heaps,
Gareth

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Deployment [Newbie]

2002-03-26 Thread Lawrence, Gareth

Hi :-)

Firstly you need to add the following entry to the
TOMCAT_HOME/conf/server.xml file, setting the values for the path and
docBase to the name of your web application. 



That's the first step and then you'll be able to copy html files into the
groupa folder.

Your default web.xml file will look like:



http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";>




And then for each servlet you'll need to add:


  ExampleServlet
  packagename.ExampleServlet
  
   parameter
   value
  
  1


and copy the servlet class into the /WEB-INF/classes folder.

This should get you started (without needing a long book - although they can
be very exciting reading :-))

:-) Lol :-)

G.

-Original Message-
From: Lawrence, Gareth [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 27 March 2002 3:02 p.m.
To: '[EMAIL PROTECTED]'
Subject: Deployment [Newbie]


Greetings All,

Got tomcat going well on linux, but deployment is giving me a headache :-((

I'm looking at the documentation and the example web.xml file and I'm not
sure what I need to do to set up a webapp ???

I've got my folder in webapps: groupa

Directory Structure:
groupa
WEB-INF 
classes
lib

So I think its the web.xml file I'm not sure on :-(  I'm looking at the
example one and it isn't helping 

I see the servelet configuration stuff:

  graph
  
  



  graph
  /graph


But do I really need to specify each servlet in the web.xml?  What do I need
to do to make the folder accessible (like examples :-))?  Or can you direct
me to a good tutorial on deployment.  

Thanx heaps,
Gareth

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Deployment [Newbie]

2002-03-26 Thread Lawrence, Gareth

Lol :-)  No time for reading books - I need to get this going :-)

I've found http://www.onjava.com/lpt/a//onjava/2001/04/19/tomcat.html so
hopefully that provides me with a better starting point than the tomcat
documentation.  

-Original Message-
From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 27 March 2002 3:05 p.m.
To: Tomcat Users List
Subject: Re: Deployment [Newbie]


Get any book on servlets.  Jason Hunter's book is a good one.

At 03:01 PM 3/27/02 +1200, you wrote:
>Greetings All,
>
>Got tomcat going well on linux, but deployment is giving me a headache :-((
>
>I'm looking at the documentation and the example web.xml file and I'm not
>sure what I need to do to set up a webapp ???
>
>I've got my folder in webapps: groupa
>
>Directory Structure:
> groupa
> WEB-INF
> classes
> lib
>
>So I think its the web.xml file I'm not sure on :-(  I'm looking at the
>example one and it isn't helping 
>
>I see the servelet configuration stuff:
>
>   graph
>   
>   
> 
>
>
>   graph
>   /graph
> 
>
>But do I really need to specify each servlet in the web.xml?  What do I
need
>to do to make the folder accessible (like examples :-))?  Or can you direct
>me to a good tutorial on deployment.
>
>Thanx heaps,
>Gareth
>
>--
>To unsubscribe:   <mailto:[EMAIL PROTECTED]>
>For additional commands: <mailto:[EMAIL PROTECTED]>
>Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: Deployment [Newbie]

2002-03-26 Thread Micael Padraig Og mac Grene

Get any book on servlets.  Jason Hunter's book is a good one.

At 03:01 PM 3/27/02 +1200, you wrote:
>Greetings All,
>
>Got tomcat going well on linux, but deployment is giving me a headache :-((
>
>I'm looking at the documentation and the example web.xml file and I'm not
>sure what I need to do to set up a webapp ???
>
>I've got my folder in webapps: groupa
>
>Directory Structure:
> groupa
> WEB-INF
> classes
> lib
>
>So I think its the web.xml file I'm not sure on :-(  I'm looking at the
>example one and it isn't helping 
>
>I see the servelet configuration stuff:
>
>   graph
>   
>   
> 
>
>
>   graph
>   /graph
> 
>
>But do I really need to specify each servlet in the web.xml?  What do I need
>to do to make the folder accessible (like examples :-))?  Or can you direct
>me to a good tutorial on deployment.
>
>Thanx heaps,
>Gareth
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: