Re: Why run multiple tomcats?

2000-11-03 Thread Rick Anderson

In my case I have two developers who are building applications. I can
understand that they would want to have their own tomcat instance.
However, I have four other users that are developing XML server pages.
They don't really need their own version of tomcat. It would be better if
Apache passed *.xml and *.xsl over to cocoon and tomcat from that users
public_html directory.

--Rick

__
Rick Anderson   | [EMAIL PROTECTED]
|_
Continuous Education & Outreach
Manager of Computer Systems,  (732)932-5071
__

On Fri, 3 Nov 2000, David Knaack wrote:

> From: "Rick Anderson" <[EMAIL PROTECTED]>
> > The documentation for Tomcat seems to recommend that for a multi developer
> > environment everyone run their own tomcat instance and each developer
> > having their own server.xml file.
> >
> > Isn't there an easier and cleaner way of doing this?
> 
> I'm currently running each of my sites with separate tomcats
> with their own separate server.xml files, and I thought it
> was actually a pretty clean way of doing it, particularly
> for development, as everybody essentially has their own server
> that they can use/crash/misconfigure without bothering anyone
> elses work.
> 
> DK
> 




Tomcat Ready for Prime Time?

2000-11-03 Thread Michael Duffy




How robust is Tomcat?  Can it really be used 
in a high stress production environment?
 
I know that Apache is very robust?  Is Tomcat 
on the same level?
 
Have there been any stress tests done on 
Tomcat?  Is there any independent performance data on Tomcat?
 
We are considering the WebLogic enterprise 
application server.  Can Tomcat be considered a true competitor of 
WebLogic?
 
Thank you for your time and 
consideration.


Help Required Urgently

2000-11-03 Thread Tony Jeyasekhar

I am using Linux Redhat 7.0 & already intalled Jdk1.3. I somehow managed to
override the Jdk1.1.7 which comes along with Redhat 7.0.

I wanted Java Servlet Support & so tried to install Apache JServ 1.1, but it
was looking for Jdk1.1.7.

So I then tried to install TomCat. Since Tomcat required Jaxp(Java XML
Parser), & Jakarta-Ant, I installed both of them successfully.

After that I have been trying to execute the build.sh file of Tomcat, but it
is giving me a warning that I need to use the deprecate option to compile
the files.

On observing closely the build.sh file, I found that it is referring to the
build.xml file.
I know deprecate is used to compile java files when some of the old methods
of java are used.

Since the class files are not created on compiling, the jar files are also
not getting created. These jar files are probably used by Tomcat...

Please let me know how to handle this case...


Regards,

Tony




Urgent Help Required on TomCat Installation

2000-11-03 Thread Tony Jeyasekhar

Hello...

I am using Linux Redhat 7.0 & already intalled Jdk1.3. I somehow managed to
override the Jdk1.1.7 which comes along with Redhat 7.0.

I wanted Java Servlet Support & so tried to install Apache JServ 1.1, but it
was looking for Jdk1.1.7. 

So I then tried to install TomCat. Since Tomcat required Jaxp(Java XML
Parser), & Jakarta-Ant, I installed both of them successfully.

After that I have been trying to execute the build.sh file of Tomcat, but it
is giving me a warning that I need to use the deprecate option to compile the
files. 

On observing closely the build.sh file, I found that it is referring to the
build.xml file.
I know deprecate is used to compile java files when some of the old methods of
java are used.

Since the class files are not created on compiling, the jar files are also not
getting created. These jar files are probably used by Tomcat...

Please let me know how to handle this case...


Regards,

Tony


Get free email and a permanent address at http://www.netaddress.com/?N=1



RE: servlet mappings???

2000-11-03 Thread Kenneth R . Kress

If you have everything correct, the re-direction should work
when you use port 8080, but fail on port 80 because Apache
doesn't know about the change. You can tell Apache in
either or two ways as described below:

Take a look at:

http://www.jguru.com/jguru/faq/view.jsp?EID=140877

for a solution using the Apache directive LocationMatch.

Another solution is to use the mount directive. E.g.,

ApJServMount /intranet/servlet /intranet
ApJServMount /intranet/jsp-bin /intranet

The equivalent Jk directive is 
JkMount /intranet/servlet/* ajp12
JkMount /intranet/jsp-bin/* ajp12

In the archives, search for the subject "Servlet configuration"
and read Jacob Kjome's informative postings.

Whether you use LocationMatch or the appropriate Mount directive
in your tomcat-apache.conf file, you *MUST* also modify your
context's web.xml file and add an URL-PATTERN (E.g., 
 /jsp-bin/* ).

Ken.

On Fri, 03 Nov 2000, you wrote:
> I've done the same thing my self. What you have below looks okay. Are you
> sure the servlet class name is right? Including package name and
> capitalization? Can you directly access the servlet? Do you have other
> mappings to /* or for the servlet? Even just:
> 
> 
>router
>/router
> 
> 
> If you have conflicting mappings, I believe only the first is followed. In
> your case, you can't have any other mappings for the servlet.
> 
> I tested my mappings using the example app that came with tomcat.
> 
> I used the mappping of the SnoopServlet:
> 
>
> 
> snoop
> 
> 
> SnoopServlet
> 
>
> 
> to map http://myhost:8080/snoop/reports/ to the snoop servlet
> 
>  
>   
>  snoop
>   
>   
>/reports/*
>
>
> 
> Also mapped the snoop servlet to *.xxx
> 
> 
> 
> snoop
> 
> 
>  *.xxx
> 
> 
> 
> -Original Message-
> From: Matt Goss [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 03, 2000 12:57 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: servlet mappings???
> 
> 
> Hi all,
> I'm attempting to map a controller servlet so that any requests go
> through it... (the MVC method).
> I have a context/application called test that is accessable via the URL
> "http://myhost.com/test/". In the web.xml file (in the
> "webapps/test/WEB-INF" directory) I put the following mapping:
> 
> router
> router
> 
> 
> router
> /*
> 
> 
> the idea is that I should be able to request the file test.jsp and have
> the router servlet pick up the request (to test for a login)...but the
> servlet never gets the request... the test.jsp page just comes right
> up gr...
> I'm requesting it with the URL "http://myhost.com/test/test.jsp".
> Any ideas/suggestions???
> Matt Goss
-- 
Kenneth R. Kress[EMAIL PROTECTED]



Re: shutdown.sh did NOT work - Tomcat3.1 & solaris 2.7

2000-11-03 Thread Duane Gran

I'm not sure if it is related, but I have seen this bahavior when the AJP
connector is commented out.  In other words, I had this same problem when
I was testing it in stand alone mode without the connector code enabled in
the server.xml file.

I hope this helps.

Duane Gran
spinweb.net

On Fri, 3 Nov 2000, Len, Peter wrote:

>Hello,
>
>I just installed Tomcat 3.1 on my solaris 2.7 machine.  I have set my
>TOMCAT_HOME and JAVA_HOME.  It started up fine but when I went to run
>shutdown.sh it did not shutdown the listener.  Everything seemed fine;
>it displayed the 'Using classpath...' message from tomcat.sh and then
>the typical 'Stop tomcat'.  There were no errors or any other sign that
>would indicate the listener (port 8080) did not shut down, but it was
>still running. I had to kill the process manually.  This has never
>happened on my Win98, NT, or solaris 2.6 platforms.
>
>Has anyone seen this behavior??
>
>Thanks,
>
>Peter Len
>
>
>




At last, Herbal V, the all natural alternative to V----A!

2000-11-03 Thread hv


Herbal V: An Incredible All-Natural Healthy Alternative 


  Herbal V is the All Natural Approach to Male Virility,
  Vitality and Pleasure.



Available N o w ! 


Welcome to the New Sexual Revolution.

It's the all natural male potency and pleasure pill that men 
everywhere are buzzing about. Herbal V is safe, natural and
specifically formulated to help support male sexual function
and pleasure. You just take two easy-to-swallow tablets
one hour before sex. And there's more great news - you can
get Herbal V for less than $1 a pill.

Amazing word of mouth praise on Herbal V has been spreading 
like wildfire-already over 1,500,000 men  have chosen
Herbal V. Since it is 100% natural you will never have
to worry about safety. Try doctor-recommended Herbal V
today and have the greatest night of your life!


Herbal V... Bringing Back the Magic!


1,585,000 men can't be wrong. To date over 1 million men 
have tried the super supplement Herbal V.
Here is why: 

No Doctor Visit Required 
Available Over the Counter 
Not a Drug 
100% Natural 
Safe, No Worries 
Highest Quality Pharmaceutical-Grade Pure Nutriceuticals 
Guaranteed Potency & Purity 

Be a Real Man Again!

Questions and Answers

What is Herbal V?

Herbal V is a proprietary blend that was specifically
developed as a safe alternative for men who prefer
an all-natural approach to address impotence and boost
sexual performance. This amazing formula first became
popular with Hollywood insiders and the wealthy elite.
They were maximizing their sex lives, long before it 
was available to the general public. 

How does Herbal V work?

Developed by a team whose goal was to create the perfect 
all-natural aphrodisiac. Herbal V is the result of that
remarkable effort. The Herbal V formula contains a precise
blend of cutting edge pro-sexual nutrients from around
the world that provide nutritional support, making it
possible for a man to have a pleasurable sexual experience. 

What can Herbal V do for me?

Herbal V helps support male sexual function and 
pleasure in a safe and natural manner. Simply put, 
it can make your sex life incredible. 

Is Herbal V Safe?

One of the great things about Herbal V is that it is
not a drug. It is an incredible herbal dietary supplement
that provides nutritional support for male sexual function
and pleasure. One of the most comforting features of
Herbal V is that you never have to worry about safety. 

Herbal V: Safe - Natural - Exciting

Many have speculated that because Herbal V is so
popular with men, it must contain prescription drugs
or chemical components. Herbal V does not contain any 
elements or traces of any prescription drug. Herbal V 
is made using the world's most technologically advanced
state-of-the-art cold processing equipment to ensure
maximum purity. Herbal V has been independently analyzed
by the nation's premier testing facility to ensure purity,
quality and to end the rumors that, because it is so
popular, it must somehow be chemical. It is not.
Herbal V is natural - just as it says on the label.
Herbal V is simply fantastic! 

Herbal V: Ingredients

Yohimbe, saw palmetto, avena sativa, androstenedione,
guarana, taurine, siberian ginseng, tribulus terrestris. 
Tribulus Terrestis is certified to enhanced testosterone
levels by increasing Luteinzing hormone (LH) levels. 
Androstenedione which is a precursor to testosterone
unlocks bound testosterone and makes it biologically
active again quickly. This means a dramatic surge in 
desire. Avena Sativa Stimulates the neurotransmitter 
pleasure centers to maximum capacity. This greatly
intensifies pleasure.

Just listen to what Herbal V has done for the sex lives
of people like you!

“On a scale of 1 to 10, it's a 15. Electrifying. It's like 
a wonder pill!” 
— Justin Q B., New Haven, Texas

“I haven't had sexual relations in 11 years. Then with 
Herbal V it was... wow! It works again!” 
— Sid R., Lakeland, Florida

“I had sex four times in one night. It made me feel
like a 19-year-old again.” 
— Chip S, Beech Mountain, North Carolina

“Herbal V has turned my husband into a Sexual Superman! 
I like the fact that it's all natural and has no
side effects. It's bringing back the good old days.” 
— Jennifer B, Beverly Hills, California 

The above testimonials are from product literature, 
and we have not independently verified them.
However, the following testimonial is from a "senior"
gentleman who has purchased his second bottle of
Herbal V. When we heard his words with our own ears,
we asked his permission to print them here. 

 “Man! I'm wild as I can be! I feel like I'm 25 years old again! 
I'm not believing this!” 
  — Mr. Murphy, age 64, Lampart, IL.



Risk Free: Double Your Money Back Guarantee

If Herbal V does not give the desired results as stated
above, simply return the unused portion for a
double-your money back refund. No questions asked ! 

Order Now: Safe, Fast, Secure, Private

Herbal V with its DOUBLE YOUR MONEY BACK GUARAN

shutdown.sh did NOT work - Tomcat3.1 & solaris 2.7

2000-11-03 Thread Len, Peter

Hello,

I just installed Tomcat 3.1 on my solaris 2.7 machine.  I have set my
TOMCAT_HOME and JAVA_HOME.  It started up fine but when I went to run
shutdown.sh it did not shutdown the listener.  Everything seemed fine;
it displayed the 'Using classpath...' message from tomcat.sh and then
the typical 'Stop tomcat'.  There were no errors or any other sign that
would indicate the listener (port 8080) did not shut down, but it was
still running. I had to kill the process manually.  This has never
happened on my Win98, NT, or solaris 2.6 platforms.

Has anyone seen this behavior??

Thanks,

Peter Len






ISAPI filters

2000-11-03 Thread Toby Piper

We are redistributing tomcat on Win NT and IIS and want to install the ISAPI
filter programmatically.

Has anyone done this and do you have some code you could share?

Thanks in advance,
Toby




Re: where is xml.jar

2000-11-03 Thread Arturo Gaona

On Fri, 03 Nov 2000, you wrote:
> does any body no where I can get the xml.jar that
> jakarta-tomcat needs for installation
> 
> __
> Do You Yahoo!?
> From homework help to love advice, Yahoo! Experts has your answer.
> http://experts.yahoo.com/

DON' T BE FOCKING!



Re: Why run multiple tomcats?

2000-11-03 Thread Jamie Krasnoo


Tomcat should never crash when a webapp misbehaves, it should just stop
the webapp from doing any harm in the first place, it should just report
an error and then move on. Tomcat documentation shows how to configure to
serve virtuals, although its a little vague. What I don't understand is
why can't you map an app directly to a directory instead of having it
mapped to a base directory and then putting everything within the proper
place i.e.: /mapped_dir/WEB-INF /mapped_dir/WEB-INF/classes etc. etc.

The docs never realy explain as to why this setup was chosen instead of
the old JServ way of just telling where the servlet is or should be.

Jamie

On Fri, 3 Nov 2000, Joe Emenaker wrote:

> > From: "Rick Anderson" <[EMAIL PROTECTED]>
> > > The documentation for Tomcat seems to recommend that for a multi
> developer
> > > environment everyone run their own tomcat instance and each developer
> > > having their own server.xml file.
> > >
> > > Isn't there an easier and cleaner way of doing this?
> >
> > I'm currently running each of my sites with separate tomcats
> > with their own separate server.xml files, and I thought it
> > was actually a pretty clean way of doing it, particularly
> > for development, as everybody essentially has their own server
> > that they can use/crash/misconfigure without bothering anyone
> > elses work.
> 
> Well, with each webapp getting it's own "/lib" and "/classes" directories
> and such (although this is part of the servlet 2.2 spec, so not unique to
> tomcat), tomcat has already gone a long way toward giving each development
> its own sandbox. About the only thing that I can think of off the top of my
> head that's still server-wide is the users/passwords. If tomcat could make
> that localizable, it seems that you'd only need to run one server. As far as
> users being able to crash the server without affecting anybody. tomcat
> itself should crash when a webapp misbehaves.
> 
> - Joe
> 




Re: redistributing Tomcat

2000-11-03 Thread Julio Serje (@canada.com)

You can freely distribute Apache Software Foundation software as long as you
follow the guidelines of the license... see:
http://www.apache.org/LICENSE.txt

Julio

- Original Message -
From: Ingo Luetkebohle <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 03, 2000 12:37 PM
Subject: redistributing Tomcat


> Hello,
>
> we intend to give give out Tomcat 3.1 along with a Servlet to make a
> complete package that people can try out instantly. The Servlet is
> Open Source.
>
> Are there any guidelines to be followed for this procedure? Specific
> ways in which we should mention Tomcat? General things to be
> displayed?
>
> Thanks for any hints/documentation!
>
> Regards
>
> --
> Ingo Luetkebohle / [EMAIL PROTECTED] / 95428014
>
> its easy to stop using Perl: I do it after every project
>
>




RE: where is xml.jar

2000-11-03 Thread Nacho

Hola Mohsen:

It seems you are using a old ant version or something like that, please
which versions of everything are you trying ? from your reading first
message it seems you have some problem with versions of libs on your
classpath.. 

Saludos ,
Ignacio J. Ortega


> -Mensaje original-
> De: Mohsen Emami-Nouri [mailto:[EMAIL PROTECTED]]
> Enviado el: sábado 4 de noviembre de 2000 0:07
> Para: [EMAIL PROTECTED]
> Asunto: where is xml.jar
> 
> 
> 
> does any body no where I can get the xml.jar that
> jakarta-tomcat needs for installation
> 
> __
> Do You Yahoo!?
> From homework help to love advice, Yahoo! Experts has your answer.
> http://experts.yahoo.com/
> 



Re: Tomcat ISAPI

2000-11-03 Thread Julio Serje (@canada.com)

Some other people have reported the same problem in this list, and a couple
of solutions have been posted. To save you time searching the archives:

- Be sure the first line of your page is an HTML tag (put  ...)  NOT a
JSP tag. The point is that lines with JSP tags appear in the output as empty
lines (CR LF) and  it seems that there is a bug in IIS when serving pages in
Chunk mode..

-If the first fails, be sure you are closing all JDBC objects, especially
connections, if you are not using a connection pool.

Julio


- Original Message -
From: Nosonowitz, Phil <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 03, 2000 3:07 PM
Subject: Tomcat ISAPI


> I have installed the Tomcat ISAPI and can successfully route jsp and
servlet
> requests to Tomcat. The problem I am experiencing is that the response
back
> to the browser never completes. All the page content is received (and is
in
> fact rendered) but the browser remains in a downloading state until it
> eventually times out. This happens with Netscape and IE.
> The same servlet or JSP returns without problems when I navigate directly
to
> Tomcat on port 8080.
>
> thanks in advance for any help
>




Re: Why run multiple tomcats?

2000-11-03 Thread David Knaack

From: "Joe Emenaker" <[EMAIL PROTECTED]>
> > I'm currently running each of my sites with separate tomcats
> > with their own separate server.xml files, and I thought it
> > was actually a pretty clean way of doing it,
>
> Well, with each webapp getting it's own "/lib" and "/classes" directories
> and such (although this is part of the servlet 2.2 spec, so not unique to
> tomcat), tomcat has already gone a long way toward giving each development
> its own sandbox.

Perhaps I'm just being paranoid :)  Since we are dealing
with separate virtual domains, I like to be able to shut
down/restart the tomcat for a domain if necessary without
having to disturb other domains.  For instance, if we were
replacing a WAR for one site, I believe it is necessary to
actually shut tomcat down (from what I've read anyway, I
haven't actually had to do that yet).

In a situation where there isn't a problem with bringing
tomcat down for some reason, I might prefer to just run
one, since the multiple java sessions do tend to gobble
up lots of memory.

DK




where is xml.jar

2000-11-03 Thread Mohsen Emami-Nouri


does any body no where I can get the xml.jar that
jakarta-tomcat needs for installation

__
Do You Yahoo!?
>From homework help to love advice, Yahoo! Experts has your answer.
http://experts.yahoo.com/



Tomcat3.1 & Solaris2.7 - shutdown.sh does NOT work?

2000-11-03 Thread Len, Peter

Hello,

I just installed Tomcat 3.1 on my solaris 2.7 machine.  I have set my
TOMCAT_HOME and JAVA_HOME.  It started up fine but when I went to run
shutdown.sh it did not shutdown the listener.  Everything seemed fine;
it displayed the 'Using classpath...' message from tomcat.sh and then
the typical 'Stop tomcat'.  There were no errors or any other sign that
would indicate the listener (port 8080) did not shut down, but it was
still running. I had to kill the process manually.  This has never
happened on my Win98, NT, or solaris 2.6 platforms.

Has anyone seen this behavior??

Thanks,

Peter Len




RE: servlet mappings???

2000-11-03 Thread Renee Petris

I've done the same thing my self. What you have below looks okay. Are you
sure the servlet class name is right? Including package name and
capitalization? Can you directly access the servlet? Do you have other
mappings to /* or for the servlet? Even just:


   router
   /router


If you have conflicting mappings, I believe only the first is followed. In
your case, you can't have any other mappings for the servlet.

I tested my mappings using the example app that came with tomcat.

I used the mappping of the SnoopServlet:

   

snoop


SnoopServlet

   

to map http://myhost:8080/snoop/reports/ to the snoop servlet

 

   snoop


 /reports/*
 
 

Also mapped the snoop servlet to *.xxx



snoop


   *.xxx
  


-Original Message-
From: Matt Goss [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 03, 2000 12:57 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: servlet mappings???


Hi all,
I'm attempting to map a controller servlet so that any requests go
through it... (the MVC method).
I have a context/application called test that is accessable via the URL
"http://myhost.com/test/". In the web.xml file (in the
"webapps/test/WEB-INF" directory) I put the following mapping:

router
router


router
/*


the idea is that I should be able to request the file test.jsp and have
the router servlet pick up the request (to test for a login)...but the
servlet never gets the request... the test.jsp page just comes right
up gr...
I'm requesting it with the URL "http://myhost.com/test/test.jsp".
Any ideas/suggestions???
Matt Goss



Re: servlet mappings???

2000-11-03 Thread Kurt Bernhard Pruenner

Matt Goss wrote:
> 
> router
> /*
> 
> 
> the idea is that I should be able to request the file test.jsp and have
> the router servlet pick up the request (to test for a login)...but the
> servlet never gets the request... the test.jsp page just comes right
> up gr...

I had a similar problem - you might want to try the following:


router
/


AFAIK that's how you do it according to the servlet spec... IIRC using the
postfix "/*" only works on paths below root, i.e. "/somedir/*"...

-- 
Kurt Pruenner - Haendelstrasse 17, 4020 Linz, Austria | Briareos at Olymp BBS:
http://www.mp3.com/Leak http://www.ssw.uni-linz.ac.at | ssh [EMAIL PROTECTED]
...It might be written "Mindfuck", but it's spelt "L-A-I-N"...
np: Burnt Friedman & The Nu Dub Players - I Shot The Fashion Victim 
(Just Landed)



Re: Why run multiple tomcats?

2000-11-03 Thread Joe Emenaker

> From: "Rick Anderson" <[EMAIL PROTECTED]>
> > The documentation for Tomcat seems to recommend that for a multi
developer
> > environment everyone run their own tomcat instance and each developer
> > having their own server.xml file.
> >
> > Isn't there an easier and cleaner way of doing this?
>
> I'm currently running each of my sites with separate tomcats
> with their own separate server.xml files, and I thought it
> was actually a pretty clean way of doing it, particularly
> for development, as everybody essentially has their own server
> that they can use/crash/misconfigure without bothering anyone
> elses work.

Well, with each webapp getting it's own "/lib" and "/classes" directories
and such (although this is part of the servlet 2.2 spec, so not unique to
tomcat), tomcat has already gone a long way toward giving each development
its own sandbox. About the only thing that I can think of off the top of my
head that's still server-wide is the users/passwords. If tomcat could make
that localizable, it seems that you'd only need to run one server. As far as
users being able to crash the server without affecting anybody. tomcat
itself should crash when a webapp misbehaves.

- Joe




Maximum Memory Issues

2000-11-03 Thread Ed Gomolka

A few days ago, I posted an e-mail about the Java maximum memory
heap size.
(We have a client in the happy situation of having 4 Gigs on their servers,
and they
were frustrated about not being able to specify more than 2 Gigs in the -Xmx
option.
I got some good advice from the mailing list about how to set up multiple
instances of Tomcat.)

Now the client has further informed me that when they provide a maximum heap
value of more than 700 Megs,
Tomcat is unstable, and invariably crashes after a while.
They are running Tomcat 3.2b2 on a Sun Sparc machine using Solaris 7 (I
don't remember the machine model
number but they've only had it for a month, and it's one of the biggest
machines you can get).
They actually have more than one machine of this type (4, I believe), all of
which are exactly the
same.
The client is in another city, and therefore the communication is sometimes
a bit spotty, so I don't have more
detailed info on the nature of the crashes, but it seems to vary.
Unfortunately, our test machines
here only have 512 Megs of memory, so I can't duplicate the situation
either.

My question is:
Has anyone else experienced this?
Does anyone have an idea why this should be an issue?
Also, does anyone know of any stability/performance issues that were
resolved between 3.2b2 and 3.2b6?

If need be, I suppose that we could just have more Tomcat instances, but it
seems to me that this
shouldn't be necessary.
This site only has one servlet at the moment, but we have to have a servlet
to facilitate
our applet/server communication, and we anticipate very heavy site usage.
We're already getting
thousands of hits a day, and the client hasn't even started advertising.
We are keeping the memory below 700 Megs, but we have had the servers go
down a
couple of times already (I'm waiting to receive a Tomcat log file while I'm
writing this note).

I feel that in terms of performance tuning, we haven't even scratched the
surface, but I nevertheless
get a bit nervous when I hear about servers going down.

Despite the heavy traffic, the servlet usage is relatively light. A user may
stay on the site for
10-15 minutes, but they only need to access one servlet, at the end of their
session. This is done in order
to transmit data from an applet to the server, which can take about 20
seconds, but may take longer
because if the servers are occupied, they will be queued up behind other
users.
Due to this setup, we figured that we could get away with using Tomcat as
opposed to some other,
more industrial strength, servlet engine.
(Also, I'm a fan of open source, and I personally like the idea of using
something like Tomcat.)

This is probably all a bit vague, but if anyone has any suggestions or
opinions on what I
should be looking at to resolve this, I'd appreciate them.

Thanks in advance.

Ed
--
Ed Gomolka
([EMAIL PROTECTED])




where is xml.jar

2000-11-03 Thread Mohsen Emami-Nouri

I am trying to insatl  jakarta-tomcat, jakarta-ant is
already installed, as instructed in the same directory
where  jakarta-tomcat . When calling build.sh this is
the result:


Searching for build.xml ...
Buildfile: /home/memami/local/jakarta-tomcat/build.xml
 
init:
 
prepare:
  [copydir] DEPRECATED - The copydir task is
deprecated.  Use copy instead.
  [copydir] DEPRECATED - The copydir task is
deprecated.  Use copy instead.
  [copydir] DEPRECATED - The copydir task is
deprecated.  Use copy instead.
 [copyfile] DEPRECATED - The copyfile task is
deprecated.  Use copy instead.
  [copydir] DEPRECATED - The copydir task is
deprecated.  Use copy instead.
  [copydir] DEPRECATED - The copydir task is
deprecated.  Use copy instead.
 [copyfile] DEPRECATED - The copyfile task is
deprecated.  Use copy instead.
 
BUILD FAILED
 
/home/memami/local/jakarta-tomcat/build.xml:39: src
/home/memami/local/jakarta-ant/lib/xml.jar does not
exist.


appriciate your help

__
Do You Yahoo!?
>From homework help to love advice, Yahoo! Experts has your answer.
http://experts.yahoo.com/



and the fix to my data from servlet to jsp problem was...

2000-11-03 Thread Harding, David

drum roll please


nested double quotes.


BAD

"/>



GOOD




thanks all those who helped



cheers



Tomcat ISAP

2000-11-03 Thread Phil Nosnowitz

I have installed the Tomcat ISAPI and can successfully route jsp and
servlet requests to Tomcat. The problem I am experiencing is that the
response back to the browser never completes. All the page content is
received (and is in fact rendered) but the browser remains in a
downloading state until it eventually times out. This happens with
Netscape and IE.
The same servlet or JSP returns without problems when I navigate
directly to Tomcat on port 8080.

thanks in advance for any help




servlet mappings???

2000-11-03 Thread Matt Goss

Hi all,
I'm attempting to map a controller servlet so that any requests go
through it... (the MVC method).
I have a context/application called test that is accessable via the URL
"http://myhost.com/test/". In the web.xml file (in the
"webapps/test/WEB-INF" directory) I put the following mapping:

router
router


router
/*


the idea is that I should be able to request the file test.jsp and have
the router servlet pick up the request (to test for a login)...but the
servlet never gets the request... the test.jsp page just comes right
up gr...
I'm requesting it with the URL "http://myhost.com/test/test.jsp".
Any ideas/suggestions???
Matt Goss


begin:vcard 
n:Goss;Matt
tel;fax:919-657-1501
tel;work:919-657-1432
x-mozilla-html:FALSE
url:www.rtci.com
org:RTCI;Custom Solutions
adr:;;201 Shannon Oaks Circle;Cary;NC;27511;US
version:2.1
email;internet:[EMAIL PROTECTED]
title:Web Developer
fn:Matt
end:vcard



RE: including files from JSPs (Better Way To Handle Errors?)

2000-11-03 Thread Craig Anderson

Juan,
 
If you are trying to include an error page everytime that there is an
error there are much better ways to do it. The way I handle error is to
create a jsp something like this...
 
"/ehandling/index.jsp"
 
<%@ page import="com.netstat.util.*" isErrorPage="true" %>



  Stallion Leather - World class quality exceeding customer
expectations.
 
<%@ include file="../includes/pagetop.jsp" %>
<%
 
/* Print the data to the users screen. */
%>
 

 
  There was an error:
  
  <%= exception %>
 

 
<% /* Print the bottom of the page. */ %>
<%@ include file="../includes/pagebot.jsp" %>

 
That is just a very simple error page. Then I have all other jsps in the
project declare there page attribute like this... <%@ page
import="com.netstat.util.*" errorPage="/ehandling/index.jsp" %>
This setup uses jsps built in error handling. This way if a page throws an
error you did not expect or code for the user still gets a nice looking
error page with a message they can report. Also, now instead of including an
error file everytime I look for error I can just do something like this.
 
try {
do some code
} catch (Exception e) {
throw new Exception("There was an error of some kind."
+ "Additional Information: " + e.getMessage());
}
 
This has worked very well for me and it allows me to changed the look of my
error messages in one place and also reduces the amount of code in each
individual jsp by a significant amount.
 
Craig Anderson
Director of Internet Services
Netstat Resources, LLC.
http://www.netstatresources.com

-Original Message-
From: Juan Esteban [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 01, 2000 10:01 AM
To: [EMAIL PROTECTED]
Subject: including files from JSPs



There all, 

I'm train to include same kind of error message in some place from JSP
pages. 
This message is placed into another file named errormessage.jsp. 
I do not have any problem when I include this file once, using: 

<%@ include file="errormessage.jsp" %> 

but since this message is a generic error message, some times I have to
include 
it more than one time in the same JSP page, and here is when I get an
compiling error 
from tomcat that say: 
org.apache.jasper.compiler.ParseException: Seen file \errormessage.jsp
already, maybe this is a recursive include?! 
It is possible to include the same file more than one time in the same page?


Thank! 
Juan 




Bug in mod_jk using AJP13 when passing Auth header to JDBCRealm ?

2000-11-03 Thread raimee


code snip: SecurityTools.java

start 
  public static void basicCredentials( Request req, Hashtable credentials )
{
 Context ctx=req.getContext();

 String authMethod=ctx.getAuthMethod();
 if( authMethod==null || "BASIC".equals(authMethod) ) {

 String authorization = req.getHeader("Authorization");

 if (authorization == null )
  return; // no credentials
 if( ! authorization.startsWith("Basic "))
  return; // wrong syntax

end  

String authorization = req.geHeader("Authorization") returns null.


System
Apache 1.3.14 using mod_jk and AJP13
Tomcat 3.1b6
WinNT 4.0

When I change the worker to AJP12 all works fine. Is there a fix available
for this?





Tomcat Log Files Not Displaying Date

2000-11-03 Thread Annie Mignault

Hi,

I have checked the mailing-list messages of the past couple of months and I
found some possible solutions to my problem but not quite the one I was
looking for or the one that would work in my environment...

I get the following output in my servlet.log file:

Context log path="/afc1" :tomcat.errorPage: init
Context log path="/afc1" :default: init
...

and I would rather like to see something like:

2000-11-03 11:12:13 - path="/afc1" :tomcat.errorPage: init
2000-11-03 11:12:13 - path="/afc1" :default: init
2000-11-03 11:12:13 - ...

I would like to have the date displayed.  I read the "Disappointment Saga"
and I have tried some of what was suggested as I am running Tomcat 3.1 and
the suggestions were for Tomcat 3.2 Beta 4.

Here is the logger section of my server.xml file:





I have noticed that changes made to the verbosityLevel are being applied to
the jasper.log file but not to the tomcat.log and servlet.log files.

What else has an impact on the way Tomcat writes to log?  What could be the
cause of my problem?  Is it a limitation of Tomcat 3.1?

Thank you in advance for your help!

Annie



Tomcat ISAPI

2000-11-03 Thread Nosonowitz, Phil

I have installed the Tomcat ISAPI and can successfully route jsp and servlet
requests to Tomcat. The problem I am experiencing is that the response back
to the browser never completes. All the page content is received (and is in
fact rendered) but the browser remains in a downloading state until it
eventually times out. This happens with Netscape and IE.
The same servlet or JSP returns without problems when I navigate directly to
Tomcat on port 8080.

thanks in advance for any help



Tomcat ISAPI

2000-11-03 Thread Nosonowitz, Phil

I have installed the Tomcat ISAPI and can successfully route jsp and servlet
requests to Tomcat. The problem I am experiencing is that the response back
to the browser never completes. All the page content is received (and is in
fact rendered) but the browser remains in a downloading state until it
eventually times out. This happens with Netscape and IE.
The same servlet or JSP returns without problems when I navigate directly to
Tomcat on port 8080.

thanks in advance for any help



Bug in mod_jk using AJP13 when passing Auth header to JDBCRealm ?

2000-11-03 Thread raimee




code snip: SecurityTools.java

start 
  public static void basicCredentials( Request req, Hashtable credentials )
{
 Context ctx=req.getContext();

 String authMethod=ctx.getAuthMethod();
 if( authMethod==null || "BASIC".equals(authMethod) ) {

 String authorization = req.getHeader("Authorization");

 if (authorization == null )
  return; // no credentials
 if( ! authorization.startsWith("Basic "))
  return; // wrong syntax

end  

String authorization = req.geHeader("Authorization") returns null.


System
Apache 1.3.14 using mod_jk and AJP13
Tomcat 3.1b6
WinNT 4.0

When I change the worker to AJP12 all works fine. Is there a fix available
for this?


Regards,

Raimee Stevens
DB2 UDB NLV Team - IBM Toronto Lab

Email: [EMAIL PROTECTED]   VM: RAIMEE@TOROLAB2
Phone: (416)448-3706   T/L 778-3706  Fax: (416)448-4414





Re: Why run multiple tomcats?

2000-11-03 Thread David Knaack

From: "Rick Anderson" <[EMAIL PROTECTED]>
> The documentation for Tomcat seems to recommend that for a multi developer
> environment everyone run their own tomcat instance and each developer
> having their own server.xml file.
>
> Isn't there an easier and cleaner way of doing this?

I'm currently running each of my sites with separate tomcats
with their own separate server.xml files, and I thought it
was actually a pretty clean way of doing it, particularly
for development, as everybody essentially has their own server
that they can use/crash/misconfigure without bothering anyone
elses work.

DK




AddHandler default directory for .jsp

2000-11-03 Thread Brown, Lawrence M.

Hi,

   I'm trying to access JSP files in the document root for Virtual Host
(http://hostame/*.jsp) and have 
decided that the jserv-servlet handler wants to map .jsp file to the same
real directory regardless of 
Virtual Hosts when accessing the root directory.  Any fix.

  Tomcat 3.1
  JDK 1.3
  Linux 7.0
  Apache 1.3.12

Specifically, I've created two Virtual Hosts in tomcat.conf which is linked
from apache.conf


  AddType text/jsp .jsp
  AddHandler jserv-servlet .jsp
  ApJServMount default /production
  ApJServMount /production /production
  ApJServMount /servlet /production
  DocumentRoot /usr/jakarta-tomcat/webapps/production



  AddType text/jsp .jsp
  AddHandler jserv-servlet .jsp
  ApJServMount default /developer
  ApJServMount /developer /developer
  ApJServMount /servlet /developer
  DocumentRoot /usr/jakarta-tomcat/webapps/developer


And have added Contexts to server.xml


   
   

  
   
   

Accessing a Greetings.jsp file for each Virtual Host with the 
a directory specified works fine.

http://www.host.com:8080/production/Greetings.jsp
http://www.host.com/developer/Greetings.jsp

Now if I try without directories

http://www.host.com:8080/Greetings.jsp
http://www.host.com/Greetings.jsp

I get the following error:

# telnet www.host.com 80
Trying www.host.com...
Connected to www.host.com.
Escape character is '^]'.
GET /Greetings.jsp HTTP/1.0

HANDLER THREAD PROBLEM: java.lang.NullPointerException
java.lang.NullPointerException
at
org.apache.tomcat.core.ContextManager.handleError(ContextManager.java:644)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:566)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:156)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
at java.lang.Thread.run(Thread.java:484)

This is of course, because of have no context path="". 

If I modify server.xml to add in a path="", as in


  

Then,

http://www.host.com/Greetings.jsp
http://www.host.com:8080/Greetings.jsp

both work, but go to the same jsp file under webapps/production.

My conclusion is that the jserv-servlet handler 
doesn't understand where to look for JSP files in the
DocumentRoot (http://hostname/*.jsp) when using Virtual Hosts.

Is there a work around (configuration problem on my part)
or is this a real problem in Tomcat 3.1.

Thanks,
Larry





RE: Tomcat 4.0 m3, 4 sealing violation

2000-11-03 Thread Willie Wheeler

Hi Craig,

I understand that there is nothing in the short run that can be done about
the sealing violation problem for webapps requiring JSP that use parsers
noncompliant with JAXP 1.1, but from your response I'm inferring that the
issue of how properly to handle this in the long run is still up for
discussion.  I would think that Tomcat shouldn't limit the non-servlet
libraries (e.g., XML libraries) that webapps can use by putting sealed
packages in the way.  That way, JSP-based apps using older XML parsers (and
I'm sure that there are plenty of apps in this category) can migrate to
Tomcat 4.0.  Something along the lines you suggested--namely, giving Jasper
its own private classloader, or at least making it an option to load
crimson.jar with a private classloader--seems quite reasonable.  Even if it
is not a trivial amount of work, it would be better for Tomcat to assume its
burden than to push it onto app developers, thus making migration hard or
impossible.

Willie




-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 02, 2000 4:03 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat 4.0 m3, 4 sealing violation


Willie Wheeler wrote:

> Hi all,
>
> I get package sealing violations when I run my web app on Tomcat
4.0 m3 and
> m4.  I never got these with previous releases, and it looks to me as if
the
> cause is the addition of the sealed crimson.jar JAR file to the library.
> Problem is that my app uses JDOM b4, which is using Xerces 1.1.2, and
Xerces
> contains a bunch of JAXP/DOM/SAX classes that also appear in crimson.jar
> (hence the sealing violation).
> Does anybody have any advice on how best to handle this situation?
I guess
> that one way is to remove the duplicate classes from either crimson.jar or
> xerces_1_1_2.jar, but that seems less than ideal, and could easily lead to
> breakage.  Maybe some solution involving loading the JARs with different
> class loaders?
>
> Thanks,
> Willie

Welcome to the wonderful world of classloaders :-).

You're correct -- trying to remove classes from one or the other of the JAR
files is
not going to work at all.  Each library will be depending on its own
internal
implementation of those classes.

The crimson.jar file is placed in $CATALINA_HOME/lib (and therefore visible
to web
apps) because Jasper needs a JAXP-1.1 compatible parser.  It would be
technically
feasible for Jasper to load its own XML parser in a private classloader, but
this is
not a trivial amount of work.  Once Xerces is upgraded to JAXP-1.1
compatibility you
will simply be able to use Xerces instead (and thus not have these
conflicts).

If your app does not need JSP, you could simply remove crimson.jar from
$CATALINA_HOME/lib (you will want to comment out the JSP servlet in
$CATALINA_HOME/conf/web.xml as well).  If you do, I'm afraid there isn't
much that can
be done in the short run until all the parsers catch back up with JAXP
compatibility
again.

Craig McClanahan






redistributing Tomcat

2000-11-03 Thread Ingo Luetkebohle

Hello,

we intend to give give out Tomcat 3.1 along with a Servlet to make a
complete package that people can try out instantly. The Servlet is
Open Source.

Are there any guidelines to be followed for this procedure? Specific
ways in which we should mention Tomcat? General things to be
displayed?

Thanks for any hints/documentation!

Regards

-- 
Ingo Luetkebohle / [EMAIL PROTECTED] / 95428014

its easy to stop using Perl: I do it after every project




Sticky sessions (again)

2000-11-03 Thread Alain Origlia



Hi,
 
I'd like to know if somebody has succeeded 
in having Tomcat running with sticky sessions in standalone mode or with an 
external web server (other than Apache)?! 
Searches on some mailing lists make me 
think that some code must be changed or added. My application already uses 
cookies and it seems to be a problem, am 
I wrong?
Is there a patch somewhere? Or summed up 
information about sticky sessions? 
 
Last nightly builds don't fix the problem 
and my sessions are still unsticky :o(
Please help!!! Thanks for 
answers...
 
Alain Origlia
 
CALENDRA135, rue du DirigeableZI 
Les Paluds13783 AUBAGNE CedexTel: +33 (0)4 42 18 69 90http://www.calendra.com
 
 


Re: Trouble with taglib

2000-11-03 Thread Kurt Post

If you are running on a win32 platform with Tomcat 3.2b6 you might be suffering
from the same problem I found yesterday when I grabbed 3.2b6.  The problem is
caused by the goofy way win32 handles upper/lower case in file names.  To fix
the problem edit src\share\org\apache\tomcat\util\FileUtil.java starting at
line 197:

 if (!realPath.equalsIgnoreCase(canPath)){
int ls=realPath.lastIndexOf('\\');
if ( (ls > 0) && !realPath.substring(0,ls).equals(canPath) )
  return null;
 }

Change the realPath.equals(canPath) to realPath.equalsIgnoreCase(canPath).
There was even a comment on line 196 which mentions checking ignore case on
windows.

Once I made this mod, everything worked great.  I'm not at all sure this is the
"right" way to fix the problem but it does seem to work.

Kurt


[EMAIL PROTECTED] wrote:

> Hi all.
>
> I hope there are someone that can help mem because i'm becoming crazy 
> I'm trying to use a taglib that i have developed with Tomcat 3.1, but the
> only answer i have from the container is this:
>
> Error: 500
> Location: /servizi/prova.jsp
> Internal Servlet Error:
>
> org.apache.jasper.JasperException: Unable to open taglibrary
> http://www.comuneweb.it/taglibs/infrastruttura-1.0 : Parse Error in the tag
> library descriptor: com.sun.xml.parser/V-037 web-app
>
> I have inserted on "web.xml" file this line:
> 
>
> http://www.comuneweb.it/taglibs/infrastruttura-1.0
> /WEB-INF/tlds/comuneweb.tld
> 
>
> And the "comuneweb.tld" file look like this:
>
> 
> 1.0
> 1.1
> prova
> http://www.comuneweb.it/taglibs/infrastruttura-1.0
> 
> Libreria di tag usati da ComuneWeb
> 
> 
> prova
> Infrastruttura.Tag.Prova
> empty
> 
> Tag di prova
> 
> 
> 
>
> Can any one help me ? please :)
> Thanks.bye




Win2000 install problem

2000-11-03 Thread Leon Palermo



Hello All,
 
I am having a problem installing tomcat 3.2.6 on 
Win2000.  I get an error message which states there is no class 
definition found for the org.apache.tomcat.startup.Tomcat file.  I tried to 
compile the class manually and put the file in 
$TOMCAT/classes/org/apache/tomcat/start/Tomcat.class; but the same error 
occurred.  I checked the CLASSPATH and it seems that tomcat.bat is 
correctly setting the CLASSPATH including $TOMCAT/classes and 
$TOMCAT/lib/jasper.jar, $TOMCAT/lib/webserver.jar, etc.  Does anyone have 
any ideas?
 
Thanks in advance!
 
Leon


Re: Why run multiple tomcats?

2000-11-03 Thread B. Duffee

Yes, I'd like to second that emotion.  

I've been lurking again trying to figure out how to deploy JSP/servlets in a 
teaching environment, alongside our webpages and cgi scripts.  From the docs, it 
looks like you need to specify _each_ application in the config files to get it 
to run.  Have I got the wrong end of the stick?
---
Boyd Duffee Keele University Computer Science (01782) 583437 
Computing Officer   
The museum is closing in 5 minutes.http://www.nhm.ac.uk/ 
Please stop learning and place your brain in neutral.




Re: Tomcat-apache.conf contains backslashes, not forward slashes ?

2000-11-03 Thread Guy Payne

Check in tomcat/conf/workers.properties - There are several path you should
modify plus there is some configuration that looks like this:

#
# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
#ps=\
 ps=/

uncomment the one for your system.

Hope this helps.
Guy


- Original Message -
From: "Sandor Spruit" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 03, 2000 7:06 AM
Subject: Tomcat-apache.conf contains backslashes, not forward slashes ?


>
> Folks,
>
> Could anyone confirm that the tomcat-apache.conf file, as generated by
> Tomcat, contains backslashes for directory names ? The 3.2 development
> tree seems to suggest this is being worked on. For now, I'm afraid
> I'll have to manually change this on each Tomcat startup. True ?
>
> I was just happy I understood the configuration issues for 3.1, so I
> hoped I could stick with 3.1 for a while. But when I have to edit the
> Apache configuration on each startup during testing, well ... ;)
>
> Cheers,
> Sandor
>
> --
> ir A.G.L. Spruit, Utrecht University, the Netherlands
> Institute of information and computing sciences
> "There is a bit of magic in everything, and then some
> loss to even things out" (from: Lou Reed, "Magic and Loss")
>




Re: jk_nt_service.exe

2000-11-03 Thread Dominique BATARD

An error in tomcat.conf or tomcat-apache.conf or server.xml

- Original Message - 
From: "Jaco Roux" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 03, 2000 2:33 PM
Subject: jk_nt_service.exe


I get this error when trying to start tomcat as a service using
jk_nt_service.exe:
 
Cloud you please respond to asap.
 
Error 2140:An internal Windows NT error occurred
 





Why run multiple tomcats?

2000-11-03 Thread Rick Anderson


The documentation for Tomcat seems to recommend that for a multi developer
environment everyone run their own tomcat instance and each developer
having their own server.xml file.

Isn't there an easier and cleaner way of doing this?

I'm using mod_jk to hook Tomcat into Apache. Shouldn't it be possible to
set each developer as a worker in worker.properties file?


Thanks for your time,
--Rick Anderson

__
Rick Anderson   | [EMAIL PROTECTED]
|_
Continuous Education & Outreach
Manager of Computer Systems,  (732)932-5071
__




AW: Request for clarification - I.E. Tomcat mod_jk installed in Apache

2000-11-03 Thread Ralph Einfeldt

If you would serve your static content by apache
and call your dynamic pages directly from tomcat
you have to think about the following:
An uncomplete braindump of mine:

- You loose the common access.log for all requests
- You would rely on tomcat as a HTTP server
  and the HTTP implementation is possibly not as
  stable as apaches.
- Some clients of your server may not even get
  your dynamic content, because some sysadmins block
  HTTP Request from non standard ports in their 
  firewalls
- apache has some features that are not available for 
  tomcat standalone (mod_rewrite, virtual hosting)
- I think it is not a good policy to put the port number
  in the pages. So you have to implement something to deal
  with this.
- You have two dedicated servers with their own
  administration.

> -Ursprüngliche Nachricht-
> Von: John Bateman [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 2. November 2000 20:34
> An: Tomcat-User (E-mail)
> Betreff: Request for clarification - I.E. Tomcat mod_jk installed in
> Apache

> Why would I need to put the module 'inside' apache, if I'm 
> required to run Tomcat as a process AND access my servlets 
> on another port? Can I not just run it all off Tomcat 
> standalone? I understand that Apache is more 'configurable' 
> and handles static content better, but, I don't understand
> why I would add Tomcat into apache if I just access the same 
> URL as I would if it was stand alone. Could I not get the 
> same results leaving NOTHING extra inside Apache and 
> referencing my Servlet files on the  8080 port (as
> tomcat stand alone)?




RE: SessionContext.log(...) Where does the path in the output come fr om?

2000-11-03 Thread Stubenrauch,Andreas

This is the name of the context your app is running in. As defined in
server.xml
As I can tell from the output your are currently using the root context.

Regards,
Andreas

> -Original Message-
> From: Kurt, Oliver [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 01, 2000 8:01 AM
> To: '[EMAIL PROTECTED]'
> Subject: SessionContext.log(...) Where does the path in the 
> output come
> fr om?
> 
> 
> Hi all,
> 
> when using the log method from SessionContext(), the written 
> output looks
> like the follwing:
> 
> Context log path="" : 
> 
> 
> What is that "Context log path" thing? When I'm using 
> log("...") the context
> log path is always empty.
> 
> What is the meaning of the path and how can I set it?
> 
> Regards
> Oliver Kurt
> 



Tomcat-apache.conf contains backslashes, not forward slashes ?

2000-11-03 Thread Sandor Spruit


Folks,

Could anyone confirm that the tomcat-apache.conf file, as generated by
Tomcat, contains backslashes for directory names ? The 3.2 development
tree seems to suggest this is being worked on. For now, I'm afraid
I'll have to manually change this on each Tomcat startup. True ?

I was just happy I understood the configuration issues for 3.1, so I
hoped I could stick with 3.1 for a while. But when I have to edit the
Apache configuration on each startup during testing, well ... ;)

Cheers,
Sandor

-- 
ir A.G.L. Spruit, Utrecht University, the Netherlands
Institute of information and computing sciences
"There is a bit of magic in everything, and then some
loss to even things out" (from: Lou Reed, "Magic and Loss")





Apjv13 garbling headers

2000-11-03 Thread John Bodenstein


I noticed a strange problem with a Apache/Tomcat configuration communicating
via mod_jk/apjv13. The HTTP "Authorization:"-Header, which my servlet
desperately needs, doesn't show up on the Tomcat side. If I dump all headers
that reach my servlet, I instead have
"accept-language: Basic ...". So apjv13 seems to translate "Authorization:"
into "accept-language:" ???

I changed the configuration from apjv13 to apjv12 without doing anything
else, and it's working fine now. Thought I'd just mention the fact, maybe
someone else has noticed something like this? Is this a mod_jk or Apache
bug?



John Bodenstein
contecto GmbH  +  Adenauerallee 18-22  +  53113 Bonn
Tel 0 22 8 / 9 21 28 62  +  Fax 0 22 8 / 9 21 28 65





RE: [tomcat-user] Re: Request for clarification - I.E. Tomcat mod_jkinstalled in Apache

2000-11-03 Thread John Bateman

Hi

I seem to be having a problem with the documents. I've read the mod_jk HOW
TO, Tomcat UG and the workers.properties Document.

I seem to be under the understanding that I DO have Tomcat configured to
talk to apache, it just may not be doing it very well. :)

I've added the following lines in httpd.conf

# Tomcat module
LoadModule jk_modulemodules/mod_jk.so

# Tomcat module
AddModule mod_jk.c

and finally

Include /usr/local/tomcat/conf/mod_jk.conf-aut

I've checked the configuraton file (mod_jk.conf-auto)

#
# The following line instructs Apache to load the jk module
#
LoadModule jk_module libexec/mod_jk.so

JkWorkersFile /usr/local/tomcat/conf/workers.properties
JkLogFile /var/log/httpd/apache-tomcat.log

#
# Log level to be used by mod_jk
#
JkLogLevel error

Plus, I've got the /Servlets context installed in the above file also.

#
# Auto configuration for the /Servlets context starts.
#

#
# The following line makes apache aware of the location of the /Servlets
context
#
Alias /Servlets "/home/john/public_html/Servlets"

Options Indexes FollowSymLinks


#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /Servlets/servlet/* ajp12
JkMount /Servlets/*.jsp ajp12

#
# The following line prohibits users from directly accessing WEB-INF
#

AllowOverride None
deny from all


#
# The following line prohibits users from directly accessing META-INF
#

AllowOverride None
deny from all


###
# Auto configuration for the /Servlets context ends.
###

Am I potentially missing something here?

Oh yeah, I restarted BOTH apache and tomcat after the install/configuration
with Tomcat starting up first as instructed. After all this I I get the
aforementioned problems.

I also have support/references in the server.xml file for both the Apache
apjv12 (on port 8007) and apjv13 (on port 8009) protocols.

I also was hoping that the 'talking' between Apache and Tomcat would be
seamless maybe this is just not possible with it's current implementation?

Thank you very much for your response.


> -Original Message-
> From: kenneth topp [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 02, 2000 6:01 PM
> To: John Bateman
> Cc: Tomcat-User (E-mail)
> Subject: [tomcat-user] Re: Request for clarification - I.E. Tomcat
> mod_jkinstalled in Apache
>
>
>
> You haven't configured apache to talk to tomcat.
>




jk_nt_service.exe

2000-11-03 Thread Jaco Roux

I get this error when trying to start tomcat as a service using
jk_nt_service.exe:
 
Cloud you please respond to asap.
 
Error 2140:An internal Windows NT error occurred
 



RE: [jBoss-User] Naming exception in standalone Tomcat

2000-11-03 Thread Chris Francis


FWIW I run EJB's from an Oracle Application server
and Tomcat in the middle. I have encountered exactly the same exceptions
and they have always turned out to be because Tomcat has failed
to load various jar files such as jndi.jar or whatever. Try 
putting these in TOMCAT_HOME/lib or on a global classpath.
You could even try extracting it! 

Chris.  


-Original Message-
From: Aaron Mulder [mailto:[EMAIL PROTECTED]]
Sent: 02 November 2000 21:35
To: jBoss
Cc: [EMAIL PROTECTED]
Subject: Re: [jBoss-User] Naming exception in standalone Tomcat


This is something that used to work and seems to have stopped
working.  It's not clear whether it was a Tomcat change or a jBoss change
that caused the problem, but we are aware of it.  As a workaround, you can
manually load the jndi.properties file into a properties object or the
system properties.  Also, the new embedded tomcat service should solve
that problem if you're running the two products in the same VM, but the
directions for that are not yet in the manual.
For the benefit of the Tomcat folks, I think the JNDI code uses
getResources to look for jndi.properties, which is not implemented in
AdaptiveClassLoader, but I'm pretty sketchy on that, and I don't know why
it would have worked before (unless this was caused by one of the Linux
JDK 1.3 updates?).  Unfortunately the JNDI code is pretty grim.

Aaron

On Thu, 2 Nov 2000, Alexander Kogan wrote:
> Hello,
> 
> Sorry for raising this topic again, but I just
> want to clear up this.
> 
> I'm running jboss BETA-PROD-03 and Tomcat 3.2 beta6
> completely separately (no integration at all!) under JDK 1.3
> 
> The following problem appears when I following the
> recommendation
> from jboss "Manual":
> 
> M> jBoss Libraries 
> M>  The following jBoss libraries should be copied to web
> app/WEB-INF/lib:  M>  jboss-client.jar, jnp-client.jar,
> ejb.jar, jta-spec1_0_1.jar
> M> 
> M> JNDI Configuration 
> M>  The jndi.properties files should be copied to web
> app/WEB-INF/classes
> M> 
> M> EJB Client Code 
> M>  The EJB client code should go in web
> app/WEB-INF/classes
> 
> In such configuration I always get the
> NoInitialContextException
> 
> javax.naming.NoInitialContextException: Cannot instantiate
> class: 
>   org.jnp.interfaces.NamingContextFactory.  Root exception is
> java.lang.ClassNotFoundException:
> org.jnp.interfaces.NamingContextFactory
>  at java.net.URLClassLoader$1.run(URLClassLoader.java,
> Compiled Code)
>  at java.security.AccessController.doPrivileged(Native
> Method)
>  at
> java.net.URLClassLoader.findClass(URLClassLoader.java,
> Compiled Code)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java,
> Compiled Code)
>  at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java,
> Compiled Code)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java,
> Compiled Code)
>  at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:314)
>  at java.lang.Class.forName0(Native Method)
>  at java.lang.Class.forName(Class.java, Compiled Code)
>  at
> com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java,
> Compiled Code)
>  at
> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java,
> Compiled Code)
>  at
> javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java,
> Compiled Code)
>  at
> javax.naming.InitialContext.init(InitialContext.java, Compiled
> Code)
>  at
> javax.naming.InitialContext.(InitialContext.java,
> Compiled Code)
>  at
> engas.client.EngasClient.setInitialContext(EngasClient.java,
> Compiled Code)
>  at engas.web.Engas.init(Engas.java, Compiled Code)
>  at
> org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java,
> Compiled Code)
>   [...]
> 
> This problem does NOT occurs when I add all jboss jars and
> jndi.properties
> into Tomcat CLASSPATH.
> 
> Is it Tomcat's problem or mine (wrong DNA or something)?
> 
> My deployment descriptor looks like that:
> 
> ~/Engas/demo0: jar -tf build/engas.war
> WEB-INF/
> WEB-INF/web.xml
> WEB-INF/lib/jboss-client.jar
> WEB-INF/lib/jnp-client.jar
> WEB-INF/lib/ejb.jar
> WEB-INF/lib/jta-spec1_0_1.jar
> WEB-INF/lib/JettyUtil.jar
> WEB-INF/lib/xerces.jar
> WEB-INF/lib/jdom.jar
> WEB-INF/classes/engas/
> WEB-INF/classes/engas/core/
> WEB-INF/classes/engas/core/EngasException.class
> WEB-INF/classes/engas/core/XmlDescriptor.class
> WEB-INF/classes/engas/client/
> WEB-INF/classes/engas/client/EngasCSClient.class
> WEB-INF/classes/engas/client/GenericClient.class
> WEB-INF/classes/engas/client/EngasClient.class
> WEB-INF/classes/engas/web/
> WEB-INF/classes/engas/web/EngasServlet.class
> WEB-INF/classes/engas/web/Engas.class
> WEB-INF/classes/jndi.properties
> META-INF/
> META-INF/MANIFEST.MF
> portal.jsp
> portalErrorPage.jsp
> engasTitle.jsp
> toolbar.jsp
> softcomp.jsp
> software.jsp
> portal1.jsp
> images/
>

AW: Internal servlet error

2000-11-03 Thread Ralph Einfeldt

If you look closer at the traceback you can see what happened and where.

You have to look at
com.se.error.ErrConstants.SETRACE

Thats obvious not part of tomcat

Root cause: 

java.lang.NullPointerException
at com.se.error.ErrConstants.SETRACE(ErrConstants.java:101)
at
com.sefgcr.helper.jsp.gen.TfgWelcome.processRequest(TfgWelcome.java:43)
at
productareas.secustapp._0002fproductareas_0002fsecustapp_0002fwelcomepag
e_0002ejspwelcomepage_jsp_0._jspService(_0002fprod

> -Ursprüngliche Nachricht-
> Von: ramanarayanan raman [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 3. November 2000 11:31
> An: [EMAIL PROTECTED]
> Betreff: Internal servlet error



RE: Trouble with taglib

2000-11-03 Thread Lacerda, Wellington (AFIS)

The web.xml dtd says:

The taglib-uri element describes a URI, relative to the location
of the web.xml document, identifying a Tag Library used in the Web
Application

So check your web.xml

Wellington

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 03 November 2000 11:48
To: [EMAIL PROTECTED]
Subject: Trouble with taglib


Hi all.

I hope there are someone that can help mem because i'm becoming crazy 
I'm trying to use a taglib that i have developed with Tomcat 3.1, but the
only answer i have from the container is this:

Error: 500
Location: /servizi/prova.jsp
Internal Servlet Error:

org.apache.jasper.JasperException: Unable to open taglibrary
http://www.comuneweb.it/taglibs/infrastruttura-1.0 : Parse Error in the tag
library descriptor: com.sun.xml.parser/V-037 web-app

I have inserted on "web.xml" file this line:


http://www.comuneweb.it/taglibs/infrastruttura-1.0
/WEB-INF/tlds/comuneweb.tld


And the "comuneweb.tld" file look like this:


1.0
1.1
prova
http://www.comuneweb.it/taglibs/infrastruttura-1.0

Libreria di tag usati da ComuneWeb


prova
Infrastruttura.Tag.Prova
empty

Tag di prova





Can any one help me ? please :)
Thanks.bye



AW: Apache-Tomcat

2000-11-03 Thread Reddy, Ayndla Srinivas

Check below for win32

http://jakarta.apache.org/builds/tomcat/release/v3.2-beta-6/bin/win32/i386/
(needs tomcat 3.2 beta6 )

Hope that helps.

Regards
Srinivas

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 3. November 2000 10:48
An: [EMAIL PROTECTED]
Betreff: RE: Apache-Tomcat


Hi all,
i would like to try to use mod_jk, but in the source i have downloaded
(tomcat 3.1) i can't
find it.
Can any one help me ?

Thanks  Max

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: giovedì 2 novembre 2000 17.32
To: [EMAIL PROTECTED]
Subject: Apache-Tomcat


Hi,
  Can any one help me , how to configure apache1.3.12 and tomcat3.1
with mod_jk under win2000.
thanks,
nell






___
CoolEmail -- Now you're talking.
Get Free Email-By-Phone Today.
http://www.CoolEmail.com





Trouble with taglib

2000-11-03 Thread maxluise

Hi all.

I hope there are someone that can help mem because i'm becoming crazy 
I'm trying to use a taglib that i have developed with Tomcat 3.1, but the
only answer i have from the container is this:

Error: 500
Location: /servizi/prova.jsp
Internal Servlet Error:

org.apache.jasper.JasperException: Unable to open taglibrary
http://www.comuneweb.it/taglibs/infrastruttura-1.0 : Parse Error in the tag
library descriptor: com.sun.xml.parser/V-037 web-app

I have inserted on "web.xml" file this line:


http://www.comuneweb.it/taglibs/infrastruttura-1.0
/WEB-INF/tlds/comuneweb.tld


And the "comuneweb.tld" file look like this:


1.0
1.1
prova
http://www.comuneweb.it/taglibs/infrastruttura-1.0

Libreria di tag usati da ComuneWeb


prova
Infrastruttura.Tag.Prova
empty

Tag di prova





Can any one help me ? please :)
Thanks.bye




RE: talking to MS SQL server from Tomcat?

2000-11-03 Thread Nacho

>From my own use, JDBC-ODBC Bridge from jdk 1.3, works well, not like the
one in JDK 1.2 ( or any ealy version i think ), it's near production
quality, do a try it will surprise you, sure !!.

Saludos ,
Ignacio J. Ortega


> -Mensaje original-
> De: Rick Castello [mailto:[EMAIL PROTECTED]]
> Enviado el: jueves 2 de noviembre de 2000 20:59
> Para: [EMAIL PROTECTED]
> Asunto: talking to MS SQL server from Tomcat?
> 
> 
> 
> Is anyone talking to a MS SQL server database with Tomcat?
> 
> I'm looking for a JDBC-OBDC bridge, and EasySoft's offering
> has been problematic.
> 
> Does anyone have any other suggestions?
> 
> -Rick
> [EMAIL PROTECTED]
> 
> 



Internal servlet error

2000-11-03 Thread ramanarayanan raman

Hello,

   i try to configure apache,tomcat in linux os.with implement on my application.
  
  i get following these errors

output:
--

Location: /serveredev/current/productareas/secustapp/welcomepage.jsp

Internal Servlet Error:

javax.servlet.ServletException
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:386)

at 
productareas.secustapp._0002fproductareas_0002fsecustapp_0002fwelcomepage_0002ejspwelcomepage_jsp_0._jspService(_0002fprod

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at 
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:156)

at 
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Thread.java)

Root cause: 

java.lang.NullPointerException
at com.se.error.ErrConstants.SETRACE(ErrConstants.java:101)
at com.sefgcr.helper.jsp.gen.TfgWelcome.processRequest(TfgWelcome.java:43)
at 
productareas.secustapp._0002fproductareas_0002fsecustapp_0002fwelcomepage_0002ejspwelcomepage_jsp_0._jspService(_0002fprod

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:174)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at 
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:156)

at 
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Thread.java)



-


pl reply as soon as poosible,

ram



 

_
The Only Complete Indian Shopping Mall ---> http://www.indiaplaza.com



RE: Apache-Tomcat

2000-11-03 Thread maxluise

Hi all,
i would like to try to use mod_jk, but in the source i have downloaded
(tomcat 3.1) i can't
find it.
Can any one help me ?

Thanks  Max

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: giovedì 2 novembre 2000 17.32
To: [EMAIL PROTECTED]
Subject: Apache-Tomcat


Hi,
  Can any one help me , how to configure apache1.3.12 and tomcat3.1
with mod_jk under win2000.
thanks,
nell






___
CoolEmail -- Now you're talking.
Get Free Email-By-Phone Today.
http://www.CoolEmail.com






getting tomcat run..

2000-11-03 Thread Marcos

hi,

i have installed:
apache-1.3.12
JSDK2.0
ApacheJserv-1.1.1
JDK1.2

servlets are running fine. and i want to run .jsp so i decided to
install tomcat.
i have downloaded  jakarta-tomcat  and  jakarta-ant  from
release/v3.1/src

i do not know what to do now. should i install jakarta-ant first?
how can i do it?
and how about apache configuration.

thanks in advance, any suggestion will be appreciated


marcos

--
m a r c o s @ i v a l . e s




RE: Shutting down Tomcat on HP-UX

2000-11-03 Thread Kitching Simon

Hi,

This is one I'm having problems with too.

When using HPUX11.00 and java 1.2.2_04:
* With tomcat3.1, I needed 2 shutdown commands.
* With tomcat3.2b6, I now need 3 shutdown commands.

This difference is without changing the JVM, so it's
clearly something to do with tomcat code. It's very
consistent (consistently annoying).

Exactly the same webapp shuts down correctly
(on first shutdown command) when run on Solaris,
(java 1.2.2_06) so it's *also* something to do with the 
JVM or platform.

I have no workaround to suggest

Regards,
Simon

> -Original Message-
> From: Kurt R. Hoehn [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, November 03, 2000 4:33 AM
> To:   [EMAIL PROTECTED]
> Subject:  Shutting down Tomcat on HP-UX
> 
> I'm having a hard time shutting down tomcat 3.2b6 on HP-UX.  It takes 3 to
> 4 shutdowns before the jvm is released from tomcats grasp, I have to
> manually kill the PID.  Is there a know bug on this, a work around or is
> there a configuration problem.
>  
> Thank You
> Kurt R. Hoehn
> Etech Studios, Inc.
>  



RE: Tomcat as a service on NT

2000-11-03 Thread Russell Freeman



I also 
had that error when I was mistakenly pointing to the wrong version of the JDK. 
Although I had JDK1.3 installed and the correct JAVA_HOME and CLASSPATH, my PATH 
environment pointed at an older JDK1.2.2 installation first. IIRC, you need the 
latest SAX parser.
 
Russ

  -Original Message-From: Liming Xie 
  [mailto:[EMAIL PROTECTED]]Sent: 03 November 2000 
  02:58To: [EMAIL PROTECTED]Subject: RE: 
  Tomcat as a service on NT
  Hi,
   
  When I 
  mistakely setenv TOMCAT_HOME to a wrong path, it gave the same error 
  message.
  That 
  means javax can not find the main program to run.
   
  I 
  suggest you to check your environment variable. Hope it 
  help.
   
  Liming 
  Xie
  [EMAIL PROTECTED]
  
-Original Message-From: Jos?Luis Gómez Bocanegra 
[mailto:[EMAIL PROTECTED]]Sent: Thursday, November 02, 
2000 7:09 PMTo: [EMAIL PROTECTED]Subject: 
Tomcat as a service on NT
Hi Tomcat team,
 
I'm trying to use Tomcat as a service on NT, 
but I can see an error in stderr.log file, this error is:
 
java.lang.NoClassDefFoundError: 
javax/xml/parsers/SAXParserFactory
 
Where can I find this class?
 
My CLASSPATH contains:    
jaxp.jar, jasper.jar, webserver.jar and parser.jar, the jar files that 
contains Tomcat version 3.2 beta 6.
 
Could you tell me what jar file/s I 
need??
 
 
Thanks.