RE: newbie

2002-07-10 Thread Turner, John


Which port is your tomcat server running on?

Do you have any sort of firewall or network address translation going on?

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Brian Wolf [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 3:45 PM
To: [EMAIL PROTECTED]
Subject: newbie


Hi, 

I am trying to access my tomcat server from outside. I can access  locally
fine,
as when I run the servlet examples.

Request Information Example
Method:  GET  
Request URI:  /examples/servlet/RequestInfoExample  
Protocol:  HTTP/1.1  
Path Info:  null  
Remote Address:  209.23.8.113  

However, when I try to access through the remote address, as is indicated ,

http://209.23.8.113/index.html  

I get cannot find server error

Thanks, Brian



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: newbie

2002-07-10 Thread Yu Ye Zhou

You might have a firewall in your computer that
prevents you from remote access. 
I have this problem before. I reconfigure my firewall
and solve this problem. 
Are you sure the ip address of your computer is
correct also?

Yu Ye Zhou
--- Brian Wolf <[EMAIL PROTECTED]> wrote:
> Hi, 
> 
> I am trying to access my tomcat server from outside.
> I can access  locally fine,
> as when I run the servlet examples.
> 
> Request Information Example
> Method:  GET  
> Request URI:  /examples/servlet/RequestInfoExample  
> Protocol:  HTTP/1.1  
> Path Info:  null  
> Remote Address:  209.23.8.113  
> 
> However, when I try to access through the remote
> address, as is indicated ,
> 
> http://209.23.8.113/index.html  
> 
> I get cannot find server error
> 
> Thanks, Brian
> 
> 
> 


__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: newbie

2002-07-10 Thread John Rishea

Brian,
I got to your default tomcat page just fine by using
http://209.23.8.113:8080/index.html.  Tomcat, by default, listens on that
port.

__
John Rishea
Avaya Inc.

-Original Message-
From: Brian Wolf [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 1:45 PM
To: [EMAIL PROTECTED]
Subject: newbie


Hi,

I am trying to access my tomcat server from outside. I can access  locally
fine,
as when I run the servlet examples.

Request Information Example
Method:  GET
Request URI:  /examples/servlet/RequestInfoExample
Protocol:  HTTP/1.1
Path Info:  null
Remote Address:  209.23.8.113

However, when I try to access through the remote address, as is indicated ,

http://209.23.8.113/index.html

I get cannot find server error

Thanks, Brian




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: newbie

2002-07-10 Thread Brian Wolf

Thanks all, thanks John!

- Original Message -
From: "John Rishea" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 10, 2002 3:56 PM
Subject: RE: newbie


> Brian,
> I got to your default tomcat page just fine by using
> http://209.23.8.113:8080/index.html.  Tomcat, by default, listens on that
> port.
>
> __
> John Rishea
> Avaya Inc.
>
> -Original Message-
> From: Brian Wolf [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 10, 2002 1:45 PM
> To: [EMAIL PROTECTED]
> Subject: newbie
>
>
> Hi,
>
> I am trying to access my tomcat server from outside. I can access  locally
> fine,
> as when I run the servlet examples.
>
> Request Information Example
> Method:  GET
> Request URI:  /examples/servlet/RequestInfoExample
> Protocol:  HTTP/1.1
> Path Info:  null
> Remote Address:  209.23.8.113
>
> However, when I try to access through the remote address, as is indicated
,
>
> http://209.23.8.113/index.html
>
> I get cannot find server error
>
> Thanks, Brian
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>



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




RE: newbie

2002-07-11 Thread Durham David Cntr 805CSS/SCBE

Did you read http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html


-Original Message-
From: Brian Wolf [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 1:15 PM
To: Tomcat Users List
Subject: newbie


Hi,

Was wondering about classpath's for servlets?Location: /examples/servlet/lsapack
Internal Servlet Error:

java.lang.NoClassDefFoundError: org/jdom/input/SAXBuilder
 at java.lang.Class.getDeclaredConstructors0(Native Method)
 at java.lang.Class.privateGetDeclaredConstructors(Class.java:1581

 The other thing I don't understand is 
there is no directory /examples/servlet on my machine

-Brian


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: newbie

2001-04-18 Thread Anne Dirkse

Congratulations -- Looks like you set it up correctly.
The lag that you notice the first time you visit a jsp is normal.
What is happening is that JSP is being compiled into a servlet (which is
what JSPs do)
That will only happen the first time you access the JSP (unless you
modify the source.)
Anne

[EMAIL PROTECTED] wrote:
> 
> Hi .. I'm newbie in jakarta (tomcat)
> 
> I Just setting Up my Apache with jk_mod (tomcat)  in linux
> but I found problems
> When FIRST time loading JSP,
> e.g lynx http://localhost/examples
> It's take a long time ( half a minute) to loading fisrt jsp page, but after
> that evertyng goes fine ???
> 
> My conf just follow from doc in jakarta.apache.org
> 
> Any body wanna help me ?



Re: newbie

2001-04-18 Thread Chris Nolte

This happens to me with my servlets--some of the time
they take up to 30 seconds to load the first time.
Is this normal behavior also?

- Original Message -
From: Anne Dirkse <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 6:40 PM
Subject: Re: newbie


> Congratulations -- Looks like you set it up correctly.
> The lag that you notice the first time you visit a jsp is normal.
> What is happening is that JSP is being compiled into a servlet (which is
> what JSPs do)
> That will only happen the first time you access the JSP (unless you
> modify the source.)
> Anne
>
> [EMAIL PROTECTED] wrote:
> >
> > Hi .. I'm newbie in jakarta (tomcat)
> >
> > I Just setting Up my Apache with jk_mod (tomcat)  in linux
> > but I found problems
> > When FIRST time loading JSP,
> > e.g lynx http://localhost/examples
> > It's take a long time ( half a minute) to loading fisrt jsp page, but
after
> > that evertyng goes fine ???
> >
> > My conf just follow from doc in jakarta.apache.org
> >
> > Any body wanna help me ?




Re: newbie

2001-04-18 Thread eric chacon

This is normal behavior--

The first time, it compiles your JSP into a servlet, and after that, the 
servlet's loaded and ready to go.

When you have a production site running, you might want to call all JSPs 
once every time you deploy so your users won't have to wait the first 
time...

Cheers,
E.

>From: [EMAIL PROTECTED]
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: newbie
>Date: Thu, 19 Apr 2001 01:35:32 GMT
>
>
>Hi .. I'm newbie in jakarta (tomcat)
>
>I Just setting Up my Apache with jk_mod (tomcat)  in linux
>but I found problems
>When FIRST time loading JSP,
>e.g lynx http://localhost/examples
>It's take a long time ( half a minute) to loading fisrt jsp page, but after
>that evertyng goes fine ???
>
>My conf just follow from doc in jakarta.apache.org
>
>Any body wanna help me ?
>
>

_
Get your FREE download of MSN Explorer at http://explorer.msn.com




RE: newbie

2001-04-18 Thread William Kaufman

I think you're seeing something different, assuming you are using servlets
and not JSP: as others say, JSPs need to be compiled, but servlets don't.

Are you seeing a delay in starting up (i.e., until it stops using CPU), or
in handling the first request?


-- Bill K.


> -Original Message-
> From: Chris Nolte [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 18, 2001 6:47 PM
> To: [EMAIL PROTECTED]
> Subject: Re: newbie
> 
> 
> This happens to me with my servlets--some of the time
> they take up to 30 seconds to load the first time.
> Is this normal behavior also?
> 
> - Original Message -
> From: Anne Dirkse <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 18, 2001 6:40 PM
> Subject: Re: newbie
> 
> 
> > Congratulations -- Looks like you set it up correctly.
> > The lag that you notice the first time you visit a jsp is normal.
> > What is happening is that JSP is being compiled into a 
> servlet (which is
> > what JSPs do)
> > That will only happen the first time you access the JSP (unless you
> > modify the source.)
> > Anne
> >
> > [EMAIL PROTECTED] wrote:
> > >
> > > Hi .. I'm newbie in jakarta (tomcat)
> > >
> > > I Just setting Up my Apache with jk_mod (tomcat)  in linux
> > > but I found problems
> > > When FIRST time loading JSP,
> > > e.g lynx http://localhost/examples
> > > It's take a long time ( half a minute) to loading fisrt 
> jsp page, but
> after
> > > that evertyng goes fine ???
> > >
> > > My conf just follow from doc in jakarta.apache.org
> > >
> > > Any body wanna help me ?
> 



Re: newbie

2001-04-18 Thread Jeff Kilbride

It depends on your system. If you're running Win98 with 64MB of RAM, and
your servlet has a lot of initialization code, then it might make sense.
Remember, your servlets aren't loaded and initialized until they are called
for the first time. If you want to avoid this type of delay, use the
"load-on-startup" tag inside your "servlet" tag in your web.xml file. There
are examples of this in the main web.xml file in the TOMCAT_HOME/conf
directory. This will load and initialize your servlet when Tomcat starts up
and avoid the first hit delay syndrome.

Thanks,
--jeff

- Original Message -
From: "Chris Nolte" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 18, 2001 6:46 PM
Subject: Re: newbie


> This happens to me with my servlets--some of the time
> they take up to 30 seconds to load the first time.
> Is this normal behavior also?
>
> - Original Message -
> From: Anne Dirkse <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 18, 2001 6:40 PM
> Subject: Re: newbie
>
>
> > Congratulations -- Looks like you set it up correctly.
> > The lag that you notice the first time you visit a jsp is normal.
> > What is happening is that JSP is being compiled into a servlet (which is
> > what JSPs do)
> > That will only happen the first time you access the JSP (unless you
> > modify the source.)
> > Anne
> >
> > [EMAIL PROTECTED] wrote:
> > >
> > > Hi .. I'm newbie in jakarta (tomcat)
> > >
> > > I Just setting Up my Apache with jk_mod (tomcat)  in linux
> > > but I found problems
> > > When FIRST time loading JSP,
> > > e.g lynx http://localhost/examples
> > > It's take a long time ( half a minute) to loading fisrt jsp page, but
> after
> > > that evertyng goes fine ???
> > >
> > > My conf just follow from doc in jakarta.apache.org
> > >
> > > Any body wanna help me ?
>




Re: newbie

2001-04-19 Thread Sam Newman

Let me guess, these servlets are using sessions? When a session is first
used, there is alarge lag whilst tomcat generates a list of large primes (I
assume) to maintain unique sesion identifiers.
This will happen once and once only, when the first session is accessed
after tomcat starts. Afterwards session access for everyone will see no
delay. It would be nice if you could get tomcat to do this at startup

sam
- Original Message -
From: "Chris Nolte" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 19, 2001 2:46 AM
Subject: Re: newbie


> This happens to me with my servlets--some of the time
> they take up to 30 seconds to load the first time.
> Is this normal behavior also?
>





Re: newbie

2001-04-19 Thread Jim Willeke

Is there a way to "preload" the servlets on startup?
-jim

eric chacon wrote:

> This is normal behavior--
> 
> The first time, it compiles your JSP into a servlet, and after that, 
> the servlet's loaded and ready to go.
> 
> When you have a production site running, you might want to call all 
> JSPs once every time you deploy so your users won't have to wait the 
> first time...
> 
> Cheers,
> E.
> 
>> From: [EMAIL PROTECTED]
>> Reply-To: [EMAIL PROTECTED]
>> To: [EMAIL PROTECTED]
>> Subject: newbie
>> Date: Thu, 19 Apr 2001 01:35:32 GMT
>> 
>> 
>> Hi .. I'm newbie in jakarta (tomcat)
>> 
>> I Just setting Up my Apache with jk_mod (tomcat)  in linux
>> but I found problems
>> When FIRST time loading JSP,
>> e.g lynx http://localhost/examples
>> It's take a long time ( half a minute) to loading fisrt jsp page, but 
>> after
>> that evertyng goes fine ???
>> 
>> My conf just follow from doc in jakarta.apache.org
>> 
>> Any body wanna help me ?
>> 
>> 
> 
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
> 
> 
> 
> 




RE: newbie

2001-04-19 Thread Saurabh Shukla


refer archives.

-Original Message-
From: Jim Willeke [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 19, 2001 5:22 PM
To: [EMAIL PROTECTED]
Subject: Re: newbie


Is there a way to "preload" the servlets on startup?
-jim

eric chacon wrote:

> This is normal behavior--
> 
> The first time, it compiles your JSP into a servlet, and after that, 
> the servlet's loaded and ready to go.
> 
> When you have a production site running, you might want to call all 
> JSPs once every time you deploy so your users won't have to wait the 
> first time...
> 
> Cheers,
> E.
> 
>> From: [EMAIL PROTECTED]
>> Reply-To: [EMAIL PROTECTED]
>> To: [EMAIL PROTECTED]
>> Subject: newbie
>> Date: Thu, 19 Apr 2001 01:35:32 GMT
>> 
>> 
>> Hi .. I'm newbie in jakarta (tomcat)
>> 
>> I Just setting Up my Apache with jk_mod (tomcat)  in linux
>> but I found problems
>> When FIRST time loading JSP,
>> e.g lynx http://localhost/examples
>> It's take a long time ( half a minute) to loading fisrt jsp page, but 
>> after
>> that evertyng goes fine ???
>> 
>> My conf just follow from doc in jakarta.apache.org
>> 
>> Any body wanna help me ?
>> 
>> 
> 
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
> 
> 
> 
> 




Re: newbie

2001-04-19 Thread Sam Newman

There is a tag you can put (in web.xml?) which will cal the init method of a
servlet on startup. Can't remeber whee I saw this though

sam
- Original Message -
From: "Jim Willeke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 19, 2001 12:52 PM
Subject: Re: newbie


> Is there a way to "preload" the servlets on startup?
> -jim
>
> eric chacon wrote:





RE: newbie

2001-04-19 Thread William Kaufman

Add  to the  element in your web.xml file: this
will load the class and call its init() method.

-- Bill K.


> -Original Message-
> From: Jim Willeke [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 19, 2001 4:52 AM
> To: [EMAIL PROTECTED]
> Subject: Re: newbie
> 
> 
> Is there a way to "preload" the servlets on startup?
> -jim
> 
> eric chacon wrote:
> 
> > This is normal behavior--
> > 
> > The first time, it compiles your JSP into a servlet, and 
> after that, 
> > the servlet's loaded and ready to go.
> > 
> > When you have a production site running, you might want to call all 
> > JSPs once every time you deploy so your users won't have to 
> wait the 
> > first time...
> > 
> > Cheers,
> > E.
> > 
> >> From: [EMAIL PROTECTED]
> >> Reply-To: [EMAIL PROTECTED]
> >> To: [EMAIL PROTECTED]
> >> Subject: newbie
> >> Date: Thu, 19 Apr 2001 01:35:32 GMT
> >> 
> >> 
> >> Hi .. I'm newbie in jakarta (tomcat)
> >> 
> >> I Just setting Up my Apache with jk_mod (tomcat)  in linux
> >> but I found problems
> >> When FIRST time loading JSP,
> >> e.g lynx http://localhost/examples
> >> It's take a long time ( half a minute) to loading fisrt 
> jsp page, but 
> >> after
> >> that evertyng goes fine ???
> >> 
> >> My conf just follow from doc in jakarta.apache.org
> >> 
> >> Any body wanna help me ?
> >> 
> >> 
> > 
> > _
> > Get your FREE download of MSN Explorer at http://explorer.msn.com
> > 
> > 
> > 
> > 
> 



RE: Newbie ... :)

2002-02-15 Thread Loïc Lefèvre

Hi,
Can you describe a little more than 'intranet' what you
would like to know?

-Message d'origine-
De : dark.wizzard [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 15 février 2002 14:37
À : TomCat List
Objet : Newbie ... :)


Hi everyone !

Please, anybody knows a site or tutorial what
describe "how-to make a intranet" ??? I'm using Tom Cat
4.0 for make this, but I have no idea to implements ...

Can help me please ???

Thanks


__
Quer ter seu próprio endereço na Internet?
Garanta já o seu e ainda ganhe cinco e-mails personalizados.
DomíniosBOL - http://dominios.bol.com.br



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


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




Re: Newbie ... :)

2002-02-15 Thread Robert Keddie

intranetjournal.com


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




Re: Newbie

2003-08-27 Thread John Turner
Without more specific information, my guess is you don't have a JkMount 
for "/examples" in your SSL VirtualHost for "localhost".

John

Tran, Khiem (NIH/CIT) wrote:

Hi,

I am a newbie to Apache Tomcat.  I got the instruction of the following URL.
http://myweb.cableone.net/kdubuisson/Install.PDF
I installed and it worked fine.  I tried https://localhost/examples but it
did not work.
Please help me.  
Thanks in advance.

-KT

Packages installed

Red Hat Linux 7.3
httpd-2.0.47.tar.gz
j2sdk-1_4_1_04-linux-i586.bin
jakarta-tomcat-4.1.24.tar.gz
jakarta-tomcat-connectors-4.1.18-src.tar.gz
openssl-0.9.7.tar.gz
-
Worked fine
---
https://localhost/ 
https://kt.domainname/
http://localhost/examples


Did not work
---
https://localhost/examples
Not Found

The requested URL /examples was not found on this server.
Apache/2.0.47 (Unix) mod_ssl/2.0.47 OpenSSL/0.9.6b mod_jk/1.2.2-dev Server
at localhost Port 443
---




-
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]


RE: newbie

2003-09-17 Thread Shapira, Yoav

Howdy,
Very strange indeed ;)

What hardware issues did you run into?  What JDK are you using?

I suggest you start with a clean standalone tomcat install: keep apache
and mod_jk out of the picture for now, just get tomcat working fine by
itself.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Dan McCullough [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, September 16, 2003 8:21 PM
>To: [EMAIL PROTECTED]
>Subject: newbie
>
>I cant seem to get started.  After tackling some hardware issues I have
all
>the pieces installed
>and everything setup according to several HOW-TOs.  I have mod_jk
>configured and install, apache
>configured and installed, tomcat was a binary so that is setup and
j2sdk
>1.4.2 is setup.
>
>I start tomcat and everything is fine.  or so I think.
>service tomcatd start
>Starting Tomcat: Using CATALINA_BASE:   /usr/local/tomcat
>Using CATALINA_HOME:   /usr/local/tomcat
>Using CATALINA_TMPDIR: /usr/local/tomcat/temp
>Using JAVA_HOME:   /usr/local/java/java
>
>wait about 20 seconds and start apache everything is okay.
>
>I then stop tomcat and get this
>service tomcatd stop
>Shutting down Tomcat: Using CATALINA_BASE:   /usr/local/tomcat
>Using CATALINA_HOME:   /usr/local/tomcat
>Using CATALINA_TMPDIR: /usr/local/tomcat/temp
>Using JAVA_HOME:   /usr/local/java/java
>Error occurred during initialization of VM
>java.lang.NullPointerException
>
>what the heck is going on, I start tomcat again, and there is no
process
>running.  catalina.out
>just has Error occurred during initialization of VM
>java.lang.NullPointerException in it.
>
>help I'm lost .. I did everything according to the "book"
>
>=
>
>"Theres no such thing as a problem unless the servers are on fire!"
>
>
>__
>Do you Yahoo!?
>Yahoo! SiteBuilder - Free, easy-to-use web site design software
>http://sitebuilder.yahoo.com
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: newbie

2003-09-17 Thread Dan McCullough
I will do that.

Not really sure if they were hardware issues, but that is where the fingers stopped 
pointing when
I looked at everything involved.  The early issues with this install was that 
downloads would seem
to get corrupted when being installed on the box.  j2sdk I installed 23 times before 
burning to a
cd and installing that way, somehow a brain cramp settled in and I didnt burn it to cd 
sooner.

JDK is 1.4.2

--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
> 
> Howdy,
> Very strange indeed ;)
> 
> What hardware issues did you run into?  What JDK are you using?
> 
> I suggest you start with a clean standalone tomcat install: keep apache
> and mod_jk out of the picture for now, just get tomcat working fine by
> itself.
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: Dan McCullough [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, September 16, 2003 8:21 PM
> >To: [EMAIL PROTECTED]
> >Subject: newbie
> >
> >I cant seem to get started.  After tackling some hardware issues I have
> all
> >the pieces installed
> >and everything setup according to several HOW-TOs.  I have mod_jk
> >configured and install, apache
> >configured and installed, tomcat was a binary so that is setup and
> j2sdk
> >1.4.2 is setup.
> >
> >I start tomcat and everything is fine.  or so I think.
> >service tomcatd start
> >Starting Tomcat: Using CATALINA_BASE:   /usr/local/tomcat
> >Using CATALINA_HOME:   /usr/local/tomcat
> >Using CATALINA_TMPDIR: /usr/local/tomcat/temp
> >Using JAVA_HOME:   /usr/local/java/java
> >
> >wait about 20 seconds and start apache everything is okay.
> >
> >I then stop tomcat and get this
> >service tomcatd stop
> >Shutting down Tomcat: Using CATALINA_BASE:   /usr/local/tomcat
> >Using CATALINA_HOME:   /usr/local/tomcat
> >Using CATALINA_TMPDIR: /usr/local/tomcat/temp
> >Using JAVA_HOME:   /usr/local/java/java
> >Error occurred during initialization of VM
> >java.lang.NullPointerException
> >
> >what the heck is going on, I start tomcat again, and there is no
> process
> >running.  catalina.out
> >just has Error occurred during initialization of VM
> >java.lang.NullPointerException in it.
> >
> >help I'm lost .. I did everything according to the "book"
> >
> >=
> >
> >"Theres no such thing as a problem unless the servers are on fire!"
> >
> >
> >__
> >Do you Yahoo!?
> >Yahoo! SiteBuilder - Free, easy-to-use web site design software
> >http://sitebuilder.yahoo.com
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential business communication, 
> and may
> contain information that is confidential, proprietary and/or privileged.  This 
> e-mail is
> intended only for the individual(s) to whom it is addressed, and may not be saved, 
> copied,
> printed, disclosed or used by anyone else.  If you are not the(an) intended 
> recipient, please
> immediately delete this e-mail from your computer system and notify the sender.  
> Thank you.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


=

"Theres no such thing as a problem unless the servers are on fire!"


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: Newbie

2000-12-04 Thread Josh Knowles

Read the tomcat-IIS document under the documents section

-Original Message-
From: Waqas Pitafi [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 04, 2000 12:31 AM
To: [EMAIL PROTECTED]
Subject: Newbie


Hi,

I am a newbie to Tomcat. I want to use it for developing JSP and Java
Servlets.

My existing development platform has this configuration,

Windows 2000 Professional Server
IIS 5.0

Which version of Tomcat should I use. I have downloaded versions 3.1 and 4.0

Tried Tomcat 4.0 but that works independently. Is there anyway to make it 
part of IIS. Or how to bind Tomcat with IIS.

I will be thankful if you can point me to an appropriate resource.

Any response to this query will be highly appreciated.

Regards,

Waqas Pitafi



RE: Newbie questions

2002-08-15 Thread Shapira, Yoav

Hi,
I assume your servlet is called Form1?

>http://localhost:8080/jimbo/Form1";>


>Also, do I need any special apache modules for tomcat?

You need a connector installed between them e.g. mod_jk or mod_webapp.
Check out the docs at, for example,
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html

http://www.acg-gmbh.de/mod_jk/initial.htm

You will also find a ton of information on this topic by searching the
list archives at:
http://marc.theaimsgroup.com/?l=tomcat-user&r=1&w=2

Yoav Shapira
Millennium ChemInformatics


This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


RE: Newbie questions

2002-08-15 Thread Turner, John


Did you add a Context entry in server.xml for jimbo?  Basically, wherever
you see entries in server.xml for "examples", you need to do the same thing
for "jimbo", then restart tomcat.

You can also put your servlet into the examples directory, with the example
servlets, and see if you can call it via
http://localhost:8080/examples/Form1

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Jim Marnell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 2:31 PM
To: [EMAIL PROTECTED]
Subject: Newbie questions



I'm having problems running a servlet.  I've installed tomcat 4.0.4, apache
2 & jdk 1.4 on redhat 7.2.

I put html file with the following into apache's htdocs directory

http://localhost:8080/jimbo/Form1";>

I then created a directory in $tomcat_home/webapps called jimbo. Within
directory jimbo I created WEB-INF/classes and moved my compiled servlet into
it. I restarted tomcat and get a 404 message stating that Form1 is not
available. Please let me know what is wrong.

Also, do I need any special apache modules for tomcat?

Thanks in advance.

/J



-
Do You Yahoo!?
HotJobs, a Yahoo! service - Search Thousands of New Jobs

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Newbie questions

2002-08-15 Thread Saravanan Bellan

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/web.xml.txt

Also look at
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html for other
information.


> -Original Message-
> From: Jim Marnell [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 15, 2002 12:23 PM
> To: Tomcat Users List
> Subject: RE: Newbie questions
> 
> 
> 
> Can you show a complete example please?
> Thanks
> /Jim
>  Saravanan Bellan wrote:Servlets should have their mapping 
> defined in WEB-INF/web.xml
> 
> 
> > -Original Message-
> > From: Jim Marnell [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, August 15, 2002 12:12 PM
> > To: Tomcat Users List
> > Subject: RE: Newbie questions
> > 
> > 
> > 
> > I had not added context entry's to server.xml. I added the 
> > following and it still does not work:
> > 
> > > debug="0" privileged="true"/>
> > 
> > > debug="0" privileged="true"/>
> > 
> > 
> > The examples entry looked complicated so I tried to emulate a 
> > simple example (manager). Should that have worked?
> > Also, I moved my servlet into the examples directory - did 
> > not work - 404 not available. Restarted for both tries.
> > /Jim
> > "Turner, John" wrote:
> > 
> > Did you add a Context entry in server.xml for jimbo? 
> > Basically, wherever
> > you see entries in server.xml for "examples", you need to do 
> > the same thing
> > for "jimbo", then restart tomcat
> > 
> > You can also put your servlet into the examples directory, 
> > with the example
> > servlets, and see if you can call it via
> > http://localhost:8080/examples/Form1
> > 
> > John Turner
> > [EMAIL PROTECTED]
> > 
> > 
> > -Original Message-
> > From: Jim Marnell [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, August 15, 2002 2:31 PM
> > To: [EMAIL PROTECTED]
> > Subject: Newbie questions
> > 
> > 
> > 
> > I'm having problems running a servlet. I've installed tomcat 
> > 4.0.4, apache
> > 2 & jdk 1.4 on redhat 7.2.
> > 
> > I put html file with the following into apache's htdocs directory
> > 
> > 
> > 
> > 
> > I then created a directory in $tomcat_home/webapps called 
> > jimbo. Within
> > directory jimbo I created WEB-INF/classes and moved my 
> > compiled servlet into
> > it. I restarted tomcat and get a 404 message stating that 
> Form1 is not
> > available. Please let me know what is wrong.
> > 
> > Also, do I need any special apache modules for tomcat?
> > 
> > Thanks in advance.
> > 
> > /J
> > 
> > 
> > 
> > -
> > Do You Yahoo!?
> > HotJobs, a Yahoo! service - Search Thousands of New Jobs
> > 
> > --
> > To unsubscribe, e-mail: 
> > For additional commands, e-mail: 
> > 
> > 
> > 
> > -
> > Do You Yahoo!?
> > HotJobs, a Yahoo! service - Search Thousands of New Jobs
> > 
> 
> --
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
> 
> 
> 
> -
> Do You Yahoo!?
> HotJobs, a Yahoo! service - Search Thousands of New Jobs
> 

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




RE: Newbie questions

2002-08-16 Thread Jim Marnell


Saravanan,

Unfortunately the first link you sent me (web.xml.txt) cannot open with my browser.

Can you cut& paste and send me the relevant parts on how to code the web.xml file for 
my app?

Thanks again!

J

 
 Saravanan Bellan 
wrote:http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/web.xml.txt

Also look at
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html for other
information.


> -Original Message-
> From: Jim Marnell [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 15, 2002 12:23 PM
> To: Tomcat Users List
> Subject: RE: Newbie questions
> 
> 
> 
> Can you show a complete example please?
> Thanks
> /Jim
> Saravanan Bellan wrote:Servlets should have their mapping 
> defined in WEB-INF/web.xml
> 
> 
> > -Original Message-
> > From: Jim Marnell [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, August 15, 2002 12:12 PM
> > To: Tomcat Users List
> > Subject: RE: Newbie questions
> > 
> > 
> > 
> > I had not added context entry's to server.xml. I added the 
> > following and it still does not work:
> > 
> > > debug="0" privileged="true"/>
> > 
> > > debug="0" privileged="true"/>
> > 
> > 
> > The examples entry looked complicated so I tried to emulate a 
> > simple example (manager). Should that have worked?
> > Also, I moved my servlet into the examples directory - did 
> > not work - 404 not available. Restarted for both tries.
> > /Jim
> > "Turner, John" wrote:
> > 
> > Did you add a Context entry in server.xml for jimbo? 
> > Basically, wherever
> > you see entries in server.xml for "examples", you need to do 
> > the same thing
> > for "jimbo", then restart tomcat
> > 
> > You can also put your servlet into the examples directory, 
> > with the example
> > servlets, and see if you can call it via
> > http://localhost:8080/examples/Form1
> > 
> > John Turner
> > [EMAIL PROTECTED]
> > 
> > 
> > -Original Message-
> > From: Jim Marnell [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, August 15, 2002 2:31 PM
> > To: [EMAIL PROTECTED]
> > Subject: Newbie questions
> > 
> > 
> > 
> > I'm having problems running a servlet. I've installed tomcat 
> > 4.0.4, apache
> > 2 & jdk 1.4 on redhat 7.2.
> > 
> > I put html file with the following into apache's htdocs directory
> > 
> > 
> > 
> > 
> > I then created a directory in $tomcat_home/webapps called 
> > jimbo. Within
> > directory jimbo I created WEB-INF/classes and moved my 
> > compiled servlet into
> > it. I restarted tomcat and get a 404 message stating that 
> Form1 is not
> > available. Please let me know what is wrong.
> > 
> > Also, do I need any special apache modules for tomcat?
> > 
> > Thanks in advance.
> > 
> > /J
> > 
> > 
> > 
> > -
> > Do You Yahoo!?
> > HotJobs, a Yahoo! service - Search Thousands of New Jobs
> > 
> > --
> > To unsubscribe, e-mail: 
> > For additional commands, e-mail: 
> > 
> > 
> > 
> > -
> > Do You Yahoo!?
> > HotJobs, a Yahoo! service - Search Thousands of New Jobs
> > 
> 
> --
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
> 
> 
> 
> -
> Do You Yahoo!?
> HotJobs, a Yahoo! service - Search Thousands of New Jobs
> 

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do You Yahoo!?
HotJobs, a Yahoo! service - Search Thousands of New Jobs


RE: Newbie questions

2002-08-16 Thread Saravanan Bellan

Just Right click on the link and do a 'Save as' and save it on your hard
disk. You may then open it in your favourite text editor.

> -Original Message-
> From: Jim Marnell [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 16, 2002 5:58 AM
> To: Tomcat Users List
> Subject: RE: Newbie questions
> 
> 
> 
> Saravanan,
> 
> Unfortunately the first link you sent me (web.xml.txt) cannot 
> open with my browser.
> 
> Can you cut& paste and send me the relevant parts on how to 
> code the web.xml file for my app?
> 
> Thanks again!
> 
> J
> 
>  
>  Saravanan Bellan 
> wrote:http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/w
> eb.xml.txt
> 
> Also look at
> http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.h
> tml for other
> information.
> 
> 
> > -Original Message-
> > From: Jim Marnell [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, August 15, 2002 12:23 PM
> > To: Tomcat Users List
> > Subject: RE: Newbie questions
> > 
> > 
> > 
> > Can you show a complete example please?
> > Thanks
> > /Jim
> > Saravanan Bellan wrote:Servlets should have their mapping 
> > defined in WEB-INF/web.xml
> > 
> > 
> > > -Original Message-
> > > From: Jim Marnell [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, August 15, 2002 12:12 PM
> > > To: Tomcat Users List
> > > Subject: RE: Newbie questions
> > > 
> > > 
> > > 
> > > I had not added context entry's to server.xml. I added the 
> > > following and it still does not work:
> > > 
> > > > debug="0" privileged="true"/>
> > > 
> > > > debug="0" privileged="true"/>
> > > 
> > > 
> > > The examples entry looked complicated so I tried to emulate a 
> > > simple example (manager). Should that have worked?
> > > Also, I moved my servlet into the examples directory - did 
> > > not work - 404 not available. Restarted for both tries.
> > > /Jim
> > > "Turner, John" wrote:
> > > 
> > > Did you add a Context entry in server.xml for jimbo? 
> > > Basically, wherever
> > > you see entries in server.xml for "examples", you need to do 
> > > the same thing
> > > for "jimbo", then restart tomcat
> > > 
> > > You can also put your servlet into the examples directory, 
> > > with the example
> > > servlets, and see if you can call it via
> > > http://localhost:8080/examples/Form1
> > > 
> > > John Turner
> > > [EMAIL PROTECTED]
> > > 
> > > 
> > > -Original Message-
> > > From: Jim Marnell [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, August 15, 2002 2:31 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Newbie questions
> > > 
> > > 
> > > 
> > > I'm having problems running a servlet. I've installed tomcat 
> > > 4.0.4, apache
> > > 2 & jdk 1.4 on redhat 7.2.
> > > 
> > > I put html file with the following into apache's htdocs directory
> > > 
> > > 
> > > 
> > > 
> > > I then created a directory in $tomcat_home/webapps called 
> > > jimbo. Within
> > > directory jimbo I created WEB-INF/classes and moved my 
> > > compiled servlet into
> > > it. I restarted tomcat and get a 404 message stating that 
> > Form1 is not
> > > available. Please let me know what is wrong.
> > > 
> > > Also, do I need any special apache modules for tomcat?
> > > 
> > > Thanks in advance.
> > > 
> > > /J
> > > 
> > > 
> > > 
> > > -
> > > Do You Yahoo!?
> > > HotJobs, a Yahoo! service - Search Thousands of New Jobs
> > > 
> > > --
> > > To unsubscribe, e-mail: 
> > > For additional commands, e-mail: 
> > > 
> > > 
> > > 
> > > -
> > > Do You Yahoo!?
> > > HotJobs, a Yahoo! service - Search Thousands of New Jobs
> > > 
> > 
> > --
> > To unsubscribe, e-mail: 
> > For additional commands, e-mail: 
> > 
> > 
> > 
> > -
> > Do You Yahoo!?
> > HotJobs, a Yahoo! service - Search Thousands of New Jobs
> > 
> 
> --
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
> 
> 
> 
> -
> Do You Yahoo!?
> HotJobs, a Yahoo! service - Search Thousands of New Jobs
> 

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




Re: newbie Q

2002-11-19 Thread Kwok Peng Tuck
yes, each webapp has its own web.xml, you can use that among other 
things to define your servlets, taglibs, resource-refs.
unjared classes go into /WEB-INF/classes directory, jars go into 
/WEB-INF/lib
How long a web.xml can be depends on how many things you wish to put in 
there. I think the tomcat doc has a section on best practices 
deployment. It *should* come with your installation of tomcat.

Enok Strine wrote:

Hi folks,
   I have installed TC 4.1 and have it apprently installed correctly. 
Can anyone tell me the significance of the WEB-INF dir please?
   Also, must everything run under webapps/root/..? I am presuming 
WEB-INF holds configuration / class libraries for each app? Yet there 
is a single web.xml, file 6 lines in length?
   Will someone please enlighten me?

E.

_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: newbie Q

2002-11-19 Thread Enok Strine

I see. So the directories you talk of are not yet present, presumably I 
create them at my leisure?
   What about ROOT? Why when I create webapps/mydir/myfile.jsp and load it 
into the browser is it not accessible? (404) Must I define a WEB-INF for 
each app under webapps? What must it contain?

Thank you

E.


yes, each webapp has its own web.xml, you can use that among other things 
to define your servlets, taglibs, resource-refs.
unjared classes go into /WEB-INF/classes directory, jars go into 
/WEB-INF/lib
How long a web.xml can be depends on how many things you wish to put in 
there. I think the tomcat doc has a section on best practices deployment. 
It *should* come with your installation of tomcat.

Enok Strine wrote:

Hi folks,
   I have installed TC 4.1 and have it apprently installed correctly. Can 
anyone tell me the significance of the WEB-INF dir please?
   Also, must everything run under webapps/root/..? I am presuming 
WEB-INF holds configuration / class libraries for each app? Yet there is a 
single web.xml, file 6 lines in length?
   Will someone please enlighten me?

E.

_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 






--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



RE: newbie Q

2002-11-19 Thread Turner, John
 
More than likely, your questions are answered in the documentation.  Perhaps
things like the Application Developer's Guide would help:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html

John

-Original Message-
From: Enok Strine
To: [EMAIL PROTECTED]
Sent: 11/19/02 10:01 PM
Subject: Re: newbie Q


I see. So the directories you talk of are not yet present, presumably I 
create them at my leisure?
What about ROOT? Why when I create webapps/mydir/myfile.jsp and load
it 
into the browser is it not accessible? (404) Must I define a WEB-INF for

each app under webapps? What must it contain?

Thank you

E.


>yes, each webapp has its own web.xml, you can use that among other
things 
>to define your servlets, taglibs, resource-refs.
>unjared classes go into /WEB-INF/classes directory, jars go into 
>/WEB-INF/lib
>How long a web.xml can be depends on how many things you wish to put in

>there. I think the tomcat doc has a section on best practices
deployment. 
>It *should* come with your installation of tomcat.
>
>Enok Strine wrote:
>
>>Hi folks,
>>I have installed TC 4.1 and have it apprently installed correctly.
Can 
>>anyone tell me the significance of the WEB-INF dir please?
>>Also, must everything run under webapps/root/..? I am presuming 
>>WEB-INF holds configuration / class libraries for each app? Yet there
is a 
>>single web.xml, file 6 lines in length?
>>Will someone please enlighten me?
>>
>>E.
>>
>>_
>>The new MSN 8: advanced junk mail protection and 2 months FREE* 
>>http://join.msn.com/?page=features/junkmail
>>
>>
>>--
>>To unsubscribe, e-mail:   
>><mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail: 
>><mailto:[EMAIL PROTECTED]>
>>
>>
>
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>


_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


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

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




Re: newbie Q

2002-11-19 Thread Kwok Peng Tuck
Generally the structure is like this (for a webapp) :
$WEB_APPDIR/WEB-INF/
And we pack everything into a war file.  So for deployment I generally 
stuff the war file into the webapps directory. Upon restart or stop & 
start, the app will be delopyed with a directory name from the war file 
name. A context will be added and can be accessed by 
http://localhost:8080/[WEBAPPNAME] . Since you manually created the 
directory, no context is added, so add one for yourself in server.xml .

Enok Strine wrote:


I see. So the directories you talk of are not yet present, presumably 
I create them at my leisure?
   What about ROOT? Why when I create webapps/mydir/myfile.jsp and 
load it into the browser is it not accessible? (404) 


Must I define a WEB-INF for each app under webapps? What must it contain?


I'm not sure if you *need* to create a web-inf for each webapp. You can 
try and see if  it complains about it. In the last email I did explain 
what the WEB-INF could contain. If you need examples of .war files, you 
can go to the taglib projects in jakarta, plenty of sample to choose from.


Thank you

E.



yes, each webapp has its own web.xml, you can use that among other 
things to define your servlets, taglibs, resource-refs.
unjared classes go into /WEB-INF/classes directory, jars go into 
/WEB-INF/lib
How long a web.xml can be depends on how many things you wish to put 
in there. I think the tomcat doc has a section on best practices 
deployment. It *should* come with your installation of tomcat.

Enok Strine wrote:

Hi folks,
   I have installed TC 4.1 and have it apprently installed 
correctly. Can anyone tell me the significance of the WEB-INF dir 
please?
   Also, must everything run under webapps/root/..? I am presuming 
WEB-INF holds configuration / class libraries for each app? Yet 
there is a single web.xml, file 6 lines in length?
   Will someone please enlighten me?

E.

_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 






--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: newbie Q

2002-11-19 Thread Enok Strine
OK,
   I have webapps/mydir/ and webapps/ROOT/WEB-INF/ which contains web.xml. 
Can I not define a 'global' WEB-INF? ie something like:
webapps/WEB-INF that applies to all applications? Thus all my apps may be 
accesible such as webapps/mydir1/, webapps/mydir2/ etc?

"so add one for yourself in server.xml"

I cannot see any reference to server.xml. Must it be defined? What is the 
syntax please?

thanks again

Newbie bloke!




Generally the structure is like this (for a webapp) :
$WEB_APPDIR/WEB-INF/
And we pack everything into a war file.  So for deployment I generally 
stuff the war file into the webapps directory. Upon restart or stop & 
start, the app will be delopyed with a directory name from the war file 
name. A context will be added and can be accessed by 
http://localhost:8080/[WEBAPPNAME] . Since you manually created the 
directory, no context is added, so add one for yourself in server.xml .

Enok Strine wrote:


I see. So the directories you talk of are not yet present, presumably I 
create them at my leisure?
   What about ROOT? Why when I create webapps/mydir/myfile.jsp and load 
it into the browser is it not accessible? (404)


Must I define a WEB-INF for each app under webapps? What must it contain?


I'm not sure if you *need* to create a web-inf for each webapp. You can try 
and see if  it complains about it. In the last email I did explain what the 
WEB-INF could contain. If you need examples of .war files, you can go to 
the taglib projects in jakarta, plenty of sample to choose from.


Thank you

E.



yes, each webapp has its own web.xml, you can use that among other things 
to define your servlets, taglibs, resource-refs.
unjared classes go into /WEB-INF/classes directory, jars go into 
/WEB-INF/lib
How long a web.xml can be depends on how many things you wish to put in 
there. I think the tomcat doc has a section on best practices deployment. 
It *should* come with your installation of tomcat.

Enok Strine wrote:

Hi folks,
   I have installed TC 4.1 and have it apprently installed correctly. 
Can anyone tell me the significance of the WEB-INF dir please?
   Also, must everything run under webapps/root/..? I am presuming 
WEB-INF holds configuration / class libraries for each app? Yet there is 
a single web.xml, file 6 lines in length?
   Will someone please enlighten me?

E.

_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 






--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 






--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: newbie Q

2002-11-19 Thread Kwok Peng Tuck
server.xml  is used by tomcat as its configuration file for tomcat, so 
it isn't in any webapp. it is in $CATALINA_HOME /conf
The tomcat docs do describe what elements can be put in the server.xml 
and in what order, have a look at it for more details. Or just create 
your own war file.

Enok Strine wrote:

OK,
   I have webapps/mydir/ and webapps/ROOT/WEB-INF/ which contains 
web.xml. Can I not define a 'global' WEB-INF? ie something like:
webapps/WEB-INF that applies to all applications? Thus all my apps may 
be accesible such as webapps/mydir1/, webapps/mydir2/ etc?

"so add one for yourself in server.xml"

I cannot see any reference to server.xml. Must it be defined? What is 
the syntax please?

thanks again

Newbie bloke!




Generally the structure is like this (for a webapp) :
$WEB_APPDIR/WEB-INF/
And we pack everything into a war file.  So for deployment I 
generally stuff the war file into the webapps directory. Upon restart 
or stop & start, the app will be delopyed with a directory name from 
the war file name. A context will be added and can be accessed by 
http://localhost:8080/[WEBAPPNAME] . Since you manually created the 
directory, no context is added, so add one for yourself in server.xml .

Enok Strine wrote:


I see. So the directories you talk of are not yet present, 
presumably I create them at my leisure?
   What about ROOT? Why when I create webapps/mydir/myfile.jsp and 
load it into the browser is it not accessible? (404)



Must I define a WEB-INF for each app under webapps? What must it 
contain?


I'm not sure if you *need* to create a web-inf for each webapp. You 
can try and see if  it complains about it. In the last email I did 
explain what the WEB-INF could contain. If you need examples of .war 
files, you can go to the taglib projects in jakarta, plenty of sample 
to choose from.


Thank you

E.



yes, each webapp has its own web.xml, you can use that among other 
things to define your servlets, taglibs, resource-refs.
unjared classes go into /WEB-INF/classes directory, jars go into 
/WEB-INF/lib
How long a web.xml can be depends on how many things you wish to 
put in there. I think the tomcat doc has a section on best 
practices deployment. It *should* come with your installation of 
tomcat.

Enok Strine wrote:

Hi folks,
   I have installed TC 4.1 and have it apprently installed 
correctly. Can anyone tell me the significance of the WEB-INF dir 
please?
   Also, must everything run under webapps/root/..? I am presuming 
WEB-INF holds configuration / class libraries for each app? Yet 
there is a single web.xml, file 6 lines in length?
   Will someone please enlighten me?

E.

_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 






--
To unsubscribe, e-mail:   

For additional commands, e-mail: 





_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 






--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: newbie Q

2002-11-19 Thread Enok Strine
"The tomcat docs do describe what elements can be put in the
server.xml and in what order, have a look at it for more details. Or
just create your own war file."

Hi,
   You have lost me with WAR files. Perhaps it is better that I "add a 
context" in server.xml. I know not how to do this however. I could loose 
myself in the apache web site for hours on end. Alternately, could you 
direct me to such a page, or dare I say it paste some syntax into your 
reply?

Thanks

E.


_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: newbie Q

2002-11-19 Thread Kwok Peng Tuck
Even if you don't understand what the docs describe (and I don't 
understand all of it myself), the server.xml itself has examples.
Just  take a look into it.

Enok Strine wrote:

"The tomcat docs do describe what elements can be put in the
server.xml and in what order, have a look at it for more details. Or
just create your own war file."

Hi,
   You have lost me with WAR files. Perhaps it is better that I "add a 
context" in server.xml. I know not how to do this however. I could 
loose myself in the apache web site for hours on end. Alternately, 
could you direct me to such a page, or dare I say it paste some syntax 
into your reply?

Thanks

E.


_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: newbie Q

2002-11-19 Thread Enok Strine
I have opened it - honest!
  It's all Dutch to me (foreign). I saw:

- 
 pathname
 conf/tomcat-users.xml
 

which is possibly the nearest thing to what may be a 'context' to a 
directory ie a path (obviously not this particular instance but something 
like).
   How may I add a 'context' to server.xml to  enable access to 
http://localhost:8080/[WEBAPPNAME] for example? I need syntax!

Thanks again

E.



Even if you don't understand what the docs describe (and I don't understand 
all of it myself), the server.xml itself has examples.
Just  take a look into it.

Enok Strine wrote:

"The tomcat docs do describe what elements can be put in the
server.xml and in what order, have a look at it for more details. Or
just create your own war file."

Hi,
   You have lost me with WAR files. Perhaps it is better that I "add a 
context" in server.xml. I know not how to do this however. I could loose 
myself in the apache web site for hours on end. Alternately, could you 
direct me to such a page, or dare I say it paste some syntax into your 
reply?

Thanks

E.


_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 






--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: newbie Q

2002-11-19 Thread Frans.Stofberg
look for the line that looks something like this


then add another one just like it but change the "path" and "docBase" 
attributes to your app

path: This is what you want the URL to be eg. localhost:8080/myApp wil 
look like this   
docbase: This is where your app is located... if it is in the webapps dir. 
you can add it like this: 


if is someware else do it like this






"Enok Strine" <[EMAIL PROTECTED]>
11/20/02 08:35 AM
Please respond to "Tomcat Users List"

 
To: [EMAIL PROTECTED]
    cc: 
Subject:Re: newbie Q


I have opened it - honest!
   It's all Dutch to me (foreign). I saw:

- 
  pathname
  conf/tomcat-users.xml
  

which is possibly the nearest thing to what may be a 'context' to a 
directory ie a path (obviously not this particular instance but something 
like).
How may I add a 'context' to server.xml to  enable access to 
http://localhost:8080/[WEBAPPNAME] for example? I need syntax!

Thanks again

E.



>Even if you don't understand what the docs describe (and I don't 
understand 
>all of it myself), the server.xml itself has examples.
>Just  take a look into it.
>
>Enok Strine wrote:
>
>>"The tomcat docs do describe what elements can be put in the
>>server.xml and in what order, have a look at it for more details. Or
>>just create your own war file."
>>
>>Hi,
>>You have lost me with WAR files. Perhaps it is better that I "add a 
>>context" in server.xml. I know not how to do this however. I could loose 

>>myself in the apache web site for hours on end. Alternately, could you 
>>direct me to such a page, or dare I say it paste some syntax into your 
>>reply?
>>
>>Thanks
>>
>>E.
>>
>>
>>_
>>Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
>>http://join.msn.com/?page=features/featuredemail
>>
>>
>>--
>>To unsubscribe, e-mail: 
>><mailto:[EMAIL PROTECTED]>
>>For additional commands, e-mail: 
>><mailto:[EMAIL PROTECTED]>
>>
>>
>
>
>
>--
>To unsubscribe, e-mail: 
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>


_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


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






Re: newbie Q

2002-11-19 Thread Kwok Peng Tuck
Ok, stop panicking.
Just take your text editor and look for the phrase ' 
I have opened it - honest!
  It's all Dutch to me (foreign). I saw:

- 
 pathname
 conf/tomcat-users.xml
 

which is possibly the nearest thing to what may be a 'context' to a 
directory ie a path (obviously not this particular instance but 
something like).
   How may I add a 'context' to server.xml to  enable access to 
http://localhost:8080/[WEBAPPNAME] for example? I need syntax!

Thanks again

E.



Even if you don't understand what the docs describe (and I don't 
understand all of it myself), the server.xml itself has examples.
Just  take a look into it.

Enok Strine wrote:

"The tomcat docs do describe what elements can be put in the
server.xml and in what order, have a look at it for more details. Or
just create your own war file."

Hi,
   You have lost me with WAR files. Perhaps it is better that I "add 
a context" in server.xml. I know not how to do this however. I could 
loose myself in the apache web site for hours on end. Alternately, 
could you direct me to such a page, or dare I say it paste some 
syntax into your reply?

Thanks

E.


_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 






--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: newbie Q

2002-11-20 Thread Turner, John

That's web.xml, not server.xml.  Server.xml DEFINITELY has SEVERAL blocks of
tags CLEARLY labeled "Context".

John


> -Original Message-
> From: Enok Strine [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 20, 2002 1:35 AM
> To: [EMAIL PROTECTED]
> Subject: Re: newbie Q
> 
> 
> I have opened it - honest!
>It's all Dutch to me (foreign). I saw:
> 
> - 
>   pathname
>   conf/tomcat-users.xml
>   
> 
> which is possibly the nearest thing to what may be a 'context' to a 
> directory ie a path (obviously not this particular instance 
> but something 
> like).
> How may I add a 'context' to server.xml to  enable access to 
> http://localhost:8080/[WEBAPPNAME] for example? I need syntax!
> 
> Thanks again
> 
> E.
> 
> 
> 
> >Even if you don't understand what the docs describe (and I 
> don't understand 
> >all of it myself), the server.xml itself has examples.
> >Just  take a look into it.
> >
> >Enok Strine wrote:
> >
> >>"The tomcat docs do describe what elements can be put in the
> >>server.xml and in what order, have a look at it for more details. Or
> >>just create your own war file."
> >>
> >>Hi,
> >>You have lost me with WAR files. Perhaps it is better 
> that I "add a 
> >>context" in server.xml. I know not how to do this however. 
> I could loose 
> >>myself in the apache web site for hours on end. 
> Alternately, could you 
> >>direct me to such a page, or dare I say it paste some 
> syntax into your 
> >>reply?
> >>
> >>Thanks
> >>
> >>E.
> >>
> >>
> >>_
> >>Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
> >>http://join.msn.com/?page=features/featuredemail
> >>
> >>
> >>--
> >>To unsubscribe, e-mail:   
> >><mailto:[EMAIL PROTECTED]>
> >>For additional commands, e-mail: 
> >><mailto:[EMAIL PROTECTED]>
> >>
> >>
> >
> >
> >
> >--
> >To unsubscribe, e-mail:   
> ><mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail: 
> ><mailto:[EMAIL PROTECTED]>
> 
> 
> _
> Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
> http://join.msn.com/?page=features/featuredemail
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

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




RE: newbie Q

2002-11-20 Thread Price, Erik
No, I have read through the guide for my distribution (4.0.6)
and I cannot find an explanation of how to configure server.xml
for a new webapp that I have created.  (Though I did create the
webapp along the guidelines provided in the Application
Developer's Guide, so that should be all set once I can get
Tomcat to recognize that there is a new webapp there.)

If anyone can help me with this, that'd be much appreciated
(CC me as I am a digester), thank you.


Erik



> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 19, 2002 10:05 PM
> To: 'Enok Strine '; '[EMAIL PROTECTED] '
> Subject: RE: newbie Q
> 
> 
>  
> More than likely, your questions are answered in the 
> documentation.  Perhaps
> things like the Application Developer's Guide would help:
> 
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
> 
> John
> 
> -Original Message-----
> From: Enok Strine
> To: [EMAIL PROTECTED]
> Sent: 11/19/02 10:01 PM
> Subject: Re: newbie Q
> 
> 
> I see. So the directories you talk of are not yet present, 
> presumably I 
> create them at my leisure?
> What about ROOT? Why when I create 
> webapps/mydir/myfile.jsp and load
> it 
> into the browser is it not accessible? (404) Must I define a 
> WEB-INF for
> 
> each app under webapps? What must it contain?
> 
> Thank you
> 
> E.
> 
> 
> >yes, each webapp has its own web.xml, you can use that among other
> things 
> >to define your servlets, taglibs, resource-refs.
> >unjared classes go into /WEB-INF/classes directory, jars go into 
> >/WEB-INF/lib
> >How long a web.xml can be depends on how many things you 
> wish to put in
> 
> >there. I think the tomcat doc has a section on best practices
> deployment. 
> >It *should* come with your installation of tomcat.
> >
> >Enok Strine wrote:
> >
> >>Hi folks,
> >>I have installed TC 4.1 and have it apprently installed 
> correctly.
> Can 
> >>anyone tell me the significance of the WEB-INF dir please?
> >>Also, must everything run under webapps/root/..? I am presuming 
> >>WEB-INF holds configuration / class libraries for each app? 
> Yet there
> is a 
> >>single web.xml, file 6 lines in length?
> >>Will someone please enlighten me?
> >>
> >>E.
> >>
> >>_
> >>The new MSN 8: advanced junk mail protection and 2 months FREE* 
> >>http://join.msn.com/?page=features/junkmail
> >>
> >>
> >>--
> >>To unsubscribe, e-mail:   
> >><mailto:[EMAIL PROTECTED]>
> >>For additional commands, e-mail: 
> >><mailto:[EMAIL PROTECTED]>
> >>
> >>
> >
> >
> >
> >--
> >To unsubscribe, e-mail:   
> ><mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail: 
> ><mailto:[EMAIL PROTECTED]>
> 
> 
> _
> MSN 8 with e-mail virus protection service: 2 months FREE* 
> http://join.msn.com/?page=features/virus
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 

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




Re: newbie Q

2002-11-20 Thread Carsten Ziegert
It is sufficient to create the directory containing the new webapp
directly nested under the webapps directory. Tomcat recognized
the new webapp when being restarted.

Am Mittwoch, 20.11.02, um 17:00 Uhr (Europe/Berlin) schrieb Price, Erik:


No, I have read through the guide for my distribution (4.0.6)
and I cannot find an explanation of how to configure server.xml
for a new webapp that I have created.  (Though I did create the
webapp along the guidelines provided in the Application
Developer's Guide, so that should be all set once I can get
Tomcat to recognize that there is a new webapp there.)

If anyone can help me with this, that'd be much appreciated
(CC me as I am a digester), thank you.


Erik




-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 10:05 PM
To: 'Enok Strine '; '[EMAIL PROTECTED] '
Subject: RE: newbie Q



More than likely, your questions are answered in the
documentation.  Perhaps
things like the Application Developer's Guide would help:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html

John

-Original Message-
From: Enok Strine
To: [EMAIL PROTECTED]
Sent: 11/19/02 10:01 PM
Subject: Re: newbie Q


I see. So the directories you talk of are not yet present,
presumably I
create them at my leisure?
What about ROOT? Why when I create
webapps/mydir/myfile.jsp and load
it
into the browser is it not accessible? (404) Must I define a
WEB-INF for

each app under webapps? What must it contain?

Thank you

E.



yes, each webapp has its own web.xml, you can use that among other

things

to define your servlets, taglibs, resource-refs.
unjared classes go into /WEB-INF/classes directory, jars go into
/WEB-INF/lib
How long a web.xml can be depends on how many things you

wish to put in


there. I think the tomcat doc has a section on best practices

deployment.

It *should* come with your installation of tomcat.

Enok Strine wrote:


Hi folks,
   I have installed TC 4.1 and have it apprently installed

correctly.
Can

anyone tell me the significance of the WEB-INF dir please?
   Also, must everything run under webapps/root/..? I am presuming
WEB-INF holds configuration / class libraries for each app?

Yet there
is a

single web.xml, file 6 lines in length?
   Will someone please enlighten me?

E.

_
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail


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






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



_
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus


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



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



--
Carsten Ziegert

Hannover Medical School, Dept. of Hematology and Oncology
Carl-Neuberg-Straße 1, 30625 Hannover

University of Applied Sciences, Faculty of Information Sciences
Ricklinger Stadtweg 120, 30459 Hannover

http://summit-bmt.fh-hannover.de



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




RE: newbie Q

2002-11-20 Thread Turner, John

It's here:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/deployment.html

You want the part that says "Add a  entry in the
$CATALINA_HOME/conf/server.xml configuration file", fifth paragraph under
"Deployment with Tomcat 4".  You can also use server.xml's entries for the
/examples directory/app as an example.

John


> -Original Message-
> From: Price, Erik [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 20, 2002 11:01 AM
> To: Turner, John; Enok Strine ; [EMAIL PROTECTED]
> Subject: RE: newbie Q
> 
> 
> No, I have read through the guide for my distribution (4.0.6)
> and I cannot find an explanation of how to configure server.xml
> for a new webapp that I have created.  (Though I did create the
> webapp along the guidelines provided in the Application
> Developer's Guide, so that should be all set once I can get
> Tomcat to recognize that there is a new webapp there.)
> 
> If anyone can help me with this, that'd be much appreciated
> (CC me as I am a digester), thank you.
> 
> 
> Erik
> 
> 
> 
> > -Original Message-
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 19, 2002 10:05 PM
> > To: 'Enok Strine '; '[EMAIL PROTECTED] '
> > Subject: RE: newbie Q
> > 
> > 
> >  
> > More than likely, your questions are answered in the 
> > documentation.  Perhaps
> > things like the Application Developer's Guide would help:
> > 
> > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
> > 
> > John
> > 
> > -Original Message-
> > From: Enok Strine
> > To: [EMAIL PROTECTED]
> > Sent: 11/19/02 10:01 PM
> > Subject: Re: newbie Q
> > 
> > 
> > I see. So the directories you talk of are not yet present, 
> > presumably I 
> > create them at my leisure?
> > What about ROOT? Why when I create 
> > webapps/mydir/myfile.jsp and load
> > it 
> > into the browser is it not accessible? (404) Must I define a 
> > WEB-INF for
> > 
> > each app under webapps? What must it contain?
> > 
> > Thank you
> > 
> > E.
> > 
> > 
> > >yes, each webapp has its own web.xml, you can use that among other
> > things 
> > >to define your servlets, taglibs, resource-refs.
> > >unjared classes go into /WEB-INF/classes directory, jars go into 
> > >/WEB-INF/lib
> > >How long a web.xml can be depends on how many things you 
> > wish to put in
> > 
> > >there. I think the tomcat doc has a section on best practices
> > deployment. 
> > >It *should* come with your installation of tomcat.
> > >
> > >Enok Strine wrote:
> > >
> > >>Hi folks,
> > >>I have installed TC 4.1 and have it apprently installed 
> > correctly.
> > Can 
> > >>anyone tell me the significance of the WEB-INF dir please?
> > >>Also, must everything run under webapps/root/..? I am 
> presuming 
> > >>WEB-INF holds configuration / class libraries for each app? 
> > Yet there
> > is a 
> > >>single web.xml, file 6 lines in length?
> > >>Will someone please enlighten me?
> > >>
> > >>E.
> > >>
> > >>_
> > >>The new MSN 8: advanced junk mail protection and 2 months FREE* 
> > >>http://join.msn.com/?page=features/junkmail
> > >>
> > >>
> > >>--
> > >>To unsubscribe, e-mail:   
> > >><mailto:[EMAIL PROTECTED]>
> > >>For additional commands, e-mail: 
> > >><mailto:[EMAIL PROTECTED]>
> > >>
> > >>
> > >
> > >
> > >
> > >--
> > >To unsubscribe, e-mail:   
> > ><mailto:[EMAIL PROTECTED]>
> > >For additional commands, e-mail: 
> > ><mailto:[EMAIL PROTECTED]>
> > 
> > 
> > _
> > MSN 8 with e-mail virus protection service: 2 months FREE* 
> > http://join.msn.com/?page=features/virus
> > 
> > 
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 
> 

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




RE: newbie Q

2002-11-20 Thread Price, Erik
Carsten,

I forgot to thank you for helping me the other day with your suggestion to use a soft 
link from the $CATALINA_HOME/webapps directory to the directory in my ~/public_html 
directory.  I appreciate it.

I'm still waiting for my system administrator to restart Tomcat so I can test the 
HelloWorld servlet I wrote (in my webapp), but this makes me curious -- why would I 
edit server.xml if all that Tomcat needs is to see the presence of my webapp directory 
in $CATALINA_HOME/webapps ?  There must be some more advanced functionality in the 
server.xml file that I'm not taking advantage of if I do it this way...


Erik



> -Original Message-
> From: Carsten Ziegert [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 20, 2002 11:28 AM
> To: Tomcat Users List
> Subject: Re: newbie Q
> 
> 
> It is sufficient to create the directory containing the new webapp
> directly nested under the webapps directory. Tomcat recognized
> the new webapp when being restarted.
> 
> Am Mittwoch, 20.11.02, um 17:00 Uhr (Europe/Berlin) schrieb 
> Price, Erik:
> 
> > No, I have read through the guide for my distribution (4.0.6)
> > and I cannot find an explanation of how to configure server.xml
> > for a new webapp that I have created.  (Though I did create the
> > webapp along the guidelines provided in the Application
> > Developer's Guide, so that should be all set once I can get
> > Tomcat to recognize that there is a new webapp there.)
> >
> > If anyone can help me with this, that'd be much appreciated
> > (CC me as I am a digester), thank you.
> >
> >
> > Erik
> >> 

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




RE: newbie Q

2002-11-20 Thread Price, Erik
Hi John,

Thanks for the suggestion, but... I can't find it.  Creating a  entry is 
introduced but not really explained.  The paragraph you mention is this:

"""
* Add a  entry in the $CATALINA_HOME/conf/server.xml configuration file. 
This approach is described briefly below, and allows you to position the document root 
of your web application at some point other than the $CATALINA_HOME/webapps/ 
directory. You will need to restart Tomcat to have changes in this configuration file 
take effect. See the administrator documentation (TODO: hyperlink) for more 
information on configuring new Contexts in this way.
"""

I seem to be missing part of the docs.  I would copy the one for "examples" webapp 
except that this is a very big  node with a lot of details that I don't 
understand.  Is the "Administrators Guide" available online somewhere?


Erik






> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 20, 2002 11:35 AM
> To: Price, Erik; [EMAIL PROTECTED]
> Subject: RE: newbie Q
> 
> 
> 
> It's here:
> 
> http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/deployment.html
> 
> You want the part that says "Add a  entry in the
> $CATALINA_HOME/conf/server.xml configuration file", fifth 
> paragraph under
> "Deployment with Tomcat 4".  You can also use server.xml's 
> entries for the
> /examples directory/app as an example.
> 
> John
> 
> 
> > -Original Message-
> > From: Price, Erik [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, November 20, 2002 11:01 AM
> > To: Turner, John; Enok Strine ; [EMAIL PROTECTED]
> > Subject: RE: newbie Q
> > 
> > 
> > No, I have read through the guide for my distribution (4.0.6)
> > and I cannot find an explanation of how to configure server.xml
> > for a new webapp that I have created.  (Though I did create the
> > webapp along the guidelines provided in the Application
> > Developer's Guide, so that should be all set once I can get
> > Tomcat to recognize that there is a new webapp there.)
> > 
> > If anyone can help me with this, that'd be much appreciated
> > (CC me as I am a digester), thank you.
> > 
> > 
> > Erik
> > 
> > 
> > 
> > > -Original Message-
> > > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, November 19, 2002 10:05 PM
> > > To: 'Enok Strine '; '[EMAIL PROTECTED] '
> > > Subject: RE: newbie Q
> > > 
> > > 
> > >  
> > > More than likely, your questions are answered in the 
> > > documentation.  Perhaps
> > > things like the Application Developer's Guide would help:
> > > 
> > > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
> > > 
> > > John
> > > 
> > > -Original Message-
> > > From: Enok Strine
> > > To: [EMAIL PROTECTED]
> > > Sent: 11/19/02 10:01 PM
> > > Subject: Re: newbie Q
> > > 
> > > 
> > > I see. So the directories you talk of are not yet present, 
> > > presumably I 
> > > create them at my leisure?
> > > What about ROOT? Why when I create 
> > > webapps/mydir/myfile.jsp and load
> > > it 
> > > into the browser is it not accessible? (404) Must I define a 
> > > WEB-INF for
> > > 
> > > each app under webapps? What must it contain?
> > > 
> > > Thank you
> > > 
> > > E.
> > > 
> > > 
> > > >yes, each webapp has its own web.xml, you can use that 
> among other
> > > things 
> > > >to define your servlets, taglibs, resource-refs.
> > > >unjared classes go into /WEB-INF/classes directory, jars go into 
> > > >/WEB-INF/lib
> > > >How long a web.xml can be depends on how many things you 
> > > wish to put in
> > > 
> > > >there. I think the tomcat doc has a section on best practices
> > > deployment. 
> > > >It *should* come with your installation of tomcat.
> > > >
> > > >Enok Strine wrote:
> > > >
> > > >>Hi folks,
> > > >>I have installed TC 4.1 and have it apprently installed 
> > > correctly.
> > > Can 
> > > >>anyone tell me the significance of the WEB-INF dir please?
> > > >>Also, must everything run under webapps/root/..? I am 
> > presuming 
> > > >>WEB-INF holds configuration / class libraries

RE: newbie Q

2002-11-20 Thread Turner, John

Most of the stuff in server.xml is explanation/documentation and optional.

Minimum Context:  

Simple Context:  

More involved Context: the Examples Context in server.xml.

Are we looking at the same docs?  There's all sorts of stuff in there, like
this from the Configuration reference:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html

John
 
> -Original Message-
> From: Price, Erik [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 20, 2002 2:32 PM
> To: Turner, John; [EMAIL PROTECTED]
> Subject: RE: newbie Q
> 
> 
> Hi John,
> 
> Thanks for the suggestion, but... I can't find it.  Creating 
> a  entry is introduced but not really explained.  
> The paragraph you mention is this:
> 
> """
> * Add a  entry in the 
> $CATALINA_HOME/conf/server.xml configuration file. This 
> approach is described briefly below, and allows you to 
> position the document root of your web application at some 
> point other than the $CATALINA_HOME/webapps/ directory. You 
> will need to restart Tomcat to have changes in this 
> configuration file take effect. See the administrator 
> documentation (TODO: hyperlink) for more information on 
> configuring new Contexts in this way.
> """
> 
> I seem to be missing part of the docs.  I would copy the one 
> for "examples" webapp except that this is a very big 
>  node with a lot of details that I don't understand. 
>  Is the "Administrators Guide" available online somewhere?
> 
> 
> Erik
> 

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




RE: newbie Q

2002-11-20 Thread Price, Erik
Whoops.  I have the 4.0 docs on my host's server.  That is what I was looking at.  
There are a lot more docs on the site you linked to.  Are most of these applicable to 
4.0, or is this for the most part 4.1 references?

Thanks for the pointer, John.


Erik



> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 20, 2002 2:47 PM
> To: Price, Erik; [EMAIL PROTECTED]
> Subject: RE: newbie Q
> 
> 
> 
> Most of the stuff in server.xml is explanation/documentation 
> and optional.
> 
> Minimum Context:  
> 
> Simple Context:   debug="0"
>  reloadable="true" crossContext="true" />
> 
> More involved Context: the Examples Context in server.xml.
> 
> Are we looking at the same docs?  There's all sorts of stuff 
> in there, like
> this from the Configuration reference:
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html
> 
> John 

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




RE: newbie Q

2002-11-20 Thread Turner, John

They're good for 4.0 for the most part. 

Here are the 4.0 docs:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html

John


> -Original Message-
> From: Price, Erik [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 20, 2002 2:59 PM
> To: Turner, John; [EMAIL PROTECTED]
> Subject: RE: newbie Q
> 
> 
> Whoops.  I have the 4.0 docs on my host's server.  That is 
> what I was looking at.  There are a lot more docs on the site 
> you linked to.  Are most of these applicable to 4.0, or is 
> this for the most part 4.1 references?
> 
> Thanks for the pointer, John.
> 
> 
> Erik
> 
> 
> 
> > -Original Message-
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, November 20, 2002 2:47 PM
> > To: Price, Erik; [EMAIL PROTECTED]
> > Subject: RE: newbie Q
> > 
> > 
> > 
> > Most of the stuff in server.xml is explanation/documentation 
> > and optional.
> > 
> > Minimum Context:  
> > 
> > Simple Context:   > debug="0"
> >  reloadable="true" crossContext="true" />
> > 
> > More involved Context: the Examples Context in server.xml.
> > 
> > Are we looking at the same docs?  There's all sorts of stuff 
> > in there, like
> > this from the Configuration reference:
> > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html
> > 
> > John 
> 

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




RE: newbie Q

2002-11-20 Thread Enok Strine
This seems to have generated some conversation (orginal postee)
   Can someone tell then, if one can configure your apps to run under 
webapps...what is the purpose of webapps/ROOT?

Thanks

E.

_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: newbie Q

2002-11-20 Thread Kwok Peng Tuck
That's the context for the webapp ROOT . If you point your browser to 
your tomcat server like ,
http://localhost:8080/ ; That's the page that gets served to you.
And there should be context for that webapp in server.xml as well.
ps. There is only one server.xml, and it is located in $CATALINA_HOME/conf/


Enok Strine wrote:

This seems to have generated some conversation (orginal postee)
   Can someone tell then, if one can configure your apps to run under 
webapps...what is the purpose of webapps/ROOT?

Thanks

E.

_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: newbie Q

2002-11-21 Thread Price, Erik


> -Original Message-
> From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 20, 2002 7:59 PM
> To: Tomcat Users List
> Subject: Re: newbie Q
> 
> 
> That's the context for the webapp ROOT . If you point your browser to 
> your tomcat server like ,
> http://localhost:8080/ ; That's the page that gets served to you.
> And there should be context for that webapp in server.xml as well.
> ps. There is only one server.xml, and it is located in 
> $CATALINA_HOME/conf/

So presumably one can change the "root" webapp without putting it under a directory 
named $CATALINA_HOME/webapps/ROOT if they are handy with the server.xml file and know 
the correct  node attributes.

[...]

Ah, after checking the "config" docs, it seems that this is done by specifying a 
 node with an empty-string "path" attribute.



Erik

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




Re: Newbie Problems

2002-11-25 Thread Andoni
What do the error messages say?

I.e.: can you paste them into a message (and maybe your server.xml also)
then we could tell you what each one means.

Andoni.


- Original Message -
From: "Bob Tilley" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 6:03 PM
Subject: Newbie Problems


> Our shop is using Tomcat 4.0.5 and Apache 1.3.27 on FreeBSD with mixed
> results.  Apache can be brought up and down with the normal 'apachectl
> start|stop'.  Tomcat can be started normally via the startup.sh script but
> when the shutdown-sh script is run there is a burst of error messages from
> the parsing of server.xml.
>
> I am confused as to how no errors occur when I "./startup.sh" the Tomcat
> server but the shutdown.sh script has problems with server.xml format.
> Don't both scripts actually deal with the same server.xml?
>
> Bob Tilley
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Newbie Problems

2002-11-25 Thread Bob Tilley
The FreeBSD box is on an intranet in our office that does not link to the
outside world, but I'll try to communicate the errors:

  PARSE error at line 55, column 23 of ... server.xml
  org.xml.sax.SAXParseException:  Attribute name "IfModule must be followed 
  by the '=' character."

Then more errors cascade from the one above.  Here is the relevant line from
the server.xml file:

  # Tomcat 4 Webapp Warp
  
  ...
  

Any ideas?

-Original Message-
From: Andoni [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 1:18 PM
To: Tomcat Users List
Subject: Re: Newbie Problems


What do the error messages say?

I.e.: can you paste them into a message (and maybe your server.xml also)
then we could tell you what each one means.

Andoni.

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




RE: Newbie Problems

2002-11-25 Thread p niemandt
Just going to take a stab at it, but it looks like you are trying to
combine the apache configuration and the tomcat configuration into one
file.

basic xml dictates ...

1. Comments are the same as html comments, meaning  and not #
2. Attributes are followed by an = sign and quotes,  does not make sense for XML. {In apache it does!!} 

So, in your apache.conf file it would be {like you have it}






But this will NOT work in the tomcat server.xml or web.xml.

Hope this helps.

On Mon, 2002-11-25 at 18:45, Bob Tilley wrote:
> The FreeBSD box is on an intranet in our office that does not link to the
> outside world, but I'll try to communicate the errors:
> 
>   PARSE error at line 55, column 23 of ... server.xml
>   org.xml.sax.SAXParseException:  Attribute name "IfModule must be followed 
>   by the '=' character."
> 
> Then more errors cascade from the one above.  Here is the relevant line from
> the server.xml file:
> 
>   # Tomcat 4 Webapp Warp
>   
>   ...
>   
> 
> Any ideas?
> 
> -Original Message-
> From: Andoni [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 25, 2002 1:18 PM
> To: Tomcat Users List
> Subject: Re: Newbie Problems
> 
> 
> What do the error messages say?
> 
> I.e.: can you paste them into a message (and maybe your server.xml also)
> then we could tell you what each one means.
> 
> Andoni.
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- 
p niemandt <[EMAIL PROTECTED]>


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




Re: newbie . catalina.out

2002-11-25 Thread Craig R. McClanahan


On Mon, 25 Nov 2002, mc wrote:

> Date: Mon, 25 Nov 2002 14:12:51 -0500
> From: mc <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: newbie . catalina.out
>
> Hi
>
> Is it possible to redirect system.out elsewhere than in
> $CATALINA_HOME/logs/catalina.out ?
> For exemple, one file per context ?, per host ?
>

In Tomcat 4.1, you can capture per-webapp output by using the
swallowOutput attribute on the  element.  It will send System.err
and System.out output to the same place that ServletContext.log() calls
go.  See the config docs for more details:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html

under "Standard Implementation Attributes".

> thks
>

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: newbie question

2002-11-28 Thread Andoni
If you are only going to serve html, jpg, gif, css, etc. pages.  (i.e.
static text files) then you should not be using tomcat at all.  Instead you
should use Apache web server.

Only use Tomcat if you want to run Java based Web-applications.

If for some reason you MUST you Tomcat then put the files in a directory you
create under the "webapps" directory.  then put the name of your directory
on the end of your URL.  One other thing you must do though is create a
directory in your sub-directory called WEB-INF and in it put a text-file
called web.xml which has the following contents:



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





Hope that helps,

Andoni.



- Original Message -
From: "Pascal Platteeuw" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 28, 2002 12:11 PM
Subject: newbie question


Hello,

I've installed tomcat but I still have some problems to make it run as I
want...
Tomcat is an Http server right ? Then how do I see the HTML page I write and
that are not in the tomcat root (my html pages, my images, and css are on a
separate disk...) ? Is there something I miss ?

Please help... I want to have tomcat installed in one place and all the web
site (html, css, image, jps, servlets,...) installed on another drive ? How
do i tell tomcat to go looking on the other drive...

Many thanks in advance...


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Newbie help

2002-06-08 Thread Dennis van den Berg

One important difference would be that tomcat does not implement an
EJB-container.

Dennis.

-Original Message-
From: Srinivas N. Battula [mailto:[EMAIL PROTECTED]]On Behalf Of sbattul
Sent: zaterdag 8 juni 2002 0:39
To: [EMAIL PROTECTED]
Subject: Newbie help


Hi all,

Can any one tell me the difference between an Application server such as

 IBM websphere and Tomcat.I want to know what IBM websphere can do that
Tomcat

 cant do and what Tomcat can do and IBM web sphere cant do.

Thanks
Srinivas



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Newbie question

2002-07-17 Thread Turner, John


You might also need to set CATALINA_HOME to the directory where you
installed tomcat.

Try the examples URL: http://localhost:8080/examples or
http://localhost:8080/examples/

There should be logs in CATALINA_HOME/logs.

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Eldridge, Michael [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 10:41 AM
To: '[EMAIL PROTECTED]'
Subject: Newbie question


I am new to Tomcat and new to JDK. So please be gentle with me ...
 
I installed JDK 1.3.1 on an NT server.
I then installed Tomcat on the same server.
 
Following the information in the document tomcat-ug.html, I 
set JAVA_HOME=c:/jdk1.3.1
set PATH=%JAVA_HOME%\BIN;%path%
 
Then, through a DOS window I issued the command
bin\startup
 
Another window opened and Tomcat appeared to start -- at least, according to
the task manager it started.
 
Now, comes the question setup. When I launch my browser (IE 5.x) and point
it at http://localhost:8080   I get a DNS error page.

 
And the questions are
Is there a better documentation document?
How do I capture logs so I can get a better idea what is happening?
Are there other configurations I need to do?
 
Thank you for any suggestions.
 
Michael Eldridge 
Team Leader 
E-Business Services 
Graphic Arts Center Indianapolis 
317-388-5487 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Newbie question

2002-07-17 Thread Eldridge, Michael

Thank you John,
I have no examples folder, and as far as I can tell, I have no
Catalina_home/logs.

Now I'm wondering if I downloaded the wrong file, or missed another download
I needed. The file I downloaded was jakarta-tomcat-3.3.1.zip. Did I miss
something as basic as an entire archive.

Thanks
Michael Eldridge
Team Leader
E-Business Services
Graphic Arts Center Indianapolis
317-388-5487


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 9:44 AM
To: 'Tomcat Users List'
Subject: RE: Newbie question



You might also need to set CATALINA_HOME to the directory where you
installed tomcat.

Try the examples URL: http://localhost:8080/examples or
http://localhost:8080/examples/

There should be logs in CATALINA_HOME/logs.

John Turner
[EMAIL PROTECTED]


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




RE: Newbie question

2002-07-17 Thread Turner, John


Hmmm...I didn't realize we were talking about 3.3.x.  It's been awhile since
I had to setup a tomcat 3.x instance, I'm not even sure it looks for
CATALINA_HOME.  Is there a reason you chose 3.x over 4?  I'm not advocating
one or the other, but most of the traffic on this list seems to deal with 4.
4.0.4 is the current production-quality release of tomcat 4, though I am
working with 4.0.3.  If you unzip the 4.0.x zip file, there's definitely a
CATALINA_HOME/logs and an examples folder.

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Eldridge, Michael [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 11:12 AM
To: 'Tomcat Users List'
Subject: RE: Newbie question


Thank you John,
I have no examples folder, and as far as I can tell, I have no
Catalina_home/logs.

Now I'm wondering if I downloaded the wrong file, or missed another download
I needed. The file I downloaded was jakarta-tomcat-3.3.1.zip. Did I miss
something as basic as an entire archive.

Thanks
Michael Eldridge
Team Leader
E-Business Services
Graphic Arts Center Indianapolis
317-388-5487


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 9:44 AM
To: 'Tomcat Users List'
Subject: RE: Newbie question



You might also need to set CATALINA_HOME to the directory where you
installed tomcat.

Try the examples URL: http://localhost:8080/examples or
http://localhost:8080/examples/

There should be logs in CATALINA_HOME/logs.

John Turner
[EMAIL PROTECTED]


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

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




RE: Newbie question

2002-07-17 Thread Eldridge, Michael

John,
One of the advantages to being at square one is that starting over is no big
thing. I'll delete version three and try version 4.

Thanks again for your help.

Michael

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 17, 2002 10:26 AM
To: 'Tomcat Users List'
Subject: RE: Newbie question



Hmmm...I didn't realize we were talking about 3.3.x.  It's been awhile since
I had to setup a tomcat 3.x instance, I'm not even sure it looks for
CATALINA_HOME.  Is there a reason you chose 3.x over 4?  I'm not advocating
one or the other, but most of the traffic on this list seems to deal with 4.
4.0.4 is the current production-quality release of tomcat 4, though I am
working with 4.0.3.  If you unzip the 4.0.x zip file, there's definitely a
CATALINA_HOME/logs and an examples folder.

John Turner
[EMAIL PROTECTED]



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




RE: Newbie question

2001-04-13 Thread Henry San


Check your "mod_jk.conf-auto" and make sure you "Include" that file in your
http.conf file.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 13, 2001 10:53 AM
To: [EMAIL PROTECTED]
Subject: Newbie question


Hi,

I have installed tomcat on my redhat 7 server with mod_jk
All seems to be ok, tomcat serves html files oke on my server at port 8080,
but when i request .jsp files, it gives an error 404.
This is the log file from a .jsp request:

2001-04-13 04:29:45 - JspEngine --> /jsp/dates/date.jsp
2001-04-13 04:29:45 -ServletPath: /jsp/dates/date.jsp
2001-04-13 04:29:45 -   PathInfo: null
2001-04-13 04:29:45 -   RealPath:
/java/tomcat/webapps/examples/jsp/date
s/date.jsp
2001-04-13 04:29:45 - RequestURI: /examples/jsp/dates/date.jsp
2001-04-13 04:29:45 -QueryString: null
2001-04-13 04:29:45 - Request Params:
2001-04-13 04:29:45 - Classpath according to the init parameter is:
2001-04-13 04:29:45 - Ctx( /examples ): 404 R( /examples +
/jsp/dates/date.jsp +
 null) JSP file not found

As far as i can see the file does exist. Any idea's ? Where should i look
for the problem ?

Thanks !

Ties van Raak




RE: Newbie question

2001-04-13 Thread Wick, Daniel

Are all your JSP files located in the webapps directory & all the html pages
in the docs directory?   If not you need to configure your server.xml to
include your additional directories.  Hope that may help you.

Die$el

> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, April 13, 2001 9:53 AM
> To:   [EMAIL PROTECTED]
> Subject:  Newbie question
> 
> Hi,
> 
> I have installed tomcat on my redhat 7 server with mod_jk
> All seems to be ok, tomcat serves html files oke on my server at port
> 8080,  but when i request .jsp files, it gives an error 404.
> This is the log file from a .jsp request:
> 
> 2001-04-13 04:29:45 - JspEngine --> /jsp/dates/date.jsp
> 2001-04-13 04:29:45 -ServletPath: /jsp/dates/date.jsp
> 2001-04-13 04:29:45 -   PathInfo: null
> 2001-04-13 04:29:45 -   RealPath:
> /java/tomcat/webapps/examples/jsp/date
> s/date.jsp
> 2001-04-13 04:29:45 - RequestURI: /examples/jsp/dates/date.jsp
> 2001-04-13 04:29:45 -QueryString: null
> 2001-04-13 04:29:45 - Request Params:
> 2001-04-13 04:29:45 - Classpath according to the init parameter is:
> 2001-04-13 04:29:45 - Ctx( /examples ): 404 R( /examples +
> /jsp/dates/date.jsp +
>  null) JSP file not found  
> 
> As far as i can see the file does exist. Any idea's ? Where should i look
> for the problem ?
> 
> Thanks !
> 
> Ties van Raak



RE: Newbie Help

2001-06-07 Thread Randy Layman


They left out a step.  Somewhere around step 5 you need to set the
environment variable JAVA_HOME (and I would suggest setting TOMCAT_HOME so
that the shell script doesn't have to guess).  You can do this at the same
place where they recommend setting the PATH with the following two commands:
setenv JAVA_HOME /usr/local/jdk1.1.8 [enter]
setenv TOMCAT_HOME /home/yourusername/servlets/jakarta-tomcat-3.2.2 [enter]

And this should get you going.  Once you get this working correctly, I would
suggest contacting your hosting company and giving them the corrections.

Randy

> -Original Message-
> From: Mark Senefsky [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 06, 2001 7:54 PM
> To: [EMAIL PROTECTED]
> Subject: Newbie Help
> 
> 
> Greetings all...
> 
> I recently hooked up with a new hosting company and they sent me the
> following directions for compiling and installing Jakarta and Tomcat.
> I hit a snag in the middle (please scroll to // comments) and 
> I don't know
> what to do.
> 
> Solution:
> 1) Open a telnet or SSH session to your Freedom server.
> 2) Download the proper files to your server.
> 
> You are going to need to download both the binary and source 
> versions of
> jakarta for this installation.
> 
> In a web browser connect to http://jakarta.apache.org. Once 
> there click
> Binaries. Under Release Builds select Tomcat 3.2.2 or 
> similar. This will
> bring you to new screen where you will need to find the GZIP 
> compressed
> distribution, right click on it and select "Copy Shortcut".
> 
> Once you have this in your clip board go back in to your telnet window
> and type the following:
> cd [enter]
> mkdir servlets [enter]
> cd servlets [enter]
> Inside telnet prompt at your Freedom server type:
> lynx 
> Then paste in your URL, so you have something like the 
> following and hit
> enter:
> lynx 
> http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1
> /bin/jakar
> ta-tomcat-3.2.1.tar.gz
> Select d for download
> Once prompted to "save to disk" hit enter
> Press enter to okay the filename.
> Then q and y to accept this quit
> 
> Go back to your browser window and follow the same procedures for
> downloading the source for the same version number of tomcat. The file
> may be something like jakarta-tomcat-3.2.2-src.tar.gz.
> 
> 3) Once you have both of these files in your servlets 
> directory you will
> need to ucompress them.
> 
> In your telnet session type:
> tar xzvf jakarta-tomcat-3.2.2.tar.gz [enter]
> tar xzvf jakarta-tomcat-3.2.2-src.tar.gz [enter]
> 
> 4) Next You will want to compile mod_jserv
> 
> To do this first move in to the proper directory, in this case:
> cd jakarta-tomcat-3.2.2-src/src/native/apache/jserv/ [enter]
> 
> Then type the command to actually compile the module:
> /www/bin/apxs -c -o mod_jserv.so *.c [enter]
> 
> Once this finishes you should copy the module to a more convenient
> location:
> cp mod_jserv.so /home/yourusername/servlets/ [enter]
> 
> 5) Next you need to start tomcat.
> 
> To make this easiest I would suggest getting in to the tcsh 
> shell first
> and making sure your PATH includes that java bin directory:
> tcsh [enter]
> setenv PATH /usr/local/jdk1.1.8:$PATH [enter]
> 
> Now start jakarta tomcat:
> /home/yourusername/servlets/jakarta-tomcat-3.2.2/bin/startup.s
> h [enter]
> 
> //
> -
> // I MADE IT TO HERE
> //
> // I got this message:
> //
> // Guessing TOMCAT_HOME from tomcat.sh to
> // /home/senefsky/servlets/jakarta-tomcat-3.2.2/bin/..
> // Setting TOMCAT_HOME to
> // /home/senefsky/servlets/jakarta-tomcat-3.2.2/bin/..
> // Cannot find JAVA. Please set your PATH.
> //
> //
> -
> 
> 
> That will generate a configuration file that you need to backup and
> modify.
> 
> 6) Next you will need to create and modify a backup of the 
> configuration
> file, because this config file is created with the assumption that you
> put mod_jserv in the /www/libexec directory which you do not 
> have access
> to.
> 
> To create a backup of the configuration file type from you telnet
> prompt:
> cd /home/yourusername/servlets/jakarta-tomcat-3.2.2/conf/ [enter]
> cd tomcat-apache.conf my-tomcat-apache.conf [enter]
> 
> Now modify the backed up file:
> pico -w my-tomcat-apache.conf [enter]
> 
> Replace:
> LoadModule  jserv_module libexec/mod_jserv.so
> 
> With:
> LoadModule  jserv_module /home/yourusername/servlets/mod_jserv.so
> 
> Finally, type [ctrl]+x, then hit y [enter] to save the file.
> 
> 7) Now you want to add this new file to your apache configuration.
> 
> Add the following line to the bottom of your httpd.conf file:
> Include 
> /home/yourusername/servlets/jakarta-tomcat-3.2.2/conf/my-tomca
> t-apache.c
> onf
> 
> 8) Enable tomcat to work through Apache
> 
> Do this by restarting Apache, which can be done with the following
> command:
> apachectl restart [enter]
> 
> To verify it 

Re: Newbie Contexts

2001-06-09 Thread Charles Baker

You might want to take a look in the configuration
file $TOMCAT_HOME/conf/server.xml at the sections that
define the contexts. The path is sort of from the
docroot of your websererver like "/admin" if you want
to access the admin context as
"http://your.domain.com/admin";, the documentation says
it is relative to the context manager's location. The
document base is usually, but not always a directory
that is relative to your $TOMCAT_HOME directory such
as "webapps/admin" and yes the context name can be
whatever you choose as long as it is not already in
use on your server.

Most of this info is available online at:

http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html
--- Mark Senefsky <[EMAIL PROTECTED]> wrote:
> Greetings all...
> 
> OK I think the solution to my previous email "Newbie
> Help (the sequel)" is
> related to contexts. Currently the only context for
> my server points to the
> examples directory.
> 
> How do I establish new Contexts?
> 
> Using Tomcat admin what goes in each of these
> inputs?
> 
> Path: (assume directory path?)
> Document Base: (no clue.)
> Context Name: (whatever I choose?)
> 
> Thanks,
> Mark
> 
> 
>
_
> Do You Yahoo!?
> Get your free @yahoo.com address at
> http://mail.yahoo.com
> 


=
-
[EMAIL PROTECTED]
Hacking is a "Good Thing!"
See http://www.tuxedo.org/~esr/faqs/hacker-howto.html

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



Re: Newbie Contexts

2001-06-10 Thread Krishna Kant T

hi there,

u can set up new contexts by adding new directories within webapps.
each dir could be a context/app and could have dirs for jsp , images , web-inf,
etc.

~krishnakant

Mark Senefsky wrote:

> Greetings all...
>
> OK I think the solution to my previous email "Newbie Help (the sequel)" is
> related to contexts. Currently the only context for my server points to the
> examples directory.
>
> How do I establish new Contexts?
>
> Using Tomcat admin what goes in each of these inputs?
>
> Path: (assume directory path?)
> Document Base: (no clue.)
> Context Name: (whatever I choose?)
>
> Thanks,
> Mark
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com




Re: Newbie Contexts

2001-06-10 Thread Mark Senefsky

Thanks for the help...

What I'd really like to do is be able to run jsp's and servlets through my
root web directory without having to add the files to examples/*. For
example: http://www.mydomain.com/cart.jsp instead of:
http://www.mydomain.com/examples/jsp/cart.jsp

How is this accomplished?
Can I establish a context that points to a directory outside the tomcat
directory?

Thanks,
Mark

> From: Krishna Kant T <[EMAIL PROTECTED]>
> Organization: ComPulse Systems
> Reply-To: [EMAIL PROTECTED]
> Date: Mon, 10 Jun 2002 17:43:17 +0530
> To: [EMAIL PROTECTED]
> Subject: Re: Newbie Contexts
> 
> hi there,
> 
> u can set up new contexts by adding new directories within webapps.
> each dir could be a context/app and could have dirs for jsp , images ,
> web-inf,
> etc.
> 
> ~krishnakant
> 
> Mark Senefsky wrote:
> 
>> Greetings all...
>> 
>> OK I think the solution to my previous email "Newbie Help (the sequel)" is
>> related to contexts. Currently the only context for my server points to the
>> examples directory.
>> 
>> How do I establish new Contexts?
>> 
>> Using Tomcat admin what goes in each of these inputs?
>> 
>> Path: (assume directory path?)
>> Document Base: (no clue.)
>> Context Name: (whatever I choose?)
>> 
>> Thanks,
>> Mark
>> 
>> _
>> Do You Yahoo!?
>> Get your free @yahoo.com address at http://mail.yahoo.com


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Re: Newbie Contexts

2001-06-10 Thread Nitin Borwankar



Mark Senefsky wrote:
> 
> Can I establish a context that points to a directory outside the tomcat
> directory?

Yes this is definitely possible.
Edit the server.xml file in the TOMCAT_HOME/conf directory.
Add a new "context" entry using the existing ones as guidelines.
"path" and "docBase" are the only one's you'll need to change.

For the "path" give a URL prefix for your jsp, for docBase give an
absolute path pointing 
to your directory.  The URL address will still be //some.jsp but your jsp's will come from your new location as in
docBase.. 

Nitin Borwankar.

> 
> Thanks,
> Mark
> 
> > From: Krishna Kant T <[EMAIL PROTECTED]>
> > Organization: ComPulse Systems
> > Reply-To: [EMAIL PROTECTED]
> > Date: Mon, 10 Jun 2002 17:43:17 +0530
> > To: [EMAIL PROTECTED]
> > Subject: Re: Newbie Contexts
> >
> > hi there,
> >
> > u can set up new contexts by adding new directories within webapps.
> > each dir could be a context/app and could have dirs for jsp , images ,
> > web-inf,
> > etc.
> >
> > ~krishnakant
> >
> > Mark Senefsky wrote:
> >
> >> Greetings all...
> >>
> >> OK I think the solution to my previous email "Newbie Help (the sequel)" is
> >> related to contexts. Currently the only context for my server points to the
> >> examples directory.
> >>
> >> How do I establish new Contexts?
> >>
> >> Using Tomcat admin what goes in each of these inputs?
> >>
> >> Path: (assume directory path?)
> >> Document Base: (no clue.)
> >> Context Name: (whatever I choose?)
> >>
> >> Thanks,
> >> Mark
> >>
> >> _
> >> Do You Yahoo!?
> >> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com



Re: Newbie Contexts

2001-06-10 Thread Mark Senefsky

Thanks Nitin...

I think this is what you told me to add to server.xml:
http://www.mydomain.com/";
 docBase="/usr/local/www/htdocs/"
 crossContext="false"
 debug="0"
 reloadable="true" >

I restarted tomcat and I get the same 404 error when I try to load the jsp.

Thanks,
Mark

> From: Nitin Borwankar <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Sun, 10 Jun 2001 18:22:17 -0700
> To: [EMAIL PROTECTED]
> Subject: Re: Newbie Contexts
> 
> 
> 
> Mark Senefsky wrote:
>> 
>> Can I establish a context that points to a directory outside the tomcat
>> directory?
> 
> Yes this is definitely possible.
> Edit the server.xml file in the TOMCAT_HOME/conf directory.
> Add a new "context" entry using the existing ones as guidelines.
> "path" and "docBase" are the only one's you'll need to change.
> 
> For the "path" give a URL prefix for your jsp, for docBase give an
> absolute path pointing
> to your directory.  The URL address will still be / path>/some.jsp but your jsp's will come from your new location as in
> docBase.. 
> 
> Nitin Borwankar.
> 
>> 
>> Thanks,
>> Mark
>> 
>>> From: Krishna Kant T <[EMAIL PROTECTED]>
>>> Organization: ComPulse Systems
>>> Reply-To: [EMAIL PROTECTED]
>>> Date: Mon, 10 Jun 2002 17:43:17 +0530
>>> To: [EMAIL PROTECTED]
>>> Subject: Re: Newbie Contexts
>>> 
>>> hi there,
>>> 
>>> u can set up new contexts by adding new directories within webapps.
>>> each dir could be a context/app and could have dirs for jsp , images ,
>>> web-inf,
>>> etc.
>>> 
>>> ~krishnakant
>>> 
>>> Mark Senefsky wrote:
>>> 
>>>> Greetings all...
>>>> 
>>>> OK I think the solution to my previous email "Newbie Help (the sequel)" is
>>>> related to contexts. Currently the only context for my server points to the
>>>> examples directory.
>>>> 
>>>> How do I establish new Contexts?
>>>> 
>>>> Using Tomcat admin what goes in each of these inputs?
>>>> 
>>>> Path: (assume directory path?)
>>>> Document Base: (no clue.)
>>>> Context Name: (whatever I choose?)
>>>> 
>>>> Thanks,
>>>> Mark
>>>> 
>>>> _
>>>> Do You Yahoo!?
>>>> Get your free @yahoo.com address at http://mail.yahoo.com
>> 
>> _
>> Do You Yahoo!?
>> Get your free @yahoo.com address at http://mail.yahoo.com


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




RE: newbie Servlet

2001-09-25 Thread Martin van den Bemt

You have to use compiled classes.

Mvgr,
Martin

> -Original Message-
> From: Isak Rickyanto [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, September 23, 2001 3:21 PM
> To: Tomcat User Group
> Subject: newbie Servlet
> 
> 
> Sorry it is newbie..
> 
> I have myservlet.java
> and i place in
> tomcat/webapps/myapp/web-inf/classes
> and i had modified web.xml in web-inf..
> 
> I only want to ask... Is Tomcat not automatically compile it? or I must
> compile the servlet first?
> 
> 
> 



Re: newbie Servlet

2001-09-25 Thread Dmitri Colebatch

yes you do have to compile your servlets.  jsps are the only thing that
tomcat will compile for you.  

cheers
dim

On Sun, 23 Sep 2001, Isak Rickyanto wrote:

> Sorry it is newbie..
> 
> I have myservlet.java
> and i place in
> tomcat/webapps/myapp/web-inf/classes
> and i had modified web.xml in web-inf..
> 
> I only want to ask... Is Tomcat not automatically compile it? or I must
> compile the servlet first?
> 
> 
> 




Re: Newbie-Installation

2001-11-03 Thread Charles Webber

Check out the web for mod_jk.
Here's a link to the jakarta site that may help.
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html

It's easier than you think to integrate Tomcat with Apache.  In your
httpd.conf, include a line like:
Include $TOMCAT_HOME/conf/mod_jk.conf-auto
Make sure that the mod_jk.conf-auto points to mod_jk.so
There are probably better ways of doing this, but it worked for me.
Good luck.

- Original Message -
From: Joel <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 03, 2001 8:04 AM
Subject: Newbie-Installation


> Dear,
>
>  I am trying to install Tomcat 3.3 in Linux.
>
> I have downloaded Tomcat 3.3 tar.gz
> Need I download "jakarta-servletapi.tar.gz"
> What is it meant for?
>
> Also I need to integrate Tomcat with Apache using mod_jk
>
> My processor is  AMD K6 with the type i586.
>
> From where I will get   a mod_jk.so for i586.
> In Apache website it is given for i386. Can I use the same mod_jk.so for
> i586.
>
> Regards
>
> Joel
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


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




Re: Newbie question

2002-04-10 Thread yilmaz

Hi Javier!
Servlets should be under webapps/yourcontext/WEB-INF/classes/ directory.
yourcontext can be anyone like, ROOT, examples,etc.
One more thing do not  forget to append /servlet/ to your url.
Just to be more helpful for a new comer :
say you put your HelloWorld servlet under
/webapps/ROOT/WEB-INF/classes/
your url should be like this:
http://localhost:8080/servlet/HelloWorld

Hope this helps :)
- Original Message -
From: "Javier A. Leyba" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 11:19 PM
Subject: Newbie question



Hi

I'm trying to do my first servlet. I've compiled a simple HelloWorld class.

Now, where is the root Tomcat directory where may I put it ?

How could I define a new one for my tests ?

Thanks in advance






_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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



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




Re: Newbie question

2002-04-10 Thread Javier A. Leyba

On 11/04/2002 at 0:18 yilmaz wrote:

>Hi Javier!
>Servlets should be under webapps/yourcontext/WEB-INF/classes/ directory.
>yourcontext can be anyone like, ROOT, examples,etc.
>One more thing do not  forget to append /servlet/ to your url.
>Just to be more helpful for a new comer :
>say you put your HelloWorld servlet under
>/webapps/ROOT/WEB-INF/classes/
>your url should be like this:
>http://localhost:8080/servlet/HelloWorld
>
>Hope this helps :)


Thanks a lot.






_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




Re: Newbie question

2002-04-10 Thread Javier A. Leyba

On 11/04/2002 at 0:18 yilmaz wrote:

>Hi Javier!
>Servlets should be under webapps/yourcontext/WEB-INF/classes/ directory.
>yourcontext can be anyone like, ROOT, examples,etc.
>One more thing do not  forget to append /servlet/ to your url.
>Just to be more helpful for a new comer :
>say you put your HelloWorld servlet under
>/webapps/ROOT/WEB-INF/classes/
>your url should be like this:
>http://localhost:8080/servlet/HelloWorld
>
>Hope this helps :)


I've tried but it didn't work.

I've made a new directory called classes under  /Program Files/Apache Tomcat 
4.0/webapps/ROOT/WEB-INF and I copied my HelloWorldExample.class to this directory.

>From my browser I tried http://localhost:8080/servlet/HelloWorldExample and I 
>received a "The requested resource (/servlet/HelloWorldExample) is not available."  
>message.


Need I to define a new context ?






_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




RE: Newbie question

2002-04-10 Thread Ricky Leung

>
>I've tried but it didn't work.
>
>I've made a new directory called classes under  /Program Files/Apache
Tomcat >>>4.0/webapps/ROOT/WEB-INF and I copied my HelloWorldExample.class
to this directory.
>
>From my browser I tried http://localhost:8080/servlet/HelloWorldExample and
I received a >"The requested resource (/servlet/HelloWorldExample) is not
available."  message.
>
>

If you put it in ROOT, then you should put your HelloWorldExample in classes
as in
Apache Tomcat4.0/webapps/ROOT/WEB-INF/classes

then run it as http://localhost:8080/HelloWorldExample

That ROOT name under webapps is your context path.  ROOT is a special case
that you can omit, but if you have other names like myserv then you will
need to use myserv as your context path as in
http://localhost:8080/myserv/HelloWorldExample

If that still doesn't work, it's your web.xml file.

Ricky


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




Re: Newbie question

2002-04-11 Thread yilmaz

Hi Javier,
I am not very sure what mistake are you doing,
but to find out if your tomcat is up and installation is okey,
try using default examples servlets
http://localhost:8080/examples/

try any of them, and if they are okey,
tell me if you can access

http://localhost:8080/index.html

if both these are working fine, then try to put your tomcat under a
directory that doesn't contain spaces , like "d:\tomcat"

I suspect the directory where you put Tomcat
"program files" is causing problems, since it includes a space, just
guessing
cheers :)

- Original Message -
From: "Javier A. Leyba" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, April 11, 2002 1:09 AM
Subject: Re: Newbie question


On 11/04/2002 at 0:18 yilmaz wrote:

>Hi Javier!
>Servlets should be under webapps/yourcontext/WEB-INF/classes/ directory.
>yourcontext can be anyone like, ROOT, examples,etc.
>One more thing do not  forget to append /servlet/ to your url.
>Just to be more helpful for a new comer :
>say you put your HelloWorld servlet under
>/webapps/ROOT/WEB-INF/classes/
>your url should be like this:
>http://localhost:8080/servlet/HelloWorld
>
>Hope this helps :)


I've tried but it didn't work.

I've made a new directory called classes under  /Program Files/Apache Tomcat
4.0/webapps/ROOT/WEB-INF and I copied my HelloWorldExample.class to this
directory.

>From my browser I tried
and I received a "The requested resource (/servlet/HelloWorldExample) is not
available."  message.


Need I to define a new context ?






_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
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: Newbie question

2002-04-12 Thread Javier

On 11/04/2002 at 20:16 yilmaz wrote:

>Hi Javier,
>I am not very sure what mistake are you doing,
>but to find out if your tomcat is up and installation is okey,
>try using default examples servlets
>http://localhost:8080/examples/
>
>try any of them, and if they are okey,
>tell me if you can access
>


Well, I'm close to scream against Tomcat like some guy did a few days ago !!!

I've deleted all my XP box and installed a clean W2K (for more reasons than Tomcat).

I've installed a clean Tomcat on c:\tomcat.

Then I tried to access:

http://localhost:8080   -> OK
http://localhost:8080/examples/servlet/HelloWorldExample-> OK

Well, I decide to copy  HelloWorldExample.class from 
c:\tomcat\webapps\examples\WEB-INF\classes to
c:\tomcat\webapps\ROOT\WEB-INF\classes


Then I tried to access:

http://localhost:8080/HelloWorldExample -> Fail, 404 Error
http://localhost:8080/servlet/HelloWorldExample -> Fail 500 Error

with the following code

java.util.MissingResourceException: Can't find bundle for base name LocalStrings, 
locale es
at 
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:804)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:694)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:538)
at HelloWorldExample.doGet(HelloWorldExample.java:25)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:536)


If I found so much problems with a little example page I don't want to know which will 
be the problem with a real application !!

Could someone help me ?

Thanks in advance








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




Re: Newbie question

2002-04-12 Thread yilmaz

Hi Javier,
don't be so undeterminant,
There are a lot of Gurus here which can help you.
But you shouldn't be like the guy a few days ago.
then you will be alone.
For your problem, i guess you didn't restart your tomcat after
moving your helloworld class to Root/web-inf/classes directory.
Am i right ?
Cheers :)
- Original Message -
From: "Javier" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, April 12, 2002 5:32 PM
Subject: Re: Newbie question


On 11/04/2002 at 20:16 yilmaz wrote:

>Hi Javier,
>I am not very sure what mistake are you doing,
>but to find out if your tomcat is up and installation is okey,
>try using default examples servlets
>http://localhost:8080/examples/
>
>try any of them, and if they are okey,
>tell me if you can access
>


Well, I'm close to scream against Tomcat like some guy did a few days ago
!!!

I've deleted all my XP box and installed a clean W2K (for more reasons than
Tomcat).

I've installed a clean Tomcat on c:\tomcat.

Then I tried to access:

http://localhost:8080 -> OK
http://localhost:8080/examples/servlet/HelloWorldExample -> OK

Well, I decide to copy  HelloWorldExample.class from
c:\tomcat\webapps\examples\WEB-INF\classes to
c:\tomcat\webapps\ROOT\WEB-INF\classes


Then I tried to access:

http://localhost:8080/HelloWorldExample -> Fail, 404 Error
http://localhost:8080/servlet/HelloWorldExample -> Fail 500 Error

with the following code

java.util.MissingResourceException: Can't find bundle for base name
LocalStrings, locale es
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:8
04)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:694)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:538)
at HelloWorldExample.doGet(HelloWorldExample.java:25)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:536)


If I found so much problems with a little example page I don't want to know
which will be the problem with a real application !!

Could someone help me ?

Thanks in advance








--
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: Newbie question

2002-04-12 Thread Javier

On 12/04/2002 at 17:51 yilmaz wrote:

>Hi Javier,
>don't be so undeterminant,
>There are a lot of Gurus here which can help you.
>But you shouldn't be like the guy a few days ago.
>then you will be alone.


Hi

Thanks, I'm still fighting !  :)

>For your problem, i guess you didn't restart your tomcat after
>moving your helloworld class to Root/web-inf/classes directory.
>Am i right ?
>Cheers :)


No, the problem was a getBundle("LocalStrings",request.getLocale()) function. I didn't 
copied this file to the new location.

Thanks again








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




RE: Newbie question

2002-04-12 Thread Ricky Leung

you also need to copy your web.xml in WEB-INF to ROOT/WEB-INF

-Original Message-
From: Javier [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 5:33 AM
To: Tomcat Users List
Subject: Re: Newbie question


On 11/04/2002 at 20:16 yilmaz wrote:

>Hi Javier,
>I am not very sure what mistake are you doing,
>but to find out if your tomcat is up and installation is okey,
>try using default examples servlets
>http://localhost:8080/examples/
>
>try any of them, and if they are okey,
>tell me if you can access
>


Well, I'm close to scream against Tomcat like some guy did a few days ago
!!!

I've deleted all my XP box and installed a clean W2K (for more reasons than
Tomcat).

I've installed a clean Tomcat on c:\tomcat.

Then I tried to access:

http://localhost:8080   -> OK
http://localhost:8080/examples/servlet/HelloWorldExample-> OK

Well, I decide to copy  HelloWorldExample.class from
c:\tomcat\webapps\examples\WEB-INF\classes to
c:\tomcat\webapps\ROOT\WEB-INF\classes


Then I tried to access:

http://localhost:8080/HelloWorldExample -> Fail, 404 Error
http://localhost:8080/servlet/HelloWorldExample -> Fail 500 Error

with the following code

java.util.MissingResourceException: Can't find bundle for base name
LocalStrings, locale es
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:8
04)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:694)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:538)
at HelloWorldExample.doGet(HelloWorldExample.java:25)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:536)


If I found so much problems with a little example page I don't want to know
which will be the problem with a real application !!

Could someone help me ?

Thanks in advance








--
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: Newbie question

2002-04-24 Thread Subir Sengupta

Which version of Tomcat?

You should be able to test Tomcat, in standalone mode by typing in
localhost:8080 in your browser.  The Tomcat page should come up.  Are you
not seeing this?  Look at RUNNING.txt in your Tomcat directory, it explains
how to setup and test Tomcat.

Hope this helps.
Subir

-Original Message-
From: Andre [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 10:57 AM
To: [EMAIL PROTECTED]
Subject: Newbie question


Hello evryone, I'm new to Java/JSP server configuration and I would like to
test my installation to see if it's working properly.
I installed all required tomcat packages and IBM JDK 1.3.

The system I'm running:
Apache/1.3.19 (Unix) (Red-Hat/Linux) mod_ssl/2.8.1 OpenSSL/0.9.6 DAV/1.0.2
PHP/4.0.4pl1 mod_perl/1.24_01 ApacheJServ/1.1.1 (results from
http://uptime.netcraft.com/) on a RedHat 7.1 Linux system

Any help would be apreciated.

Thanks in advance,

Andre Rocha
[EMAIL PROTECTED]



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

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




Re: Newbie question

2002-04-24 Thread Andre

It's Tomcat/4.0.3, and no I can't see anything on http://server:8005.
(that's where my server.xml is configured).
I started tomcat through /etc/rc.d/init.d/tomcat4 start.
Browsing the examples I couldn't see any of them working!
Do I need Apache 2.X?
Thanks again.





- Original Message -
From: "Subir Sengupta" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, April 24, 2002 3:58 PM
Subject: RE: Newbie question


> Which version of Tomcat?
>
> You should be able to test Tomcat, in standalone mode by typing in
> localhost:8080 in your browser.  The Tomcat page should come up.  Are you
> not seeing this?  Look at RUNNING.txt in your Tomcat directory, it
explains
> how to setup and test Tomcat.
>
> Hope this helps.
> Subir
>
> -Original Message-
> From: Andre [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 24, 2002 10:57 AM
> To: [EMAIL PROTECTED]
> Subject: Newbie question
>
>
> Hello evryone, I'm new to Java/JSP server configuration and I would like
to
> test my installation to see if it's working properly.
> I installed all required tomcat packages and IBM JDK 1.3.
>
> The system I'm running:
> Apache/1.3.19 (Unix) (Red-Hat/Linux) mod_ssl/2.8.1 OpenSSL/0.9.6 DAV/1.0.2
> PHP/4.0.4pl1 mod_perl/1.24_01 ApacheJServ/1.1.1 (results from
> http://uptime.netcraft.com/) on a RedHat 7.1 Linux system
>
> Any help would be apreciated.
>
> Thanks in advance,
>
> Andre Rocha
> [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: Newbie question

2002-04-24 Thread Subir Sengupta

No you don't need Apache if you are running T4 in standalone mode. If you
use either Apache 1.3 or 2.x (for 2.x read all the postings on this list)
you will need to use a connector, such as mod_jk to enable Apache to
communicate with Tomcat.

I can't really tell what the problem is from the information you've
provided, but here's what I would do.
- Download and install T4 according to the instructions 
- start it up (from the command line)and see if it works with all the
default settings (don't make any changes to the server.xml or web.xml files)
- run 'ps -aux' and make sure Tomcat came up
- look in the logs ( T4directory/logs/ ) and see if there are any error
messages.

Tomcat should now work fine.  After you get it up with all the default
settings, then you can start making changes to the server.xml files.  If you
make a change and Tomcat doesn't come up, then you know what the problem is.

Good luck,
Subir

-Original Message-
From: Andre [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 24, 2002 1:14 PM
To: Tomcat Users List
Subject: Re: Newbie question


It's Tomcat/4.0.3, and no I can't see anything on http://server:8005.
(that's where my server.xml is configured).
I started tomcat through /etc/rc.d/init.d/tomcat4 start.
Browsing the examples I couldn't see any of them working!
Do I need Apache 2.X?
Thanks again.





- Original Message -
From: "Subir Sengupta" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, April 24, 2002 3:58 PM
Subject: RE: Newbie question


> Which version of Tomcat?
>
> You should be able to test Tomcat, in standalone mode by typing in
> localhost:8080 in your browser.  The Tomcat page should come up.  Are you
> not seeing this?  Look at RUNNING.txt in your Tomcat directory, it
explains
> how to setup and test Tomcat.
>
> Hope this helps.
> Subir
>
> -Original Message-
> From: Andre [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 24, 2002 10:57 AM
> To: [EMAIL PROTECTED]
> Subject: Newbie question
>
>
> Hello evryone, I'm new to Java/JSP server configuration and I would like
to
> test my installation to see if it's working properly.
> I installed all required tomcat packages and IBM JDK 1.3.
>
> The system I'm running:
> Apache/1.3.19 (Unix) (Red-Hat/Linux) mod_ssl/2.8.1 OpenSSL/0.9.6 DAV/1.0.2
> PHP/4.0.4pl1 mod_perl/1.24_01 ApacheJServ/1.1.1 (results from
> http://uptime.netcraft.com/) on a RedHat 7.1 Linux system
>
> Any help would be apreciated.
>
> Thanks in advance,
>
> Andre Rocha
> [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: Newbie question

2002-04-24 Thread Oki DZ

On 04/25 03:14 Andre wrote:
> It's Tomcat/4.0.3, and no I can't see anything on http://server:8005.
> (that's where my server.xml is configured).

I think if you are in the beginning of running Tomcat, it would be nice to 
left everything as the default (ie: don't touch server.xml); you can do it 
later, after you have tried to run some of the example servlets/JSPs.

BTW, port 8005 is for shutting down Tomcat; the default http port is 8080.

Oki

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




Re: newbie question

2001-07-03 Thread Steven Turoff

I'm assuming you are running Tomcat on the default port, which is 8080. 
Start Tomcat and Apache and then go to:

http://localhost:8080

Steve
At 08:05 AM 07/03/2001, you wrote:
>hi all!
>i am new with tomcat...
>having installed tomcat 3.2.2 and apache 1.3.11 on my NT 4.0...
>how will i come to know whether my apache and tomcat are communicating 
> or notor rather what should i do
>to access tomcat from apacge(or vice-versa)... plz. help.
>
>Sumit Ranjan




Re: newbie question

2001-07-03 Thread Vinay Menon



http://localhost - 
Apache homepage
 
http://localhost:8080  - Tomcat 
homepage
 
If both display then Apache is working and Tomcat 
is working. 
 
Loads of mails about how to set up Tomcat with 
Apache. Pls read the archives or check out the Tomcat site.
 
Vinay

  - Original Message - 
  From: 
  Sumit Ranjan 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, July 03, 2001 2:05 
PM
  Subject: newbie question
  
  hi all!
     i am new with 
  tomcat...
     having installed tomcat 3.2.2 and 
  apache 1.3.11 on my NT 4.0...
     how will i come to know whether my 
  apache and tomcat are communicating or notor rather what should i do 
  
     to access tomcat from apacge(or 
  vice-versa)... plz. help.
   
  Sumit 
Ranjan


Re: newbie question

2001-07-03 Thread Minglong Wu



Hi,
 
I have a simple question:
 
if I put the following into my 
ChatEnter.jsp
 

 
it doesn't work even I set in my server.xml 
by
 

        
  docBase="c:/Code/Chap03" />
 
my EnterChat.jsp and Chat.jsp are under 
directory
c:\Code\Chap03
 
But if I change ACTION="/Code/Chap03/Chat.jsp" into 
/Chap03/Chat.jsp  and path="/Code/Chap03" into /Chap03. All work fine. Why 
is it?
 
mwu
 
 

  - Original Message - 
  From: 
  Vinay Menon 
  
  To: [EMAIL PROTECTED] ; Sumit Ranjan 
  Sent: Tuesday, July 03, 2001 7:58 
AM
  Subject: Re: newbie question
  
  http://localhost 
  - Apache homepage
   
  http://localhost:8080  - Tomcat 
  homepage
   
  If both display then Apache is working and 
  Tomcat is working. 
   
  Loads of mails about how to set up Tomcat with 
  Apache. Pls read the archives or check out the Tomcat site.
   
  Vinay
  
- Original Message - 
From: 
Sumit Ranjan 
To: [EMAIL PROTECTED] 

Sent: Tuesday, July 03, 2001 2:05 
PM
Subject: newbie question

hi all!
   i am new with 
tomcat...
   having installed tomcat 3.2.2 and 
apache 1.3.11 on my NT 4.0...
   how will i come to know whether my 
apache and tomcat are communicating or notor rather what should i do 

   to access tomcat from apacge(or 
vice-versa)... plz. help.
 
Sumit 
Ranjan


RE: Newbie question

2001-09-03 Thread Peter Shankey

try http://yourhostname:8080/
if using with apache and you have gone through the setup http://yourhostname/examples/

"Mark Gargan" <[EMAIL PROTECTED]> wrote:

>Hi folks,
>I've just recently started using Tomcat and so far it's been giving me
>a bit of hassle. At first it couldn't find a class in the web-inf/classes
>directory of an application and then it just wouldn't startup with no log
>explanation. So I rebuilt it and now anytime I go to try any of the examples
>or indeed any of my own applications I get the error
>
>"HTTP Status 503 - This application is not currently available
> The requested service (This application is not currently available) is not
> currently available."
>
>Has anyone come across this and been able to get over it? Any help would be
>greatly appreciated.
>
>Thanks,
>Mark.
>
>


__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/




Re: Newbie question

2001-09-03 Thread asheesh

try http://localhost:8080/ or http://127.0.0.1:8080/ or
http://yourmachineIP:8080/


cheers
asheesh

- Original Message -
From: Mark Gargan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 03, 2001 5:49 PM
Subject: Newbie question


> Hi folks,
> I've just recently started using Tomcat and so far it's been giving me
> a bit of hassle. At first it couldn't find a class in the web-inf/classes
> directory of an application and then it just wouldn't startup with no log
> explanation. So I rebuilt it and now anytime I go to try any of the
examples
> or indeed any of my own applications I get the error
>
> "HTTP Status 503 - This application is not currently available
>  The requested service (This application is not currently available) is
not
>  currently available."
>
> Has anyone come across this and been able to get over it? Any help would
be
> greatly appreciated.
>
> Thanks,
> Mark.
>




Re: Newbie question

2001-09-04 Thread MindTerm

Dear Mark,

  I have this problem before, and it is sovled.
However, I don't recall my memory what's the problem.
Maybe it cause by setting in server.xml . Please have
a look. 

M.T. 

--- Mark Gargan <[EMAIL PROTECTED]> wrote:
> Hi folks,
> I've just recently started using Tomcat and so
> far it's been giving me
> a bit of hassle. At first it couldn't find a class
> in the web-inf/classes
> directory of an application and then it just
> wouldn't startup with no log
> explanation. So I rebuilt it and now anytime I go to
> try any of the examples
> or indeed any of my own applications I get the error
> 
> "HTTP Status 503 - This application is not currently
> available
>  The requested service (This application is not
> currently available) is not
>  currently available."
> 
> Has anyone come across this and been able to get
> over it? Any help would be
> greatly appreciated.
> 
> Thanks,
> Mark.
> 


__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



RE: newbie question

2001-09-05 Thread David DELGRANCHE

Hi,

There is no manipulation to do to your servlets if you want to migrate 
from JServ to Tomcat. Tomcat is just a application server. You need to 
install Tomcat and configure Apache to work with it by default. After, just 
create a directory for your servlets and put them there!  There is no 
change in code to do!

David.

-Message d'origine-
De: echaiguer abderrahim [SMTP:[EMAIL PROTECTED]]
Date:   mercredi 5 septembre 2001 15:32
A:  [EMAIL PROTECTED]
Objet:  newbie question



Hi ,

I just decided to move to the J2EE architecture. I was previously working
with Apache / Jserv . I was wondering if there is an easy
to migrate all my servlets  to Tomcat without  a lot of code manipulation.

Thanks,
Abde




Re: newbie question

2001-09-05 Thread Roland Carlsson

Hi!
Perhaps if you have put all non gui-stuff in beans you can fairly easy write wrappers 
to these beans and then you only have to rewrite the calls to the beans to the new ejb 
instead of the old bean. If you have written "scriptlets" then you have to rewrite. 
But you should first think if you really need to make the move to ejb for the stuff 
you already written. The company i work for is still running a lot of asp-code despite 
the fact that we changed all development to java for two years ago. If it ain't 
broken, don't fix it.

Regards
Roland Carlsson

Ps: I'm sorry for not mastering english very well.


- Original Message - 
From: "echaiguer abderrahim" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 05, 2001 3:32 PM
Subject: newbie question


> 
> 
> Hi ,
> 
> I just decided to move to the J2EE architecture. I was previously working 
> with Apache / Jserv . I was wondering if there is an easy
> to migrate all my servlets  to Tomcat without  a lot of code manipulation.
> 
> Thanks,
> Abde
> 




RE: newbie question

2001-09-05 Thread echaiguer abderrahim


David, I did that and just copied across all my servlets from /opt/jserv to 
../webapps/servlets
Either I try to execute them from the dev port 8080 or webserser 80 nothing 
make I have a error  Not Found (404)

What am I missing ?
Thanks
Abde


At 04:37 PM 9/5/2001 +0200, David DELGRANCHE wrote:
> Hi,
>
> There is no manipulation to do to your servlets if you want to 
> migrate
>from JServ to Tomcat. Tomcat is just a application server. You need to
>install Tomcat and configure Apache to work with it by default. After, just
>create a directory for your servlets and put them there!  There is no
>change in code to do!
>
> David.
>
>-Message d'origine-
>De: echaiguer abderrahim [SMTP:[EMAIL PROTECTED]]
>Date:   mercredi 5 septembre 2001 15:32
>A:  [EMAIL PROTECTED]
>Objet:  newbie question
>
>
>
>Hi ,
>
>I just decided to move to the J2EE architecture. I was previously working
>with Apache / Jserv . I was wondering if there is an easy
>to migrate all my servlets  to Tomcat without  a lot of code manipulation.
>
>Thanks,
>Abde





Re: newbie question

2001-09-05 Thread Craig R. McClanahan



On Wed, 5 Sep 2001, echaiguer abderrahim wrote:

> Date: Wed, 05 Sep 2001 15:32:28 +0200
> From: echaiguer abderrahim <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: newbie question
>
>
>
> Hi ,
>
> I just decided to move to the J2EE architecture. I was previously working
> with Apache / Jserv . I was wondering if there is an easy
> to migrate all my servlets  to Tomcat without  a lot of code manipulation.
>

The mechanics of setting up a web application as required by Tomcat (or
any other container based on servlet 2.2 or later) are important -- you
will need to organize your servlets in the directory structure of a "web
application" as described in the Servlet spec, available at:

  http://java.sun.com/products/servlet/download.html

You should also take a look at the "Application Developer's Guide" shipped
with Tomcat for more information.

However, this is not necessarily going to be your biggest problem.  Apache
JServ was based on Servlet 2.0, and included several calls (such as
ServletContext.getServlet()) that have been deprecated in Servlet 2.2 and
later.  If your application relied on this call to acquire a reference to
a different servlet, you're going to have some re-architecting to do for
it to run on any Servlet 2.2 or later container.

> Thanks,
> Abde
>
>

Craig McClanahan





Re: newbie question

2001-09-06 Thread echaiguer abderrahim


Hi Craig

I benefit you answer that mail to mention that I really find the doc for 
Tomcat confusing and really easy to follow.
Compare to Jserv this is just a massive task you know. Jumping to 
the  Tomacat world is full time job that why I have
to postpone my migration.

Just a constructive comment,
Thanks
Abde

At 09:56 AM 9/5/2001 -0700, you wrote:


>On Wed, 5 Sep 2001, echaiguer abderrahim wrote:
>
> > Date: Wed, 05 Sep 2001 15:32:28 +0200
> > From: echaiguer abderrahim <[EMAIL PROTECTED]>
> > Reply-To: [EMAIL PROTECTED]
> > To: [EMAIL PROTECTED]
> > Subject: newbie question
> >
> >
> >
> > Hi ,
> >
> > I just decided to move to the J2EE architecture. I was previously working
> > with Apache / Jserv . I was wondering if there is an easy
> > to migrate all my servlets  to Tomcat without  a lot of code manipulation.
> >
>
>The mechanics of setting up a web application as required by Tomcat (or
>any other container based on servlet 2.2 or later) are important -- you
>will need to organize your servlets in the directory structure of a "web
>application" as described in the Servlet spec, available at:
>
>   http://java.sun.com/products/servlet/download.html
>
>You should also take a look at the "Application Developer's Guide" shipped
>with Tomcat for more information.
>
>However, this is not necessarily going to be your biggest problem.  Apache
>JServ was based on Servlet 2.0, and included several calls (such as
>ServletContext.getServlet()) that have been deprecated in Servlet 2.2 and
>later.  If your application relied on this call to acquire a reference to
>a different servlet, you're going to have some re-architecting to do for
>it to run on any Servlet 2.2 or later container.
>
> > Thanks,
> > Abde
> >
> >
>
>Craig McClanahan





Re: newbie question

2001-09-06 Thread Craig R. McClanahan



On Thu, 6 Sep 2001, echaiguer abderrahim wrote:

> Date: Thu, 06 Sep 2001 18:01:24 +0200
> From: echaiguer abderrahim <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Cc: echaiguer abderrahim <[EMAIL PROTECTED]>
> Subject: Re: newbie question
>
>
> Hi Craig
>
> I benefit you answer that mail to mention that I really find the doc for
> Tomcat confusing and really easy to follow.
> Compare to Jserv this is just a massive task you know. Jumping to
> the  Tomacat world is full time job that why I have
> to postpone my migration.
>

Tomcat docs could definitely be better (no question) ... but the nature of
servlets have changed a ***lot*** in the four or five years since Apache
JServ was first designed.  And all the Tomcat docs pretty much assume you
are current with all the new concepts like web applications.

The good news is that you only have to learn this stuff once, and it works
on all modern servlet containers.

If you're just starting out on this learning path, I'd suggest the
following:

* Get the Servlet 2.2 (or, better, 2.3 -- it's going final in a few days)
  specification from <http://java.sun.com/products/servlet/download.html>
  and read it -- this is the standard to which all servlet containers
  must conform.

* Get one of the current-generation servlet (and JSP) books to learn
  about all the recent features.  Look for something that covers
  Servlet 2.2 and JSP 1.1.

* For learning and app development, forget the whole idea of running
  Tomcat behind Apache (which is quite complex to configure).  Simply
  run Tomcat by itself - it can serve static content quite nicely,
  whereas Apache JServ required you to connect with Apache.

* If you've used things like getServlet() in your old servlets, plan
  on a major redesign instead of just a port -- there's no easy way
  to emulate that in a Servlet 2.2 environment.


> Just a constructive comment,

The only way the docs get improved is for people to submit specific
changes or enhancements ... :-)

> Thanks
> Abde
>

Craig


> At 09:56 AM 9/5/2001 -0700, you wrote:
>
>
> >On Wed, 5 Sep 2001, echaiguer abderrahim wrote:
> >
> > > Date: Wed, 05 Sep 2001 15:32:28 +0200
> > > From: echaiguer abderrahim <[EMAIL PROTECTED]>
> > > Reply-To: [EMAIL PROTECTED]
> > > To: [EMAIL PROTECTED]
> > > Subject: newbie question
> > >
> > >
> > >
> > > Hi ,
> > >
> > > I just decided to move to the J2EE architecture. I was previously working
> > > with Apache / Jserv . I was wondering if there is an easy
> > > to migrate all my servlets  to Tomcat without  a lot of code manipulation.
> > >
> >
> >The mechanics of setting up a web application as required by Tomcat (or
> >any other container based on servlet 2.2 or later) are important -- you
> >will need to organize your servlets in the directory structure of a "web
> >application" as described in the Servlet spec, available at:
> >
> >   http://java.sun.com/products/servlet/download.html
> >
> >You should also take a look at the "Application Developer's Guide" shipped
> >with Tomcat for more information.
> >
> >However, this is not necessarily going to be your biggest problem.  Apache
> >JServ was based on Servlet 2.0, and included several calls (such as
> >ServletContext.getServlet()) that have been deprecated in Servlet 2.2 and
> >later.  If your application relied on this call to acquire a reference to
> >a different servlet, you're going to have some re-architecting to do for
> >it to run on any Servlet 2.2 or later container.
> >
> > > Thanks,
> > > Abde
> > >
> > >
> >
> >Craig McClanahan
>
>
>




Re: Newbie question

2001-09-06 Thread Jonathan Eric Miller

If you are using Tomcat 4, check out the following link. You don't actually
need to build Tomcat from the source code (if that's what you are trying to
do) in order to get SSL to work. It's just a matter of running a keytool
command and then uncommenting a few lines of code in server.xml. This also
assumes that you are using Tomcat in standalone mode and aren't trying to
compile SSL into Apache Web Server.

http://jakarta.apache.org/tomcat/tomcat-4.0-doc-exp/ssl-howto.html

Jon

- Original Message -
From: "Brown, Matthew A." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 06, 2001 1:31 PM
Subject: Newbie question


> Hi- I'm new to tomcat-
> I've got jakarta-ant installed- and I've got tomcat working.
> I want to rebuild tomcat so that it supports SSL. I've got all of the SSL
> stuff needed-(per the how to configure SSL document) I just don't know how
> to rebuild the instance easily. Thanks in advance for any help
>




RE: Newbie question

2002-01-05 Thread Suzanne Reiner 8423

If you want to have "SecretInformation" available on the web to certain
users, try using realms to authenticate users.  You could also use a Remote
Address or Remote Host filter to restrict access to only specific I/P
addresses or hosts.

All of these tactics require changes to the server.xml file.

Suzanne



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




Re: Newbie question

2002-01-05 Thread Amine AMAR

hi,

if you need not have external access to your secretinfo directory, put it in the 
WEB-INF directory. There, the webserver will not
service it.

Amine
- Original Message -
From: "Manu Kumar" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Saturday, January 05, 2002 9:49 AM
Subject: Newbie question


> Hello All,
> How can i prevent the listing of contents of some specific directories in my
> webapp.
> For e.g say i have a directory called "SecretInformation" which is
> only for the working of my webapp , i want to restrict the viewing of the
> contents of this directory from a browser.
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


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




Re: Newbie resources

2002-02-27 Thread Sriram Narayanan

2/27/02 11:03:19 PM, Ken Martin <[EMAIL PROTECTED]> wrote:

>What resources would you recommend for a web and coding savvy 
>user to get up to speed on using and configuring Tomcat. I'm 
>strong in HTML and JSP coding, but weak in Unix. Using Mac OS X.
>
1. Read the documentation. There's really a whole lot of information given.
Start off with the the download page, where there's information on what to use to 
extract the contents of the archives.

2. Next, get the Servlet API and the JSP API specs from Sun's site.

3. Download the sources, and check out the developer documentation there.


>I do try to use the supplied Tomcat docs, but they seem to me a 
>bit more reference-like (which is great and useful, just not 
>quite enough for this untrainable monkey).
>
The documentation currently contains information on configuring Tomcat for JNDI, 
Database connection pools, 

>Also, why no FAQ for this list? The short time I've been here 
>I've seen many of the same types of questions come up.
>

4. Search the archives first. You're right, most of the questions have indeed been 
answered first.


>Ken Martin
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>




_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




Re: Newbie resources

2002-02-27 Thread Ken Martin

On Wednesday, February 27, 2002, at 12:57 PM, Sriram Narayanan wrote:

> 1. Read the documentation. There's really a whole lot of 
> information given...

I do read the docs, but (not meaning to step on toes here) their 
not always clear to those who may not know the terminology.

For example... I'm just messing with taglibs right now... the 
"Tag Documentation" section of the docs for the UtilityTags Tag 
Library have a very brief description of the tag and attributes, 
but not one example. Yes, each little table has the raw data 
necessary, but simply showing...


do this if true


...would communicate much more... and more effectively.

Another example, from the taglibs tutorial... under the "Hello 
World Tag Handler", the word "package" is refered to in the text 
and code sample, but I can see no description of what "package" 
is and what I should put there when creating my own taglib.

Or using the http://jakarta.apache... url as an example in 
places where it should point to the user's files; confusing 
because in some cases it must be the jakarta url (like in the 
DOCTYPE) and in some cases not. A better example url for cases 
when it's a client file would be something like 
http://location/of/your/file or something.

I'm really not trying to complain, I just want to show maybe a 
different perspective on the supplied docs, and why I was 
looking for a newbie slant on the information. Just like it's 
hard for me to remember what it's like not to know HTML 
structure inside and out, it may be hard for those making the 
docs to realize what someone coming in with a Tomcat tabla rasa.

With best intentions and a desire to learn more,

Ken Martin


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




  1   2   3   4   5   6   7   8   >