Looking for debug solutions

2004-05-10 Thread Randy
Hello,

I have just recently built two new boxes. They are exhibiting some strange
behavior and I am unsure how to troubleshoot. I am looking for some
suggestions.

My old config that ran forever was 
RH7, apache 1.3, mod_jk and tomcat 4.0

My two new boxes are
Box 1) rh9, apache 2, mod_jk and tomcat 4.1.30
Box 2) rh9, apache 2, mod_jk2 and tomcat 5.0.19

The problem I am seeing, that my httpd and tomcat count continually rise.
That is not to say they never go down.

Like currently :
Box 1) httpd = 71 and java = 90
Box 2) httpd = 51 and java = 111

One more thing. These are both "Real Servers - LVS terms". They are part of
a Linux Virtual System.  Currently they are not sharing sessions, but that
is why box 2 is tomcat 5. I am heading that way.

Box 1 can handle everything fine, if I shut down box 2. 

I am not sure if this is making any sense at all. There is really nothing in
the log files (except I run out of java mem) but that is when I get over 250
httpd processes.

Thanks for anyhelp or any direction in how to debug this

Randy



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



Installation hangs at jvm.dll

2004-05-10 Thread Lars Schouw
I tried to run the tomcat 5.0.24 installaton file under Windows XP.
It hangs at c:\j2sdk1.4.2_04\jre\bin\server\jvm.dll
 
Any ideas?
 
I searched bugzilla, web and the mailing list archives but could not really find 
anything except from this closed bug Bug#:22174
 
Regards
Lars Schouw


-
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs 

Re: Hi

2004-05-10 Thread tomcat-user
Here is the file.

--- Trend GateLock [EMAIL PROTECTED] (主機:higp2.gatelock.com.tw)

** 中毒檔案 your_file.pif 已刪除。

 Trend GateLock [EMAIL PROTECTED] (主機:higp2.gatelock.com.tw)

** 在檔案 your_file.pif 中發現病毒 WORM_NETSKY.D。
無法清除病毒,中毒檔案已刪除。

-

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

Re: Tomcat 5 JK2 and IIS 5

2004-05-10 Thread Raymond Blum
Thanks, the installer ran beautifully but I still get the message "The 
Handle Is Invalid" in the browser and a 500 status in the web server 
log for the GET request for /jakarta/isap_redirector2.dll

This was good to try as I am now pretty sure that it is not some 
misconfiguration on my part but something in my IIS or Windows 
environment that is to blame.

---Raymond

On May 9, 2004, at 7:48 PM, Shane Linley wrote:

Well to tell the complete truth, at my site here we used this open 
source
JK2 IIS installer to do all the nitty gritty for us!

http://www.shiftomat.com/opensource/

It doesn't use the latest version of JK2, but I don't see why a simple 
dll
upgrade shouldn't fix that :)

This is the easiest way I've seen to install JK2... Otherwise I know 
of no
other way to help you at the moment...

shane..

-Original Message-
From: Raymond Blum [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 May 2004 8:23 PM
To: Tomcat Users List
Subject: Re: Tomcat 5 JK2 and IIS 5
Yes, I am running the ajp connectors at 8009, the 8018 is where Tomcat
is listening for HTTP requests instead of the default of 8080  I do
have the entry you describe below
---Raymond
On May 7, 2004, at 3:59 AM, Shane Linley wrote:

From memory, Tomcat runs the default ajp13 connector off of port 8009
not
8080 which is the default HTTP connector port. You worker2.properties
file
should specify to use port 8009 for your ajp13 connector and not 8018.
In your server.xml file look for an entry similar to:



to see what port your ajp13 connector is listening on.

Regards,
Shane.
-Original Message-
From: Raymond Blum [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 May 2004 12:00 PM
To: Tomcat Users List
Subject: Tomcat 5 JK2 and IIS 5
Hi
   I am struggling to get IIS 5.0 to pass off JSP and servlet context
requests to tomcat 5.0.19 under Windows 2000.I have downloaded and
installed what I believe to be a usable copy of isapi_redirector2,dll
and have configured the virtual directory Jakarta under one of the web
servers in my IIS server.
Tomcat is running at 8018, not 8080

I can get to XXX.XXX.XXX.XXX:8018/servlet-examples/ just fine
I map /servlet-examples/* to tomcat in workers2.properties and then I
try the following
XXX.XXX.XXX.XXX/servlet-examples
which yields the response
The servlet container is temporary unavailable or being upgraded
(I have found that this message seems to come from mod_jk and it only
is received in response to one of my mapped server paths, so I assume
that the URI mapping is being successfully interpreted and that the
problem is in my Tomcat and/or workers configuration)
I portscan the machine at XXX.XXX.XXX.XXX and port 8009 is open so I
assume that tomcat is there and listening.
Any tips greatly appreciated!  I have searched the archives and 
googled
this a dozen ways.
---Raymond

-
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]
-
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: Manager access problems

2004-05-10 Thread Greg Adams
There's multiple connectors configured in tomcat/conf/server.xml. I have
to do JkMount for each webapp I want mapped into Apache in httpd.conf, but
I can still access the regular tomcat page on port 8080, just like when
tomcat is running as a standalone http server. I never shut off the
standalone http server running on port 8080, and I would like to be able
to access the manager application using port 8080 (directly through the
tomcat standalone http server, not using apache and mod_jk, so I don't
have manager and admin JkMounted into apache. Even before I installed and
configured mod_jk, I was running tomcat in standalone mode and I couldn't
access manager from a remote host, but I can access it from the localhost.
I anticipated finding one of those ... entries in
manager.xml that only allows you to access it from certain hosts, but
there was no such entry, so I'm stumped as to why it's possible to access
it using mod_jk, but I get that access denied error when using tomcat's
standalone http server.

Am I making any sense?

Greg


> No, it's not needed.
>
> Anyways, why do you think you would be able to access the webapp on
> http://:8080/manager/html/?
>
> 8080 is the port tomcat listens to.  It has nothing to do with what you
> define in httpd.conf.
>
> 80 is the port apache listens to.  It talks with tomcat through port 8009
> you defined in workers.properties.
>
> By default, 80 is the default port that apache uses.
>
> If virtual host and jk2 are working for you, you should be able to access
> your webapp without defining any port.
>
> There are a lot of good posts on port 8080 and 80.  You may want to do a
> search on the archieve.
>
> Cheers:)
>
> -Yan
>
> -Original Message-
> From: Greg Adams [mailto:[EMAIL PROTECTED]
> Sent: May 10, 2004 14:49
> To: Tomcat Users List
> Subject: RE: Manager access problems
>
>
> yes. Would it be helpful to post the entire httpd.conf? It's pretty
> long...
>
>> Your apache listens on port 80, no?
>>
>> -Yan
>>
>> -Original Message-
>> From: Greg Adams [mailto:[EMAIL PROTECTED]
>> Sent: May 10, 2004 10:23
>> To: [EMAIL PROTECTED]
>> Subject: Manager access problems
>>
>>
>> I've installed tomcat 5.0.19 on solaris 2.8. I've also installed
>> jk-1.2.5
>> to connect tomcat to apache 1.3.27. I'm having no problems with jk, my
>> problem is when trying to access the manager application. If I access it
>> on the localhost using port 8080, http://localhost:8080/manager/html/, I
>> have no problem, but when I try to access it on port 8080 from another
>> host, http://:8080/manager/html/, I get a "HTTP Status 403 -
>> Access to the requested resource has been denied" error message. If I
>> access it through the jk connector from another host,
>> http:///manager/html/, I get no error message...
>>
>> From looking at the FAQ's and the Manager how-to, I've looked at the
>> following:
>>
>> /conf/Catalina/localhost/manager.xml:
>>
> 
>> 
>>
>>
>> > debug="0" privileged="true">
>>
>>   
>>   > type="org.apache.catalina.UserDatabase"/>
>>
>> 
>>
> 
>>
>> relevant section from httpd.conf
>>
> 
>> LoadModule jk_module  libexec/mod_jk.so
>> AddModule mod_jk.c
>> # Configure mod_jk
>> #
>> JkWorkersFile conf/workers.properties
>> JkLogFile logs/mod_jk.log
>> JkLogLevel info
>>
>> # Tomcat Virtual Host
>> #
>> 
>>   DocumentRoot /usr/local/apache/htdocs
>>   ServerName yoda.ddm.apm.bpm.eds.com
>>   JkMount /servlets-examples/* ajp13
>>   JkMount /manager/* ajp13
>> 
>>
> 
>>
>> workers.properties
>>
> 
>> worker.list= ajp13
>>
>> worker.ajp13.host=yoda.ddm.apm.bpm.eds.com
>> worker.ajp13.port=8009
>> worker.ajp13.type=ajp13
>>
> 
>>
>> server.xml - I'm using the default server.xml bundled with tomcat 5.0.19
>>
>> Thanks for any ideas...
>>
>> Greg
>>
>> -
>> 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]
>>
>>
>
>
> -
> 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: Manager access problems

2004-05-10 Thread Greg Adams
Nope, I already read that part of the manager how-to. As I said, I'm able
to access the manager webapp using jk, and even using the standalone http
server on port 8080, which would be impossible if I hadn't added a user in
the manager role.

> I ran into a problem accessing the manager & admin
> apps.  I didn't realize you had to add users in the
> Jakarta-tomcat-5.0.19/conf/tomcat-users.xml file.
>
> -Original Message-
> From: Yansheng Lin [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 10, 2004 2:22 PM
> To: 'Tomcat Users List'
> Subject: RE: Manager access problems
>
> No, it's not needed.
>
> Anyways, why do you think you would be able to access the webapp on
> http://:8080/manager/html/?
>
> 8080 is the port tomcat listens to.  It has nothing to do with what you
> define in httpd.conf.
>
> 80 is the port apache listens to.  It talks with tomcat through port 8009
> you defined in workers.properties.
>
> By default, 80 is the default port that apache uses.
>
> If virtual host and jk2 are working for you, you should be able to access
> your webapp without defining any port.
>
> There are a lot of good posts on port 8080 and 80.  You may want to do a
> search on the archieve.
>
> Cheers:)
>
> -Yan
>
> -Original Message-
> From: Greg Adams [mailto:[EMAIL PROTECTED]
> Sent: May 10, 2004 14:49
> To: Tomcat Users List
> Subject: RE: Manager access problems
>
>
> yes. Would it be helpful to post the entire httpd.conf? It's pretty
> long...
>
>> Your apache listens on port 80, no?
>>
>> -Yan
>>
>> -Original Message-
>> From: Greg Adams [mailto:[EMAIL PROTECTED]
>> Sent: May 10, 2004 10:23
>> To: [EMAIL PROTECTED]
>> Subject: Manager access problems
>>
>>
>> I've installed tomcat 5.0.19 on solaris 2.8. I've also installed
>> jk-1.2.5
>> to connect tomcat to apache 1.3.27. I'm having no problems with jk, my
>> problem is when trying to access the manager application. If I access it
>> on the localhost using port 8080, http://localhost:8080/manager/html/, I
>> have no problem, but when I try to access it on port 8080 from another
>> host, http://:8080/manager/html/, I get a "HTTP Status 403 -
>> Access to the requested resource has been denied" error message. If I
>> access it through the jk connector from another host,
>> http:///manager/html/, I get no error message...
>>
>> From looking at the FAQ's and the Manager how-to, I've looked at the
>> following:
>>
>> /conf/Catalina/localhost/manager.xml:
>>
> 
>> 
>>
>>
>> > debug="0" privileged="true">
>>
>>   
>>   > type="org.apache.catalina.UserDatabase"/>
>>
>> 
>>
> 
>>
>> relevant section from httpd.conf
>>
> 
>> LoadModule jk_module  libexec/mod_jk.so
>> AddModule mod_jk.c
>> # Configure mod_jk
>> #
>> JkWorkersFile conf/workers.properties
>> JkLogFile logs/mod_jk.log
>> JkLogLevel info
>>
>> # Tomcat Virtual Host
>> #
>> 
>>   DocumentRoot /usr/local/apache/htdocs
>>   ServerName yoda.ddm.apm.bpm.eds.com
>>   JkMount /servlets-examples/* ajp13
>>   JkMount /manager/* ajp13
>> 
>>
> 
>>
>> workers.properties
>>
> 
>> worker.list= ajp13
>>
>> worker.ajp13.host=yoda.ddm.apm.bpm.eds.com
>> worker.ajp13.port=8009
>> worker.ajp13.type=ajp13
>>
> 
>>
>> server.xml - I'm using the default server.xml bundled with tomcat 5.0.19
>>
>> Thanks for any ideas...
>>
>> Greg
>>
>> -
>> 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]
>>
>>
>
>
> -
> 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]
>
>
>
>
> -
> 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]



forwarding across contexts?

2004-05-10 Thread Fred Toth
Hi,

I'm trying to install a filter into the default context that
forwards to my application (in another context) and it
doesn't seem to want to work. (jboss 3.2.3 with embedded
tomcat 4.1.29)
In researching this, I've seen various hints that this may
in fact be illegal. Can anyone confirm?
The REASON I want to do this is that I want to be able
to take advantage of "simple" URLS with the default
context, as in "/images/whatever.gif", and have them be
served by DefaultServlet, which conveniently knows how
to handle all that sort of stuff, set mime types, etc. I'm
also hoping that DefaultServlet was written by someone
more clever than me!
But, I also want to capture certain "simple" URLs and forward
these to another context. As in "/protected.html" needs to
be forwarded to "/accesscheck/protected.html" or similar.
Am I on the wrong track here? Is it possible to forward
(via RequestDispatcher) from one context to another? If not,
how can I take advantage of DefaultServlet in my application?
Many thanks,

Fred Toth

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


RE: Muiltipul Tomcat 5.19 Servers on the same machine.

2004-05-10 Thread Bond

Ok, I now understand that I can either define unique
ports or new IP address for each instance.  But now a
more simple yet dumber question.  How do I actually
start up these instances of Tomcat.  If I install 5.19
as a service it just rewrites the same service each
time.  I don't want that.  I want three distinct
Tomcat instances running, so that I can shut one down
without touching the other two.  I Know I can install
without creating a service, but I'm a little confused
on how to manually crank up each instance.   

Thanks for all the help so far!!

(:






--- Yansheng Lin <[EMAIL PROTECTED]> wrote:
> I think the OP is trying to simulate "distributed
> servers on the same
> machine" scheme.  
> 
> I am guessing again because that's something I
> wanted to do as well:).
> Would be nice for people with limited means, or too
> lazy to set up the
> infrastructure himself and thinking he might be able
> to get around with some
> cheap hack to the Tomcat internal.
> 
> -Yan
> 
> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
> Sent: May 10, 2004 14:27
> To: Tomcat Users List
> Subject: RE: Muiltipul Tomcat 5.19 Servers on the
> same machine.
> 
> 
> 
> Hi,
> 
> >That's what I said.  Yoav, you are as sleepy as me
> after a big lunch, I
> >guess:).
> 
> Not sleepy at all ;)  Working on many things at
> once.  My comments were
> directed more at Senor Cargnin's post, as well as
> the "I am afraid
> tomcat is not built that way" line in yours.
> 
> Yoav
> 
> >
> >-Original Message-
> >From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> >Sent: May 10, 2004 13:54
> >To: Tomcat Users List
> >Subject: RE: Muiltipul Tomcat 5.19 Servers on the
> same machine.
> >
> >
> >
> >Hi,
> >What are you guys talking about?  You can run as
> many instances of
> >tomcat as you want on the same machine with the
> same IP address, just
> >change the port.
> >
> >Yoav Shapira
> >Millennium Research Informatics
> >
> >
> >>-Original Message-
> >>From: Emerson Cargnin
> [mailto:[EMAIL PROTECTED]
> >>Sent: Monday, May 10, 2004 3:39 PM
> >>To: Tomcat Users List
> >>Subject: Re: Muiltipul Tomcat 5.19 Servers on the
> same machine.
> >>
> >>You can create a different ip address for the same
> machine using
> >>ifconfig. Take a look at the archive, I once send
> a better explanation
> >>on that... This approach is better than changing
> ports so you can use
> >>the default ports, just define an ipAdress tag for
> each different
> >isntance.
> >>
> >>
> >>Yansheng Lin wrote:
> >>> Huh, interesting.  So you want all your three
> instances of Tomcat
> >running
> >>at
> >>> the same time on the same box.  I am afraid
> Tomcat is not built that
> >way.
> >>> But not sure it's not doable, just change the
> port that the 2nd and
> >3rd
> >>> instances listens too, you should be fine.  Not
> sure what you intend
> >to
> >>> achieve here though.
> >>>
> >>> -Yan
> >>>
> >>> -Original Message-
> >>> From: Bond [mailto:[EMAIL PROTECTED]
> >>> Sent: May 10, 2004 11:37
> >>> To: [EMAIL PROTECTED]
> >>> Subject: Muiltipul Tomcat 5.19 Servers on the
> same machine.
> >>>
> >>>
> >>>
> >>>
> >>> Hey Everyone,
> >>>
> >>> I want to install 3 instances of Tomcat 5.19 as
> a
> >>> service on one box.  When I do this, I install
> each
> >>> one into it's own unique directory.  However,
> when I
> >>> try to start the service, it seems to not
> recognize
> >>> the 2nd or 3rd install.  I think I need to do
> some
> >>> more configuration here.  Anybody have any ideas
> on
> >>> how to do the above.
> >>>
> >>> Thanks in advanced.
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> __
> >>> Do you Yahoo!?
> >>> Win a $20,000 Career Makeover at Yahoo! HotJobs
> >>>
> http://hotjobs.sweepstakes.yahoo.com/careermakeover
> >>>
> >>>
>
-
> >>> 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]
> >>>
> >>>
> >>
> >>
> >>--
> >>Emerson Cargnin
> >>Analista de Sistemas
> >>Setor de Desenvolvimento de Sistemas - TRE-SC
> >>tel : (048) - 251-3700 - Ramal 3181
> >>
>
>>-
> >>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 c

Re: forwarding across contexts?

2004-05-10 Thread Justin Ruthenbeck
At 07:04 PM 5/10/2004, you wrote:
Hi,

I'm trying to install a filter into the default context that
forwards to my application (in another context) and it
doesn't seem to want to work. (jboss 3.2.3 with embedded
tomcat 4.1.29)
In researching this, I've seen various hints that this may
in fact be illegal. Can anyone confirm?
It is generally good design practice to limit interactions between
your webapps except for strongly defined specific interfaces that
promote modularity.  Doing something like you're suggesting will
likely lead to messy, difficult code to work with ... not because
it's a necessarily bad design idea, but rather because the premise
behind J2EE is that code bases are designed, coded, deployed, and
maintained as independent applications.  They're not meant to
ineroperate in a fluid way.  It's possible to do what you're
suggesting, but not recommended.
The REASON I want to do this is that I want to be able
to take advantage of "simple" URLS with the default
context, as in "/images/whatever.gif", and have them be
served by DefaultServlet, which conveniently knows how
to handle all that sort of stuff, set mime types, etc. I'm
also hoping that DefaultServlet was written by someone
more clever than me!
Resources need not be within the ROOT web application to be served
by the DefaultServlet.  You'll notice that the DefaultServlet is
defined within the global web.xml (I haven't worked with recent
versions of jBoss, so I'm not sure exactly where they put this
these days), which means that all applications inherit it.  This
means that resources like "/images/whatever.gif" and
"/mywebapp/images/whatever.gif" will both be served by the
DefaultServlet unless you configure it otherwise.
But, I also want to capture certain "simple" URLs and forward
these to another context. As in "/protected.html" needs to
be forwarded to "/accesscheck/protected.html" or similar.
Am I on the wrong track here? Is it possible to forward
(via RequestDispatcher) from one context to another? If not,
how can I take advantage of DefaultServlet in my application?
See ServletContext#getContext(String).  Again, I predict you'll find
this to be a clunky and frustrating way to do things.  Unless you have
an over-riding reason to do otherwise, embrace the idea of separate
and distinct web applications and let the container do this URL
parsing and forwarding for you.
Many thanks,

Fred Toth
Good luck,
justin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: maxThreads

2004-05-10 Thread Bill Barker

"Hollerman Geralyn M" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Evidently, I'm misunderstanding something about the maxThreads attribute
on the
> HTTP ; I saw from the docs that in Tomcat 5.0.19, this is the
maximum
> number of request processing threads to be created by this connector. So,
what
> that said to me was that if I wanted to allow lots of requests, I ought to
make
> that number larger than the default, which the docs say is 200. I also
assumed
> that this attribute, maxThreads, is similar to the "maxProcessors"
attribute
> that was used in, for instance, Tomcat 4.0.4. When we were using Tomcat
4.0.4,
> we often got the message "No processor available, rejecting this
connection",
> and the way I was told to correct that error was to increase
maxProcessors, and
> this worked fine. But to correct another problem, we were told to upgrade
to
> 4.1.24, and then to 5.0.16.
>
> However, I have noticed that with maxThreads, if I increase the value, the
> number of threads I see on a Solaris 8 system grows quickly, like it's
trying to
> meet whatever limit I set; it's as if I make that value larger, thinking
that
> that increase is what Tomcat needs, the number of threads gets to that
limit
> quicker. This can't be right. What am I missing?
>

By default, Tomcat will start maxThreads/2 threads incase it needs lots of
threads in a hurry.  Almost all of them will be blocked, so there generally
isn't that much OS overhead in creating them.  However, if you set the
'maxSpareThreads' attribute on the connector, then you can keep Tomcat down
to a relatively small number of threads unless it actually has to handle a
large number of requests.

> Thanks!
>
> -- 
> Lynn Hollerman.




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



How to know if ANT is Installed correctly

2004-05-10 Thread Parker, Mike

Hi,

I would like to know that I have Ant 1.6 installed correctly. 

Is there a way that I can determine this?
 
Thank you for any help.

Mike


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



Re: Tomcat 5 nt service

2004-05-10 Thread Bill Barker

"Sasha Borodin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> I have a working installation of Tomcat 5 (on a Windows 2000 Server SP4
> machine with jdk_1.4.1), which works great.  I tried running the
service.bat
> script under the "bin" directory to install the NT service, which ran
> without errors and reported success.  However, when I try to start the
> service from the Services console, I get an error "0", and the
> jakarta_service log has the following entry:
>
> [2004-05-10 15:38:49] [info] Running Service...
> [2004-05-10 15:38:49] [info] Starting service...
> [2004-05-10 15:38:50] [364  javajni.c] [error] Unsuported JNI version
65537
> [2004-05-10 15:38:50] [770  prunsrv.c] [error] Failed initializing java
> D:\jakarta-tomcat-5.0.24\bin\bootstrap.jar
> [2004-05-10 15:38:50] [982  prunsrv.c] [error] ServiceStart returned 2
> [2004-05-10 15:38:50] [info] Run service finished.
> [2004-05-10 15:38:50] [info] Procrun finished.
>
> I have searched the mail-archive.com repository as well as google for
> "unsupported JNI version" errors, cross-referencing with "tomcat 5", to no
> avail; but I've never in my life encountered something that someone else
> hasn't already found, so posting to the list is always hopeful ;-)
>

I guess that there is a first time for everything ;-).

The version of procrun (aka 'tomcat.exe') that ships with 5.0.24 is
relatively new, and does some things differently than the version that
shipped with previous version of Tomcat.  What the error message means is
that procrun found on older version of the JVM than it wanted, and so it
gave up.  The easiest thing to do is to run:
   tomcat5w //ES//Tomcat5
(you should also be able to run it with no arguments :), and change the
'jvm' setting to point to the jvm.dll file that you want to use.

> Thanks for any help.
>
> -Sasha




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



Re: Muiltipul Tomcat 5.19 Servers on the same machine.

2004-05-10 Thread Parsons Technical Services
What OS?

Doug

- Original Message - 
From: "Bond" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, May 10, 2004 10:18 PM
Subject: RE: Muiltipul Tomcat 5.19 Servers on the same machine.


> 
> Ok, I now understand that I can either define unique
> ports or new IP address for each instance.  But now a
> more simple yet dumber question.  How do I actually
> start up these instances of Tomcat.  If I install 5.19
> as a service it just rewrites the same service each
> time.  I don't want that.  I want three distinct
> Tomcat instances running, so that I can shut one down
> without touching the other two.  I Know I can install
> without creating a service, but I'm a little confused
> on how to manually crank up each instance.   
> 
> Thanks for all the help so far!!
> 
> (:
> 
> 
> 
> 
> 
> 
> --- Yansheng Lin <[EMAIL PROTECTED]> wrote:
> > I think the OP is trying to simulate "distributed
> > servers on the same
> > machine" scheme.  
> > 
> > I am guessing again because that's something I
> > wanted to do as well:).
> > Would be nice for people with limited means, or too
> > lazy to set up the
> > infrastructure himself and thinking he might be able
> > to get around with some
> > cheap hack to the Tomcat internal.
> > 
> > -Yan
> > 
> > -Original Message-
> > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
> > Sent: May 10, 2004 14:27
> > To: Tomcat Users List
> > Subject: RE: Muiltipul Tomcat 5.19 Servers on the
> > same machine.
> > 
> > 
> > 
> > Hi,
> > 
> > >That's what I said.  Yoav, you are as sleepy as me
> > after a big lunch, I
> > >guess:).
> > 
> > Not sleepy at all ;)  Working on many things at
> > once.  My comments were
> > directed more at Senor Cargnin's post, as well as
> > the "I am afraid
> > tomcat is not built that way" line in yours.
> > 
> > Yoav
> > 
> > >
> > >-Original Message-
> > >From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> > >Sent: May 10, 2004 13:54
> > >To: Tomcat Users List
> > >Subject: RE: Muiltipul Tomcat 5.19 Servers on the
> > same machine.
> > >
> > >
> > >
> > >Hi,
> > >What are you guys talking about?  You can run as
> > many instances of
> > >tomcat as you want on the same machine with the
> > same IP address, just
> > >change the port.
> > >
> > >Yoav Shapira
> > >Millennium Research Informatics
> > >
> > >
> > >>-Original Message-
> > >>From: Emerson Cargnin
> > [mailto:[EMAIL PROTECTED]
> > >>Sent: Monday, May 10, 2004 3:39 PM
> > >>To: Tomcat Users List
> > >>Subject: Re: Muiltipul Tomcat 5.19 Servers on the
> > same machine.
> > >>
> > >>You can create a different ip address for the same
> > machine using
> > >>ifconfig. Take a look at the archive, I once send
> > a better explanation
> > >>on that... This approach is better than changing
> > ports so you can use
> > >>the default ports, just define an ipAdress tag for
> > each different
> > >isntance.
> > >>
> > >>
> > >>Yansheng Lin wrote:
> > >>> Huh, interesting.  So you want all your three
> > instances of Tomcat
> > >running
> > >>at
> > >>> the same time on the same box.  I am afraid
> > Tomcat is not built that
> > >way.
> > >>> But not sure it's not doable, just change the
> > port that the 2nd and
> > >3rd
> > >>> instances listens too, you should be fine.  Not
> > sure what you intend
> > >to
> > >>> achieve here though.
> > >>>
> > >>> -Yan
> > >>>
> > >>> -Original Message-
> > >>> From: Bond [mailto:[EMAIL PROTECTED]
> > >>> Sent: May 10, 2004 11:37
> > >>> To: [EMAIL PROTECTED]
> > >>> Subject: Muiltipul Tomcat 5.19 Servers on the
> > same machine.
> > >>>
> > >>>
> > >>>
> > >>>
> > >>> Hey Everyone,
> > >>>
> > >>> I want to install 3 instances of Tomcat 5.19 as
> > a
> > >>> service on one box.  When I do this, I install
> > each
> > >>> one into it's own unique directory.  However,
> > when I
> > >>> try to start the service, it seems to not
> > recognize
> > >>> the 2nd or 3rd install.  I think I need to do
> > some
> > >>> more configuration here.  Anybody have any ideas
> > on
> > >>> how to do the above.
> > >>>
> > >>> Thanks in advanced.
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>> __
> > >>> Do you Yahoo!?
> > >>> Win a $20,000 Career Makeover at Yahoo! HotJobs
> > >>>
> > http://hotjobs.sweepstakes.yahoo.com/careermakeover
> > >>>
> > >>>
> >
> -
> > >>> 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]
> > >>>
> > >>>
> > >>
> > >>
> > >>--
> > >>Emerson Cargnin
> > >>Analista de Sistemas
> > >>Setor de Desenvolvimento de Sistemas - TRE-SC
> > >>tel : (048) - 251-3700 - Ramal 3181
> > >>
> >
> >>---

Re: forwarding across contexts?

2004-05-10 Thread Fred Toth
Justin,

Thanks very much for your considered reply. You both solved
my problem and made me question my approach at the same
time.
In re-thinking this in terms of separated webapps, I've hit another
issue. If I solve this problem within one particular web application,
I have to be able to point this webapp to another place in the file
system (other than $CATALINA_HOME/webapp). I had figured
out how to do that with the ROOT application, but I'm not sure
how to do this within a war file.
In short, how does one deploy a war file such that it looks
for content ("/images/whatever.gif") in a configurable location
in the file system?
If I can figure that out, I think I can abandon the cross-context
issue for good!
Thanks,

Fred

At 10:23 PM 5/10/2004, you wrote:
At 07:04 PM 5/10/2004, you wrote:
Hi,

I'm trying to install a filter into the default context that
forwards to my application (in another context) and it
doesn't seem to want to work. (jboss 3.2.3 with embedded
tomcat 4.1.29)
In researching this, I've seen various hints that this may
in fact be illegal. Can anyone confirm?
It is generally good design practice to limit interactions between
your webapps except for strongly defined specific interfaces that
promote modularity.  Doing something like you're suggesting will
likely lead to messy, difficult code to work with ... not because
it's a necessarily bad design idea, but rather because the premise
behind J2EE is that code bases are designed, coded, deployed, and
maintained as independent applications.  They're not meant to
ineroperate in a fluid way.  It's possible to do what you're
suggesting, but not recommended.
The REASON I want to do this is that I want to be able
to take advantage of "simple" URLS with the default
context, as in "/images/whatever.gif", and have them be
served by DefaultServlet, which conveniently knows how
to handle all that sort of stuff, set mime types, etc. I'm
also hoping that DefaultServlet was written by someone
more clever than me!
Resources need not be within the ROOT web application to be served
by the DefaultServlet.  You'll notice that the DefaultServlet is
defined within the global web.xml (I haven't worked with recent
versions of jBoss, so I'm not sure exactly where they put this
these days), which means that all applications inherit it.  This
means that resources like "/images/whatever.gif" and
"/mywebapp/images/whatever.gif" will both be served by the
DefaultServlet unless you configure it otherwise.
But, I also want to capture certain "simple" URLs and forward
these to another context. As in "/protected.html" needs to
be forwarded to "/accesscheck/protected.html" or similar.
Am I on the wrong track here? Is it possible to forward
(via RequestDispatcher) from one context to another? If not,
how can I take advantage of DefaultServlet in my application?
See ServletContext#getContext(String).  Again, I predict you'll find
this to be a clunky and frustrating way to do things.  Unless you have
an over-riding reason to do otherwise, embrace the idea of separate
and distinct web applications and let the container do this URL
parsing and forwarding for you.
Many thanks,

Fred Toth
Good luck,
justin
-
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]


Error on the how-to page for MySQL database setup -- to whom it may concern

2004-05-10 Thread Geoff Granum
on the page:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html
under the "MySQL DBCP Example" section there is an error.
At:
3. web.xml configuration
Now create a WEB-INF/web.xml for this test application.
 source 
http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
version="2.4">
  <- !!! ERROR !!!
  MySQL Test App
  
  DB Connection
  jdbc/TestDB
  javax.sql.DataSource
  Container
  

 end source ---

There is an extra '' tag. Oops.

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


Re: OutOfMemoryError after 5.0.24 update

2004-05-10 Thread Stefan Proels
On Monday 10 May 2004 17:26, Remy Maucherat wrote:
> Stefan Proels wrote:
> > Dear all,
> >
> > after updating our server to Tomcat 5.0.24 last night I got 2 crashes
> > with the last words
> >
> > Exception in thread "CompilerThread1" java.lang.OutOfMemoryError:
> > requested 32760 bytes for ChunkPool::allocate. Out of swap space?
> >
> > from Tomcat. Now the interesting is that according to our GC logs
> > Java did not really run out of memory. Also I checked the system's
> > state some minutes before the last crash and I remember the java
> > process having allocated about 270 MB and as I set -Xmx1024m this
> > also makes be believe that it did not really run of the memory. The
> > pointer to the swap space also doesn't seem to lead into the right
> > direction since the machine has 4 GB physical memory and another 4 GB
> > swap space and nearly no swap space is actually in use.
> >
> > So my question is, is there any new configuration parameter I my have
> > overlooked since 5.0.19 or has the default value of some related
> > parameter changed which could cause this error?
> >
> > What makes the problem even more mysterious is the fact that both
> > exceptions occurred in "CompilerThread1" but since all our JSPs have
> > been compiled already and none of them has changed, I wonder why this
> > thread had anything to do at all.
>
> You can (= should) disable the compiler thread IMO.
> If you're precompiling every JSPs to servlets (with mappings in
> web.xml), you should leave Jasper in development mode, and it won't
> spawn the thread.

Sorry, I wasn't precise enough here. I'm not statically precompiling JSPs 
that way. Sometimes we do need the feature to update a JSPs while the 
application is running. I'm running a simple script which invokes every 
JSP with jsp_precompile=true instead and since this script already ran I 
wonder what "CompilerThread1" still has to do.

I've had several more crashes, all with an OutOfMemoryError in 
"CompilerThread1" without the Java process actually running out of heap. 
I finally went back to 5.0.19 for now. I still hope there is a 
possibility to fix this problem somehow, because 5.0.24 contains several 
bug fixes I was waiting for and thus I'd like to update.


Best regards,
Stefan


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



RE: jk2: url mapping problem with apache

2004-05-10 Thread Cox, Charlie
You are doubling up on your mappings. If you are going to use JkUriSet,
remove the [uri] from workers2.properties. The [uri] would be what is
causing your problem.

Charlie

> -Original Message-
> From: Duane Winner [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 07, 2004 2:11 PM
> To: Tomcat Users List
> Cc: Arend P. van der Veen
> Subject: jk2: url mapping problem with apache
> 
> Hello all,
> 
> Is there a way to configure mod_jk2 to check the full URL and/or the
> port the client uses to connect to the apache server?
> 
> The problem I'm having is this:
> 
> I have three webapps:
> "public"
> "authorized"
> "secure"
> 
> I have three apache virtual servers:
> "http://www.foo.bar"; (HTTP - non-encrypted port 80)
> "https://www.foo.bar"; (HTTPS - SSL-encrypted port 443)
> "https://secure.foo.bar"; (HTTPS - SSL with client certs port 443)
> 
> Everything works fine, almost (apache talks to Tomcat and Tomcat serves
> up my servlets):
> 
> Example:
> 
> "http://www.foo.bar/public/servlet/HappyWebApp";
> "https://www.foo.bar/authorized/servlet/NotForEverybodyWebApp";
> "https://secure.foo.bar/secure/servlet/DoubleSecretProbationWebApp";
> 
> But, I think what is happening is because the first and second examples
> share the same URL (minus the 'https' and 443 instead of port 80), JK2,
> doesn't distinguis between them, and after some security checking, I
> found I can do this:
> 
> "http://www.foo.bar/authorized/servlet/NotForEverybodyWebApp";
> 
> NOT GOOD!
> 
> conversely,
> 
> "https://www.foo.bar/public/servlet/HappyWebApp";
> 
> will serve up a public webapp.
> 
> Anything to the third pairing works because it is 'secure.foo.bar' and
> thus is a different URL (at least I THINK that is what is going on). I
> get a "URL' cannot be found" if I try to jump to a a secure webapp from
> http://www* or https://www*, and vice versa. This is how it should be
> for all of them.
> 
> My workers2.properties looks like this:
> (snip)
> [channel.socket:localhost:8009]
> port=8009
> host=localhost
> 
> [ajp13:localhost:8009]
> channel=channel.socket:localhost:8009
> 
> [uri:www.foo.bar/public/servlet/*]
> group=ajp13:localhost:8009
> 
> [uri:www.foo.bar/authorized/servlet/*]
> group=ajp13:localhost:8009
> 
> [uri:secure.foo.bar/secure/servlet/*]
> group=ajp13:localhost:8009
> (end)
> 
> And the directives I use in httpd.conf and ssl.conf (apache2) are:
> 
> In the 'MAIN' server configuration:
> 
> JKUriSet worker ajp13:localhost:8009
> 
> 
> Virtual Host "authorized":
> 
> JKUriSet worker ajp13:localhost:8009
> 
> 
> And Virtual Host "secure":
> 
> JKUriSet worker ajp13:localhost:8009
> 
> 
> 
> Any thoughts, advice, directions, instructions, or implements of
> destruction on this matter would be greatly appreciated.
> 
> Thanks,
> Duane Winner
> [EMAIL PROTECTED]
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


Re: Authentication with custom access control

2004-05-10 Thread QM
On Mon, May 10, 2004 at 10:30:13AM +0100, Cain, Simon wrote:
: I need to set up my Tomcat server to receive requests using BASIC
: authentication, but then allow me to authorize them using my own application
: database. I do not want Tomcat to check against the users in the
: tomcat-users.xml file, I want to do the checking programmatically..

Hello,

Check the archives and docs for "JAAS" and "custom realm."

This was recently discussed on the list, but I do not recall how
much specific info was posted.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



maxThreads

2004-05-10 Thread Hollerman Geralyn M
Evidently, I'm misunderstanding something about the maxThreads attribute on the 
HTTP ; I saw from the docs that in Tomcat 5.0.19, this is the maximum 
number of request processing threads to be created by this connector. So, what 
that said to me was that if I wanted to allow lots of requests, I ought to make 
that number larger than the default, which the docs say is 200. I also assumed 
that this attribute, maxThreads, is similar to the "maxProcessors" attribute 
that was used in, for instance, Tomcat 4.0.4. When we were using Tomcat 4.0.4, 
we often got the message "No processor available, rejecting this connection", 
and the way I was told to correct that error was to increase maxProcessors, and 
this worked fine. But to correct another problem, we were told to upgrade to 
4.1.24, and then to 5.0.16.

However, I have noticed that with maxThreads, if I increase the value, the 
number of threads I see on a Solaris 8 system grows quickly, like it's trying to 
meet whatever limit I set; it's as if I make that value larger, thinking that 
that increase is what Tomcat needs, the number of threads gets to that limit 
quicker. This can't be right. What am I missing?

Thanks!

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


Re: tomcat clustering

2004-05-10 Thread Filip Hanik - Dev
Caused by: java.io.NotSerializableException:


- Original Message -
From: "keita elhadji" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 10, 2004 4:52 AM
Subject: tomcat clustering


Hi,

i have a problem with mod_jk2 .
I have two PC  with tomcat5.019
1st PC name is : www.avisdunet.biz
2nd PC name is : www1.avisdunet.biz

mod_jk2 and apache2 in the first when i start tomcat
my clustering didn't work and i don't know why and in
my logs catalina.out :

10 mai 2004 11:30:15
org.apache.coyote.http11.Http11Protocol init
INFO: Initialisation de Coyote HTTP/1.1 sur le port
8080
10 mai 2004 11:30:17
org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 48211 ms
10 mai 2004 11:30:22
org.apache.catalina.core.StandardService start
INFO: Démarrage du service Catalina
10 mai 2004 11:30:22
org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.19
10 mai 2004 11:30:23
org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
10 mai 2004 11:30:23
org.apache.catalina.cluster.tcp.SimpleTcpCluster start
INFO: Cluster is about to start
10 mai 2004 11:30:24
org.apache.catalina.cluster.mcast.McastService start
INFO: Sleeping for 2000 secs to establish cluster
membership
10 mai 2004 11:30:26
org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment (
non-jmx )
10 mai 2004 11:30:27
org.apache.catalina.core.StandardHostDeployer install
INFO: Installation d'une application pour le chemin de
contexte /pro depuis l'URL
file:/usr/local/java/tomcat/webapps/pro
10 mai 2004 11:30:43
org.apache.catalina.session.StandardManager doLoad
GRAVE: "IOException" lors du chargement des sessions
persistantes: java.io.WriteAbortedException: writing
aborted; java.io.No$
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
com.avisdunet.ServeurFond
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)


Caused by: java.io.NotSerializableException:
com.avisdunet.ServeurFond
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)

Resolving to alternate DTD
'file:/usr/local/java/jakarta-tomcat-5.0.19/work/Standalone/localhost/pro/loader/org/apache/strut$
Call
org.apache.struts.action.ActionServlet.addServletMapping(monActionServlet/java.lang.String,*.action/java.lang.String)
Call
org.apache.struts.action.ActionServlet.addServletMapping(action/java.lang.String,*.do/java.lang.String)
10 mai 2004 11:30:56
org.apache.catalina.core.StandardHostDeployer install
INFO: Installation d'une application pour le chemin de
contexte  depuis l'URL
file:/usr/local/java/jakarta-tomcat-5.0.19/weba$
10 mai 2004 11:30:59
org.apache.catalina.core.StandardHostDeployer install
INFO: Installation d'une application pour le chemin de
contexte /balancer depuis l'URL
file:/usr/local/java/jakarta-tomcat-5.$
10 mai 2004 11:31:02
org.apache.catalina.core.StandardContext start
GRAVE: Error filterStart
10 mai 2004 11:31:02
org.apache.catalina.core.StandardContext start
GRAVE: Erreur de démarrage du contexte suite aux
erreurs précédentes
10 mai 2004 11:31:02
org.apache.catalina.core.StandardHostDeployer install
INFO: Installation d'une application pour le chemin de
contexte /jsp-examples depuis l'URL
file:/usr/local/java/jakarta-tomca$
10 mai 2004 11:31:09
org.apache.catalina.core.StandardHostDeployer install
INFO: Installation d'une application pour le chemin de
contexte /servlets-examples depuis l'URL
file:/usr/local/java/jakarta-$
10 mai 2004 11:31:13
org.apache.catalina.core.StandardHostDeployer install
INFO: Installation d'une application pour le chemin de
contexte /tomcat-docs depuis l'URL
file:/usr/local/java/jakarta-tomcat$
10 mai 2004 11:31:15
org.apache.catalina.core.StandardHostDeployer install
INFO: Installation d'une application pour le chemin de
contexte /webdav depuis l'URL
file:/usr/local/java/jakarta-tomcat-5.0.$
10 mai 2004 11:31:20
org.apache.coyote.http11.Http11Protocol start
INFO: Démarrage de Coyote HTTP/1.1 sur le port 8080
10 mai 2004 11:31:25
org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
10 mai 2004 11:31:25 org.apache.jk.ser

tomcat connection pooling

2004-05-10 Thread Ponnam Janiki
Hi Guys,

I don’t know is it the right place to ask this question. If not plz forgive
me and direct me to the right place.

 

I have been struggling for the past two weeks to create a connection pool in
Tomcat 4.x/Tomcat 5.x.

Actually my environment is, Windows XP professional,  j2sdk1.4.2_04, Tomcat
5.0.19 and Oracle 8.1.7. I configured 

server.xml and web.xml as per the documentation you provided in Apache.org.
But I’m getting the 

following error…

SQLException Occured org.apache.commons.dbcp.SQLNestedException: Cannot
create J

DBC driver of class '' for connect URL 'null', cause: null.

NO Suitable driver. I tried all the drivers that are available at Oracle
site and I dropped the jar file in 

common\lib directory but of no use. And I tried many ways that are found by
google search.

Please help me out in solving this problem.

Here are the related files….

Server.xml





 



 



 

 

  

  

  

  

 

  

  

 





 









  

factory

org.apache.catalina.users.MemoryUserDatabaseFactory

  

  

pathname

conf/tomcat-users.xml

  



 

  

 

  

 

  

  

 



 











 





 





 







 



 

 

 





 

  

  

 

  

  

 

  

 

  

  

 

  

   

 

  

 

  

 

 

  

 

  

  

 

 







 

 

 





 





 





 

  

  

  



  



  

  

  

user

  

pricing2_admin

  

  

  

  

  

password

  

pricing2_admin

  

  

  

  

  

driverClassName

  

oracle.jdbc.driver.OracleDriver

  

  

  

  

  

url

  

jdbc:oracle:thin:@sunburst:1521:prcdev

  

  

  



   

 



 

  

 



Web.xml



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



  Empty web.xml file for Web Application

  

Controller

bean.Controller

  

  

Controller

/Controller

  

  

35

  

  

html

text/html

  

  

txt

text/plain

  

  

index.jsp

index.html

  



 

  

 

Resource reference to a factory for java.sql.Connection

 

instances that may be used for talking to a particular

 

database that is configured in the server.xml file.

 

  

 

  

 

jdbc/EmployeeDB

 

  

 

  

 

javax.sql.DataSource

 

  

 

  

 

Container

 

  

 





Code that I use to get the connection

InitialContext jndiCntx = new InitialContext();  

Context ctx=(Context)jndiCntx.lookup("java:comp/env");

System.out.println("Looking up jdbc/EmployeeDB");

 DataSource ds =
(javax.sql.DataSource)ctx.lookup("jdbc/EmployeeDB");

 

//System.out.println("Got the DataSource..."+ds);

Connection conn =ds.getConnection();

Its getting executed till displaying the ‘DataSource’

Getting the above error at line 

Connection  conn =ds.getConnection();

Please let me know the solution.

 

 

Thanks

Ram


-Original Message-
From: Filip Hanik - Dev [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 10, 2004 8:43 AM
To: Tomcat Users List
Subject: Re: tomcat clustering

Caused by: java.io.NotSerializableException:


- Original Message -
From: "keita elhadji" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 10, 2004 4:52 AM
Subject: tomcat clustering


Hi,

i have a problem with mod_jk2 .
I have two PC  with tomcat5.019
1st PC name is : www.avisdunet.biz
2nd PC name is : www1.avisdunet.biz

mod_jk2 and apache2 in the first when i start tomcat
my clustering didn't work and i don't know why and in
my logs catalina.out :

10 mai 2004 11:30:15
org.apache.coyote.http11.Http11Protocol init
INFO: Initialisation de Coyote HTTP/1.1 sur le port
8080
10 mai 2004 11:30:17
org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 48211 ms
10 mai 2004 11:30:22
org.apache.catalina.core.StandardService start
INFO: Démarrage du service Catalina
10 mai 2004 11:30:22
org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.19
10 mai 2004 11:30:23
org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
10 mai 2004 11:30:23
org.apache.catalina.cluster.tcp.SimpleTcpCluster start
INFO: Cluster is about to start
10 mai 2004 11:30:24
org.apache.catalina.cluster.mcast.McastService start
INFO: Sleeping for 2000 secs to establish cluster
membership
10 mai 2004 11:30:26
org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment (
non-jmx )
10 mai 2004 11:30:27
org.apache.catalina.co

Manager access problems

2004-05-10 Thread Greg Adams
I've installed tomcat 5.0.19 on solaris 2.8. I've also installed jk-1.2.5
to connect tomcat to apache 1.3.27. I'm having no problems with jk, my
problem is when trying to access the manager application. If I access it
on the localhost using port 8080, http://localhost:8080/manager/html/, I
have no problem, but when I try to access it on port 8080 from another
host, http://:8080/manager/html/, I get a "HTTP Status 403 -
Access to the requested resource has been denied" error message. If I
access it through the jk connector from another host,
http:///manager/html/, I get no error message...

>From looking at the FAQ's and the Manager how-to, I've looked at the
following:

/conf/Catalina/localhost/manager.xml:






  
  




relevant section from httpd.conf

LoadModule jk_module  libexec/mod_jk.so
AddModule mod_jk.c
# Configure mod_jk
#
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info

# Tomcat Virtual Host
#

  DocumentRoot /usr/local/apache/htdocs
  ServerName yoda.ddm.apm.bpm.eds.com
  JkMount /servlets-examples/* ajp13
  JkMount /manager/* ajp13



workers.properties

worker.list= ajp13

worker.ajp13.host=yoda.ddm.apm.bpm.eds.com
worker.ajp13.port=8009
worker.ajp13.type=ajp13


server.xml - I'm using the default server.xml bundled with tomcat 5.0.19

Thanks for any ideas...

Greg

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



Re: Directory recursion with mod_jk2.

2004-05-10 Thread Brett Simpson
On Thursday 06 May 2004 04:24 pm, Brett Simpson wrote:
> I'm trying to configure Apache2 with mod_jk2 on Linux to be able to process
> all files with a .cfm extension in all directories on the server. The cfm
> is used for the Coldfusion servlet which is installed in the ROOT context.

I figured out what I was doing wrong.

I needed the following in my worker2.properties file and had to avoid the use 
of "DirectoryIndex index.cfm" in Apache.

[uri:/*.cfm]
info=CFM Extension mapping.
debug=0

If I add "DirectoryIndex index.cfm" to Apache then all requests get sent to 
Tomcat even though I only specify *.cfm for the uri. Consequently 
DirectoryIndex in Apache doesn't work for files covered under the uri.

This is listed as a bug.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19298

Has anyone else seen this problem or know of a workaround?

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

2.0.4 connector source?

2004-05-10 Thread Daniel Gibby
I thought there used to be link at the download site for the connector 
source to compile it, but all I see are a few binaries, which doesn't 
include a binary for what I need...
http://jakarta.apache.org/site/binindex.cgi

What happened to the source for the connectors?

The only binaries available are:

You'll find here Linux binaries for some of the major Linux distributions.

   * Fedora Core 1 - i386 - Apache 2.0.48
   * Suse 9.0 - i386 - Apache 2.0.48
   * Suse SLES 8.0 - ppc - Apache 2.0.48
What about RedHat 7/8/9 ? Should the fedora core binary be the same?

Since compiling always seems better than using a binary for 
performance... where's the source?

Daniel Gibby

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


RE: Tomcat 5.0 + IIS 6 + Windows 2003

2004-05-10 Thread Srinivas Kotapally
Hi

My responses:

1. Where does the dll reside (full folder path)

>> d:\tomcat5\bin\win32\i386\isapi_redirector2.dll

2. What is the virtual directory name in IIS and what the physical folder
pointing to.

>> The virtual directory: jakarta the directory path it is pointing to is:
d:\tomcat5\bin\win32\i386\

3. What is the registry entry value for workers2.properties

>> workersFile d:\tomcat5\conf\workers2.properties

4. Is the isapi-director.dll is for the version compatible to tomcat

>> Now how do I determine this?


Any help will be most welcome.

Regards

Srini


-Original Message-
From: Kannan Sundararajan [mailto:[EMAIL PROTECTED]
Sent: Friday, May 07, 2004 6:57 PM
To: '[EMAIL PROTECTED]'
Subject: Re: Tomcat 5.0 + IIS 6 + Windows 2003


I went thru this and it just an misdocumented feature gives interesting
results.

Focus on the isapi-director.dll

1. Where does the dll reside (full folder path)

2. What is the virtual directory name in IIS and what the physical folder
pointing to.

3. What is the registry entry value for workers2.properties

4. Is the isapi-director.dll is for the version compatable to tomcat

When you provide answer for this, try as much as possible the correct value
of folder instead of generic.
--
Sent from my BlackBerry Wireless Handheld

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



Memory Options

2004-05-10 Thread Paul Mitchell
Hello All,
  I am trying to configure Tomcat 4.1.27 on
Windows XP and for some reason when I set the
CATALINA_OPTS option in my environment variables, the
"catalina jpda start" command simple refuses to start
Tomcat. When I remove these options, the command works
just fine.
The same configuration used to work fine on Windows
2000. Has anyone else run into this same problem ?

Thanks,
Paul.




__
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

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



Muiltipul Tomcat 5.19 Servers on the same machine.

2004-05-10 Thread Bond


Hey Everyone,

I want to install 3 instances of Tomcat 5.19 as a
service on one box.  When I do this, I install each
one into it's own unique directory.  However, when I
try to start the service, it seems to not recognize
the 2nd or 3rd install.  I think I need to do some
more configuration here.  Anybody have any ideas on
how to do the above.   

Thanks in advanced.






__
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

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



Re: Tomcat 5 JK2 and IIS 5

2004-05-10 Thread Emerson Cargnin
There could be one of this to linux ;)

Raymond Blum wrote:
Thanks,  I will try it, The install2iis,.js that Jakarta puts out bombs 
trying to find the web server root dir.

---Raymond
On May 9, 2004, at 7:48 PM, Shane Linley wrote:
Well to tell the complete truth, at my site here we used this open source
JK2 IIS installer to do all the nitty gritty for us!
http://www.shiftomat.com/opensource/

It doesn't use the latest version of JK2, but I don't see why a simple 
dll
upgrade shouldn't fix that :)

This is the easiest way I've seen to install JK2... Otherwise I know 
of no
other way to help you at the moment...

shane..

-Original Message-
From: Raymond Blum [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 May 2004 8:23 PM
To: Tomcat Users List
Subject: Re: Tomcat 5 JK2 and IIS 5
Yes, I am running the ajp connectors at 8009, the 8018 is where Tomcat
is listening for HTTP requests instead of the default of 8080  I do
have the entry you describe below
---Raymond
On May 7, 2004, at 3:59 AM, Shane Linley wrote:

From memory, Tomcat runs the default ajp13 connector off of port 8009
not
8080 which is the default HTTP connector port. You worker2.properties
file
should specify to use port 8009 for your ajp13 connector and not 8018.
In your server.xml file look for an entry similar to:



to see what port your ajp13 connector is listening on.

Regards,
Shane.
-Original Message-
From: Raymond Blum [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 May 2004 12:00 PM
To: Tomcat Users List
Subject: Tomcat 5 JK2 and IIS 5
Hi
   I am struggling to get IIS 5.0 to pass off JSP and servlet context
requests to tomcat 5.0.19 under Windows 2000.I have downloaded and
installed what I believe to be a usable copy of isapi_redirector2,dll
and have configured the virtual directory Jakarta under one of the web
servers in my IIS server.
Tomcat is running at 8018, not 8080

I can get to XXX.XXX.XXX.XXX:8018/servlet-examples/ just fine
I map /servlet-examples/* to tomcat in workers2.properties and then I
try the following
XXX.XXX.XXX.XXX/servlet-examples
which yields the response
The servlet container is temporary unavailable or being upgraded
(I have found that this message seems to come from mod_jk and it only
is received in response to one of my mapped server paths, so I assume
that the URI mapping is being successfully interpreted and that the
problem is in my Tomcat and/or workers configuration)
I portscan the machine at XXX.XXX.XXX.XXX and port 8009 is open so I
assume that tomcat is there and listening.
Any tips greatly appreciated!  I have searched the archives and googled
this a dozen ways.
---Raymond
-
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]
-
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]



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Session without Cookies

2004-05-10 Thread Yansheng Lin
This is a FAQ.  Set cookies=false in your context:

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

-Yan

-Original Message-
From: Nils [mailto:[EMAIL PROTECTED] 
Sent: May 8, 2004 04:41
To: [EMAIL PROTECTED]
Subject: WG: Session without Cookies


Hello there,

how can I get Tomcat to just use URL-Session Ids and no cookies anymore? Is
there a server-side configuration?

regards,
Nils Köster


-
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: Tomcat 5.0 + IIS 6 + Windows 2003

2004-05-10 Thread Kannan Sundararajan
1. Create direcotry/folder d:\tomcat

2. Copy to d:\tomcat .. isapi_redirector2.dll,

3. Register and map this dll... 
   {Please mention the values in it)

4. Virtual Directory-jakarta should point to d:\tomcat

5. Workers2.properties should be in IIS website directory

6. Finding the version compatabile is difficult, since there is no site
refers to it. You can find in tomcat or newsgroups to find the properdll,
which is compatable with IIS and Tomcat. 



-Original Message-
From: Srinivas Kotapally [mailto:[EMAIL PROTECTED]
Sent: Monday, May 10, 2004 1:30 PM
To: 'Tomcat Users List'; Kannan Sundararajan
Subject: RE: Tomcat 5.0 + IIS 6 + Windows 2003


Hi

My responses:

1. Where does the dll reside (full folder path)

>> d:\tomcat5\bin\win32\i386\isapi_redirector2.dll

2. What is the virtual directory name in IIS and what the physical folder
pointing to.

>> The virtual directory: jakarta the directory path it is pointing to is:
d:\tomcat5\bin\win32\i386\

3. What is the registry entry value for workers2.properties

>> workersFile d:\tomcat5\conf\workers2.properties

4. Is the isapi-director.dll is for the version compatible to tomcat

>> Now how do I determine this?


Any help will be most welcome.

Regards

Srini


-Original Message-
From: Kannan Sundararajan [mailto:[EMAIL PROTECTED]
Sent: Friday, May 07, 2004 6:57 PM
To: '[EMAIL PROTECTED]'
Subject: Re: Tomcat 5.0 + IIS 6 + Windows 2003


I went thru this and it just an misdocumented feature gives interesting
results.

Focus on the isapi-director.dll

1. Where does the dll reside (full folder path)

2. What is the virtual directory name in IIS and what the physical folder
pointing to.

3. What is the registry entry value for workers2.properties

4. Is the isapi-director.dll is for the version compatable to tomcat

When you provide answer for this, try as much as possible the correct value
of folder instead of generic.
--
Sent from my BlackBerry Wireless Handheld

-
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: Muiltipul Tomcat 5.19 Servers on the same machine.

2004-05-10 Thread Yansheng Lin
Huh, interesting.  So you want all your three instances of Tomcat running at
the same time on the same box.  I am afraid Tomcat is not built that way.
But not sure it's not doable, just change the port that the 2nd and 3rd
instances listens too, you should be fine.  Not sure what you intend to
achieve here though.

-Yan

-Original Message-
From: Bond [mailto:[EMAIL PROTECTED] 
Sent: May 10, 2004 11:37
To: [EMAIL PROTECTED]
Subject: Muiltipul Tomcat 5.19 Servers on the same machine.




Hey Everyone,

I want to install 3 instances of Tomcat 5.19 as a
service on one box.  When I do this, I install each
one into it's own unique directory.  However, when I
try to start the service, it seems to not recognize
the 2nd or 3rd install.  I think I need to do some
more configuration here.  Anybody have any ideas on
how to do the above.   

Thanks in advanced.






__
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

-
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: Cannot access certian jar files in common/lib

2004-05-10 Thread Yansheng Lin
Are you running tomcat as root?
Is those jar's accessible under the group that Tomcat runs?

Also delete upload.jar, and the /work dir and see if your manager app still
works without the upload.jar.

-Yan


-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED] 
Sent: May 9, 2004 11:47
To: Tomcat Users List
Subject: Cannot access certian jar files in common/lib


TAO Linux (Redhat clone)
Tomcat 5.0.19
JDK 1.4.2

I have a problem that bugging me to death. I have 4 applications that are
loaded along with some static files in ROOT. In each of my applications I
use a globalresource to do database connections. The jar is in common/lib. I
also use iText in several of the apps and the jar for it is also in
common/lib . Now for the weird part. I wanted to use the file upload to push
some files to the server. I looked into the code for the manager to get some
ideas as well as the api. After writing the class I found that the
upload.jar was in server/lib. So I moved it to common/lib and made sure
there were no other copies. Really strange is that the manager app still
works fine but none of my apps can find the classes from the upload
jar.(Yes, many many restarts) For now I have a copy of the jar in the app
and all is working fine but why would my app not be able to find the classes
when the manager app can?

Just another question for the twilight zone.

Doug


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



Re: Muiltipul Tomcat 5.19 Servers on the same machine.

2004-05-10 Thread Emerson Cargnin
You can create a different ip address for the same machine using 
ifconfig. Take a look at the archive, I once send a better explanation 
on that... This approach is better than changing ports so you can use 
the default ports, just define an ipAdress tag for each different isntance.

Yansheng Lin wrote:
Huh, interesting.  So you want all your three instances of Tomcat running at
the same time on the same box.  I am afraid Tomcat is not built that way.
But not sure it's not doable, just change the port that the 2nd and 3rd
instances listens too, you should be fine.  Not sure what you intend to
achieve here though.
-Yan

-Original Message-
From: Bond [mailto:[EMAIL PROTECTED] 
Sent: May 10, 2004 11:37
To: [EMAIL PROTECTED]
Subject: Muiltipul Tomcat 5.19 Servers on the same machine.



Hey Everyone,

I want to install 3 instances of Tomcat 5.19 as a
service on one box.  When I do this, I install each
one into it's own unique directory.  However, when I
try to start the service, it seems to not recognize
the 2nd or 3rd install.  I think I need to do some
more configuration here.  Anybody have any ideas on
how to do the above.   

Thanks in advanced.



	
		
__
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

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



--
Emerson Cargnin
Analista de Sistemas
Setor de Desenvolvimento de Sistemas - TRE-SC
tel : (048) - 251-3700 - Ramal 3181
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Manager access problems

2004-05-10 Thread Yansheng Lin
Your apache listens on port 80, no?

-Yan

-Original Message-
From: Greg Adams [mailto:[EMAIL PROTECTED] 
Sent: May 10, 2004 10:23
To: [EMAIL PROTECTED]
Subject: Manager access problems


I've installed tomcat 5.0.19 on solaris 2.8. I've also installed jk-1.2.5
to connect tomcat to apache 1.3.27. I'm having no problems with jk, my
problem is when trying to access the manager application. If I access it
on the localhost using port 8080, http://localhost:8080/manager/html/, I
have no problem, but when I try to access it on port 8080 from another
host, http://:8080/manager/html/, I get a "HTTP Status 403 -
Access to the requested resource has been denied" error message. If I
access it through the jk connector from another host,
http:///manager/html/, I get no error message...

>From looking at the FAQ's and the Manager how-to, I've looked at the
following:

/conf/Catalina/localhost/manager.xml:






  
  




relevant section from httpd.conf

LoadModule jk_module  libexec/mod_jk.so
AddModule mod_jk.c
# Configure mod_jk
#
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info

# Tomcat Virtual Host
#

  DocumentRoot /usr/local/apache/htdocs
  ServerName yoda.ddm.apm.bpm.eds.com
  JkMount /servlets-examples/* ajp13
  JkMount /manager/* ajp13



workers.properties

worker.list= ajp13

worker.ajp13.host=yoda.ddm.apm.bpm.eds.com
worker.ajp13.port=8009
worker.ajp13.type=ajp13


server.xml - I'm using the default server.xml bundled with tomcat 5.0.19

Thanks for any ideas...

Greg

-
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: Directory recursion with mod_jk2.

2004-05-10 Thread Cox, Charlie
Remove your [uri] line and use something like this in the httpd.conf:


JkUriSet ...


regular expression is your friend. You should then be able to use your
DirectoryIndex.

Charlie

> -Original Message-
> From: Brett Simpson [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 10, 2004 12:58 PM
> To: Tomcat Users List
> Subject: Re: Directory recursion with mod_jk2.
> 
> On Thursday 06 May 2004 04:24 pm, Brett Simpson wrote:
> > I'm trying to configure Apache2 with mod_jk2 on Linux to be able to
process
> > all files with a .cfm extension in all directories on the server. The
cfm
> > is used for the Coldfusion servlet which is installed in the ROOT
context.
> 
> I figured out what I was doing wrong.
> 
> I needed the following in my worker2.properties file and had to avoid the
use
> of "DirectoryIndex index.cfm" in Apache.
> 
> [uri:/*.cfm]
> info=CFM Extension mapping.
> debug=0
> 
> If I add "DirectoryIndex index.cfm" to Apache then all requests get sent
to
> Tomcat even though I only specify *.cfm for the uri. Consequently
> DirectoryIndex in Apache doesn't work for files covered under the uri.
> 
> This is listed as a bug.
> 
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19298
> 
> Has anyone else seen this problem or know of a workaround?



RE: Filter on url example - Filter out hack attempts

2004-05-10 Thread Shapira, Yoav

Hi,
This is a trivial filter:
public class URLFilter implements Filter {
  ...
  public void doFilter(...) {
if(req instance of HttpServletRequest) {
  HttpServletRequest hreq = (HttpServletRequest) req;
  String uri = hreq.getRequestURI();
  if(allow(uri)){
chain.doFilter(req, res);
  } else {
// Do whatever: error page, redirect, etc.
  }
} else {
  // Non-HTTP requests
  chain.doFilter(req, res);
}
  }

private boolean allow(String uri) {
 // Look up allowed urls in a DB, Collection, whatever
}
}

I omitted full prototype declarations above due to laziness.  It's the
javax.servlet.Filter interface.

Take a look at the balancer webapp that ships with tomcat 5.  The
URLStringMatchRule is pretty close to what you want, and can be easily
extended with a list of allow patterns and/or deny patterns.  Tomcat has
something similar as the base Valve for the RemoteAddr/RemoteHost
valves.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: lrnobs [mailto:[EMAIL PROTECTED]
>Sent: Saturday, May 08, 2004 9:11 PM
>To: Tomcat Users List
>Subject: Filter on url example - Filter out hack attempts
>
>I have had no luck Googling so far for an example on how to filter
based on
>urls.
>
>I thought I might put this in the AccessLogValve but will do whatever
>works.
>
>I have a limited number of jsp's and graphics on my site and would like
to
>filter out all of the hack attempts that fill up my logs.
>
>I would like to do something like this (in plain english)
>
>Accept
>GET / HTTP/1.1
>GET / HTTP/1.0
>*page1.jsp*
>*page2.jsp*
>*page3.jsp*
>*page4.jsp*
>*page5.jsp*
>*graphic1.gif*
>*graphic2.gif*
>
>Drop All Other Requests - they are just hack attempts
>
>Thanks,
>
>Larry Nobs
>
>
>
>-
>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: Muiltipul Tomcat 5.19 Servers on the same machine.

2004-05-10 Thread Shapira, Yoav

Hi,
What are you guys talking about?  You can run as many instances of
tomcat as you want on the same machine with the same IP address, just
change the port.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
>Sent: Monday, May 10, 2004 3:39 PM
>To: Tomcat Users List
>Subject: Re: Muiltipul Tomcat 5.19 Servers on the same machine.
>
>You can create a different ip address for the same machine using
>ifconfig. Take a look at the archive, I once send a better explanation
>on that... This approach is better than changing ports so you can use
>the default ports, just define an ipAdress tag for each different
isntance.
>
>
>Yansheng Lin wrote:
>> Huh, interesting.  So you want all your three instances of Tomcat
running
>at
>> the same time on the same box.  I am afraid Tomcat is not built that
way.
>> But not sure it's not doable, just change the port that the 2nd and
3rd
>> instances listens too, you should be fine.  Not sure what you intend
to
>> achieve here though.
>>
>> -Yan
>>
>> -Original Message-
>> From: Bond [mailto:[EMAIL PROTECTED]
>> Sent: May 10, 2004 11:37
>> To: [EMAIL PROTECTED]
>> Subject: Muiltipul Tomcat 5.19 Servers on the same machine.
>>
>>
>>
>>
>> Hey Everyone,
>>
>> I want to install 3 instances of Tomcat 5.19 as a
>> service on one box.  When I do this, I install each
>> one into it's own unique directory.  However, when I
>> try to start the service, it seems to not recognize
>> the 2nd or 3rd install.  I think I need to do some
>> more configuration here.  Anybody have any ideas on
>> how to do the above.
>>
>> Thanks in advanced.
>>
>>
>>
>>
>>
>>
>> __
>> Do you Yahoo!?
>> Win a $20,000 Career Makeover at Yahoo! HotJobs
>> http://hotjobs.sweepstakes.yahoo.com/careermakeover
>>
>> -
>> 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]
>>
>>
>
>
>--
>Emerson Cargnin
>Analista de Sistemas
>Setor de Desenvolvimento de Sistemas - TRE-SC
>tel : (048) - 251-3700 - Ramal 3181
>
>-
>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: Tomcat 4.1.29 -> Tomcat 4.0.1 - App Problems

2004-05-10 Thread Shapira, Yoav

Hi,

>> 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.
>>
>
>Hey, Yoav, isn't this disclaimer exceptionally unfortunate when sending
>email to a mailing list?

I don't know, I've never given it a second thought.  IANAL but I think
the mailing list IS the intended recipient, so by extension all the
subscribers are "intended recipients."

Yoav



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]



Tomcat 4.1.04 and java 1.4.2

2004-05-10 Thread Reis, Tom
 I am running Tomcat 4.1.04 as a service on a Windows 2000 Server with java1.4.2. How 
can I pass the -server option to the java to startup in server mode when Tomcat starts 
as a service? Thanks.

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



Re: Directory recursion with mod_jk2.

2004-05-10 Thread Brett Simpson
On Monday 10 May 2004 03:46 pm, Cox, Charlie wrote:
> Remove your [uri] line and use something like this in the httpd.conf:
>
> 
>   JkUriSet ...
> 

No luck on that. I still end up in a Tomcat served directory listing instead 
of getting the index.cfm.

Here's what I now have:

# My Apache config
LoadModule jk2_modulemodules/mod_jk2.so


Options All
DirectoryIndex index.cfm



JkUriSet worker ajp13:localhost:8009


#workers2.properties

[logger]
info=Native logger
level=ERROR

[config:]
file=${serverRoot}/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests.
debug=0

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess 
servers
file=anonymous
debug=0

[workerEnv:]
info=Global server options
timing=0
debug=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8009

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

AW: Session without Cookies

2004-05-10 Thread Nils
thanx! that helped.

regards,
Nils

> -Ursprüngliche Nachricht-
> Von: Yansheng Lin [mailto:[EMAIL PROTECTED] 
> Gesendet: Montag, 10. Mai 2004 21:06
> An: 'Tomcat Users List'
> Betreff: RE: Session without Cookies
> 
> 
> This is a FAQ.  Set cookies=false in your context:
> 
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html
> 
> -Yan
> 
> -Original Message-
> From: Nils [mailto:[EMAIL PROTECTED] 
> Sent: May 8, 2004 04:41
> To: [EMAIL PROTECTED]
> Subject: WG: Session without Cookies
> 
> 
> Hello there,
> 
> how can I get Tomcat to just use URL-Session Ids and no 
> cookies anymore? Is there a server-side configuration?
> 
> regards,
> Nils Köster
> 
> 
> -
> 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]
> 


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



RE: Muiltipul Tomcat 5.19 Servers on the same machine.

2004-05-10 Thread Yansheng Lin
That's what I said.  Yoav, you are as sleepy as me after a big lunch, I
guess:).

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: May 10, 2004 13:54
To: Tomcat Users List
Subject: RE: Muiltipul Tomcat 5.19 Servers on the same machine.



Hi,
What are you guys talking about?  You can run as many instances of
tomcat as you want on the same machine with the same IP address, just
change the port.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
>Sent: Monday, May 10, 2004 3:39 PM
>To: Tomcat Users List
>Subject: Re: Muiltipul Tomcat 5.19 Servers on the same machine.
>
>You can create a different ip address for the same machine using
>ifconfig. Take a look at the archive, I once send a better explanation
>on that... This approach is better than changing ports so you can use
>the default ports, just define an ipAdress tag for each different
isntance.
>
>
>Yansheng Lin wrote:
>> Huh, interesting.  So you want all your three instances of Tomcat
running
>at
>> the same time on the same box.  I am afraid Tomcat is not built that
way.
>> But not sure it's not doable, just change the port that the 2nd and
3rd
>> instances listens too, you should be fine.  Not sure what you intend
to
>> achieve here though.
>>
>> -Yan
>>
>> -Original Message-
>> From: Bond [mailto:[EMAIL PROTECTED]
>> Sent: May 10, 2004 11:37
>> To: [EMAIL PROTECTED]
>> Subject: Muiltipul Tomcat 5.19 Servers on the same machine.
>>
>>
>>
>>
>> Hey Everyone,
>>
>> I want to install 3 instances of Tomcat 5.19 as a
>> service on one box.  When I do this, I install each
>> one into it's own unique directory.  However, when I
>> try to start the service, it seems to not recognize
>> the 2nd or 3rd install.  I think I need to do some
>> more configuration here.  Anybody have any ideas on
>> how to do the above.
>>
>> Thanks in advanced.
>>
>>
>>
>>
>>
>>
>> __
>> Do you Yahoo!?
>> Win a $20,000 Career Makeover at Yahoo! HotJobs
>> http://hotjobs.sweepstakes.yahoo.com/careermakeover
>>
>> -
>> 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]
>>
>>
>
>
>--
>Emerson Cargnin
>Analista de Sistemas
>Setor de Desenvolvimento de Sistemas - TRE-SC
>tel : (048) - 251-3700 - Ramal 3181
>
>-
>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]


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



RE: Muiltipul Tomcat 5.19 Servers on the same machine.

2004-05-10 Thread Shapira, Yoav

Hi,

>That's what I said.  Yoav, you are as sleepy as me after a big lunch, I
>guess:).

Not sleepy at all ;)  Working on many things at once.  My comments were
directed more at Senor Cargnin's post, as well as the "I am afraid
tomcat is not built that way" line in yours.

Yoav

>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: May 10, 2004 13:54
>To: Tomcat Users List
>Subject: RE: Muiltipul Tomcat 5.19 Servers on the same machine.
>
>
>
>Hi,
>What are you guys talking about?  You can run as many instances of
>tomcat as you want on the same machine with the same IP address, just
>change the port.
>
>Yoav Shapira
>Millennium Research Informatics
>
>
>>-Original Message-
>>From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
>>Sent: Monday, May 10, 2004 3:39 PM
>>To: Tomcat Users List
>>Subject: Re: Muiltipul Tomcat 5.19 Servers on the same machine.
>>
>>You can create a different ip address for the same machine using
>>ifconfig. Take a look at the archive, I once send a better explanation
>>on that... This approach is better than changing ports so you can use
>>the default ports, just define an ipAdress tag for each different
>isntance.
>>
>>
>>Yansheng Lin wrote:
>>> Huh, interesting.  So you want all your three instances of Tomcat
>running
>>at
>>> the same time on the same box.  I am afraid Tomcat is not built that
>way.
>>> But not sure it's not doable, just change the port that the 2nd and
>3rd
>>> instances listens too, you should be fine.  Not sure what you intend
>to
>>> achieve here though.
>>>
>>> -Yan
>>>
>>> -Original Message-
>>> From: Bond [mailto:[EMAIL PROTECTED]
>>> Sent: May 10, 2004 11:37
>>> To: [EMAIL PROTECTED]
>>> Subject: Muiltipul Tomcat 5.19 Servers on the same machine.
>>>
>>>
>>>
>>>
>>> Hey Everyone,
>>>
>>> I want to install 3 instances of Tomcat 5.19 as a
>>> service on one box.  When I do this, I install each
>>> one into it's own unique directory.  However, when I
>>> try to start the service, it seems to not recognize
>>> the 2nd or 3rd install.  I think I need to do some
>>> more configuration here.  Anybody have any ideas on
>>> how to do the above.
>>>
>>> Thanks in advanced.
>>>
>>>
>>>
>>>
>>>
>>>
>>> __
>>> Do you Yahoo!?
>>> Win a $20,000 Career Makeover at Yahoo! HotJobs
>>> http://hotjobs.sweepstakes.yahoo.com/careermakeover
>>>
>>>
-
>>> 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]
>>>
>>>
>>
>>
>>--
>>Emerson Cargnin
>>Analista de Sistemas
>>Setor de Desenvolvimento de Sistemas - TRE-SC
>>tel : (048) - 251-3700 - Ramal 3181
>>
>>-
>>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]
>
>
>-
>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: OutOfMemoryError after 5.0.24 update

2004-05-10 Thread Remy Maucherat
Stefan Proels wrote:
Dear all,

after updating our server to Tomcat 5.0.24 last night I got 2 crashes with 
the last words

Exception in thread "CompilerThread1" java.lang.OutOfMemoryError: 
requested 32760 bytes for ChunkPool::allocate. Out of swap space?

from Tomcat. Now the interesting is that according to our GC logs Java did 
not really run out of memory. Also I checked the system's state some 
minutes before the last crash and I remember the java process having 
allocated about 270 MB and as I set -Xmx1024m this also makes be believe 
that it did not really run of the memory. The pointer to the swap space 
also doesn't seem to lead into the right direction since the machine has 
4 GB physical memory and another 4 GB swap space and nearly no swap space 
is actually in use.

So my question is, is there any new configuration parameter I my have 
overlooked since 5.0.19 or has the default value of some related 
parameter changed which could cause this error?

What makes the problem even more mysterious is the fact that both 
exceptions occurred in "CompilerThread1" but since all our JSPs have been 
compiled already and none of them has changed, I wonder why this thread 
had anything to do at all.
You can (= should) disable the compiler thread IMO.
If you're precompiling every JSPs to servlets (with mappings in 
web.xml), you should leave Jasper in development mode, and it won't 
spawn the thread.

--
x
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Muiltipul Tomcat 5.19 Servers on the same machine.

2004-05-10 Thread Yansheng Lin
I think the OP is trying to simulate "distributed servers on the same
machine" scheme.  

I am guessing again because that's something I wanted to do as well:).
Would be nice for people with limited means, or too lazy to set up the
infrastructure himself and thinking he might be able to get around with some
cheap hack to the Tomcat internal.

-Yan

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: May 10, 2004 14:27
To: Tomcat Users List
Subject: RE: Muiltipul Tomcat 5.19 Servers on the same machine.



Hi,

>That's what I said.  Yoav, you are as sleepy as me after a big lunch, I
>guess:).

Not sleepy at all ;)  Working on many things at once.  My comments were
directed more at Senor Cargnin's post, as well as the "I am afraid
tomcat is not built that way" line in yours.

Yoav

>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: May 10, 2004 13:54
>To: Tomcat Users List
>Subject: RE: Muiltipul Tomcat 5.19 Servers on the same machine.
>
>
>
>Hi,
>What are you guys talking about?  You can run as many instances of
>tomcat as you want on the same machine with the same IP address, just
>change the port.
>
>Yoav Shapira
>Millennium Research Informatics
>
>
>>-Original Message-
>>From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
>>Sent: Monday, May 10, 2004 3:39 PM
>>To: Tomcat Users List
>>Subject: Re: Muiltipul Tomcat 5.19 Servers on the same machine.
>>
>>You can create a different ip address for the same machine using
>>ifconfig. Take a look at the archive, I once send a better explanation
>>on that... This approach is better than changing ports so you can use
>>the default ports, just define an ipAdress tag for each different
>isntance.
>>
>>
>>Yansheng Lin wrote:
>>> Huh, interesting.  So you want all your three instances of Tomcat
>running
>>at
>>> the same time on the same box.  I am afraid Tomcat is not built that
>way.
>>> But not sure it's not doable, just change the port that the 2nd and
>3rd
>>> instances listens too, you should be fine.  Not sure what you intend
>to
>>> achieve here though.
>>>
>>> -Yan
>>>
>>> -Original Message-
>>> From: Bond [mailto:[EMAIL PROTECTED]
>>> Sent: May 10, 2004 11:37
>>> To: [EMAIL PROTECTED]
>>> Subject: Muiltipul Tomcat 5.19 Servers on the same machine.
>>>
>>>
>>>
>>>
>>> Hey Everyone,
>>>
>>> I want to install 3 instances of Tomcat 5.19 as a
>>> service on one box.  When I do this, I install each
>>> one into it's own unique directory.  However, when I
>>> try to start the service, it seems to not recognize
>>> the 2nd or 3rd install.  I think I need to do some
>>> more configuration here.  Anybody have any ideas on
>>> how to do the above.
>>>
>>> Thanks in advanced.
>>>
>>>
>>>
>>>
>>>
>>>
>>> __
>>> Do you Yahoo!?
>>> Win a $20,000 Career Makeover at Yahoo! HotJobs
>>> http://hotjobs.sweepstakes.yahoo.com/careermakeover
>>>
>>>
-
>>> 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]
>>>
>>>
>>
>>
>>--
>>Emerson Cargnin
>>Analista de Sistemas
>>Setor de Desenvolvimento de Sistemas - TRE-SC
>>tel : (048) - 251-3700 - Ramal 3181
>>
>>-
>>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]
>
>
>-
>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 addit

xslt, standalone vs jk2

2004-05-10 Thread Paul
Hi All,

  i setup Oracle's xslt processor successfully in the following environment
with Tomcat running as a standalone web server,

windows 2000
java jdk 1.4
jakarta-tomcat-4.1.27-LE-jdk14.exe
oracle jdbc driver 9.x

however, when i add apache and jk2 connector,

apache_2.0.48-win32-x86-no_ssl.msi
jk2 connector

i can no longer run Oracle's xslt processor, but rather get the standard
'cannot find class' error, given as follows:

HTTP Status 500 -
-
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

javax.servlet.ServletException: Error allocating a servlet instance
 at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:672)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:210)

root cause

java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
 at java.lang.ClassLoader.defineClass0(Native Method)


The required xslt jar files are located in the web apps WEB-INF\lib
directory.

Does anyone have any idea why this setup does not work when Apache and JK2
are introduced, or better yet, what a work-around or fix to this might be???

Anyone else have a problem like this?

-paul.



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



RE: Manager access problems

2004-05-10 Thread Greg Adams
yes. Would it be helpful to post the entire httpd.conf? It's pretty long...

> Your apache listens on port 80, no?
>
> -Yan
>
> -Original Message-
> From: Greg Adams [mailto:[EMAIL PROTECTED]
> Sent: May 10, 2004 10:23
> To: [EMAIL PROTECTED]
> Subject: Manager access problems
>
>
> I've installed tomcat 5.0.19 on solaris 2.8. I've also installed jk-1.2.5
> to connect tomcat to apache 1.3.27. I'm having no problems with jk, my
> problem is when trying to access the manager application. If I access it
> on the localhost using port 8080, http://localhost:8080/manager/html/, I
> have no problem, but when I try to access it on port 8080 from another
> host, http://:8080/manager/html/, I get a "HTTP Status 403 -
> Access to the requested resource has been denied" error message. If I
> access it through the jk connector from another host,
> http:///manager/html/, I get no error message...
>
> From looking at the FAQ's and the Manager how-to, I've looked at the
> following:
>
> /conf/Catalina/localhost/manager.xml:
> 
> 
>
>
>  debug="0" privileged="true">
>
>   
>type="org.apache.catalina.UserDatabase"/>
>
> 
> 
>
> relevant section from httpd.conf
> 
> LoadModule jk_module  libexec/mod_jk.so
> AddModule mod_jk.c
> # Configure mod_jk
> #
> JkWorkersFile conf/workers.properties
> JkLogFile logs/mod_jk.log
> JkLogLevel info
>
> # Tomcat Virtual Host
> #
> 
>   DocumentRoot /usr/local/apache/htdocs
>   ServerName yoda.ddm.apm.bpm.eds.com
>   JkMount /servlets-examples/* ajp13
>   JkMount /manager/* ajp13
> 
> 
>
> workers.properties
> 
> worker.list= ajp13
>
> worker.ajp13.host=yoda.ddm.apm.bpm.eds.com
> worker.ajp13.port=8009
> worker.ajp13.type=ajp13
> 
>
> server.xml - I'm using the default server.xml bundled with tomcat 5.0.19
>
> Thanks for any ideas...
>
> Greg
>
> -
> 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]
>
>


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



Bad Cookie Name when NOT using cookies?

2004-05-10 Thread Evgeny Gesin
I not remember, if I asked this before, but it
happened again.

I DON'T USE cookies in my application. But sometimes I
see the following error messages in catalina log
files.
Can you comment and how to solve that?

Evgeny
Javadesk

2004-05-09 23:57:53 CoyoteAdapter Bad Cookie Name:
Path /Value: /myapplName
java.lang.IllegalArgumentException: Cookie name Path
is a reserved token
at
javax.servlet.http.Cookie.(Cookie.java:185)
at
org.apache.coyote.tomcat4.CoyoteAdapter.parseCookies(CoyoteAdapter.java:413)
at
org.apache.coyote.tomcat4.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:304)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:324)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:395)
at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)




__
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

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



Re: Tomcat 4.1.29 -> Tomcat 4.0.1 - App Problems

2004-05-10 Thread Ondrej Sváb
Hi,
thanks for answer,

I am not sure what you mean conflict. Eg. in common/lib/ is xerces.jar and
in
WEB-INF/lib/ is another xercesImpl.jar. This is potential conflict? I
deleted the former xerces.jar but troubles continues and other conflict I
did not realize.

But I found out strange thing Servlet.init() error ...
is only for JSP pages. On the other hand servlets run well.

How is it possible?
Any idea?

Thank you, Ondrej.

- Original Message - 
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>



Hi,
It's an XML parser conflict.  Make sure you don't have conflicting XML
parser libraries in your WEB-INF/lib, common/lib, common/endorsed, and
jre/lib/ext directories.

Tomcat 4.0.1, like all tomcat 4.x releases, supports Servlet 2.3 and JSP
1.2.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Friday, May 07, 2004 6:30 AM
>To: [EMAIL PROTECTED]
>Subject: Tomcat 4.1.29 -> Tomcat 4.0.1 - App Problems
>
>Hi all,
>I had to port application from Tomcat 4.1.29 where it is running
>without problems on Tomcat 4.0.1 and I encountered on errors with
>every jsp page. Below is text of error message.
>
>It seems to be the inadequate web.xml (it is need change the
>web.xml file?)? Or there is not support for Servlet 2.3 and JSP
>1.2 in Tomcat 4.0.1?
>
>
>the error message:
>...
>exception
>javax.servlet.ServletException: Servlet.init() for servlet jsp
>threw  exception
>at
>org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)
>
>root cause
>
>java.lang.ClassCastException
>at
>javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFac
tory
>.java:93)
>at
>org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:
183)
>at
>org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocati
onsC
>ache.java:165)
>...
>
>Does anybody know where the problem is?
>
>For avise thanks in advance.
>Best regarsd, Ondrej.
>
>-
>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]





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



closing the statement and result set object

2004-05-10 Thread Arora, Avinash
Hi, 
  When we obtain the Statement object from the connection object is it
necessary to close the statement object separately, when I am closing
the connection object. I had an impression that when we close the
Connection object the Statement and Result set objects get closed
automatically. Am I correct?
Thanks.

Avinash Arora


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Monday, May 10, 2004 12:32 PM
To: [EMAIL PROTECTED]
Subject: tomcat-user Digest 10 May 2004 19:32:23 - Issue 4423


tomcat-user Digest 10 May 2004 19:32:23 - Issue 4423

Topics (messages 100528 through 100544):

Re: url mapping problem with apache
100528 by: Cox, Charlie

Re: Authentication with custom access control
100529 by: QM

maxThreads
100530 by: Hollerman Geralyn M

Re: tomcat clustering
100531 by: Filip Hanik - Dev

tomcat connection pooling
100532 by: Ponnam Janiki

Manager access problems
100533 by: Greg Adams

Re: Directory recursion with mod_jk2.
100534 by: Brett Simpson

2.0.4 connector source?
100535 by: Daniel Gibby

Re: Tomcat 5.0 + IIS 6 + Windows 2003
100536 by: Srinivas Kotapally
100541 by: Kannan Sundararajan

Memory Options
100537 by: Paul Mitchell

Muiltipul Tomcat 5.19 Servers on the same machine.
100538 by: Bond
100542 by: Yansheng Lin
100544 by: Emerson Cargnin

Re: Tomcat 5 JK2 and IIS 5
100539 by: Emerson Cargnin

Re: Session without Cookies
100540 by: Yansheng Lin

Re: Cannot access certian jar files in common/lib
100543 by: Yansheng Lin

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--

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



JDBC Source getting null url

2004-05-10 Thread Richard Calosso



I just started to 
try and use a database source for some of my pages in my web app and am not 
getting a connection.  I am using Tomcat 5.0.19 with JRE 1.4.2_04 on redhat 
9 with mysql.  Every time I try to connect I get a exception saying 
Datasource invalid, not suitable driver for class '' url null (actual error page 
attached).  I am trying the examples in the docs, I get the same error in 
either servlet or jsp page, I have included the jsp page.  I have 
everything packaged in the web.xml file of the application to try and keep it 
portable.  I also tried using the admin tool and register a global data 
source and get the same result.
 
If I mistype the 
datasource name in the jsp it says it cannot find it so I does find some of it 
to verify, but why does it not find the resource parameters providing the driver 
and url?  I tried to google for some answers, but did not find much that 
applied to the same versions.
 
Thanks in 
advance.
 
===
Attached are my 
web.xml, sqltest.jsp, and the error output




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






  
factory
org.apache.commons.dbcp.BasicDataSourceFactory
  
  
maxActive
95
  
  
maxIdle
10
  
  
maxWait
10
  
  
username
tomcat
  
  
password
tomcat
  
  
driverClassName
com.mysql.jdbc.Driver
  
  
url
jdbc:mysql://localhost/broadline?autoreconnect=true
  
   



Broadline File Manager

  This is version X.X of an application to perform
  a File stuff using JSP pages.  It was written for
  Broadline Media Corp, who should be contacted for
  more information.



  DB Connector
  jdbc/BroadlineDB
  javax.sql.DataSource
  Container


  DB Connector test
  jdbc/TestDB
  javax.sql.DataSource
  Container





  webmaster
  [EMAIL PROTECTED]
  
The EMAIL address of the administrator to whom questions
and comments about this application should be addressed.
  






  


  loginValidator
  
 Validates login of user and set session cookie
  
  com.broadline.loginValidator


  loginValidator
  /login.jasx






  30



   index.html
   index.jsp




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

Tomcat 5 nt service

2004-05-10 Thread Sasha Borodin
Hello,

I have a working installation of Tomcat 5 (on a Windows 2000 Server SP4
machine with jdk_1.4.1), which works great.  I tried running the service.bat
script under the "bin" directory to install the NT service, which ran
without errors and reported success.  However, when I try to start the
service from the Services console, I get an error "0", and the
jakarta_service log has the following entry:

[2004-05-10 15:38:49] [info] Running Service...
[2004-05-10 15:38:49] [info] Starting service...
[2004-05-10 15:38:50] [364  javajni.c] [error] Unsuported JNI version 65537
[2004-05-10 15:38:50] [770  prunsrv.c] [error] Failed initializing java
D:\jakarta-tomcat-5.0.24\bin\bootstrap.jar
[2004-05-10 15:38:50] [982  prunsrv.c] [error] ServiceStart returned 2
[2004-05-10 15:38:50] [info] Run service finished.
[2004-05-10 15:38:50] [info] Procrun finished.

I have searched the mail-archive.com repository as well as google for
"unsupported JNI version" errors, cross-referencing with "tomcat 5", to no
avail; but I've never in my life encountered something that someone else
hasn't already found, so posting to the list is always hopeful ;-)

Thanks for any help.

-Sasha



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



RE: closing the statement and result set object

2004-05-10 Thread Shapira, Yoav

Hi,
Yes, closing the connection automatically closes associated resources
such as statements and resultsets.  However, it's good practice to
close/release resources as soon as you can.  So if you use multiple
statements over one connection, close each statement when you can.  Even
for one statement it's not a bad idea to close it explicitly and
properly handle possible SQL exceptions.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Arora, Avinash [mailto:[EMAIL PROTECTED]
>Sent: Monday, May 10, 2004 5:10 PM
>To: [EMAIL PROTECTED]
>Subject: closing the statement and result set object
>
>Hi,
>  When we obtain the Statement object from the connection object is it
>necessary to close the statement object separately, when I am closing
>the connection object. I had an impression that when we close the
>Connection object the Statement and Result set objects get closed
>automatically. Am I correct?
>Thanks.
>
>Avinash Arora
>
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]
>Sent: Monday, May 10, 2004 12:32 PM
>To: [EMAIL PROTECTED]
>Subject: tomcat-user Digest 10 May 2004 19:32:23 - Issue 4423
>
>
>tomcat-user Digest 10 May 2004 19:32:23 - Issue 4423
>
>Topics (messages 100528 through 100544):
>
>Re: url mapping problem with apache
>   100528 by: Cox, Charlie
>
>Re: Authentication with custom access control
>   100529 by: QM
>
>maxThreads
>   100530 by: Hollerman Geralyn M
>
>Re: tomcat clustering
>   100531 by: Filip Hanik - Dev
>
>tomcat connection pooling
>   100532 by: Ponnam Janiki
>
>Manager access problems
>   100533 by: Greg Adams
>
>Re: Directory recursion with mod_jk2.
>   100534 by: Brett Simpson
>
>2.0.4 connector source?
>   100535 by: Daniel Gibby
>
>Re: Tomcat 5.0 + IIS 6 + Windows 2003
>   100536 by: Srinivas Kotapally
>   100541 by: Kannan Sundararajan
>
>Memory Options
>   100537 by: Paul Mitchell
>
>Muiltipul Tomcat 5.19 Servers on the same machine.
>   100538 by: Bond
>   100542 by: Yansheng Lin
>   100544 by: Emerson Cargnin
>
>Re: Tomcat 5 JK2 and IIS 5
>   100539 by: Emerson Cargnin
>
>Re: Session without Cookies
>   100540 by: Yansheng Lin
>
>Re: Cannot access certian jar files in common/lib
>   100543 by: Yansheng Lin
>
>Administrivia:
>
>To subscribe to the digest, e-mail:
>   [EMAIL PROTECTED]
>
>To unsubscribe from the digest, e-mail:
>   [EMAIL PROTECTED]
>
>To post to the list, e-mail:
>   [EMAIL PROTECTED]
>
>
>--
>
>-
>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: Manager access problems

2004-05-10 Thread Yansheng Lin
No, it's not needed. 

Anyways, why do you think you would be able to access the webapp on 
http://:8080/manager/html/?

8080 is the port tomcat listens to.  It has nothing to do with what you
define in httpd.conf.

80 is the port apache listens to.  It talks with tomcat through port 8009
you defined in workers.properties.

By default, 80 is the default port that apache uses.  

If virtual host and jk2 are working for you, you should be able to access
your webapp without defining any port.

There are a lot of good posts on port 8080 and 80.  You may want to do a
search on the archieve.

Cheers:)

-Yan

-Original Message-
From: Greg Adams [mailto:[EMAIL PROTECTED] 
Sent: May 10, 2004 14:49
To: Tomcat Users List
Subject: RE: Manager access problems


yes. Would it be helpful to post the entire httpd.conf? It's pretty long...

> Your apache listens on port 80, no?
>
> -Yan
>
> -Original Message-
> From: Greg Adams [mailto:[EMAIL PROTECTED]
> Sent: May 10, 2004 10:23
> To: [EMAIL PROTECTED]
> Subject: Manager access problems
>
>
> I've installed tomcat 5.0.19 on solaris 2.8. I've also installed jk-1.2.5
> to connect tomcat to apache 1.3.27. I'm having no problems with jk, my
> problem is when trying to access the manager application. If I access it
> on the localhost using port 8080, http://localhost:8080/manager/html/, I
> have no problem, but when I try to access it on port 8080 from another
> host, http://:8080/manager/html/, I get a "HTTP Status 403 -
> Access to the requested resource has been denied" error message. If I
> access it through the jk connector from another host,
> http:///manager/html/, I get no error message...
>
> From looking at the FAQ's and the Manager how-to, I've looked at the
> following:
>
> /conf/Catalina/localhost/manager.xml:
>

> 
>
>
>  debug="0" privileged="true">
>
>   
>type="org.apache.catalina.UserDatabase"/>
>
> 
>

>
> relevant section from httpd.conf
>

> LoadModule jk_module  libexec/mod_jk.so
> AddModule mod_jk.c
> # Configure mod_jk
> #
> JkWorkersFile conf/workers.properties
> JkLogFile logs/mod_jk.log
> JkLogLevel info
>
> # Tomcat Virtual Host
> #
> 
>   DocumentRoot /usr/local/apache/htdocs
>   ServerName yoda.ddm.apm.bpm.eds.com
>   JkMount /servlets-examples/* ajp13
>   JkMount /manager/* ajp13
> 
>

>
> workers.properties
>

> worker.list= ajp13
>
> worker.ajp13.host=yoda.ddm.apm.bpm.eds.com
> worker.ajp13.port=8009
> worker.ajp13.type=ajp13
>

>
> server.xml - I'm using the default server.xml bundled with tomcat 5.0.19
>
> Thanks for any ideas...
>
> Greg
>
> -
> 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]
>
>


-
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: JDBC Source getting null url

2004-05-10 Thread Sasha Borodin
Richard,

I believe the first two elements appearing in your web.xml (Resource and
ResourceParams) need to be present in the server configuration:

1. either as a global resource in your server.xml (inside the Server
element)
2. or as a context specific resource in a "context descriptor" - a Context
entry in your server.xml, or (the new way) an external xml file
(http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html)

This way Tomcat knows about and sets up the resource for you web application
to use; I think the only thing you should do in your web.xml is "declare a
need" for a resource, though this part I'm hazy on, as my stuff has always
worked without any mention of the container-managed resource in my
web.xml's.

If anyone can clarify the requirement/logic behind declaring resource
"needs" in web.xml, I'd appreciate it.

-Sasha






From: "Richard Calosso" <[EMAIL PROTECTED]>
Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
Date: Mon, 10 May 2004 14:12:02 -0700
To: "Tomcat Users List (E-mail)" <[EMAIL PROTECTED]>
Subject: JDBC Source getting null url

I just started to try and use a database source for some of my pages in my
web app and am not getting a connection.  I am using Tomcat 5.0.19 with JRE
1.4.2_04 on redhat 9 with mysql.  Every time I try to connect I get a
exception saying Datasource invalid, not suitable driver for class '' url
null (actual error page attached).  I am trying the examples in the docs, I
get the same error in either servlet or jsp page, I have included the jsp
page.  I have everything packaged in the web.xml file of the application to
try and keep it portable.  I also tried using the admin tool and register a
global data source and get the same result.
 
If I mistype the datasource name in the jsp it says it cannot find it so I
does find some of it to verify, but why does it not find the resource
parameters providing the driver and url?  I tried to google for some
answers, but did not find much that applied to the same versions.
 
Thanks in advance.
 
===
Attached are my web.xml, sqltest.jsp, and the error output


-
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: JDBC Source getting null url

2004-05-10 Thread Richard Calosso
I also tried it using a global resource (option 1) with the same error
result.  Built it by hand and used the admin pages, same result.  Since I do
not have a context entry for my app I will try to build one and see if
option 2 works.


-Original Message-
From: Sasha Borodin [mailto:[EMAIL PROTECTED]
Sent: Monday, May 10, 2004 2:30 PM
To: Tomcat Users List
Subject: Re: JDBC Source getting null url


Richard,

I believe the first two elements appearing in your web.xml (Resource and
ResourceParams) need to be present in the server configuration:

1. either as a global resource in your server.xml (inside the Server
element)
2. or as a context specific resource in a "context descriptor" - a Context
entry in your server.xml, or (the new way) an external xml file
(http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html)

This way Tomcat knows about and sets up the resource for you web application
to use; I think the only thing you should do in your web.xml is "declare a
need" for a resource, though this part I'm hazy on, as my stuff has always
worked without any mention of the container-managed resource in my
web.xml's.

If anyone can clarify the requirement/logic behind declaring resource
"needs" in web.xml, I'd appreciate it.

-Sasha






From: "Richard Calosso" <[EMAIL PROTECTED]>
Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
Date: Mon, 10 May 2004 14:12:02 -0700
To: "Tomcat Users List (E-mail)" <[EMAIL PROTECTED]>
Subject: JDBC Source getting null url

I just started to try and use a database source for some of my pages in my
web app and am not getting a connection.  I am using Tomcat 5.0.19 with JRE
1.4.2_04 on redhat 9 with mysql.  Every time I try to connect I get a
exception saying Datasource invalid, not suitable driver for class '' url
null (actual error page attached).  I am trying the examples in the docs, I
get the same error in either servlet or jsp page, I have included the jsp
page.  I have everything packaged in the web.xml file of the application to
try and keep it portable.  I also tried using the admin tool and register a
global data source and get the same result.

If I mistype the datasource name in the jsp it says it cannot find it so I
does find some of it to verify, but why does it not find the resource
parameters providing the driver and url?  I tried to google for some
answers, but did not find much that applied to the same versions.

Thanks in advance.

===
Attached are my web.xml, sqltest.jsp, and the error output


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




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



Re: Cannot access certian jar files in common/lib

2004-05-10 Thread Parsons Technical Services
Running Tomcat as tomcat started with jsrv. All directories and files belong
to tomcat and tomcat group.

Deleted /work and renamed the upload jar. Manager app will fails on upload.
Renamed jar back to jar and manager upload works fine.

Doug


- Original Message - 
From: "Yansheng Lin" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, May 10, 2004 3:30 PM
Subject: RE: Cannot access certian jar files in common/lib


Are you running tomcat as root?
Is those jar's accessible under the group that Tomcat runs?

Also delete upload.jar, and the /work dir and see if your manager app still
works without the upload.jar.

-Yan


-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED]
Sent: May 9, 2004 11:47
To: Tomcat Users List
Subject: Cannot access certian jar files in common/lib


TAO Linux (Redhat clone)
Tomcat 5.0.19
JDK 1.4.2

I have a problem that bugging me to death. I have 4 applications that are
loaded along with some static files in ROOT. In each of my applications I
use a globalresource to do database connections. The jar is in common/lib. I
also use iText in several of the apps and the jar for it is also in
common/lib . Now for the weird part. I wanted to use the file upload to push
some files to the server. I looked into the code for the manager to get some
ideas as well as the api. After writing the class I found that the
upload.jar was in server/lib. So I moved it to common/lib and made sure
there were no other copies. Really strange is that the manager app still
works fine but none of my apps can find the classes from the upload
jar.(Yes, many many restarts) For now I have a copy of the jar in the app
and all is working fine but why would my app not be able to find the classes
when the manager app can?

Just another question for the twilight zone.

Doug


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



parse error in application web.xml under 5.0.24 but not 5.0.19

2004-05-10 Thread Jim Hopp
I've just upgraded from 5.0.19 to 5.0.24.  My webapps worked fine under 
5.0.19, but Tomcat is throwing the exception below under 5.0.24 when it 
tries to start the webapp.  (The apps also start properly under 5.0.20, 
but fail under 5.0.21 with the same exception so it appears that a 
change made in 5.0.21 is causing the problem.)

My server.xml and web.xml follow the exception trace.

May 10, 2004 3:33:30 PM org.apache.catalina.core.StandardContext start
FINE: Starting tomcat.localhost./property.Context
May 10, 2004 3:33:30 PM org.apache.catalina.core.StandardContext 
createObjectNam
e
FINE: Registering 
j2eeType=WebModule,name=//localhost/property,J2EEApplication=n
one,J2EEServer=none for null
May 10, 2004 3:33:30 PM org.apache.catalina.core.StandardContext start
FINE: Configuring default Resources
May 10, 2004 3:33:30 PM org.apache.catalina.core.StandardContext start
FINE: No realm for this host 
directory:type=Host,host=localhost,path=/property
May 10, 2004 3:33:30 PM org.apache.catalina.core.StandardContext start
FINE: Configuring non-privileged default Loader
May 10, 2004 3:33:30 PM org.apache.catalina.core.StandardContext start
FINE: Processing standard container startup
May 10, 2004 3:33:31 PM org.apache.catalina.core.StandardContext setPublicId
FINE: Setting deployment descriptor public ID to '-//Sun Microsystems, 
Inc.//DTD
 Web Application 2.3//EN'
May 10, 2004 3:33:31 PM org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.Container
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1340)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1189)
at 
org.apache.commons.digester.SetNextRule.end(SetNextRule.java:243)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at 
org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at 
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source
)
at 
org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown
Source)
at 
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown S
ource)
at 
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)

at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at 
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
nfig.java:263)
at 
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:62
4)
at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:216)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4
268)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)

at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)

at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478
)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:4
76)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:229
8)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
May 10, 2004 3:33:31 PM org.apache.catalina.startup.ContextConfig 
applicationCon
fig
SEVERE: Parse error in application web.xml
java.lang.ClassNotFoundException: org.apache.catalina.Container
at 
org.apache.commons.digester.Digester.createSAXException(Digester.java
:2540)
at 
org.apache.commons.digester.Digester.createSAXException(Digester.java
:2566)
at 
org.apache.commons.digester.Digester.endElement(Digester.java:1061)
at 
org.apache.xerces.parsers

RE: JDBC Source getting null url

2004-05-10 Thread Richard Calosso
Ok, option 2 worked.  If I placed the resource and resourceparams in the
context it worked.  I used the tomcat5 version and modified the web app
default standalone context xml file.

I would like to still understand why the global one did not work or
declaring it in the web.xml file.

-Original Message-
From: Richard Calosso [mailto:[EMAIL PROTECTED]
Sent: Monday, May 10, 2004 3:32 PM
To: 'Tomcat Users List'
Subject: RE: JDBC Source getting null url


I also tried it using a global resource (option 1) with the same error
result.  Built it by hand and used the admin pages, same result.  Since I do
not have a context entry for my app I will try to build one and see if
option 2 works.


-Original Message-
From: Sasha Borodin [mailto:[EMAIL PROTECTED]
Sent: Monday, May 10, 2004 2:30 PM
To: Tomcat Users List
Subject: Re: JDBC Source getting null url


Richard,

I believe the first two elements appearing in your web.xml (Resource and
ResourceParams) need to be present in the server configuration:

1. either as a global resource in your server.xml (inside the Server
element)
2. or as a context specific resource in a "context descriptor" - a Context
entry in your server.xml, or (the new way) an external xml file
(http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html)

This way Tomcat knows about and sets up the resource for you web application
to use; I think the only thing you should do in your web.xml is "declare a
need" for a resource, though this part I'm hazy on, as my stuff has always
worked without any mention of the container-managed resource in my
web.xml's.

If anyone can clarify the requirement/logic behind declaring resource
"needs" in web.xml, I'd appreciate it.

-Sasha






From: "Richard Calosso" <[EMAIL PROTECTED]>
Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
Date: Mon, 10 May 2004 14:12:02 -0700
To: "Tomcat Users List (E-mail)" <[EMAIL PROTECTED]>
Subject: JDBC Source getting null url

I just started to try and use a database source for some of my pages in my
web app and am not getting a connection.  I am using Tomcat 5.0.19 with JRE
1.4.2_04 on redhat 9 with mysql.  Every time I try to connect I get a
exception saying Datasource invalid, not suitable driver for class '' url
null (actual error page attached).  I am trying the examples in the docs, I
get the same error in either servlet or jsp page, I have included the jsp
page.  I have everything packaged in the web.xml file of the application to
try and keep it portable.  I also tried using the admin tool and register a
global data source and get the same result.

If I mistype the datasource name in the jsp it says it cannot find it so I
does find some of it to verify, but why does it not find the resource
parameters providing the driver and url?  I tried to google for some
answers, but did not find much that applied to the same versions.

Thanks in advance.

===
Attached are my web.xml, sqltest.jsp, and the error output


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




-
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: JDBC Source getting null url

2004-05-10 Thread Parsons Technical Services
For the global to work you must place a link in the context. As for the
web.xml this is the wrong tags for that file.

Doug


- Original Message - 
From: "Richard Calosso" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, May 10, 2004 7:01 PM
Subject: RE: JDBC Source getting null url


> Ok, option 2 worked.  If I placed the resource and resourceparams in the
> context it worked.  I used the tomcat5 version and modified the web app
> default standalone context xml file.
>
> I would like to still understand why the global one did not work or
> declaring it in the web.xml file.
>
> -Original Message-
> From: Richard Calosso [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 10, 2004 3:32 PM
> To: 'Tomcat Users List'
> Subject: RE: JDBC Source getting null url
>
>
> I also tried it using a global resource (option 1) with the same error
> result.  Built it by hand and used the admin pages, same result.  Since I
do
> not have a context entry for my app I will try to build one and see if
> option 2 works.
>
>
> -Original Message-
> From: Sasha Borodin [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 10, 2004 2:30 PM
> To: Tomcat Users List
> Subject: Re: JDBC Source getting null url
>
>
> Richard,
>
> I believe the first two elements appearing in your web.xml (Resource and
> ResourceParams) need to be present in the server configuration:
>
> 1. either as a global resource in your server.xml (inside the Server
> element)
> 2. or as a context specific resource in a "context descriptor" - a Context
> entry in your server.xml, or (the new way) an external xml file
> (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html)
>
> This way Tomcat knows about and sets up the resource for you web
application
> to use; I think the only thing you should do in your web.xml is "declare a
> need" for a resource, though this part I'm hazy on, as my stuff has always
> worked without any mention of the container-managed resource in my
> web.xml's.
>
> If anyone can clarify the requirement/logic behind declaring resource
> "needs" in web.xml, I'd appreciate it.
>
> -Sasha
>
>
>
>
>
>
> From: "Richard Calosso" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> Date: Mon, 10 May 2004 14:12:02 -0700
> To: "Tomcat Users List (E-mail)" <[EMAIL PROTECTED]>
> Subject: JDBC Source getting null url
>
> I just started to try and use a database source for some of my pages in my
> web app and am not getting a connection.  I am using Tomcat 5.0.19 with
JRE
> 1.4.2_04 on redhat 9 with mysql.  Every time I try to connect I get a
> exception saying Datasource invalid, not suitable driver for class '' url
> null (actual error page attached).  I am trying the examples in the docs,
I
> get the same error in either servlet or jsp page, I have included the jsp
> page.  I have everything packaged in the web.xml file of the application
to
> try and keep it portable.  I also tried using the admin tool and register
a
> global data source and get the same result.
>
> If I mistype the datasource name in the jsp it says it cannot find it so I
> does find some of it to verify, but why does it not find the resource
> parameters providing the driver and url?  I tried to google for some
> answers, but did not find much that applied to the same versions.
>
> Thanks in advance.
>
> ===
> Attached are my web.xml, sqltest.jsp, and the error output
>
>
> -
> 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]
>
>
>
>
> -
> 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]
>
>



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



RE: parse error in application web.xml under 5.0.24 but not 5.0.19

2004-05-10 Thread Mike Curwen
you might have done this already, but according to the changelog...  
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/changelog.html
 
there were a number of fixes/enhanements in and around XML processing of
web/server.xml files.
 
And in 5.0.22, a different version of xerces.

That may not help at all, but it gives you a start on 'what changed'.  
 


> -Original Message-
> From: Jim Hopp [mailto:[EMAIL PROTECTED] 
> Sent: Monday, May 10, 2004 5:59 PM
> To: [EMAIL PROTECTED]
> Subject: parse error in application web.xml under 5.0.24 but 
> not 5.0.19
> 
> 
> I've just upgraded from 5.0.19 to 5.0.24.  My webapps worked 
> fine under 
> 5.0.19, but Tomcat is throwing the exception below under 
> 5.0.24 when it 
> tries to start the webapp.  (The apps also start properly 
> under 5.0.20, 
> but fail under 5.0.21 with the same exception so it appears that a 
> change made in 5.0.21 is causing the problem.)
> 
> My server.xml and web.xml follow the exception trace.



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



RE: Manager access problems

2004-05-10 Thread John Najarian
I ran into a problem accessing the manager & admin
apps.  I didn't realize you had to add users in the
Jakarta-tomcat-5.0.19/conf/tomcat-users.xml file. 

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 10, 2004 2:22 PM
To: 'Tomcat Users List'
Subject: RE: Manager access problems

No, it's not needed. 

Anyways, why do you think you would be able to access the webapp on 
http://:8080/manager/html/?

8080 is the port tomcat listens to.  It has nothing to do with what you
define in httpd.conf.

80 is the port apache listens to.  It talks with tomcat through port 8009
you defined in workers.properties.

By default, 80 is the default port that apache uses.  

If virtual host and jk2 are working for you, you should be able to access
your webapp without defining any port.

There are a lot of good posts on port 8080 and 80.  You may want to do a
search on the archieve.

Cheers:)

-Yan

-Original Message-
From: Greg Adams [mailto:[EMAIL PROTECTED] 
Sent: May 10, 2004 14:49
To: Tomcat Users List
Subject: RE: Manager access problems


yes. Would it be helpful to post the entire httpd.conf? It's pretty long...

> Your apache listens on port 80, no?
>
> -Yan
>
> -Original Message-
> From: Greg Adams [mailto:[EMAIL PROTECTED]
> Sent: May 10, 2004 10:23
> To: [EMAIL PROTECTED]
> Subject: Manager access problems
>
>
> I've installed tomcat 5.0.19 on solaris 2.8. I've also installed jk-1.2.5
> to connect tomcat to apache 1.3.27. I'm having no problems with jk, my
> problem is when trying to access the manager application. If I access it
> on the localhost using port 8080, http://localhost:8080/manager/html/, I
> have no problem, but when I try to access it on port 8080 from another
> host, http://:8080/manager/html/, I get a "HTTP Status 403 -
> Access to the requested resource has been denied" error message. If I
> access it through the jk connector from another host,
> http:///manager/html/, I get no error message...
>
> From looking at the FAQ's and the Manager how-to, I've looked at the
> following:
>
> /conf/Catalina/localhost/manager.xml:
>

> 
>
>
>  debug="0" privileged="true">
>
>   
>type="org.apache.catalina.UserDatabase"/>
>
> 
>

>
> relevant section from httpd.conf
>

> LoadModule jk_module  libexec/mod_jk.so
> AddModule mod_jk.c
> # Configure mod_jk
> #
> JkWorkersFile conf/workers.properties
> JkLogFile logs/mod_jk.log
> JkLogLevel info
>
> # Tomcat Virtual Host
> #
> 
>   DocumentRoot /usr/local/apache/htdocs
>   ServerName yoda.ddm.apm.bpm.eds.com
>   JkMount /servlets-examples/* ajp13
>   JkMount /manager/* ajp13
> 
>

>
> workers.properties
>

> worker.list= ajp13
>
> worker.ajp13.host=yoda.ddm.apm.bpm.eds.com
> worker.ajp13.port=8009
> worker.ajp13.type=ajp13
>

>
> server.xml - I'm using the default server.xml bundled with tomcat 5.0.19
>
> Thanks for any ideas...
>
> Greg
>
> -
> 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]
>
>


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




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



RE: JNDIRealm strangeness

2004-05-10 Thread Shane Linley
Well you have prompted me to respond once more!

Tomcat should not have to do anything to establish a encrypted SSL
connection to your LDAP server except pass on the correct parameters to the
chosen LDAP driver, and instantiate it. It is the LDAP drivers job to handle
all the nasty details of doing the SSL connection, and talking LDAP. That
said, some LDAP driver factories do offer extra parameters for configuring
SSL parameters beyond the SECURITY_PROTOCOL parameter. (Of course, Tomcat
will be issuing the appropriate LDAP queries to do the Realm authentication,
etc).

I took a quick look at the Tomcat JDNI Realm configuration document, and it
does specify that you can put in your own "contextFactory" so if you have
another LDAP driver, other than Suns reference driver then you could use try
that out to see if it fixes your problem. I don't know if OpenLDAP provides
their own Java LDAP Driver but its worth a look! Have a hunt around and see
what you can find. Technically speaking any driver that implements the LDAP
RFCs should be able to talk to any LDAP server that implements the RFCs, but
cruel reality often imposes itself :)

But yes, someone should get around to putting in a bug report about that
"ldaps" matter :) If it has not already been done that is.

Regards,
Shane.

-Original Message-
From: Chong Yu Meng [mailto:[EMAIL PROTECTED]
Sent: Monday, 10 May 2004 11:53 AM
To: Tomcat Users List
Subject: Re: JNDIRealm strangeness


Hi Shane !

Thanks for your help! After experimenting over the weekend, I think that
this is probably a bug in the Tomcat code. I checked and corrected some
problems in my OpenLDAP setup, and verified that SSL/TLS connections can
be made successfully to it using ldapsearch. When I tried starting up
Tomcat again, it gave me the same error. I think Tomcat may not be able
to establish an encrypted connection to OpenLDAP. Unencrypted
connections on port 389 seem to be ok.

Incidentally, I'm also anal retentive (that, I am told, is a national
characteristic of my country), and I tried "ldaps://", but Tomcat will
throw a parse error and will not accept the JNDI Realm parameters.

They may have fixed it in the just-released 5.0.24, though. Thanks for
your help, again ! I'm not on any specific timetable, so I don't need to
fix this soon. I'll direct my question to the Tomcat developers and see
if they are aware of the issue.

Regards,
pascal chong



Shane Linley wrote:

>Hi,
>
>What happens on failed connections IS driver specific, but it should NOT BY
>DEFAULT switch to using a non SSL connection, for the sake of security if
>nothing else. The connection should tried to be established, if it fails
>then it should send back the appropriate naming exception. That said
drivers
>do accept configuration properties to modify their behaviour, so
technically
>anything is possible, based on your drivers documentation.
>
>I have never used OpenLDAP so its error logs don't really mean all that
much
>to me, but having done similar things in the past you should look up your
>error codes in the OpenLDAP documentation (but its probably the OpenSSL
>doco) as to what the error codes really mean to work out what the problem
>is. I'm referring specifically to this line (as id does match up to the
>"Request: 1 cancelled") message that the LDAP client driver reports.
>
>  May  7 20:03:56 localhost slapd[6346]: connection_read(11): TLS accept
>error error=-1 id=0, closing
>
>Thats all I have! Good luck.
>
>Regards,
>Shane.
>
>P.S. The anal retentive part of me still wants you to specify the ldap
>connection as ldaps://server:636 but that is completely besides the point!
>:)
>
>
>


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



[NOTIFICATION DE NON REMISE DE MAIL]

2004-05-10 Thread j-chkmail . atacama

Ce message a été vérifié par le système de filtrage de notre
serveur de messagerie.
(This message was verified by the filtering system of our mail
server.)

Le message original a été remplacé par celui-ci pour la raison 
suivante :
(Original message was replaced by this one by the following
reason : )

*** A suspicious file (executable code) was found in the message !

Le message original est accompagné du fichier attaché
suivant :
(Original message had the following attached files :)

   (X-FILE ??? ) : application.doc 
  .scr
TYPE : application/octet-stream

   SUSPECT FILES : 1

Il a été envoyé par :
(Original message was sent by :)

   From : <[EMAIL PROTECTED]>

Si vous pensez que c'est une erreur et que le message ne
devrait pas être rejeté, vous devez contacter votre administrateur
système pour obtenir des instructions :
(If you think this is an error and the message should not
be rejected by the filtering system, you may contact you
system administrator for instructions.)

Pour toute question, vous pouvez nous contacter :
(If you have any questions, you can contact us :)

  [EMAIL PROTECTED]

Cordialement.
(Sincerely,)

  [EMAIL PROTECTED]



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



mod-jk2 problems

2004-05-10 Thread keita elhadji

Hi,

Excuse me to wrote you in your own e-mail address but
i have a problem with mod_jk2 .
I have two PC  with tomcat5.019
1st PC name is : www.avisdunet.biz
2nd PC name is : www1.avisdunet.biz

In the first i install apache2.0.49 with mod_jk2 and i
want to work with clustering the two server.
and when i start apache it works correctly :

[Mon May 10 10:28:22 2004] [notice] config.update():
done logger
[Mon May 10 10:28:22 2004] [notice]
config.setAttribute() Error setting config: debigEnv 0
[Mon May 10 10:28:22 2004] [notice] config.update():
done config:
[Mon May 10 10:28:22 2004] [notice] config.update():
done uriMap:
[Mon May 10 10:28:22 2004] ( info ) [jk_logger_file.c
(176)]  Level DEBUG 0 
[Mon May 10 10:28:22 2004] [notice] config.update():
done logger.file:0
[Mon May 10 10:28:22 2004] [notice] config.update():
done shm
[Mon May 10 10:28:22 2004] [notice] config.update():
done workerEnv:
[Mon May 10 10:28:22 2004] [notice] config.update():
done lb:lb
[Mon May 10 10:28:22 2004] [notice] config.update():
done channel.socket:localhost:8009
[Mon May 10 10:28:22 2004] [notice] config.update():
done channel.socket:192.168.0.68:8009
[Mon May 10 10:28:22 2004] [notice] config.update():
done ajp13:localhost:8009
[Mon May 10 10:28:22 2004] [notice] config.update():
done ajp13:192.168.0.68.biz:8009
[Mon May 10 10:28:22 2004] [notice] config.update():
done uri:/jsp-examples/*
[Mon May 10 10:28:22 2004] [notice] config.update():
done uri:/pro/*.jsp
[Mon May 10 10:28:22 2004] [notice] config.update():
done uri:/balancer
[Mon May 10 10:28:22 2004] [notice] config.update():
done status:

when i start tomcat it works correctly.
But apache is not load balancing.

my conf files are:

httpd.conf :


LoadModule jk2_module modules/mod_jk2.so
# Some configuration for JOnAS
#Include conf/JOnas.conf

# 


  JKSet config:file
/usr/local/apache2/conf/workers2.properties


workers2.properties : 
-

[logger]
level=DEBUG
[config:]
debug=0
debigEnv=0

[uriMap:]
info=Maps the requests, Options: debug
debug=0

# Alternate file logger
[logger.file:0]
level=DEBUG
file=/usr/local/apache2/logs/jk2.log

[shm]
info=Scoreboard. Requried for reconfiguration and
status with multiprocess
servers.
file=anon
#size=104856
#debug=1

[workerEnv:]
info=Global server options
debug=0
logger=logger.file:0

# Defines a load balancer named lb. Use even if you
only have one machine.
[lb:lb]
info=Default Load Balancer
debug=10

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1
lb_factor=1
tomcatId=tomcat

# Second Scoket Channel
[channel.socket:192.168.0.68:8009]
port=8009
host=192.168.0.68
lb_factor=1
tomcatId=tomcat
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
group=lb

# define the second worker
[ajp13:192.168.0.68.biz:8009]
channel=channel.socket:192.168.0.68:8009
group=lb


# Map the Tomcat examples webapp to the Web server uri
space
[uri:/jsp-examples/*]
info=JSP Examples
group=lb


[uri:/pro/*.jsp]
info=Test JSP Page
group=lb

[uri:/balancer]
group=lb
[status:]

server.xml:
---

 



 


 

Thank you for your answer.
   KEITA






Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! 
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! 
Messenger sur http://fr.messenger.yahoo.com

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



Startup Problems

2004-05-10 Thread Stefan Walter
Hi!

I have installed Tomcat 5.0.19 at Redhat Linux 9.0

When i run the following command then i get this exception:

[EMAIL PROTECTED] bin]# ./catalina.sh debug
Using CATALINA_BASE:   /usr/local/jakarta-tomcat-5.0.19
Using CATALINA_HOME:   /usr/local/jakarta-tomcat-5.0.19
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-5.0.19/temp
Using JAVA_HOME:   /usr/java/j2sdk1.4.2_04/
Initializing jdb ...
> run
run org.apache.catalina.startup.Bootstrap start
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
>
VM Started: May 10, 2004 11:02:30 AM
org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
May 10, 2004 11:02:30 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2232 ms
May 10, 2004 11:02:30 AM org.apache.catalina.realm.JAASRealm
setContainer
INFO: Setting JAAS app name HelloWorld
May 10, 2004 11:02:30 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 10, 2004 11:02:30 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.19
May 10, 2004 11:02:30 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 10, 2004 11:02:31 AM org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:2
52)
at
org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:505)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at
org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown
Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk
nown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfi
g.java:300)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:641)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j
ava:253)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4222
)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521)
at
org.apache.catalina.core.StandardService.start(StandardService.java:519)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
Caused by: java.lang.IllegalArgumentException: Servlet mapping specifies
an unknown servlet name HelloWorld
at
org.apache.catalina.core.StandardContext.addServletMapping(StandardConte
xt.java:2180)
... 38 more
May 10, 2004 11:02:31 AM org.apache.catalina.startup.ContextConfig
applicationConfig
SEVERE: Parse error in application web.xml
java.lang.IllegalArgumentException: Servlet mapping specifies an unknown
servlet name HelloWorld
at
org.apache.commons.digester.Di

CN= Babür SOMER/ ist zur Zeit nicht erreichbar

2004-05-10 Thread b . somer




I will be out of the office starting  07.05.2004 and will not return until
11.05.2004.

Bitte wenden Sie sich in dringenden Fällen mit Ihrem Anliegen an
[EMAIL PROTECTED]


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



Authentication with custom access control

2004-05-10 Thread Cain, Simon
Hi,

I need to set up my Tomcat server to receive requests using BASIC
authentication, but then allow me to authorize them using my own application
database. I do not want Tomcat to check against the users in the
tomcat-users.xml file, I want to do the checking programmatically..
I'm using Axis SOAP services and need a fairly secure login that can be
authorized using an existing external database of user details.

Thanks,

Simon Cain
===
Information contained in this email message is intended only for
use of the individual or entity named above. If the reader of this
message is not the intended recipient, or the employee or agent
responsible to deliver it to the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this
communication is strictly prohibited. If you have received this
communication in error, please immediately notify us by email
to [EMAIL PROTECTED] and destroy the original message.


tomcat clustering

2004-05-10 Thread keita elhadji
Hi,

i have a problem with mod_jk2 .
I have two PC  with tomcat5.019
1st PC name is : www.avisdunet.biz
2nd PC name is : www1.avisdunet.biz

mod_jk2 and apache2 in the first when i start tomcat
my clustering didn't work and i don't know why and in
my logs catalina.out :

10 mai 2004 11:30:15
org.apache.coyote.http11.Http11Protocol init
INFO: Initialisation de Coyote HTTP/1.1 sur le port
8080
10 mai 2004 11:30:17
org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 48211 ms
10 mai 2004 11:30:22
org.apache.catalina.core.StandardService start
INFO: Démarrage du service Catalina
10 mai 2004 11:30:22
org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.19
10 mai 2004 11:30:23
org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
10 mai 2004 11:30:23
org.apache.catalina.cluster.tcp.SimpleTcpCluster start
INFO: Cluster is about to start
10 mai 2004 11:30:24
org.apache.catalina.cluster.mcast.McastService start
INFO: Sleeping for 2000 secs to establish cluster
membership
10 mai 2004 11:30:26
org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment (
non-jmx )
10 mai 2004 11:30:27
org.apache.catalina.core.StandardHostDeployer install
INFO: Installation d'une application pour le chemin de
contexte /pro depuis l'URL
file:/usr/local/java/tomcat/webapps/pro
10 mai 2004 11:30:43
org.apache.catalina.session.StandardManager doLoad
GRAVE: "IOException" lors du chargement des sessions
persistantes: java.io.WriteAbortedException: writing
aborted; java.io.No$
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
com.avisdunet.ServeurFond
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
at
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
at
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)


Caused by: java.io.NotSerializableException:
com.avisdunet.ServeurFond
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)

Resolving to alternate DTD
'file:/usr/local/java/jakarta-tomcat-5.0.19/work/Standalone/localhost/pro/loader/org/apache/strut$
Call
org.apache.struts.action.ActionServlet.addServletMapping(monActionServlet/java.lang.String,*.action/java.lang.String)
Call
org.apache.struts.action.ActionServlet.addServletMapping(action/java.lang.String,*.do/java.lang.String)
10 mai 2004 11:30:56
org.apache.catalina.core.StandardHostDeployer install
INFO: Installation d'une application pour le chemin de
contexte  depuis l'URL
file:/usr/local/java/jakarta-tomcat-5.0.19/weba$
10 mai 2004 11:30:59
org.apache.catalina.core.StandardHostDeployer install
INFO: Installation d'une application pour le chemin de
contexte /balancer depuis l'URL
file:/usr/local/java/jakarta-tomcat-5.$
10 mai 2004 11:31:02
org.apache.catalina.core.StandardContext start
GRAVE: Error filterStart
10 mai 2004 11:31:02
org.apache.catalina.core.StandardContext start
GRAVE: Erreur de démarrage du contexte suite aux
erreurs précédentes
10 mai 2004 11:31:02
org.apache.catalina.core.StandardHostDeployer install
INFO: Installation d'une application pour le chemin de
contexte /jsp-examples depuis l'URL
file:/usr/local/java/jakarta-tomca$
10 mai 2004 11:31:09
org.apache.catalina.core.StandardHostDeployer install
INFO: Installation d'une application pour le chemin de
contexte /servlets-examples depuis l'URL
file:/usr/local/java/jakarta-$
10 mai 2004 11:31:13
org.apache.catalina.core.StandardHostDeployer install
INFO: Installation d'une application pour le chemin de
contexte /tomcat-docs depuis l'URL
file:/usr/local/java/jakarta-tomcat$
10 mai 2004 11:31:15
org.apache.catalina.core.StandardHostDeployer install
INFO: Installation d'une application pour le chemin de
contexte /webdav depuis l'URL
file:/usr/local/java/jakarta-tomcat-5.0.$
10 mai 2004 11:31:20
org.apache.coyote.http11.Http11Protocol start
INFO: Démarrage de Coyote HTTP/1.1 sur le port 8080
10 mai 2004 11:31:25
org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
10 mai 2004 11:31:25 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=85/1005 
config=/usr/local/java/tomcat/conf/jk2.properties
10 mai 2004 11:31:26
org.apache.catalina.startup.Catalina start
INFO: Server startup in 68992 ms
Lectur

tomcat@content_provider

2004-05-10 Thread yuni indrasary
hi, pardon me if this question is out of the context
for this list, i supposed to simulating J2ME
networking app, it works fine when i run it in the
emulator (i use j2me wtk1.0.4 and also try it at
siemens sl45 SMTK, and i put the servlet as the
server-app under the web-apps directory of tomcat),
now i want to deploy it on a real devices, do i have
to make some additional set up in tomcat?.
some literature i've read told me about WAP gateway,
is it a must for j2me app to use WAP gateway if it
wants to access web server (tomcat)?
thank you very much for advance :) 




__
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover 

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



Showing an error page when Tomcat is down using IIS + JK2

2004-05-10 Thread Allistair Crossley
Hi Guys

I am trying to get IIS to display a nice HTML page when Tomcat is not running. We use 
JK2 to push requests between IIS and Tomcat. 

I am able to specify custom pages for IIS HTTP codes but when I stop Tomcat I get the 
Intenet Explorer message

Cannot find server or DNS Error
Internet Explorer
Which I cannot customise in IIS. The only way to get the fact that Tomcat is down into 
a 404 which I can customise is to remove the JK2 ISAPI filter from IIS whilst I do 
whatever it is I am doing.
This is not practical because sometimes I am restarting Tomcat, or Tomcat may well go 
down on its own (not that it ever has).

Your thoughts appreciated, ADC


 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



OutOfMemoryError after 5.0.24 update

2004-05-10 Thread Stefan Proels
Dear all,

after updating our server to Tomcat 5.0.24 last night I got 2 crashes with 
the last words

Exception in thread "CompilerThread1" java.lang.OutOfMemoryError: 
requested 32760 bytes for ChunkPool::allocate. Out of swap space?

from Tomcat. Now the interesting is that according to our GC logs Java did 
not really run out of memory. Also I checked the system's state some 
minutes before the last crash and I remember the java process having 
allocated about 270 MB and as I set -Xmx1024m this also makes be believe 
that it did not really run of the memory. The pointer to the swap space 
also doesn't seem to lead into the right direction since the machine has 
4 GB physical memory and another 4 GB swap space and nearly no swap space 
is actually in use.

So my question is, is there any new configuration parameter I my have 
overlooked since 5.0.19 or has the default value of some related 
parameter changed which could cause this error?

What makes the problem even more mysterious is the fact that both 
exceptions occurred in "CompilerThread1" but since all our JSPs have been 
compiled already and none of them has changed, I wonder why this thread 
had anything to do at all.


Best regards,
Stefan


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



Re: Startup Problems

2004-05-10 Thread David Smith
May 10, 2004 11:02:30 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 10, 2004 11:02:31 AM org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
I would say from the excerpt above you have an error in your server.xml 
file in one of your  ...  tags.  Take a look and make sure 
you closed all the tags you opened as well as quote marks.  If you have 
a program to check xml syntax like NetBeans IDE, open your server.xml 
with that.  It should be able to show what when wrong.

--David

Stefan Walter wrote:

Hi!

I have installed Tomcat 5.0.19 at Redhat Linux 9.0

When i run the following command then i get this exception:

[EMAIL PROTECTED] bin]# ./catalina.sh debug
Using CATALINA_BASE:   /usr/local/jakarta-tomcat-5.0.19
Using CATALINA_HOME:   /usr/local/jakarta-tomcat-5.0.19
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-5.0.19/temp
Using JAVA_HOME:   /usr/java/j2sdk1.4.2_04/
Initializing jdb ...
 

run
   

run org.apache.catalina.startup.Bootstrap start
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
 

VM Started: May 10, 2004 11:02:30 AM
org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
May 10, 2004 11:02:30 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2232 ms
May 10, 2004 11:02:30 AM org.apache.catalina.realm.JAASRealm
setContainer
INFO: Setting JAAS app name HelloWorld
May 10, 2004 11:02:30 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
May 10, 2004 11:02:30 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.19
May 10, 2004 11:02:30 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
May 10, 2004 11:02:31 AM org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:2
52)
   at
org.apache.commons.digester.CallMethodRule.end(CallMethodRule.java:505)
   at org.apache.commons.digester.Rule.end(Rule.java:276)
   at
org.apache.commons.digester.Digester.endElement(Digester.java:1058)
   at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
   at
org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown
Source)
   at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown
Source)
   at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown
Source)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unk
nown Source)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
   at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
   at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
   at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfi
g.java:300)
   at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:641)
   at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j
ava:253)
   at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
   at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4222
)
   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
   at
org.apache.catalina.core.StandardHost.start(StandardHost.java:832)
   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)
   at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:521)
   at
org.apache.catalina.core.StandardService.start(StandardService.java:519)
   at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2345)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:594)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
   at
org.apache.catal