TAG Lib problem

2004-08-02 Thread Pablo Carretero Sánchez
Hi all,

I have a problem with the Jasper compiler when I try to compile a JSP using
TagLibs.

The configuration is:

Tomcat 5.0.19, JSDK 1.4.2.

I have a simple application with:

.- 1 TLD:


Operacion
com.kutxa.kn.comun.tags.TituloOperacionTag

MasInfo
false


Titulo
false
true


Ancho
false
true


Salto
false


VolverInicio
false
true






JSP:  With on reference to the TLD:
   


JAVA TAG CLASS: With one attribute and method:
   - String Titulo
   - public void setTitulo(...){
 }
   - public String getTitulo(...){
 }


When the jasper compile the JSP I have one error:

"...Unable to find setter method for attribute"


org.apache.jasper.JasperException: /jkn_opkn/tmpl/es/posglobal.jsp(433,0)
Unable to find setter method for attribute: Titulo
at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:150)
at
org.apache.jasper.compiler.Generator$GenerateVisitor.evaluateAttribute(Generator.java:2674)
at
org.apache.jasper.compiler.Generator$GenerateVisitor.generateSetters(Generator.java:2822)
at
org.apache.jasper.compiler.Generator$GenerateVisitor.generateCustomStart(Generator.java:2156)
at
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1667)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
at
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1687)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
at org.apache.jasper.compiler.Generator.generate(Generator.java:3269)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
at
com.cidat.proclets.ProcletServiceData.pageProcletEnd(ProcletServiceData.java:427)
at com.cidat.proclets.PSPServlet.service(PSPServlet.java:108)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at
org.apache.catalina.core.S

AIX 4.3 - java 1.3.0 and Tomcat 4.1.30

2004-08-02 Thread


Hi there,

Trying to launch Tomcat 4.1.30 on an AIX machine ( version 4.3 ) with the java 1.3.0 
build from IBM.

However it gives me this error:

[ERROR] Digester - -Begin event threw exception java.util.MissingResourceException: Can't find bundle for base name 
org.apache.coyote.tomcat4.LocalStrings, locale en_GB

 

Anyone had this problem? Its really strange. Tried having all libraries and jar files 
in the classpath.  Also tried clearing out the classpath, still no luck.  At this 
point upgrading java is not the best option as other applications running require it.

Any ideas?

Many thanks in advance.

Andy Morton

 


TC4.1.30 autoDeply ignored?

2004-08-02 Thread Lemke, Michael IZ/HZA-IOR
I am trying to configure TC4.1.30 according to my needs.  When I set

 
  

in conf/server.xml Tomcat nevertheless deploys every directory under
webapps.  The only effect I can generate with that line is to 
ignore the .xml files in webapps.  What am I missing here?

What I want eventually is to ignore directories, honor .xml files
and unpack .war files.

Thanks,
Michael

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



George D Maziarz

2004-08-02 Thread maziarz





Thank you for e-mailing my office.  Your correspondence is very important
to me.

This initial automated response is to acknowledge receipt of your e-mail.
We review all of our e-mail and if a more detailed response is appropriate
we will contact you as quickly as possible.

Again, thank you for taking the time to share your concerns, and for your
patience.

Sincerely,

George D. Maziarz
Senator, 62nd District


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



problem with JNDI realm

2004-08-02 Thread Sebastien Brunot
Hy,

 

I've got a problem with JNDIRealm : the group a user is in in my LDAP
directory is an object which attribute "member" contains the user CN. So
I've set up the roleSearch attribute of JNDIRealm to the value
"(member=*{0}*)".

 

Both wildcards are replaced with the "\2a" String by JNDIRealm before
running the search  and the group my user is in is never retrieved. My
interpretation of RFC 2254 is that those wildcards shouldn't be replaced
with "\2a" : the replacement should only occur for wildcards in the String
that will replace the {0} portion of the filter, aka wildcards in the user
CN.

 

Is there an existing patch for this problem ?

 

Sebastien



Filesystem Layout

2004-08-02 Thread Thomas Zehetbauer
Hi,

to ease upgrading I am using $CATALINA_BASE to separate my local
configuration from the tomcat installation. Now I am trying to configure
a J2EE JNDI datasource and have found that: "These jar files along with
your the jar file for your JDBC driver should be installed in
$CATALINA_HOME/common/lib.".

I hope there already is an undocumented way to install additional JAR
files in $CATALINA_BASE but if there is none, I guess this would be an
useful feature to add.

Tom

-- 
  T h o m a s   Z e h e t b a u e r   ( TZ251 )
  PGP encrypted mail preferred - KeyID 96FFCB89
  finger [EMAIL PROTECTED] for key

Experience is what you get when you expected something else.




signature.asc
Description: This is a digitally signed message part


RE: Weird stylesheet behavior

2004-08-02 Thread Jérôme Duval
Well I just unistalled 5.0.24 and installed the 5.0.27 binary version. The
stylesheet works correctly. I guess I'll try rebuilding the code or
rebuilding Tomcat.

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 31, 2004 1:23 PM
To: Tomcat Users List
Subject: RE: Weird stylesheet behavior


Stylesheets are rendered in the browser so I can't imagine how tomcat could
affect it. I'd try changing one thing at a time and see when they stop
working. ie Try 5.0.27 on your XP machine, or try 5.0.24 on linux, try to
narrow down where the problem is occurring.

Ta
Matt

-Original Message-
From: Jérôme Duval [mailto:[EMAIL PROTECTED]
Sent: 30 July 2004 22:01
To: 'Tomcat Users List'
Subject: Weird stylesheet behavior


I developped a webapp in Windows XP using Tomcat 5.0.24 (the binary
download). Everything is swell on my machine. When I copied it to a linux
box (using Fedora 2), on which we installed Tomcat 5.0.27 from source, my
application works, but the stylesheet stuff doesn't show at all. Inline
definitions also don't seem to matter. I am checking the application from IE
on another computer and the source contains all the necessary info (ie.
,class, style, etc.) Any ideas?


-
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: SunONE versus Tomcat performance

2004-08-02 Thread Jérôme Duval
Why would you compare Apache and Tomcat vs. SunONE? Isn't there a lot of
overhead in using the connector and all that? Seems to me a more logical
test would be Tomcat vs SunONE and the most recent version of both, which
Tomcat 4.1.30 is not. I smell bogus test results!

-Original Message-
From: V D [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 31, 2004 11:24 PM
To: Tomcat Users List
Subject: Re: SunONE versus Tomcat performance


I used it for webservice before, and it is faster than Tomcat, but I
wouldn't say that was 2 to 5 times for that particular case.  You can get it
for free because it's bundled with the Application Server platform which is
free.

Julian wrote:

>
> Just downloaded it to give it a try. There's a trial version but 
> nevertheless it costs only $75.
>
>
>
> David Rees wrote:
>
>> David Wall wrote:
>>
>>> It is worth noting that Sun Java Web Server has better performance 
>>> than Apache Tomcat; you can learn more about this from Sun Java Web 
>>> Server vs.
>>> Apache/Tomcat Benchmarks.
>>>
>>> The link to the KeyLabs report is at 
>>> http://www.keylabs.com/results/sun/SunONEFinalReport_Solaris.pdf
>>>
>>> Why would SunONE be anywhere from 2 to 5 times faster than Tomcat?
>>>
>>> They also suggest that Tomcat would start to show errors when 
>>> loading 200 users at a time, whereas SunONE could handle up to 500 
>>> users without any errors.
>>
>>
>>
>> It's hard to say why the Apache/Tomcat combination would not perform 
>> as well as SunONE (which I am not familar with), but without more 
>> details of the Apache/Tomcat configuration it's too difficult to say.
>>
>> Has anyone independantly tested SunONE compared to Apache/Tomcat?
>>
>> -Dave
>>
>>
>> -
>> 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]



Binary distribution for Linux?

2004-08-02 Thread Jérôme Duval
Is there a binary distribution for Linux (ie a Windows Installer-type
interface)? Or do I have to build it myself?


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



RE: Binary distribution for Linux?

2004-08-02 Thread Søren Neigaard
There is a binary distribution, only thing you have to do is unpack it. 

-Original Message-
From: Jérôme Duval [mailto:[EMAIL PROTECTED] 
Sent: 2. august 2004 14:53
To: 'Tomcat Users List'
Subject: Binary distribution for Linux?

Is there a binary distribution for Linux (ie a Windows Installer-type
interface)? Or do I have to build it myself?


-
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: Binary distribution for Linux?

2004-08-02 Thread Viorel Dragomir
Please see the download page from tomcat.
Tomcat is written in java, so the windows distribution works in linux too. There are 
different shell scripts to run for each platform.

google.com is free for commercial or individual use
check it out
  - Original Message - 
  From: Jérôme Duval 
  To: 'Tomcat Users List' 
  Sent: Monday, August 02, 2004 15:53
  Subject: Binary distribution for Linux?


  Is there a binary distribution for Linux (ie a Windows Installer-type
  interface)? Or do I have to build it myself?


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


quartz scheduler

2004-08-02 Thread Jignesh Patel
Hi,

We are using quartz scheduler 1.4 and we found that it executes excute()
method twice.

We found that this is a bug in quartz itself can anybody give us
information for the patch to fix this bug.


-Jignesh


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



Re: web.xml: my default.css file does not work correctly

2004-08-02 Thread Jon Doe
Thanks for this. But it still didn't answer my problem (which is solved -- 
see below). I don't have a 'welcome file'. I have a welcome page generated 
by a servlet -- so you can reference it with

  http://localhost:8080/context/home.myext
And I can map this no problem. But to get this to work:
  http://localhost:8080/context/
fails. I assumed the '' was relevant, but it only seems 
to be for real files (html, jsp, etc), not for 'virtual' URLs.

But for the record I solved my problem by creating an index.html file with 
just:

  
and had *everything* else mapped using my Router servlet. Works like a 
dream!

Thanks again.
Joe.
: So, I've disabled the / mapping by commenting it out. And my CSS
: pages are working as normal. But trying to access my app with the root 
URL
: just causes a directory listing.

Check your book (or the servlet spec) for "."
It's akin to the "DirectoryIndex" directive in Apache httpd, which lists
the file(s) checked when a request is made to just a directory path
(e.g. index.html).
-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]
_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

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


RE: Weird stylesheet behavior

2004-08-02 Thread Jérôme Duval
Well everyone, I'm happy to report that by doing absolutely nothing to
resolve this problem, my application works perfectly! I love how logical
computer science is!

-Original Message-
From: Jérôme Duval [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 02, 2004 8:34 AM
To: 'Tomcat Users List'
Subject: RE: Weird stylesheet behavior

Well I just unistalled 5.0.24 and installed the 5.0.27 binary version. The
stylesheet works correctly. I guess I'll try rebuilding the code or
rebuilding Tomcat.

-Original Message-
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 31, 2004 1:23 PM
To: Tomcat Users List
Subject: RE: Weird stylesheet behavior


Stylesheets are rendered in the browser so I can't imagine how tomcat could
affect it. I'd try changing one thing at a time and see when they stop
working. ie Try 5.0.27 on your XP machine, or try 5.0.24 on linux, try to
narrow down where the problem is occurring.

Ta
Matt

-Original Message-
From: Jérôme Duval [mailto:[EMAIL PROTECTED]
Sent: 30 July 2004 22:01
To: 'Tomcat Users List'
Subject: Weird stylesheet behavior


I developped a webapp in Windows XP using Tomcat 5.0.24 (the binary
download). Everything is swell on my machine. When I copied it to a linux
box (using Fedora 2), on which we installed Tomcat 5.0.27 from source, my
application works, but the stylesheet stuff doesn't show at all. Inline
definitions also don't seem to matter. I am checking the application from IE
on another computer and the source contains all the necessary info (ie.
,class, style, etc.) Any ideas?


-
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: Binary distribution for Linux?

2004-08-02 Thread Shapira, Yoav

Hi,
You can also check out JPackage.org for some Linux RPM packages, if that's your cup of 
tea.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Viorel Dragomir [mailto:[EMAIL PROTECTED]
>Sent: Monday, August 02, 2004 9:01 AM
>To: Tomcat Users List
>Subject: Re: Binary distribution for Linux?
>
>Please see the download page from tomcat.
>Tomcat is written in java, so the windows distribution works in linux too.
>There are different shell scripts to run for each platform.
>
>google.com is free for commercial or individual use
>check it out
>  - Original Message -
>  From: Jérôme Duval
>  To: 'Tomcat Users List'
>  Sent: Monday, August 02, 2004 15:53
>  Subject: Binary distribution for Linux?
>
>
>  Is there a binary distribution for Linux (ie a Windows Installer-type
>  interface)? Or do I have to build it myself?
>
>
>  -
>  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: quartz scheduler

2004-08-02 Thread Jignesh Patel
On Mon, 2004-08-02 at 18:50, Jignesh Patel wrote:
> Also after adding the tomcat when we stop the tomcat and recompile the
> code with Eclipse it says hot code replacement is not in sync.
> 
> When we are stopping the tomcat why the error occurs.
> 
> -Jignesh
> On Mon, 2004-08-02 at 18:42, Jignesh Patel wrote:
> > Hi,
> > 
> > We are using quartz scheduler 1.4 and we found that it executes excute()
> > method twice.
> > 
> > We found that this is a bug in quartz itself can anybody give us
> > information for the patch to fix this bug.
> > 
> > 
> > -Jignesh
> > 
> > 
> > -
> > 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: concurrency management

2004-08-02 Thread Shapira, Yoav

Hi,
If two users are on the app at the same time, both accessing the
database at the same time, and both have write privileges to the same
data, you are responsible for synchronization to suit your goals.  This
might mean no sync at all, meaning a simple race.  That's not
necessarily a bad thing, it depends on your app.  Many people think a
race condition is always a bad thing, and it's not.

If your application requires transactions, you will need to download the
JTA (you can get it by itself from java.sun.com, don't download the
whole J2EE jar) and an implementation thereof, e.g. Tyrex or JOTM, and
code your app to use it.  You can do this within Tomcat without going to
JBoss or another full-fledged J2EE server.  However, again depending on
your sync requirements and surrounding architecture, you might want to
get a full J2EE server which would have JTA support built-in.

BTW, JOTM is an excellent product, we use in production and like it.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Jignesh Patel [mailto:[EMAIL PROTECTED]
>Sent: Saturday, July 31, 2004 1:09 PM
>To: [EMAIL PROTECTED]
>Subject: Re: concurrency management
>
>On Sat, 2004-07-31 at 11:47, Jignesh Patel wrote:
>> Hi V.
>>
>> Here is my question again.
>>
>> -Jignesh
>> On Fri, 2004-07-30 at 13:00, Vic Cekvenich wrote:
>> > The connection pools and data sources are more of a container
question,
>> > since you are using Tomcat ask on Tomcat list, and I will follow up
>there.
>> >
>> > .V
>> >
>> > Jignesh Patel wrote:
>> > > Hi,
>> > > How do we will manage concurrency if suppose we have connection
pool
>> > > which is managed with struts1.1 on tomcat.
>> > >
>> > >
>> > > And then we have two we server now suppose two connection from
two
>> > > server try to access the database at the same time. How we can
>handle?
>> > >
>> > > I know from my previous posting connection pool is thread safe if
it
>one
>> > > JVM but what in the case of two JVM.
>> > >
>> > > -Jignesh
>> >
>> >
>> >
-
>> > 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: detecting the shutdown of tomcat in a servlet

2004-08-02 Thread Shapira, Yoav

Hi,

>According to your suggestion it is advisable not to use
>ServletContextListener if we are using  feature.
>And we just need to create a separate servlet for destroying daemon
>threads.

Say what?  That's not what I said or at least not what I meant ;)  A
ServletContextListener is good.  A  servlet is also
good, but for other things, as the container may restart it at will.
Using one does not preclude using the other.  For your scenario, I think
the Listener is a better choice than the servlet.

Yoav

>
>Please provide us your valuable thoughts.
>
>
>-Jignesh
>
>
>
>On Wed, 2004-07-28 at 08:57, Shapira, Yoav wrote:
>> Hi,
>> Excellent answer by Rodrigo Ruiz.  I wanted to correct one tiny part,
>> and for Tomcat it's a theoretical correction only, but since this a
>> common mistake and a blemish on an otherwise great post:
>>
>>  servlets are initialized on startup by the
container.
>> But that doesn't mean they are destroyed on shutdown like the
>> ServletContextListener.  The container is free to destroy these
servlets
>> as it sees necessary, usually to preserve resources if they are not
>> under load and other servlets are.  Therefore it's entirely possible
and
>> legal for a  servlet to be initialized and destroyed
>> numerous times while the webapp is NOT restarted.
>>
>> Accordingly, take his advice and use a ServletContextListener.
That's
>> what it's for ;)
>>
>> Yoav Shapira
>> Millennium Research Informatics
>>
>>
>> >-Original Message-
>> >From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED]
>> >Sent: Wednesday, July 28, 2004 6:21 AM
>> >To: Tomcat Users List
>> >Subject: Re: detecting the shutdown of tomcat in a servlet
>> >
>> >There is more than one way :-)
>> >
>> >- From within a servlet, add a shutdown hook with
>> >Runtime.getRuntim().addShutdownHook()
>> >- Create a ServletContextListener, and implement the clean stop of
your
>> >daemon in the listener contextDestroyed() method
>> >- Create an initialization servlet, and implement the clean stop in
its
>> >destroy() method
>> >
>> >and probably a few more if you use specific Tomcat classes.
>> >
>> >I would not use the first option unless really necessary, as it
seems
>> to
>> >me a too much "low level solution".
>> >My favourite is the second option, as this is what
>> >ServletContextListeners are for. You could start and stop the thread
>> >from this listener.
>> >
>> >The second and third options will perform the thread stop when the
>> >context or the container are shut down. This includes a context stop
>> >from the admin webapp. Whether this is good or bad for your purposes
>> >depends on the actions you need to perform. I suppose you do not
want
>> >your thread to keep running if you stop the webapp, because
restarting
>> >the webapp would lead to have two daemon threads :-)
>> >
>> >HTH,
>> >Rodrigo Ruiz
>> >
>> >STOCKHOLM, Raymond wrote:
>> >
>> >>In my tomcat 4.1.30n, I have a webapp in which a deamon Thread
>> (started
>> >automatically)
>> >>is scheduled to send automatic mails every morning.
>> >>
>> >>I would like to make a clean stop of my deamon when tomcat
shutdowns.
>> >>
>> >>How can I detect that tomcat is shuting down ?
>> >>
>> >>
>> >>Raymond Stockholm
>> >>Aubay Luxembourg
>> >>51, Rue de Strasbourg
>> >>L-2561 LUXEMBOURG
>> >>Tel : +352 29 92 50 31
>> >>
>> >>
>>
>>-
>> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >>For additional commands, e-mail:
[EMAIL PROTECTED]
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >
>> >
>> >--
>> >Outgoing mail is certified Virus Free.
>> >Checked by AVG anti-virus system (http://www.grisoft.com).
>> >Version: 6.0.727 / Virus Database: 482 - Release Date: 27/07/2004
>> >
>> >
>>
>-
>> >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 b

RE: in-WAR context.xml in 5.0.27

2004-08-02 Thread Shapira, Yoav

Hi,
And soon enough you'll be able to commit it yourself ;)

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Peter Rossbach [mailto:[EMAIL PROTECTED]
>Sent: Saturday, July 31, 2004 1:11 AM
>To: Tomcat Users List
>Subject: Re: in-WAR context.xml in 5.0.27
>
>QM schrieb:
>
>>On Fri, Jul 30, 2004 at 09:00:16AM -0400, Shapira, Yoav wrote:
>>: Yeah, it's an open issue (I don't remember the number), and will be
>>: addressed in the next release.  Until then there's a patch attached
to
>>: the Bugzilla item, for HostConfig.java, when you can put in
>>: server/classes to workaround the bug.
>>
>>Thanks to all for their responses.
>>In my weariness, I missed the relevant bug report. =)
>>
>>-QM
>>
>>
>>
>Here is the fix
>http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29688
>
>regards
>Peter
>
>
>
>-
>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: Is it possible to modify request parameter?

2004-08-02 Thread Shapira, Yoav

Hi,
Yes.  Use the HttpServletRequestWrapper, and modify the
getParameter/getAttribute/getHeader/getQueryString methods as you need.
You will need a Filter to go along with this, mapped to /servlet2 in
your example, which will intercept the request and wrap it with your
wrapper.


Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Steve Cheng [mailto:[EMAIL PROTECTED]
>Sent: Monday, August 02, 2004 12:27 AM
>To: Tomcat Users List
>Subject: Is it possible to modify request parameter?
>
>Dear all,
>
>The question may be not a TC specific one.
>
>I am using RequestDispatcher to forward a request object from Servlet1
to
>Servlet2 as followings.
>
>protected void doPost(HttpServletRequest request, HttpServletResponse
>response) throws ServletException, IOException {
>
>...
>   RequestDispatcher rd = context.getRequestDispatcher("/Servlet2");
>   rd.forward(request, response);
>...
>
>}
>
>Is it possible to add or modify the parameters of the request object?
>
>Thanks,
>steve
>
>
>
>-
>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: Jakarta Commons Configuration files

2004-08-02 Thread Shapira, Yoav

Hi,
There hasn't been a release of commons-configuration yet (ever).
Version 1.0 is coming fairly soon, but then again that's been the status
for a while and I won't get into a rant about scope creep...  How have
you come to rely on it?  That's strange.

If you need them, you have to download the code from CVS and build it
yourself (it has a build script of course).  I was going to suggest the
nightly Gump builds for it
(http://brutus.apache.org/gump/public/jakarta-commons/commons-configurat
ion/index.html) but I see that it failed last night so that's a no-go.
Anyways, I don't think you should depend on it.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Wilson, Allen [mailto:[EMAIL PROTECTED]
>Sent: Sunday, August 01, 2004 3:00 PM
>To: Tomcat Users List
>Subject: Jakarta Commons Configuration files
>
>Good afternoon...
>
>I am trying to create a java class that will send HTML mail. I have the
>class created and compile but it errors out specifying that the
>org.apache.commons.configurtion.Configuration class cannot be found.
>
>Does anyone know where I can locate the jar files for the Commons
>Configuration. I look on the Apache Jakarta site and found the Commons
>Configuration area but no link to the files could be found.
>
>Thanks...Allen
>
>-
>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: Multiple contexts mapped to single docbase

2004-08-02 Thread Shapira, Yoav

Hi,
You can have as many Contexts as you want mapped to the same docBase,
but the path has to be different.  Path usually starts with a / by the
way, except for the default ("ROOT") webapp whose path is "".


Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Robert Hunt [mailto:[EMAIL PROTECTED]
>Sent: Sunday, August 01, 2004 3:33 PM
>To: [EMAIL PROTECTED]
>Subject: Re: Multiple contexts mapped to single docbase
>
>This seems to work:
>
>[server.xml excerpted]
>---
>
>  docBase="appXyz"
>  ...
>  />
>
>
>  docBase="appXyz"
>  defaultWebXml="\WEB-INF\webdav.xml"
>  ...
>  />
>---
>
>where webdav.xml contains the standard webdav servlet definitions and
>necessary security constraints.
>
>
>
>-
>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: concurrency management

2004-08-02 Thread Jignesh Patel
No Yoav,

My question is different.

By using UserTransaction class I can get the control on transaction
which is being executed on one server.

But what if we are having  two different tomcat server with two
different machine mapped by one load balancer.

In this type of situation what to be done, since the other server is not
aware that what transaction going on to one server.


-Jignesh


On Mon, 2004-08-02 at 09:20, Shapira, Yoav wrote:
> Hi,
> If two users are on the app at the same time, both accessing the
> database at the same time, and both have write privileges to the same
> data, you are responsible for synchronization to suit your goals.  This
> might mean no sync at all, meaning a simple race.  That's not
> necessarily a bad thing, it depends on your app.  Many people think a
> race condition is always a bad thing, and it's not.
> 
> If your application requires transactions, you will need to download the
> JTA (you can get it by itself from java.sun.com, don't download the
> whole J2EE jar) and an implementation thereof, e.g. Tyrex or JOTM, and
> code your app to use it.  You can do this within Tomcat without going to
> JBoss or another full-fledged J2EE server.  However, again depending on
> your sync requirements and surrounding architecture, you might want to
> get a full J2EE server which would have JTA support built-in.
> 
> BTW, JOTM is an excellent product, we use in production and like it.
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> 
> >-Original Message-
> >From: Jignesh Patel [mailto:[EMAIL PROTECTED]
> >Sent: Saturday, July 31, 2004 1:09 PM
> >To: [EMAIL PROTECTED]
> >Subject: Re: concurrency management
> >
> >On Sat, 2004-07-31 at 11:47, Jignesh Patel wrote:
> >> Hi V.
> >>
> >> Here is my question again.
> >>
> >> -Jignesh
> >> On Fri, 2004-07-30 at 13:00, Vic Cekvenich wrote:
> >> > The connection pools and data sources are more of a container
> question,
> >> > since you are using Tomcat ask on Tomcat list, and I will follow up
> >there.
> >> >
> >> > .V
> >> >
> >> > Jignesh Patel wrote:
> >> > > Hi,
> >> > > How do we will manage concurrency if suppose we have connection
> pool
> >> > > which is managed with struts1.1 on tomcat.
> >> > >
> >> > >
> >> > > And then we have two we server now suppose two connection from
> two
> >> > > server try to access the database at the same time. How we can
> >handle?
> >> > >
> >> > > I know from my previous posting connection pool is thread safe if
> it
> >one
> >> > > JVM but what in the case of two JVM.
> >> > >
> >> > > -Jignesh
> >> >
> >> >
> >> >
> -
> >> > 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]
> 


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



Re: concurrency management

2004-08-02 Thread Filip Hanik - Dev
if the backend database is the same, that DB will handle your transactions according 
to your transaction level.
if you want to handle the transactions by JTA/JTS then you need a system that 
implements distributed transactions, and that will not
have a pleasant effect on your performance :)

Filip

- Original Message -
From: "Jignesh Patel" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, August 02, 2004 6:09 PM
Subject: RE: concurrency management


No Yoav,

My question is different.

By using UserTransaction class I can get the control on transaction
which is being executed on one server.

But what if we are having  two different tomcat server with two
different machine mapped by one load balancer.

In this type of situation what to be done, since the other server is not
aware that what transaction going on to one server.


-Jignesh


On Mon, 2004-08-02 at 09:20, Shapira, Yoav wrote:
> Hi,
> If two users are on the app at the same time, both accessing the
> database at the same time, and both have write privileges to the same
> data, you are responsible for synchronization to suit your goals.  This
> might mean no sync at all, meaning a simple race.  That's not
> necessarily a bad thing, it depends on your app.  Many people think a
> race condition is always a bad thing, and it's not.
>
> If your application requires transactions, you will need to download the
> JTA (you can get it by itself from java.sun.com, don't download the
> whole J2EE jar) and an implementation thereof, e.g. Tyrex or JOTM, and
> code your app to use it.  You can do this within Tomcat without going to
> JBoss or another full-fledged J2EE server.  However, again depending on
> your sync requirements and surrounding architecture, you might want to
> get a full J2EE server which would have JTA support built-in.
>
> BTW, JOTM is an excellent product, we use in production and like it.
>
> Yoav Shapira
> Millennium Research Informatics
>
>
> >-Original Message-
> >From: Jignesh Patel [mailto:[EMAIL PROTECTED]
> >Sent: Saturday, July 31, 2004 1:09 PM
> >To: [EMAIL PROTECTED]
> >Subject: Re: concurrency management
> >
> >On Sat, 2004-07-31 at 11:47, Jignesh Patel wrote:
> >> Hi V.
> >>
> >> Here is my question again.
> >>
> >> -Jignesh
> >> On Fri, 2004-07-30 at 13:00, Vic Cekvenich wrote:
> >> > The connection pools and data sources are more of a container
> question,
> >> > since you are using Tomcat ask on Tomcat list, and I will follow up
> >there.
> >> >
> >> > .V
> >> >
> >> > Jignesh Patel wrote:
> >> > > Hi,
> >> > > How do we will manage concurrency if suppose we have connection
> pool
> >> > > which is managed with struts1.1 on tomcat.
> >> > >
> >> > >
> >> > > And then we have two we server now suppose two connection from
> two
> >> > > server try to access the database at the same time. How we can
> >handle?
> >> > >
> >> > > I know from my previous posting connection pool is thread safe if
> it
> >one
> >> > > JVM but what in the case of two JVM.
> >> > >
> >> > > -Jignesh
> >> >
> >> >
> >> >
> -
> >> > 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]
>


-
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: other ways to register a Servlet web application

2004-08-02 Thread Shapira, Yoav

Hi,
I'll get you started, in my email editor and without even trying to
compile this out of laziness:  (But it should be very close)

import org.apache.catalina.Context;
import org.apache.catalina.Engine;
import org.apache.catalina.Host;
import org.apache.catalina.Server;
import org.apache.catalina.ServerFactory;
import org.apache.catalina.Service;
import org.apache.catalina.Wrapper;

public class NotPortable {
  public static void addServlet(Class myServletClass, String urlPattern)
{
Server server = ServerFactory.getServer();
Service service = server.findServices()[0];
Engine engine = (Engine) service.getContainer();
Host host = (Host) engine.findChildren()[0];
Context context = (Context) host.findChild("mywebapp");
Wrapper wrapper = context.createWrapper();
wrapper.setServletClass(myServletClass);
wrapper.addMapping(urlPattern);
wrapper.load();
context.addChild(wrapper);
// Optionally context.addServletMapping
}

A production-quality implementation would not hard-code the name of the
webapp, nor would it hard-code the 1st service and 1st host (index [0]
in the above code).  It might also pass init parameters, etc, but this
just an example to give you an idea.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Robert Hunt [mailto:[EMAIL PROTECTED]
>Sent: Sunday, August 01, 2004 2:15 AM
>To: [EMAIL PROTECTED]
>Subject: RE: other ways to register a Servlet web application
>
>Regarding this thread and another I just inquired about
>(http://www.mail-archive.com/tomcat-
>[EMAIL PROTECTED]/msg132857.html),
>Yoav, would you have a code example?
>
>
>-
>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: session time out

2004-08-02 Thread Shapira, Yoav

Hola,
Matt's right in principle.  If you want to be sneaky and/or unpleasant
to your users, you can have your app throw 401s when a session is
invalid, and then put a custom error page for 401 errors in your
web.xml, and do it that way.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Dale, Matt [mailto:[EMAIL PROTECTED]
>Sent: Saturday, July 31, 2004 6:07 AM
>To: Tomcat Users List
>Subject: RE: session time out
>
>
>If this is possible then i'd like to know but as far as I know you have
to
>code around session time outs and redirect yourself.
>
>Ta
>Matt
>
>-Original Message-
>From: Asim Ghosh [mailto:[EMAIL PROTECTED]
>Sent: 31 July 2004 08:12
>To: [EMAIL PROTECTED]
>Subject: session time out
>
>
>hello everybody,
>
> is there any option in web.xml that i can redirect my request to some
>other page when session has timed out.
>
>Asim
>
>
>
>-
> ALL-NEW Yahoo! Messenger - all new features - even more fun!



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: TC4.1.30 autoDeply ignored?

2004-08-02 Thread Shapira, Yoav

Hi,
Does setting liveDeploy to false help?


Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Lemke, Michael IZ/HZA-IOR [mailto:[EMAIL PROTECTED]
>Sent: Monday, August 02, 2004 5:56 AM
>To: Tomcat Users List
>Subject: TC4.1.30 autoDeply ignored?
>
>I am trying to configure TC4.1.30 according to my needs.  When I set
>
> 
> unpackWARs="false" autoDeploy="false" deployXML="false">
>
>in conf/server.xml Tomcat nevertheless deploys every directory under
>webapps.  The only effect I can generate with that line is to
>ignore the .xml files in webapps.  What am I missing here?
>
>What I want eventually is to ignore directories, honor .xml files
>and unpack .war files.
>
>Thanks,
>Michael
>
>-
>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: TC4.1.30 autoDeply ignored?

2004-08-02 Thread Lemke, Michael IZ/HZA-IOR
Hi,

yes, that helps.  Then it doesn't deploy anything.  Unfortunately,
still not what I want:

 

.xml files aren't deployed in this configuration.  Looks to me
I can't have .xml deployed but directories not.  Only the other
way around.  Right?

Thanks,
Michael

> -Original Message-
> From: Shapira, Yoav
> Sent: Monday, August 02, 2004 3:55 PM
> To: Tomcat Users List
> Subject: RE: TC4.1.30 autoDeply ignored?
> 
> 
> 
> Hi,
> Does setting liveDeploy to false help?
> 
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> 
> >-Original Message-
> >From: Lemke, Michael IZ/HZA-IOR
> >Sent: Monday, August 02, 2004 5:56 AM
> >To: Tomcat Users List
> >Subject: TC4.1.30 autoDeply ignored?
> >
> >I am trying to configure TC4.1.30 according to my needs.  When I set
> >
> > 
> >   >   unpackWARs="false" autoDeploy="false" deployXML="false">
> >
> >in conf/server.xml Tomcat nevertheless deploys every directory under
> >webapps.  The only effect I can generate with that line is to
> >ignore the .xml files in webapps.  What am I missing here?
> >
> >What I want eventually is to ignore directories, honor .xml files
> >and unpack .war files.
> >
> >Thanks,
> >Michael
> >
> >-
> >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: SunONE versus Tomcat performance

2004-08-02 Thread Vy Ho
I am sorry for not being clear enough.
The test did not run with both Apache and Tomcat, only Tomcat 5.0.  
Please understand that I do not try to create a flame war here.  This is 
only a particular case, no scientific comparison, and no pointing out 
which one is better overall.  Please download it yourself, and try with 
your application if performance is something you want to find out.

Jérôme Duval wrote:
Why would you compare Apache and Tomcat vs. SunONE? Isn't there a lot of
overhead in using the connector and all that? Seems to me a more logical
test would be Tomcat vs SunONE and the most recent version of both, which
Tomcat 4.1.30 is not. I smell bogus test results!
-Original Message-
From: V D [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 31, 2004 11:24 PM
To: Tomcat Users List
Subject: Re: SunONE versus Tomcat performance

I used it for webservice before, and it is faster than Tomcat, but I
wouldn't say that was 2 to 5 times for that particular case.  You can get it
for free because it's bundled with the Application Server platform which is
free.
Julian wrote:
 

Just downloaded it to give it a try. There's a trial version but 
nevertheless it costs only $75.


David Rees wrote:
   

David Wall wrote:
 

It is worth noting that Sun Java Web Server has better performance 
than Apache Tomcat; you can learn more about this from Sun Java Web 
Server vs.
Apache/Tomcat Benchmarks.

The link to the KeyLabs report is at 
http://www.keylabs.com/results/sun/SunONEFinalReport_Solaris.pdf

Why would SunONE be anywhere from 2 to 5 times faster than Tomcat?
They also suggest that Tomcat would start to show errors when 
loading 200 users at a time, whereas SunONE could handle up to 500 
users without any errors.
   

It's hard to say why the Apache/Tomcat combination would not perform 
as well as SunONE (which I am not familar with), but without more 
details of the Apache/Tomcat configuration it's too difficult to say.

Has anyone independantly tested SunONE compared to Apache/Tomcat?
-Dave
-
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: TC4.1.30 autoDeply ignored?

2004-08-02 Thread Shapira, Yoav

Hi,
You might be right.  I've been away from TC 4.1 for too long to say
definitively...

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Lemke, Michael IZ/HZA-IOR [mailto:[EMAIL PROTECTED]
>Sent: Monday, August 02, 2004 10:00 AM
>To: 'Tomcat Users List'
>Subject: RE: TC4.1.30 autoDeply ignored?
>
>Hi,
>
>yes, that helps.  Then it doesn't deploy anything.  Unfortunately,
>still not what I want:
>
>unpackWARs="true"
>   autoDeploy="false" liveDeploy="false"
>   deployXML="true">
>
>.xml files aren't deployed in this configuration.  Looks to me
>I can't have .xml deployed but directories not.  Only the other
>way around.  Right?
>
>Thanks,
>Michael
>
>> -Original Message-
>> From: Shapira, Yoav
>> Sent: Monday, August 02, 2004 3:55 PM
>> To: Tomcat Users List
>> Subject: RE: TC4.1.30 autoDeply ignored?
>>
>>
>>
>> Hi,
>> Does setting liveDeploy to false help?
>>
>>
>> Yoav Shapira
>> Millennium Research Informatics
>>
>>
>> >-Original Message-
>> >From: Lemke, Michael IZ/HZA-IOR
>> >Sent: Monday, August 02, 2004 5:56 AM
>> >To: Tomcat Users List
>> >Subject: TC4.1.30 autoDeply ignored?
>> >
>> >I am trying to configure TC4.1.30 according to my needs.  When I set
>> >
>> > 
>> >  > >   unpackWARs="false" autoDeploy="false" deployXML="false">
>> >
>> >in conf/server.xml Tomcat nevertheless deploys every directory under
>> >webapps.  The only effect I can generate with that line is to
>> >ignore the .xml files in webapps.  What am I missing here?
>> >
>> >What I want eventually is to ignore directories, honor .xml files
>> >and unpack .war files.
>> >
>> >Thanks,
>> >Michael
>> >
>>
>-
>> >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: SunONE versus Tomcat performance

2004-08-02 Thread Jérôme Duval
The report you linked to ran with Apache and Tomcat version 4.1.30. Don't
believe me?
3.2 Web Server Configuration

3.2.1 Apache /Tomcat
For this test KeyLabs used Apache 2 and Tomcat 4.1.24. The Apache web server
was configured with
the Coyote connector. During the test all request were directed to the
Apache web server, which then
routed only the JSP requests to Tomcat. When the Apache server was compiled
SSL enabled, and the
worker mpm was specified. Tomcat used the Sun Java version 1.4.1_03.

In any case, I am just saying that the test results appear bogus to me,
because I would use only Tomcat as a web server (for both dynamic and static
content). That being said, SunONE might be better then Tomcat, but I don't
know because I haven't seen a reliable comparison and haven't tested them
myself.

Cheers!

-Original Message-
From: Vy Ho [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 02, 2004 10:07 AM
To: Tomcat Users List
Subject: Re: SunONE versus Tomcat performance


I am sorry for not being clear enough.
The test did not run with both Apache and Tomcat, only Tomcat 5.0.  
Please understand that I do not try to create a flame war here.  This is
only a particular case, no scientific comparison, and no pointing out which
one is better overall.  Please download it yourself, and try with your
application if performance is something you want to find out.

Jérôme Duval wrote:

>Why would you compare Apache and Tomcat vs. SunONE? Isn't there a lot 
>of overhead in using the connector and all that? Seems to me a more 
>logical test would be Tomcat vs SunONE and the most recent version of 
>both, which Tomcat 4.1.30 is not. I smell bogus test results!
>
>-Original Message-
>From: V D [mailto:[EMAIL PROTECTED]
>Sent: Saturday, July 31, 2004 11:24 PM
>To: Tomcat Users List
>Subject: Re: SunONE versus Tomcat performance
>
>
>I used it for webservice before, and it is faster than Tomcat, but I 
>wouldn't say that was 2 to 5 times for that particular case.  You can 
>get it for free because it's bundled with the Application Server 
>platform which is free.
>
>Julian wrote:
>
>  
>
>>Just downloaded it to give it a try. There's a trial version but 
>>nevertheless it costs only $75.
>>
>>
>>
>>David Rees wrote:
>>
>>
>>
>>>David Wall wrote:
>>>
>>>  
>>>
It is worth noting that Sun Java Web Server has better performance 
than Apache Tomcat; you can learn more about this from Sun Java Web 
Server vs.
Apache/Tomcat Benchmarks.

The link to the KeyLabs report is at 
http://www.keylabs.com/results/sun/SunONEFinalReport_Solaris.pdf

Why would SunONE be anywhere from 2 to 5 times faster than Tomcat?

They also suggest that Tomcat would start to show errors when 
loading 200 users at a time, whereas SunONE could handle up to 500 
users without any errors.


>>>
>>>It's hard to say why the Apache/Tomcat combination would not perform 
>>>as well as SunONE (which I am not familar with), but without more 
>>>details of the Apache/Tomcat configuration it's too difficult to say.
>>>
>>>Has anyone independantly tested SunONE compared to Apache/Tomcat?
>>>
>>>-Dave
>>>
>>>
>>>-
>>>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]



Re: SunONE versus Tomcat performance

2004-08-02 Thread Vy Ho
That wasn't me who put that link out.  Check the name.
Jérôme Duval wrote:
The report you linked to ran with Apache and Tomcat version 4.1.30. Don't
believe me?
3.2 Web Server Configuration
3.2.1 Apache /Tomcat
For this test KeyLabs used Apache 2 and Tomcat 4.1.24. The Apache web server
was configured with
the Coyote connector. During the test all request were directed to the
Apache web server, which then
routed only the JSP requests to Tomcat. When the Apache server was compiled
SSL enabled, and the
worker mpm was specified. Tomcat used the Sun Java version 1.4.1_03.
In any case, I am just saying that the test results appear bogus to me,
because I would use only Tomcat as a web server (for both dynamic and static
content). That being said, SunONE might be better then Tomcat, but I don't
know because I haven't seen a reliable comparison and haven't tested them
myself.
Cheers!
-Original Message-
From: Vy Ho [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 02, 2004 10:07 AM
To: Tomcat Users List
Subject: Re: SunONE versus Tomcat performance

I am sorry for not being clear enough.
The test did not run with both Apache and Tomcat, only Tomcat 5.0.  
Please understand that I do not try to create a flame war here.  This is
only a particular case, no scientific comparison, and no pointing out which
one is better overall.  Please download it yourself, and try with your
application if performance is something you want to find out.

Jérôme Duval wrote:
 

Why would you compare Apache and Tomcat vs. SunONE? Isn't there a lot 
of overhead in using the connector and all that? Seems to me a more 
logical test would be Tomcat vs SunONE and the most recent version of 
both, which Tomcat 4.1.30 is not. I smell bogus test results!

-Original Message-
From: V D [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 31, 2004 11:24 PM
To: Tomcat Users List
Subject: Re: SunONE versus Tomcat performance
I used it for webservice before, and it is faster than Tomcat, but I 
wouldn't say that was 2 to 5 times for that particular case.  You can 
get it for free because it's bundled with the Application Server 
platform which is free.

Julian wrote:

   

Just downloaded it to give it a try. There's a trial version but 
nevertheless it costs only $75.


David Rees wrote:
  

 

David Wall wrote:


   

It is worth noting that Sun Java Web Server has better performance 
than Apache Tomcat; you can learn more about this from Sun Java Web 
Server vs.
Apache/Tomcat Benchmarks.

The link to the KeyLabs report is at 
http://www.keylabs.com/results/sun/SunONEFinalReport_Solaris.pdf

Why would SunONE be anywhere from 2 to 5 times faster than Tomcat?
They also suggest that Tomcat would start to show errors when 
loading 200 users at a time, whereas SunONE could handle up to 500 
users without any errors.
  

 

It's hard to say why the Apache/Tomcat combination would not perform 
as well as SunONE (which I am not familar with), but without more 
details of the Apache/Tomcat configuration it's too difficult to say.

Has anyone independantly tested SunONE compared to Apache/Tomcat?
-Dave
-
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]
 


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


mod_jk and cache

2004-08-02 Thread master
Hi, i use tomcat 4.1.30 with apache 1.3.31 but i have some problem using the
mod_jk
when i start tomcat all is fine but when one of the site change his
configuration (new applet or somethink like that) the change are not done on
apache (only on tomcat) for them to work i need to restart java completely
each time, i think this come from a problem of configuration of mod_jk but i
can t find which
i have put the following option concerning the cache :
worker.ajp13.cachesize=10
worker.ajp13.cache_timeout=600
worker.ajp13.socket_keepalive=1
worker.ajp13.socket_timeout=300

if someone has any idea it s welcome
thanks


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



RE: Connecting to MS Access DB

2004-08-02 Thread Muhammad Khalid Sohail Khan
hi,

now I have created a "System DSN", its works in the 
sense that now there is no ODBC or data source name 
error, but now I am getting the  following exception.

"org.apache.commons.dbcp.SQLNestedException: 
Cannot create PoolableConnectionFactory (General error)"

everything works fine when I run tomcat not as service (I am using 
win2k). But I want to run it as service..

any idea?

Khalid
University of Duisburg


-Original Message-
From: Aris Javier [mailto:[EMAIL PROTECTED]
Sent: Monday, August 02, 2004 3:01 AM
To: Tomcat Users List
Subject: RE: Connecting to MS Access DB



Did you make your DSN as "System DSN" ?
Don't make your DSN inside "User DSN" when running
Tomcat as a service...

I've been using Tomcat and Access under win2k... and don't
have problems...

-Original Message-
From: Wade Chandler [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 02, 2004 3:18 AM
To: Tomcat Users List
Subject: Re: Connecting to MS Access DB


Muhammad Khalid Sohail Khan wrote:
> Hi everybody,
> I am a student and new to tomcat. I want to use simple database under
> MS Access. I have written a simple servlet, which just insert some 
> data into table. But I am getting following exception
> "org.apache.commons.dbcp.SQLNestedException: Cannot create
> PoolableConnectionFactory ([Microsoft][ODBC Driver Manager] Data
source name
> not found and no default driver specified) "
> (just console, main[]) and the connection is successful. I use the
exact
> same DriverManager Connection strings but it fails when going thru the
> Servlet engine in Tomcat.
>  Could somebody help me, I am struggling for last many days..
> Thanks in advance.
> following is the code which I am using to get connection
> InitialContext initCtx = new InitialContext();
> DataSource ds = (DataSource)
initCtx.lookup("java:comp/env/jdbc/Address");
> con = ds.getConnection();
> Here is my configuration
> Server.xml
> 
> 
> 
> 
> driverClassName
> sun.jdbc.odbc.JdbcOdbcDriver
> 
> 
> url
> jdbc:odbc:Address
> 
> 
> username
> student
> 
> 
> password
> student
> 
> 
> maxActive
> 20
> 
> 
> maxIdle
> 3
> 
> 
> maxWait
> 100
> 
> 
> 
> and
> web.xml
> 
> jdbc/Address
> javax.sql.DataSource
> Container
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

Do some searching in the archives.  Myself and others have talked about 
this to people at different times.  Try running tomcat not as a service,

but as a standalone application and you'll find that it will work for 
you, so it deals with a security setting some where on your computer.  I

assume this is on a 2000/XP machine.  You may have to give access to 
some registry entries to the user the service is running as for this to 
work properly.  Anyways, it's a security issue in one way or another or 
it's a path related issue (the user the service is running as doesn't 
have all the paths needed for some native libs or something).  Try 
adding the user the service is running as to all the directories under 
tomcat recursively, possibly some registry entries, and possibly some 
dll's for the access database drivers.

Wade


-
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: mod_jk and cache

2004-08-02 Thread Ruth, Brice
master wrote:
Hi, i use tomcat 4.1.30 with apache 1.3.31 but i have some problem using the
mod_jk
when i start tomcat all is fine but when one of the site change his
configuration (new applet or somethink like that) the change are not done on
apache (only on tomcat) for them to work i need to restart java completely
each time, i think this come from a problem of configuration of mod_jk but i
can t find which
i have put the following option concerning the cache :
worker.ajp13.cachesize=10
worker.ajp13.cache_timeout=600
worker.ajp13.socket_keepalive=1
worker.ajp13.socket_timeout=300
if someone has any idea it s welcome
thanks
 

If you're using the mod_jk.conf auto-generation (I assume you are from 
the context of your message), then its simply because the mod_jk module 
only generates that file when Tomcat is started, once started, that file 
is not modified again. Even so, as far as I know, Apache doesn't pick up 
modifications to its .conf files - so Apache would need to get restarted 
for the updated configuration to take effect.

The same would be the case if you weren't running the auto-generation, 
you would need to add the JKMount directives to your apache 
configuration manually, and restart Apache for the changes to take effect.

Or maybe I've misunderstood your problem?
Respectfully,
Brice Ruth
--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: SunONE versus Tomcat performance

2004-08-02 Thread Robert Bateman
I've just finished reading the report and can find no where in the report that 
Tomcat failed

It *does* indicate that the combination of Apache httpd and Apache Tomcat had 
problems - but the report does not indicate, as far as I can tell, which 
component reported the failure.  Without knowing "where" the error came from 
and what the error was - it's impossible to determine if httpd or Tomcat was 
the source of the error.

I wish the report would have detailed the configurations of all 3 tests as 
well as some of the errors that were received and where the error came from.  
That way we could more easily identify what the failing component was.


Just my opinion though.


On Friday 30 July 2004 05:40 pm, David Wall wrote:
>  It is worth noting that Sun Java Web Server has better performance than
> Apache Tomcat; you can learn more about this from Sun Java Web Server vs.
> Apache/Tomcat Benchmarks.
>
> The link to the KeyLabs report is at
> http://www.keylabs.com/results/sun/SunONEFinalReport_Solaris.pdf
>
> Why would SunONE be anywhere from 2 to 5 times faster than Tomcat?
>
> They also suggest that Tomcat would start to show errors when loading 200
> users at a time, whereas SunONE could handle up to 500 users without any
> errors.
>
> David


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



Re: TAG Lib problem

2004-08-02 Thread Ruth, Brice
You may be having a problem with the case of your tag attribute. Try 
changing the case of the attribute to all lower-case: "titulo" and see 
if that helps.

Pablo Carretero Sánchez wrote:
Hi all,
I have a problem with the Jasper compiler when I try to compile a JSP using
TagLibs.
The configuration is:
Tomcat 5.0.19, JSDK 1.4.2.
I have a simple application with:
.- 1 TLD:

Operacion
com.kutxa.kn.comun.tags.TituloOperacionTag

MasInfo
false


Titulo
false
true


Ancho
false
true


Salto
false


VolverInicio
false
true



JSP:  With on reference to the TLD:
  
JAVA TAG CLASS: With one attribute and method:
  - String Titulo
  - public void setTitulo(...){
}
  - public String getTitulo(...){
}
When the jasper compile the JSP I have one error:
   "...Unable to find setter method for attribute"
org.apache.jasper.JasperException: /jkn_opkn/tmpl/es/posglobal.jsp(433,0)
Unable to find setter method for attribute: Titulo
at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:150)
at
org.apache.jasper.compiler.Generator$GenerateVisitor.evaluateAttribute(Generator.java:2674)
at
org.apache.jasper.compiler.Generator$GenerateVisitor.generateSetters(Generator.java:2822)
at
org.apache.jasper.compiler.Generator$GenerateVisitor.generateCustomStart(Generator.java:2156)
at
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1667)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
at
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1687)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
at org.apache.jasper.compiler.Generator.generate(Generator.java:3269)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
at
com.cidat.proclets.ProcletServiceData.pageProcletEnd(ProcletServiceData.java:427)
at com.cidat.proclets.PSPServlet.service(PSPServlet.java:108)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeIntern

AW: Connecting to MS Access DB

2004-08-02 Thread Gunnar Pörschke
I think you need to run tomcat with an account that is allowed to access
network connections.
Could you please compare local security policy and compare local rights
assignment between system and the other user account.
Check if system is allowed to interact with desktop if you start the service
with system (see local services).

Cheers,

gunnar 

-Ursprüngliche Nachricht-
Von: Muhammad Khalid Sohail Khan [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 2. August 2004 17:52
An: 'Tomcat Users List'
Betreff: RE: Connecting to MS Access DB

hi,

now I have created a "System DSN", its works in the sense that now there is
no ODBC or data source name error, but now I am getting the  following
exception.

"org.apache.commons.dbcp.SQLNestedException: 
Cannot create PoolableConnectionFactory (General error)"

everything works fine when I run tomcat not as service (I am using win2k).
But I want to run it as service..

any idea?

Khalid
University of Duisburg


-Original Message-
From: Aris Javier [mailto:[EMAIL PROTECTED]
Sent: Monday, August 02, 2004 3:01 AM
To: Tomcat Users List
Subject: RE: Connecting to MS Access DB



Did you make your DSN as "System DSN" ?
Don't make your DSN inside "User DSN" when running Tomcat as a service...

I've been using Tomcat and Access under win2k... and don't have problems...

-Original Message-
From: Wade Chandler [mailto:[EMAIL PROTECTED]
Sent: Monday, August 02, 2004 3:18 AM
To: Tomcat Users List
Subject: Re: Connecting to MS Access DB


Muhammad Khalid Sohail Khan wrote:
> Hi everybody,
> I am a student and new to tomcat. I want to use simple database under
> MS Access. I have written a simple servlet, which just insert some 
> data into table. But I am getting following exception
> "org.apache.commons.dbcp.SQLNestedException: Cannot create
> PoolableConnectionFactory ([Microsoft][ODBC Driver Manager] Data
source name
> not found and no default driver specified) "
> (just console, main[]) and the connection is successful. I use the
exact
> same DriverManager Connection strings but it fails when going thru the
> Servlet engine in Tomcat.
>  Could somebody help me, I am struggling for last many days..
> Thanks in advance.
> following is the code which I am using to get connection
> InitialContext initCtx = new InitialContext();
> DataSource ds = (DataSource)
initCtx.lookup("java:comp/env/jdbc/Address");
> con = ds.getConnection();
> Here is my configuration
> Server.xml
> 
> 
> 
> 
> driverClassName
> sun.jdbc.odbc.JdbcOdbcDriver
> 
> 
> url
> jdbc:odbc:Address
> 
> 
> username
> student
> 
> 
> password
> student
> 
> 
> maxActive
> 20
> 
> 
> maxIdle
> 3
> 
> 
> maxWait
> 100
> 
> 
> 
> and
> web.xml
> 
> jdbc/Address
> javax.sql.DataSource
> Container
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

Do some searching in the archives.  Myself and others have talked about 
this to people at different times.  Try running tomcat not as a service,

but as a standalone application and you'll find that it will work for 
you, so it deals with a security setting some where on your computer.  I

assume this is on a 2000/XP machine.  You may have to give access to 
some registry entries to the user the service is running as for this to 
work properly.  Anyways, it's a security issue in one way or another or 
it's a path related issue (the user the service is running as doesn't 
have all the paths needed for some native libs or something).  Try 
adding the user the service is running as to all the directories under 
tomcat recursively, possibly some registry entries, and possibly some 
dll's for the access database drivers.

Wade


-
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: [tomcat] proxy to php app

2004-08-02 Thread Ruth, Brice
This is also what we do. http://www.fiskars.com/ is a Struts/Tiles/JSP 
web-application, http://www.gerberblades.com/ is a PHP application, both 
run through the same server, Apache+Tomcat. We're not using JK2, we're 
using the original JK, but either way - if you setup Apache+JK(2), then 
you can have your cake & eat it, too. You can even mix 'em in the same 
VirtualHost, if you want ... just use Apache's mod_rewrite rules to 
ensure that everything goes smoothly, if needed.

Ernesto Echeverría wrote:
I've started to use apache with mod_jk2, meaning that apache handles the web
server content and forwards request to tomcat according to your
configuration.
In that way you keep using all your apache "goodies", cgi-bin, php, etc...
So my recommendation is: use mod_jk2, keep apache for everything else...
José Ernesto Echeverría
[EMAIL PROTECTED]
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic Cekvenich
Sent: Domingo, 01 de Agosto de 2004 08:50 a.m.
To: [EMAIL PROTECTED]
Subject: [tomcat] proxy to php app
I know how to write servlets and filters.
How do I create a proxy app on tomcat that would forward to a php app? I do
not know how to start.
tia,
.V
-
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]
 

--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Weaver Release Announcement (XML Programmed Servlet Controller Component)

2004-08-02 Thread Paul Harvey
Weaver is a pure-Java, XML programmed Controller component for 
developing Model View Controller (MVC) structured, servlet based, Web 
applications.

Weaver exploits your existing knowledge of the JSP Expression Language 
(EL) and of JSTL via a consistent XML tag set.

The main features of Weaver include:
* Programmed via a simple but powerful XML syntax whose elements 
are modeled after those provided by JSTL.
* Support for an Expression Language (EL) syntax that is identical 
to that of JSP 2.0.
* Easily extensible XML tag vocabulary.
* Support for JSPs and for other View technologies.
* Model functionality is easily added via the implementation of a 
simple Java interface.
* Provision for multiple cooperating applications.
* Transparent support for authentication.
* Provides a management console to monitor and to configure running 
applications.
* Runs in any suitable servlet container.
* Automatic application reloading for rapid development.
* It's Fast!

Weaver's home page may be found at: http://www.oldlight.com/weaver/
Weaver may be downloaded from: http://www.oldlight.com/weaver/downloads.html
(Sorry if this posting is a little off topic - I think it may be of 
interest to those who read this forum).

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

Re: Connecting to MS Access DB

2004-08-02 Thread Robert Bateman
Khalid,

Search the list...  You will see that Windows 2000/2003/XP services need to 
know how to "log into" any data bases in order to access them.  One of the 
biggest problems with services is accessing "mapped" files or files that 
require "user permissions."  It is unfortunate, but a fact of life on Windows 
2000/2003 and XP.

Just a thought...  Can you use the "personal" version of SQL Server 2000/2003 
instead of Access?  I believe Tomcat service will access this just fine.  
Same with MySQL and Postgres SQL.

Bob

On Monday 02 August 2004 11:51 am, Muhammad Khalid Sohail Khan wrote:
> hi,
>
> now I have created a "System DSN", its works in the
> sense that now there is no ODBC or data source name
> error, but now I am getting the  following exception.
>
> "org.apache.commons.dbcp.SQLNestedException:
> Cannot create PoolableConnectionFactory (General error)"
>
> everything works fine when I run tomcat not as service (I am using
> win2k). But I want to run it as service..
>
> any idea?
>
> Khalid
> University of Duisburg
>
>


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



Re: horrible problems with TC4.1 under RedHat Advanced Server

2004-08-02 Thread Ruth, Brice
Well, first off, it appears your problem is related to your JDK, not so 
much Tomcat - I'm sure you've assumed as much. Have you tried grabbing 
other JDKs? You seem to be using Sun's JDK (which happens to be running 
smoothly on two RedHat ES 2.1 systems I have, no modifications were 
necessary to install, either). BEA has a free (right? I think so ..) JDK 
called JRockit, which also runs smoothly on RedHat ES 2.1 (one server 
here with that). Then, of course, you can grab IBM's JDKs - they have 
all sorts of different flavors, but I know that on one RedHat ES 2.1 box 
hosted externally with Rackspace, IBM's JDK was installed by default ... 
so I imagine there's some history there.

Give a few different JDKs a whirl and see if your problems go away!!
Good luck.
Steve Summit wrote:
I've got a big, complicated web application (too complicated to
go into the details of here), and I'm having problems moving from
Red Hat 9 to Red Hat Advanced Server / Enterprise Server.
(The move is for support reasons.)
Things were working basically okay under Red Hat 9.
But under Advanced Server or Enterprise Server, I have these two
problems:
1. Some pretty high percentage of the time, Tomcat fails to
  start.  After invoking "catalina.sh start", I get the errors
Another exception has been detected while we were handling last error.
Dumping information about last error:
ERROR REPORT FILE = (N/A)
PC= 0x
SIGNAL= 11
FUNCTION NAME = (N/A)
OFFSET= 0x
LIBRARY NAME  = (N/A)
  Simply retrying the command usually works, although sometimes
  it takes three tries.
2. Much more seriously, my web apps have been mysteriously hanging.
  They don't tend to crash or burn or emit error messages, they
  just... stop... responding.  In one case (that is, for one of
  my applications) they seem to hang after acquiring and holding
  certain database resources, which ends up meaning that other
  applications running on other servers also accessing that
  database also hang.
  In some cases these hangs are accompanied by the messages
org.apache.tomcat.util.threads.ThreadPool logFull
SEVERE: All threads (75) are currently busy, waiting.
Increase maxThreads (75) or check the servlet status
  I increased maxThreads (and maxProcessors, since the
  documentation is inconsistent) to 200, but now I just get
  "All threads (200) are currently busy, waiting".  Furthermore,
  it's not clear whether this thread exhaustion is the primary
  cause of my problems, or just one of the symptoms.
I suspect that there's some pernicious incompatibility between
this version of Tomcat, this version of j2sdk, and the C
libraries in these releases of RedHat.  (When I built these
machines, I think I had to manually install a C compatibility
library to get Java to work at all.)
There was a message to this list a month or so ago from
Harald Henkel describing some similar-sounding problems, but
it doesn't look like he got an answer.  He mentioned setting
LD_ASSUME_KERNEL to 2.4.1, and I'm going to try this, but it
sounded like that only slightly ameliorated, but didn't fix,
his problem.
Anybody got any ideas?  Has this sort of thing happened before?
(Web searches haven't really turned up anything.)
Is there something I'm missing?
Here are the exact details of what I'm running:
Jakarta Tomcat 4.1.30
j2sdk 1.4.2_04
Working system:
Red Hat Linux release 9 (Shrike)
kernel 2.4.20-8smp
Troublesome systems:
Red Hat Enterprise Linux ES release 3 (Taroon)
kernel 2.4.21-4.ELsmp
Red Hat Enterprise Linux AS release 3 (Taroon Update 1)
kernel 2.4.21-9.ELsmp
Thanks in advance for any suggestions.
Steve Summit
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [tomcat] proxy to php app

2004-08-02 Thread Vic Cekvenich
I can't use Apache. It has to go to Tomcat.
Servlets ideas to write proxy?
.V
Ernesto Echeverría wrote:
I've started to use apache with mod_jk2, meaning that apache handles the web
server content and forwards request to tomcat according to your
configuration.
In that way you keep using all your apache "goodies", cgi-bin, php, etc...
So my recommendation is: use mod_jk2, keep apache for everything else...
José Ernesto Echeverría
[EMAIL PROTECTED]
 

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic Cekvenich
Sent: Domingo, 01 de Agosto de 2004 08:50 a.m.
To: [EMAIL PROTECTED]
Subject: [tomcat] proxy to php app
I know how to write servlets and filters.
How do I create a proxy app on tomcat that would forward to a php app? I do
not know how to start.
tia,
.V
-
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: mod_jk and cache

2004-08-02 Thread master
> >
> >
> If you're using the mod_jk.conf auto-generation (I assume you are from
> the context of your message), then its simply because the mod_jk module
> only generates that file when Tomcat is started, once started, that file
> is not modified again. Even so, as far as I know, Apache doesn't pick up
> modifications to its .conf files - so Apache would need to get restarted
> for the updated configuration to take effect.
>
> The same would be the case if you weren't running the auto-generation,
> you would need to add the JKMount directives to your apache
> configuration manually, and restart Apache for the changes to take effect.
>
> Or maybe I've misunderstood your problem?
>
> Respectfully,
> Brice Ruth
>
> -- 
> Brice Ruth, Sr. IT Analyst
> Fiskars Brands Inc
> http://www.fiskarsbrands.com/
>

hi, no i don t use the autoconf but that s not really the problem my problem
is not about the  change in the config file i speak in the change of .class
file for example  in a website, a simple reload of the context (with the
manager) work fine for java but not for apache it doesn t take the changes


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



Re: horrible problems with TC4.1 under RedHat Advanced Server

2004-08-02 Thread Ruth, Brice
Just as an FYI - with Sun's JVM, on Redhat ES 2.1 systems, I've seen no 
problems ... we've been running a production system which averages about 
57K visitors, 768K page views a month - on Tomcat 4.1.27 and Sun's 1.4.2 
JDK (RPM install).

This is running a slightly modified Rackspace kernel derivative of 2.4.9.
Chong Yu Meng wrote:
I think RHAS is running NPTL.
If you're using IBM's Java 1.4, 1.3.x or earlier and RH9, RHEL, RHAS , 
you need to set LD_ASSUME_KERNEL=2.2.5.
If you're using IBM's Java 1.4.1 or better on RH9, RHEL (not sure 
about RHAS), you don't need to set LD_ASSUME_KERNEL at all
If you're using IBM's Java 1.4.1 or better on Fedora Core 2, you 
definitely need to upgrade your kernel version to 2.6.6-1 or better. 
Though, if you're using the latest 2.6.6-1.435.2.3, you may get some 
strange problems if you're running on a Thinkpad, so use the earlier 
2.6.6-1.435 (if you can do without the security update).

I have not used Sun's Java on Red Hat systems, so I cannot say what 
will happen.

I have used Blackdown's 1.4.1, compiled with gcc 3.2 on FC2 and they 
work fine, even on the stock install kernel (though freezes can still 
happen). Although benchmarks (Volano Report) show Blackdown to be 
slower and possibly less scalable, I find that it performs on a wider 
range of Linux platforms.

I find the following procedure helps me to identify the problem:
After installing Java on your system, just execute "java -version". If 
you get a segmentation fault, you should try setting LD_ASSUME_KERNEL 
to 2.2.5, then 2.4.1. 2.2.5 bypasses the NPTL. See which setting works 
for you.

If you don't get a segmentation fault, try running the SwingSet2 
application which should come with your Java distribution. On FC2's 
stock kernel, this can freeze your desktop so bad that you'll need to 
power down your system manually. Upgrade to the latest (or next to 
latest kernel) and you should be fine.

There may be other problems I'm not aware of. Please post them here. 
I'm especially interested in hearing from people using the Sun JVM.

Regards,
pascal chong

Peter Lin wrote:
this is most definitely an issue with glibc, since I've seen it in the
past on my machine. I've had it happen with Sun jvm and IBM jvm for
redhat in the past.
your best bet is to search the redhat mailing list for solutions to 
the problem.

peter
On Sun, 01 Aug 2004 10:54:51 -0700, David Rees 
<[EMAIL PROTECTED]> wrote:
 

Steve Summit wrote, On 8/1/2004 6:22 AM:
  

I've got a big, complicated web application (too complicated to
go into the details of here), and I'm having problems moving from
Red Hat 9 to Red Hat Advanced Server / Enterprise Server.
(The move is for support reasons.)

>
  

I suspect that there's some pernicious incompatibility between
this version of Tomcat, this version of j2sdk, and the C
libraries in these releases of RedHat.  (When I built these
machines, I think I had to manually install a C compatibility
library to get Java to work at all.)
There was a message to this list a month or so ago from
Harald Henkel describing some similar-sounding problems, but
it doesn't look like he got an answer.  He mentioned setting
LD_ASSUME_KERNEL to 2.4.1, and I'm going to try this, but it
sounded like that only slightly ameliorated, but didn't fix,
his problem.

It's definitely some sort of JVM/OS issue, and not directly related to
Tomcat.  What glibc version are you running, are you running all errata
for the system (up2date)?  Also upgarde to the latest JDK, and finally,
if it is still not stable, try a LD_ASSUME_KERNEL setting of 2.2.5.
-Dave

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

 


--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Host Aliases, Wildcards

2004-08-02 Thread J . Lindberg
Hey all.
I've searched the internet about this, but have come up empty handed, 
so I'll ask you guys;

Is it at all possible to use wildcards in host aliases? I have a host, 
say example.com. I would like all requests to anything.example.com to 
alias to example.com. I've already set up the DNS server to resolve 
hosts accordingly.

Cheers.
/J. L.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Host Aliases, Wildcards

2004-08-02 Thread Ruth, Brice
Not sure about Tomcat, but Apache should be able to handle this with a 
few well-written mod_rewrite entries.

J. Lindberg wrote:
Hey all.
I've searched the internet about this, but have come up empty handed, 
so I'll ask you guys;

Is it at all possible to use wildcards in host aliases? I have a host, 
say example.com. I would like all requests to anything.example.com to 
alias to example.com. I've already set up the DNS server to resolve 
hosts accordingly.

Cheers.
/J. L.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: TAG Lib problem

2004-08-02 Thread Pablo Carretero Sánchez
Hi Brice,


yes it's work, I tried it. The real problem, is that I'm working in app.
migration from BEA to Tomcat, my appy is in real environment and If I change
the attribute in the tld, I need change the attribute in all my jsp, that is
very power change.

I appreciate your info, but do you know any other work around.


Thank a lot.


ciao


.pcs



Ruth, Brice ([EMAIL PROTECTED]) escribió:
>
> You may be having a problem with the case of your tag attribute. Try
> changing the case of the attribute to all lower-case: "titulo" and see
> if that helps.
>
> Pablo Carretero Sánchez wrote:
>
> >Hi all,
> >
> >I have a problem with the Jasper compiler when I try to compile a JSP using
> >TagLibs.
> >
> >The configuration is:
> >
> >Tomcat 5.0.19, JSDK 1.4.2.
> >
> >I have a simple application with:
> >
> >.- 1 TLD:
> >
> > 
> > Operacion
> > com.kutxa.kn.comun.tags.TituloOperacionTag
> > 
> > MasInfo
> > false
> > 
> > 
> > Titulo
> > false
> > true
> > 
> > 
> > Ancho
> > false
> > true
> > 
> > 
> > Salto
> > false
> > 
> > 
> > VolverInicio
> > false
> > true
> > 
> >
> > 
> >
> >
> >
> >JSP:  With on reference to the TLD:
> >   
> >
> >
> >JAVA TAG CLASS: With one attribute and method:
> >   - String Titulo
> >   - public void setTitulo(...){
> > }
> >   - public String getTitulo(...){
> > }
> >
> >
> >When the jasper compile the JSP I have one error:
> >
> >"...Unable to find setter method for attribute"
> >
> >
> >org.apache.jasper.JasperException: /jkn_opkn/tmpl/es/posglobal.jsp(433,0)
> >Unable to find setter method for attribute: Titulo
> > at
> >org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
> > at
> >org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
> > at
> >org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:150)
> > at
> >org.apache.jasper.compiler.Generator$GenerateVisitor.evaluateAttribute(Generator.java:2674)
> > at
> >org.apache.jasper.compiler.Generator$GenerateVisitor.generateSetters(Generator.java:2822)
> > at
> >org.apache.jasper.compiler.Generator$GenerateVisitor.generateCustomStart(Generator.java:2156)
> > at
> >org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1667)
> > at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
> > at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
> > at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
> > at
> >org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1687)
> > at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
> > at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
> > at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
> > at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
> > at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
> > at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
> > at org.apache.jasper.compiler.Generator.generate(Generator.java:3269)
> > at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
> > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
> > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
> > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
> > at
> >org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
> > at
> >org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
> > at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > at
> >org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
> > at
> >org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
> > at
> >org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
> > at
> >org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
> > at
> >org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
> > at
> >com.cidat.proclets.ProcletServiceData.pageProcletEnd(ProcletServiceData.java:427)
> > at com.cidat.proclets.PSPServlet.service(PSPServlet.java:108)
> > at javax.servlet.http.HttpServlet.serv

Weird context.xml default application problem

2004-08-02 Thread Keith Bottner
This is strange!

When I package my application and deploy it my context.xml file that is
contained within the META-INF directory is copied to the
CATALINA_BASE/conf/Catalina/localhost/app.xml properly.  Here is the file
for reference:






My server does NOT recognize this as the default web application, instead it
lists the directory contents for the webapps directory. BUT, and here is the
weird part. If I manually edit the file and add or remove a line and restart
appropriately, it then does get recognized as the default application. Any
ideas? Or am I just getting lucky that it ever gets recognized as the
default app and I should be setting this directly in server.xml? And how
does the default install of tomcat always seem to recognize ROOT as the
default even though there is no settings in server.xml or a context.xml file
associated with it?

Thanks in advance for any help,

Keith


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



Re: mod_jk and cache

2004-08-02 Thread Ruth, Brice

master wrote:
 

If you're using the mod_jk.conf auto-generation (I assume you are from
the context of your message), then its simply because the mod_jk module
only generates that file when Tomcat is started, once started, that file
is not modified again. Even so, as far as I know, Apache doesn't pick up
modifications to its .conf files - so Apache would need to get restarted
for the updated configuration to take effect.
The same would be the case if you weren't running the auto-generation,
you would need to add the JKMount directives to your apache
configuration manually, and restart Apache for the changes to take effect.
Or maybe I've misunderstood your problem?
Respectfully,
Brice Ruth
--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/
   

hi, no i don t use the autoconf but that s not really the problem my problem
is not about the  change in the config file i speak in the change of .class
file for example  in a website, a simple reload of the context (with the
manager) work fine for java but not for apache it doesn t take the changes
 

Hrmpf, that is strange ... JK (to my knowledge) does no caching, so 
every request that matches its JKMount map parameters is handed off to 
Tomcat. When you change a .class file, reload the application, and 
access it via Tomcat directly (port 8080?) - your changes appear? But 
not through Apache?

--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Host Aliases, Wildcards

2004-08-02 Thread J . Lindberg
Thanks for your reply. Yes, there is no problem with Apache web server, 
using ServerAlias which supports wildcards. It all works fine until it 
encounters a .jsp file, then it's a no-go.

On 2004-08-02, at 18.18, Ruth, Brice wrote:
Not sure about Tomcat, but Apache should be able to handle this with a 
few well-written mod_rewrite entries.

J. Lindberg wrote:
Hey all.
I've searched the internet about this, but have come up empty handed, 
so I'll ask you guys;

Is it at all possible to use wildcards in host aliases? I have a 
host, say example.com. I would like all requests to 
anything.example.com to alias to example.com. I've already set up the 
DNS server to resolve hosts accordingly.

Cheers.
/J. L.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/
-
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: TAG Lib problem

2004-08-02 Thread Ruth, Brice
Pablo,
No, I'm afraid I don't know of any other workaround. This is all part of 
the tag spec, I believe, so it has to be done "right" ... I can only 
assume that BEA was lax in this regard ... but since Tomcat is the 
reference implementation, I'd expect it to adhere pretty closely to the 
specification.

That's all I can provide - maybe someone else has an idea for you!
Brice
Pablo Carretero Sánchez wrote:
Hi Brice,
yes it's work, I tried it. The real problem, is that I'm working in app.
migration from BEA to Tomcat, my appy is in real environment and If I change
the attribute in the tld, I need change the attribute in all my jsp, that is
very power change.
I appreciate your info, but do you know any other work around.
Thank a lot.
ciao
.pcs

Ruth, Brice ([EMAIL PROTECTED]) escribió:
 

You may be having a problem with the case of your tag attribute. Try
changing the case of the attribute to all lower-case: "titulo" and see
if that helps.
Pablo Carretero Sánchez wrote:
   

Hi all,
I have a problem with the Jasper compiler when I try to compile a JSP using
TagLibs.
The configuration is:
Tomcat 5.0.19, JSDK 1.4.2.
I have a simple application with:
.- 1 TLD:

Operacion
com.kutxa.kn.comun.tags.TituloOperacionTag

MasInfo
false


Titulo
false
true


Ancho
false
true


Salto
false


VolverInicio
false
true



JSP:  With on reference to the TLD:
 
JAVA TAG CLASS: With one attribute and method:
 - String Titulo
 - public void setTitulo(...){
   }
 - public String getTitulo(...){
   }
When the jasper compile the JSP I have one error:
  "...Unable to find setter method for attribute"
org.apache.jasper.JasperException: /jkn_opkn/tmpl/es/posglobal.jsp(433,0)
Unable to find setter method for attribute: Titulo
at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:150)
at
org.apache.jasper.compiler.Generator$GenerateVisitor.evaluateAttribute(Generator.java:2674)
at
org.apache.jasper.compiler.Generator$GenerateVisitor.generateSetters(Generator.java:2822)
at
org.apache.jasper.compiler.Generator$GenerateVisitor.generateCustomStart(Generator.java:2156)
at
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1667)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
at
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1687)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
at org.apache.jasper.compiler.Generator.generate(Generator.java:3269)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)

Re: [tomcat] proxy to php app

2004-08-02 Thread Ruth, Brice
Well, Tomcat can't load PHPs, so what server are you using to server the 
PHP content? Why does Tomcat have to be the proxy, instead of the other 
way around? Writing a proxy servlet sounds like its going to be painful ...

Vic Cekvenich wrote:
I can't use Apache. It has to go to Tomcat.
Servlets ideas to write proxy?
.V
Ernesto Echeverría wrote:
I've started to use apache with mod_jk2, meaning that apache handles 
the web
server content and forwards request to tomcat according to your
configuration.

In that way you keep using all your apache "goodies", cgi-bin, php, 
etc...

So my recommendation is: use mod_jk2, keep apache for everything else...
José Ernesto Echeverría
[EMAIL PROTECTED]
 

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic Cekvenich
Sent: Domingo, 01 de Agosto de 2004 08:50 a.m.
To: [EMAIL PROTECTED]
Subject: [tomcat] proxy to php app
I know how to write servlets and filters.
How do I create a proxy app on tomcat that would forward to a php 
app? I do
not know how to start.

tia,
.V
-
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]
--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Host Aliases, Wildcards

2004-08-02 Thread Ruth, Brice
Well, you should be able to use the mod_jk (or mod_jk2) module to hand 
off request to any JSPs to Tomcat ... and Tomcat can just be configured 
under a single host, so what the incoming hostname request looks like 
won't matter to it ... only the context its requesting.

Have you configured Apache to talk with Tomcat via JK?
J. Lindberg wrote:
Thanks for your reply. Yes, there is no problem with Apache web 
server, using ServerAlias which supports wildcards. It all works fine 
until it encounters a .jsp file, then it's a no-go.

On 2004-08-02, at 18.18, Ruth, Brice wrote:
Not sure about Tomcat, but Apache should be able to handle this with 
a few well-written mod_rewrite entries.

J. Lindberg wrote:
Hey all.
I've searched the internet about this, but have come up empty 
handed, so I'll ask you guys;

Is it at all possible to use wildcards in host aliases? I have a 
host, say example.com. I would like all requests to 
anything.example.com to alias to example.com. I've already set up 
the DNS server to resolve hosts accordingly.

Cheers.
/J. L.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/
-
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]
--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: mod_jk and cache

2004-08-02 Thread master

- Original Message - 
From: "Ruth, Brice" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, August 02, 2004 6:19 PM
Subject: Re: mod_jk and cache


>
>
> master wrote:
>
> >>>
> >>>
> >>If you're using the mod_jk.conf auto-generation (I assume you are from
> >>the context of your message), then its simply because the mod_jk module
> >>only generates that file when Tomcat is started, once started, that file
> >>is not modified again. Even so, as far as I know, Apache doesn't pick up
> >>modifications to its .conf files - so Apache would need to get restarted
> >>for the updated configuration to take effect.
> >>
> >>The same would be the case if you weren't running the auto-generation,
> >>you would need to add the JKMount directives to your apache
> >>configuration manually, and restart Apache for the changes to take
effect.
> >>
> >>Or maybe I've misunderstood your problem?
> >>
> >>Respectfully,
> >>Brice Ruth
> >>
> >>-- 
> >>Brice Ruth, Sr. IT Analyst
> >>Fiskars Brands Inc
> >>http://www.fiskarsbrands.com/
> >>
> >>
> >>
> >
> >hi, no i don t use the autoconf but that s not really the problem my
problem
> >is not about the  change in the config file i speak in the change of
.class
> >file for example  in a website, a simple reload of the context (with the
> >manager) work fine for java but not for apache it doesn t take the
changes
> >
> >
> Hrmpf, that is strange ... JK (to my knowledge) does no caching, so
> every request that matches its JKMount map parameters is handed off to
> Tomcat. When you change a .class file, reload the application, and
> access it via Tomcat directly (port 8080?) - your changes appear? But
> not through Apache?
>
> -- 
> Brice Ruth, Sr. IT Analyst
> Fiskars Brands Inc
> http://www.fiskarsbrands.com/
>
yup exactly the changes appear on tomcat but not apache if i want them to
appear to apache i must restart tomcat (which is annoying)


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



Re: Weird context.xml default application problem

2004-08-02 Thread Ruth, Brice
I've heard mentioned that in the Tomcat codebase, "ROOT" is treated as a 
special identifier.

As for your problem ... I believe that Tomcat does not support 
deployment of the default context from the META-INF directory of your 
web-app. You need to explicitly configure it from server.xml or from the 
conf/Catalina/localhost directory. What you've seen is essentially that 
... it will automatically put it in the proper directory, but it will 
stop short of configuring the default context for you.

Brice
Keith Bottner wrote:
This is strange!
When I package my application and deploy it my context.xml file that is
contained within the META-INF directory is copied to the
CATALINA_BASE/conf/Catalina/localhost/app.xml properly.  Here is the file
for reference:


My server does NOT recognize this as the default web application, instead it
lists the directory contents for the webapps directory. BUT, and here is the
weird part. If I manually edit the file and add or remove a line and restart
appropriately, it then does get recognized as the default application. Any
ideas? Or am I just getting lucky that it ever gets recognized as the
default app and I should be setting this directly in server.xml? And how
does the default install of tomcat always seem to recognize ROOT as the
default even though there is no settings in server.xml or a context.xml file
associated with it?
Thanks in advance for any help,
Keith
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Multiple contexts mapped to single docbase

2004-08-02 Thread Robert Hunt
Re: multiple mappings; not exactly the point and I apologize for not
specifying that 'docBase="appXyz"' (in both  descriptors) should
be an absolute reference.

The point was to have multiple contexts mapped to the same docbase, BUT,
with each context having its OWN web.xml deployment descriptor.

Using the undocumented (you don't see it listed in most texts) defaultWebXml
"feature" achieves this purpose.  But, as it is "undocumented," I'm
wondering if there's a better/more-robust (read: supported) method.

-- RH


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



Re: Host Aliases, Wildcards

2004-08-02 Thread J . Lindberg
Yes it's configured to forward requests to tomcat, [uri:*.jsp]. The  
thing is, I have several virtual hosts on the server and I would like  
to keep them separate. I have had some issues using just one host on  
tomcat, namely; if you have two domain names and they both have a JSP  
page called page.jsp, then whichever domain who compiles this page  
first will have the other domain use the same compiled servlet!

I have used the host alias directive as found in the tomcat  
administration interface, it works superb on FQDN's, I just wish it  
would work as good using wildcards!

Tomcat docs on host aliases say nothing about wildcards, so I'm  
assuming it's not implemented. Would be nice to see a change in this  
policy. :)

On 2004-08-02, at 18.28, Ruth, Brice wrote:
Well, you should be able to use the mod_jk (or mod_jk2) module to hand  
off request to any JSPs to Tomcat ... and Tomcat can just be  
configured under a single host, so what the incoming hostname request  
looks like won't matter to it ... only the context its requesting.

Have you configured Apache to talk with Tomcat via JK?
J. Lindberg wrote:
Thanks for your reply. Yes, there is no problem with Apache web  
server, using ServerAlias which supports wildcards. It all works fine  
until it encounters a .jsp file, then it's a no-go.

On 2004-08-02, at 18.18, Ruth, Brice wrote:
Not sure about Tomcat, but Apache should be able to handle this with  
a few well-written mod_rewrite entries.

J. Lindberg wrote:
Hey all.
I've searched the internet about this, but have come up empty  
handed, so I'll ask you guys;

Is it at all possible to use wildcards in host aliases? I have a  
host, say example.com. I would like all requests to  
anything.example.com to alias to example.com. I've already set up  
the DNS server to resolve hosts accordingly.

Cheers.
/J. L.
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/
-
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]
--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/
-
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]


Windows Service Source Code

2004-08-02 Thread Charles Baker

I wanted to take a look at the source code for tomcat.exe that can be
installed as a windows service. I downloaded and looked through the
4.1.30 src distribution and don't see anything. Can someone point me in
the right direction?

Charles H. Baker
O: 864.422.5349 C: 864.201.8456
[EMAIL PROTECTED] 
Whatever you vividly imagine, ardently desire, sincerely believe and
enthusiastically act upon must inevitably come to pass! -- Paul J. Meyer


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



How to deploy customized realm, authenticator, etc.?

2004-08-02 Thread Dennis Dai
In my webapp, I have customized realm and authenticator. I was wondering
how they can be easily deployed. Since they're internal to tomcat,
they'll need to be put into server/lib (or server/classes), thus can't
be put in the WAR file, which means the deployment won't be as simple as
dropping the WAR file into webapps directory.
Sure I can put the jar into server/lib, but those really belong to my
webapp (ie. not used anywhere else) and I'd really like it to go with my 
webapp.

Any ideas? Thanks.
--
Dennis Dai
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: How to deploy customized realm, authenticator, etc.?

2004-08-02 Thread Shapira, Yoav

Hola,
common/lib is one place, or a customized ClassLoader.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Dennis Dai [mailto:[EMAIL PROTECTED]
>Sent: Monday, August 02, 2004 12:46 PM
>To: Tomcat Users List
>Subject: How to deploy customized realm, authenticator, etc.?
>
>In my webapp, I have customized realm and authenticator. I was
wondering
>how they can be easily deployed. Since they're internal to tomcat,
>they'll need to be put into server/lib (or server/classes), thus can't
>be put in the WAR file, which means the deployment won't be as simple
as
>dropping the WAR file into webapps directory.
>
>Sure I can put the jar into server/lib, but those really belong to my
>webapp (ie. not used anywhere else) and I'd really like it to go with
my
>webapp.
>
>Any ideas? Thanks.
>--
>Dennis Dai
>[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]



ISAPI and SSI w/ IIS

2004-08-02 Thread George Sexton
I have been playing with trying to server side include a URL that is in a
context handled by the ISAPI redirector. This is on Windows Server 2003 with
isapi_redirector2.dll version 2.0.4. The chain is something like this:

URL /calendar/OutputCurrentWeek.html is in a context handled by the ISAPI
Filter. Directly invoking this URL produces output.

Attempting to invoke the URL via SSI as shown below fails:



I'm pretty sure that what is happening is the SSI handler is not passing the
request through the ISAPI filter chain.

I also tried something like:


And


The last two trys generated 500 errors.

Does anyone have any ideas on how I can do a server side include to a
context URL?

As a fallback, I can use some code to invoke the URL using a
Microsoft.XMLHTTP control, and retrieving the body text.

Any ideas are appreciated.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
 


-
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: Windows Service Source Code

2004-08-02 Thread Mark Thomas
TC4 uses Java Service from
http://www.alexandriasc.com/software/JavaService/JavaService-bin-1.2.0.zip
although it hasn't been available for a while. TC5 uses procrun which comes from
the commons-daemon project, which is at
http://jakarta.apache.org/commons/daemon.  That site has links to the CVS
repository and the source code for the project.

Hope this helps.

Mark

> -Original Message-
> From: Charles Baker [mailto:[EMAIL PROTECTED] 
> Sent: Monday, August 02, 2004 5:46 PM
> To: [EMAIL PROTECTED]
> Subject: Windows Service Source Code
> 
> 
> I wanted to take a look at the source code for tomcat.exe that can be
> installed as a windows service. I downloaded and looked through the
> 4.1.30 src distribution and don't see anything. Can someone 
> point me in
> the right direction?
> 
> Charles H. Baker
> O: 864.422.5349 C: 864.201.8456
> [EMAIL PROTECTED] 
> Whatever you vividly imagine, ardently desire, sincerely believe and
> enthusiastically act upon must inevitably come to pass! -- 
> Paul J. Meyer
> 
> 
> -
> 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] proxy to php app

2004-08-02 Thread Filip Hanik - Dev
look at the balancer webapp, it should do exactly that

Filip

- Original Message -
From: "Ruth, Brice" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, August 02, 2004 11:26 AM
Subject: Re: [tomcat] proxy to php app


Well, Tomcat can't load PHPs, so what server are you using to server the
PHP content? Why does Tomcat have to be the proxy, instead of the other
way around? Writing a proxy servlet sounds like its going to be painful ...

Vic Cekvenich wrote:

> I can't use Apache. It has to go to Tomcat.
> Servlets ideas to write proxy?
>
> .V
>
> Ernesto Echeverría wrote:
>
>> I've started to use apache with mod_jk2, meaning that apache handles
>> the web
>> server content and forwards request to tomcat according to your
>> configuration.
>>
>> In that way you keep using all your apache "goodies", cgi-bin, php,
>> etc...
>>
>> So my recommendation is: use mod_jk2, keep apache for everything else...
>>
>>
>> José Ernesto Echeverría
>> [EMAIL PROTECTED]
>>
>>
>> -Original Message-
>> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Vic Cekvenich
>> Sent: Domingo, 01 de Agosto de 2004 08:50 a.m.
>> To: [EMAIL PROTECTED]
>> Subject: [tomcat] proxy to php app
>>
>> I know how to write servlets and filters.
>>
>> How do I create a proxy app on tomcat that would forward to a php
>> app? I do
>> not know how to start.
>>
>> tia,
>> .V
>>
>>
>> -
>> 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]
>

--
Brice Ruth, Sr. IT Analyst
Fiskars Brands Inc
http://www.fiskarsbrands.com/


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



Tomcat in embedded mode

2004-08-02 Thread Sandeep Arshanapally

Hi,

  I am running tomcat in embedded mode. Everything seem to work fine but
I see the following log in the standard out:

CoyoteConnector Coyote can't register jmx for protocol


Any idea of what might be the problem?? I don't need jmx for my application.
Is there anyway to stop this from initializing?

Thanks,

Sandeep


javax.servlet.ServletException: Cannot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver

2004-08-02 Thread Isen,Ciji
Hi,
I am using tomcat-5. I was trying out the connection pooling in it. I did things as per their documentation but ended up with this error. 
javax.servlet.ServletException: Cannot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver
Does anyone have any idea what and what this is. I am at loss why after finding the JDNI resource its not able to pick up its parameters.

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


Re: How to deploy customized realm, authenticator, etc.?

2004-08-02 Thread Dennis Dai
Thanks Yoav.
I'd like it to be as simple as dropping a WAR file into webapps 
directory. But in my case, I'll have to drop something else into either 
common/lib or server/lib if not using a customized ClassLoader, right?

Also, putting them into common/lib didn't seem to work because my 
customized realm, authenticator use classes from Catalina, which is not 
available at common ClassLoader level.

If I'm going to use customized ClassLoader, how am I going to do it? I 
mean, if I do it on the Catalina side, that means some customized stuff 
needs to go into common or server, right? And I'd assume I can't use 
ClassLoader on the webapp side to load customized realm and 
authenticator, can I?

Sorry I'm not too familiar with ClassLoader stuff ...
On 8/2/2004 10:13 AM, Shapira, Yoav wrote:
Hola,
common/lib is one place, or a customized ClassLoader.
Yoav Shapira
Millennium Research Informatics

-Original Message-
From: Dennis Dai [mailto:[EMAIL PROTECTED]
Sent: Monday, August 02, 2004 12:46 PM
To: Tomcat Users List
Subject: How to deploy customized realm, authenticator, etc.?
In my webapp, I have customized realm and authenticator. I was
wondering
how they can be easily deployed. Since they're internal to tomcat,
they'll need to be put into server/lib (or server/classes), thus can't
be put in the WAR file, which means the deployment won't be as simple
as
dropping the WAR file into webapps directory.
Sure I can put the jar into server/lib, but those really belong to my
webapp (ie. not used anywhere else) and I'd really like it to go with
my
webapp.
Any ideas? Thanks.
--
Dennis Dai
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How can I display number of requests over the past n seconds?

2004-08-02 Thread Justin Ruthenbeck
More academic exercise than recommendation, but...
Write your own implementation of a Map/HashMap
specific to java.util.Date objects.
Identify your smallest time increment (5 seconds in your email).
Identify largest time increment (60 seconds)
Create (60/5)+1 buckets for your hash function
Write your hash function such that each date object -- representing one 
request each -- gets placed in the right bucket.  If the bucket contains 
"aged" dates, which you should know by simple counting (not comparison), 
empty it before placing a new one in.

To display results, simply add up the content size of the appropriate 
buckets and return.

This implementation is more lightweight than others suggested because the 
process of pruning is built into your implementation (instead of using 
external threads or comparisons each time you insert)... you're trading 
memory usage for decreased processing time.  On the other hand, it 
doesn't *strictly* tell you how many requests came in the last X seconds 
-- only how many came since the last time unit started.  It's also only 
reasonable for numbers like you suggested -- Tim or Yoav's suggestions 
would be better if your range is 5 seconds to 60 minutes, for example.

justin
At 07:10 AM 7/29/2004, you wrote:
I need to display on a .jsp page the number of requests for Tomcat in 
the past 5 / 10 / 15/ 30 / 45 / 60 seconds.  I've already implement a 
Filter will count the total number of requests.  I did this with a 
static int, which is incremented everytime a request comes in.  But what 
should I do so that I can show number of request over past time 
intervals?  Since the present time is always changing, "the past n 
seconds" is constantly changing also.
Thanks in advance,
Tom

__
Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential. See:
http://www.nextengine.com/confidentiality.php
__
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: javax.servlet.ServletException: Cannot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver

2004-08-02 Thread Robert Bateman
Please show us the source that is causing this error...


On Monday 02 August 2004 02:44 pm, Isen,Ciji wrote:
> Hi,
> I am using tomcat-5. I was trying out the connection pooling in it. I did
> things as per their documentation but ended up with this error.
> javax.servlet.ServletException: Cannot create JDBC driver of class '' for
> connect URL 'null', cause: No suitable driver Does anyone have any idea
> what and what this is. I am at loss why after finding the JDNI resource its
> not able to pick up its parameters.
>
> regards,
> Isen
>
>


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



RE: javax.servlet.ServletException: Cannot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver

2004-08-02 Thread Shapira, Yoav

Hi,
Is the driver in the common/lib directory?

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Robert Bateman [mailto:[EMAIL PROTECTED]
>Sent: Monday, August 02, 2004 3:02 PM
>To: Tomcat Users List
>Subject: Re: javax.servlet.ServletException: Cannot create JDBC driver
of
>class '' for connect URL 'null', cause: No suitable driver
>
>Please show us the source that is causing this error...
>
>
>On Monday 02 August 2004 02:44 pm, Isen,Ciji wrote:
>> Hi,
>> I am using tomcat-5. I was trying out the connection pooling in it. I
did
>> things as per their documentation but ended up with this error.
>> javax.servlet.ServletException: Cannot create JDBC driver of class ''
for
>> connect URL 'null', cause: No suitable driver Does anyone have any
idea
>> what and what this is. I am at loss why after finding the JDNI
resource
>its
>> not able to pick up its parameters.
>>
>> regards,
>> Isen
>>
>>
>
>
>-
>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]



JK2: Override uri:vhost.tld/* mapping?

2004-08-02 Thread Thomas Zehetbauer
Hi,

is it possible to override a [uri:vhost.tld/*] mapping from
workers2.properties in httpd.conf? Or add a negative uri mapping to
workers2.properties? I want most requests to be dispatched to Tomcat but
I also want to have e.g. /~user to be handled by Apache.

Tom


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



Re: javax.servlet.ServletException: Cannot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver

2004-08-02 Thread David Smith
Hi Isen.
This is a common problem and usually means your JNDI naming is 
inconsistent or your missing config info in one or more of the following 
files:

server.xml ( if you defined your JDBC resource here )
[context].xml
web.xml
Java code
Essentially make sure there are no spelling/capitalization mistakes and 
all the necessary parts are there, including the JDBC driver jar file in 
the common/lib directory.  The JNDI howtos on the Jakarta site is a good 
place to look:

(these are for tomcat 5, there should be equivalents for tomcat 4)
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html
If you're still running into brick walls, post appropriate sections of 
all the above files replacing security sensitive sections (database 
username, password) with *'s or something.

--David
Isen,Ciji wrote:
Hi,
I am using tomcat-5. I was trying out the connection pooling in it. I 
did things as per their documentation but ended up with this error. 
javax.servlet.ServletException: Cannot create JDBC driver of class '' 
for connect URL 'null', cause: No suitable driver
Does anyone have any idea what and what this is. I am at loss why 
after finding the JDNI resource its not able to pick up its parameters.

regards,
Isen
-
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: Strange problem with Apache2/Tomcat4 part II

2004-08-02 Thread Harold Pritchett
Harold Pritchett wrote:
OK, i gave up on the mod_jk version 1.2 connector.  I downloaded the
version 2 connector and built it with:
Thnaks to everyone here, I got it to work.  I ended up downloading the
mod_JK2 source, built it (after editing the makefile to add in all the
missing libs) and installed it.  Started tomcat and it started fine and
built the unix socket file.  Started httpd, and it could display the
http://localhost/jkstatus page just fine, but barfed on localhost/examples.
The "page not available" message.  Poked around a bit and found that
the httpd.conf file as distributed was starting with user and group equal
to nobody.  Fixed this to point to the actual user/group, and all is
well.
That bit about the default user/group for apache httpd seems to have
escaped me.
Thanks again for all the help.  At some point, I'll post my complete
notes for putting this together.
Harold
--
Harold Pritchett
[EMAIL PROTECTED]+1.706.546.0692
pgp public key: http://www.arches.uga.edu/~harold/pgpkey.html
"They that can give up essential liberty to obtain a little
temporary safety deserve neither liberty nor safety."
   Benjamin Franklin, Historical Review of Pennsylvania, 1759.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: javax.servlet.ServletException: Cannot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver

2004-08-02 Thread Isen,Ciji
I wanted to tinker around hence i decide to just test using a jsp. The 
jsp code is pasted below.

<[EMAIL PROTECTED] contentType="text/html"%>
<%@ page import="java.util.*" %>

JSP Page

<%
   Connection conn = null;
   DBManager dbMan = null;
   Context ctx = new InitialContext();
   if(ctx == null )
throw new DBLibraryBaseException("Boom - No Context");
   Context envContext=(Context)ctx.lookup("java:comp/env");
   if(envContext == null )
throw new DBLibraryBaseException("Boom - 
java:comp/env - No Context");
  
   DataSource myDataSource 
=(DataSource)envContext.lookup("jdbc/EconDollarsDB"); 
   if (myDataSource != null) {
  conn = myDataSource.getConnection();   
   }else{
   System.out.println("jdbc/EconDollarsDB' is 
an unknown DataSource");
   }
   %>



Pasted below is the server.xml files part that i added.

   
 
   url
   
jdbc:mysql://localhost:3306/EconDollars?autoReconnect=true
 
 
   validationQuery
   select * from major
 
 
   maxIdle
   5
 
 
   maxActive
   20
 
 
   driverClassName
   com.mysql.jdbc.Driver
 
 
   maxWait
   1
 
 
   username
   asdf
 
 
   factory
   org.apache.commons.dbcp.BasicDataSourceFactory
 

   password
   asdf
 
   

This is placed inside GlobalNamingResources.

Robert Bateman wrote:
Please show us the source that is causing this error...
On Monday 02 August 2004 02:44 pm, Isen,Ciji wrote:
 

Hi,
I am using tomcat-5. I was trying out the connection pooling in it. I did
things as per their documentation but ended up with this error.
javax.servlet.ServletException: Cannot create JDBC driver of class '' for
connect URL 'null', cause: No suitable driver Does anyone have any idea
what and what this is. I am at loss why after finding the JDNI resource its
not able to pick up its parameters.
regards,
Isen
   


-
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: javax.servlet.ServletException: Cannot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver

2004-08-02 Thread Isen,Ciji
I had tried that. It used to be in commons but felt may be its not able 
to find the driver and so tried to move it to common.lib. But that too 
didnt help!! :-(((

Isen
Shapira, Yoav wrote:
Hi,
Is the driver in the common/lib directory?
Yoav Shapira
Millennium Research Informatics
 

-Original Message-
From: Robert Bateman [mailto:[EMAIL PROTECTED]
Sent: Monday, August 02, 2004 3:02 PM
To: Tomcat Users List
Subject: Re: javax.servlet.ServletException: Cannot create JDBC driver
   

of
 

class '' for connect URL 'null', cause: No suitable driver
Please show us the source that is causing this error...
On Monday 02 August 2004 02:44 pm, Isen,Ciji wrote:
   

Hi,
I am using tomcat-5. I was trying out the connection pooling in it. I
 

did
 

things as per their documentation but ended up with this error.
javax.servlet.ServletException: Cannot create JDBC driver of class ''
 

for
 

connect URL 'null', cause: No suitable driver Does anyone have any
 

idea
 

what and what this is. I am at loss why after finding the JDNI
 

resource
 

its
   

not able to pick up its parameters.
regards,
Isen
 

-
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: javax.servlet.ServletException: Cannot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver

2004-08-02 Thread Shapira, Yoav

Hi,
If it's inside GlobalNamingResources, you need a  to it in
your Context.

You should also place a  in your web.xml, but you may have
done that already (you didn't post web.xml).


Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Isen,Ciji [mailto:[EMAIL PROTECTED]
>Sent: Monday, August 02, 2004 3:49 PM
>To: Tomcat Users List
>Subject: Re: javax.servlet.ServletException: Cannot create JDBC driver
of
>class '' for connect URL 'null', cause: No suitable driver
>
>I wanted to tinker around hence i decide to just test using a jsp. The
>jsp code is pasted below.
>
><[EMAIL PROTECTED] contentType="text/html"%>
>
><%@ page import="java.util.*" %>
>
>
>JSP Page
>
>
><%
>Connection conn = null;
>DBManager dbMan = null;
>Context ctx = new InitialContext();
>if(ctx == null )
> throw new DBLibraryBaseException("Boom - No
Context");
>Context envContext=(Context)ctx.lookup("java:comp/env");
>if(envContext == null )
> throw new DBLibraryBaseException("Boom -
>java:comp/env - No Context");
>
>DataSource myDataSource
>=(DataSource)envContext.lookup("jdbc/EconDollarsDB");
>if (myDataSource != null) {
>   conn = myDataSource.getConnection();
>}else{
>System.out.println("jdbc/EconDollarsDB' is
>an unknown DataSource");
>}
>%>
>
>
>
>Pasted below is the server.xml files part that i added.
> type="javax.sql.DataSource"/>
>
>  
>url
>
>jdbc:mysql://localhost:3306/EconDollars?autoReconnect=true
>  
>  
>validationQuery
>select * from major
>  
>  
>maxIdle
>5
>  
>  
>maxActive
>20
>  
>  
>driverClassName
>com.mysql.jdbc.Driver
>  
>  
>maxWait
>1
>  
>  
>username
>asdf
>  
>  
>factory
>org.apache.commons.dbcp.BasicDataSourceFactory
>  
> 
>password
>asdf
>  
>
>
>This is placed inside GlobalNamingResources.
>
>
>
>
>Robert Bateman wrote:
>
>>Please show us the source that is causing this error...
>>
>>
>>On Monday 02 August 2004 02:44 pm, Isen,Ciji wrote:
>>
>>
>>>Hi,
>>>I am using tomcat-5. I was trying out the connection pooling in it. I
did
>>>things as per their documentation but ended up with this error.
>>>javax.servlet.ServletException: Cannot create JDBC driver of class ''
for
>>>connect URL 'null', cause: No suitable driver Does anyone have any
idea
>>>what and what this is. I am at loss why after finding the JDNI
resource
>its
>>>not able to pick up its parameters.
>>>
>>>regards,
>>>Isen
>>>
>>>
>>>
>>>
>>
>>
>>-
>>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]



looking for tomcat/mysql examples

2004-08-02 Thread Harold Pritchett
Hello again.  In a couple of weeks, I am giving a seminar on
installing and configuring software to create an open-source
web site.  This is to be a hands-on lab with the attendees
actually installing and configuring the software.  It's an
all day affair.
The software I'm using for this program includes:
SuSE Standard Server 8.0
openssl 0.9.7d
Apache HTTPD 2.0.50
Sun Java j2sdk-1_4_2_05
Jakarta Tomcat 4.1.30
Jakarta Tomcat Connector jk2-2.0.4
MySQL 4.0.20
I need one more thing for this.  I'd like to find a simple
application demonstrating the accessing of a MySQL database
from the web via a tomcat application.  Either a JSP or a
servlet (which ever is simpler.)
Does anyone have any suggestions where I can find such an
application (or have any code they wish to donate to my
cause?)
Thanks again for the help
Harold
--
Harold Pritchett
[EMAIL PROTECTED]+1.706.546.0692
pgp public key: http://www.arches.uga.edu/~harold/pgpkey.html
"They that can give up essential liberty to obtain a little
temporary safety deserve neither liberty nor safety."
   Benjamin Franklin, Historical Review of Pennsylvania, 1759.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: looking for tomcat/mysql examples

2004-08-02 Thread Shapira, Yoav

Hi,
Maybe something like this would be helpful for you:
http://www.developer.com/java/data/print.php/10932_2172891_3.


As far as Tomcat is concerned, all DBs are the same.  Tomcat provides
support for connection pooling for J2EE DataSources.  By default the
implementation uses DBCP (http://jakarta.apache.org/commons/dbcp).  The
Tomcat DataSources how-to has MySQL configuration examples:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples
-howto.html.  The application code is standard again, not specific to
Tomcat or MySQL.  Any JDBC app will do.


Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Harold Pritchett [mailto:[EMAIL PROTECTED]
>Sent: Monday, August 02, 2004 3:55 PM
>To: Tomcat Users List
>Subject: looking for tomcat/mysql examples
>
>Hello again.  In a couple of weeks, I am giving a seminar on
>installing and configuring software to create an open-source
>web site.  This is to be a hands-on lab with the attendees
>actually installing and configuring the software.  It's an
>all day affair.
>
>The software I'm using for this program includes:
>
>   SuSE Standard Server 8.0
>   openssl 0.9.7d
>   Apache HTTPD 2.0.50
>   Sun Java j2sdk-1_4_2_05
>   Jakarta Tomcat 4.1.30
>   Jakarta Tomcat Connector jk2-2.0.4
>   MySQL 4.0.20
>
>I need one more thing for this.  I'd like to find a simple
>application demonstrating the accessing of a MySQL database
>from the web via a tomcat application.  Either a JSP or a
>servlet (which ever is simpler.)
>
>Does anyone have any suggestions where I can find such an
>application (or have any code they wish to donate to my
>cause?)
>
>Thanks again for the help
>
>Harold
>--
>Harold Pritchett
>[EMAIL PROTECTED]+1.706.546.0692
>pgp public key: http://www.arches.uga.edu/~harold/pgpkey.html
>
>"They that can give up essential liberty to obtain a little
>temporary safety deserve neither liberty nor safety."
>Benjamin Franklin, Historical Review of Pennsylvania, 1759.
>
>-
>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: javax.servlet.ServletException: Cannot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver

2004-08-02 Thread Isen,Ciji
Oh ya. That was the problem. :-)) It was searching for the resource in 
the context. But i am surprised that its not able to access a Global 
resource. Logically the top level resource ought to be available at the 
lower levels too.

regards,
Isen
Shapira, Yoav wrote:
Hi,
If it's inside GlobalNamingResources, you need a  to it in
your Context.
You should also place a  in your web.xml, but you may have
done that already (you didn't post web.xml).
Yoav Shapira
Millennium Research Informatics
 

-Original Message-
From: Isen,Ciji [mailto:[EMAIL PROTECTED]
Sent: Monday, August 02, 2004 3:49 PM
To: Tomcat Users List
Subject: Re: javax.servlet.ServletException: Cannot create JDBC driver
   

of
 

class '' for connect URL 'null', cause: No suitable driver
I wanted to tinker around hence i decide to just test using a jsp. The
jsp code is pasted below.
<[EMAIL PROTECTED] contentType="text/html"%>
<%@ page import="java.util.*" %>

JSP Page

<%
  Connection conn = null;
  DBManager dbMan = null;
  Context ctx = new InitialContext();
  if(ctx == null )
   throw new DBLibraryBaseException("Boom - No
   

Context");
 

  Context envContext=(Context)ctx.lookup("java:comp/env");
  if(envContext == null )
   throw new DBLibraryBaseException("Boom -
java:comp/env - No Context");
  DataSource myDataSource
=(DataSource)envContext.lookup("jdbc/EconDollarsDB");
  if (myDataSource != null) {
 conn = myDataSource.getConnection();
  }else{
  System.out.println("jdbc/EconDollarsDB' is
an unknown DataSource");
  }
  %>


Pasted below is the server.xml files part that i added.

  

  url
jdbc:mysql://localhost:3306/EconDollars?autoReconnect=true
   

e>
 



  validationQuery
  select * from major


  maxIdle
  5


  maxActive
  20


  driverClassName
  com.mysql.jdbc.Driver


  maxWait
  1


  username
  asdf


  factory
  org.apache.commons.dbcp.BasicDataSourceFactory


  password
  asdf

  
This is placed inside GlobalNamingResources.

Robert Bateman wrote:
   

Please show us the source that is causing this error...
On Monday 02 August 2004 02:44 pm, Isen,Ciji wrote:
 

Hi,
I am using tomcat-5. I was trying out the connection pooling in it. I
   

did
 

things as per their documentation but ended up with this error.
javax.servlet.ServletException: Cannot create JDBC driver of class ''
   

for
 

connect URL 'null', cause: No suitable driver Does anyone have any
   

idea
 

what and what this is. I am at loss why after finding the JDNI
   

resource
 

its
   

not able to pick up its parameters.
regards,
Isen

   

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

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


Re: javax.servlet.ServletException: Cannot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver

2004-08-02 Thread Isen,Ciji
Thanks a lot!!!
cheers,
Isen
Shapira, Yoav wrote:
Hi,
If it's inside GlobalNamingResources, you need a  to it in
your Context.
You should also place a  in your web.xml, but you may have
done that already (you didn't post web.xml).
Yoav Shapira
Millennium Research Informatics
 

-Original Message-
From: Isen,Ciji [mailto:[EMAIL PROTECTED]
Sent: Monday, August 02, 2004 3:49 PM
To: Tomcat Users List
Subject: Re: javax.servlet.ServletException: Cannot create JDBC driver
   

of
 

class '' for connect URL 'null', cause: No suitable driver
I wanted to tinker around hence i decide to just test using a jsp. The
jsp code is pasted below.
<[EMAIL PROTECTED] contentType="text/html"%>
<%@ page import="java.util.*" %>

JSP Page

<%
  Connection conn = null;
  DBManager dbMan = null;
  Context ctx = new InitialContext();
  if(ctx == null )
   throw new DBLibraryBaseException("Boom - No
   

Context");
 

  Context envContext=(Context)ctx.lookup("java:comp/env");
  if(envContext == null )
   throw new DBLibraryBaseException("Boom -
java:comp/env - No Context");
  DataSource myDataSource
=(DataSource)envContext.lookup("jdbc/EconDollarsDB");
  if (myDataSource != null) {
 conn = myDataSource.getConnection();
  }else{
  System.out.println("jdbc/EconDollarsDB' is
an unknown DataSource");
  }
  %>


Pasted below is the server.xml files part that i added.

  

  url
jdbc:mysql://localhost:3306/EconDollars?autoReconnect=true
   

e>
 



  validationQuery
  select * from major


  maxIdle
  5


  maxActive
  20


  driverClassName
  com.mysql.jdbc.Driver


  maxWait
  1


  username
  asdf


  factory
  org.apache.commons.dbcp.BasicDataSourceFactory


  password
  asdf

  
This is placed inside GlobalNamingResources.

Robert Bateman wrote:
   

Please show us the source that is causing this error...
On Monday 02 August 2004 02:44 pm, Isen,Ciji wrote:
 

Hi,
I am using tomcat-5. I was trying out the connection pooling in it. I
   

did
 

things as per their documentation but ended up with this error.
javax.servlet.ServletException: Cannot create JDBC driver of class ''
   

for
 

connect URL 'null', cause: No suitable driver Does anyone have any
   

idea
 

what and what this is. I am at loss why after finding the JDNI
   

resource
 

its
   

not able to pick up its parameters.
regards,
Isen

   

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

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


RE: JK2: Override uri:vhost.tld/* mapping?

2004-08-02 Thread Cox, Charlie
Use  with PCRE in httpd.conf and you can use negative
matches. In this case, do not use the [uri]

Charlie

> -Original Message-
> From: Thomas Zehetbauer [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 02, 2004 3:12 PM
> To: [EMAIL PROTECTED]
> Subject: JK2: Override uri:vhost.tld/* mapping?
> 
> Hi,
> 
> is it possible to override a [uri:vhost.tld/*] mapping from
> workers2.properties in httpd.conf? Or add a negative uri mapping to
> workers2.properties? I want most requests to be dispatched to Tomcat but
> I also want to have e.g. /~user to be handled by Apache.
> 
> Tom
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


Re: web.xml: my default.css file does not work correctly

2004-08-02 Thread QM
On Mon, Aug 02, 2004 at 01:14:57PM +, Jon Doe wrote:
: I assumed the '' was relevant, but it only seems 
: to be for real files (html, jsp, etc), not for 'virtual' URLs.


What's the servlet spec declared in your deployment descriptor? 
2.3 or 2.4?  Servlets as welcome files was added in the 2.4 spec.

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



Subclassing ServletOutputStream/PrintWriter

2004-08-02 Thread Kaleb Pederson
I'm receiving a committed response object in an Servlet that I wrote.  As the 
response is committed, as far as I can tell, I need to create a custom 
HttpServletResponseWrapper. But as the response object is committed, it needs 
to use a new print writer or output stream.  So, as far as I can tell I need 
to do the following steps:

1) Subclass HttpServletResponse wrapper which overrides getWriter() and 
getOutputStream().
2) Subclass PrintWriter (so getWriter will return a non-committed object)
3) Subclass ServletOutputStream (so getOutputStream will return a 
non-committed object.)

Although I know write(int) needs to be implemented by ServletOutputStream, I 
don't see how that would be nearly sufficient?  How does Tomcat get at the 
buffer associated with an output stream so that it can send it to the client?  
What should my required steps be?

Thanks for the help.

--Kaleb

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



Stefan Neuhaus/IMNES/IM/DE/BAYER ist außer Haus.

2004-08-02 Thread stefan . neuhaus




Ich werde ab  02.08.2004 nicht im Büro sein. Ich kehre zurück am  22.08.2004.

Ich werde Ihre Nachricht nach meiner Rückkehr beantworten.


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



Differences in classloading in Tomcat 5?

2004-08-02 Thread dhay

Hi,

I inherited an app that used Tomcat 4, and we are updating it to Tomcat 5.

It runs a web app with a custom built server, and the previous owner
created a custom web app class loader by changing the tomcat
WebAppClassLoader to also load libraries found in /WEB-INF/bin folders.

I have made the changes to the Tomcat 5 classes, but it doesn't seem to
find the class - gives me an error:  java.lang.UnsatisfiedLinkError: no
dpsk in java.library.path

Has anything changed that's likely to cause this, between Tomcat 4 and 5?

Many thanks,

David




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



Re: PersistentManager and Session Update

2004-08-02 Thread Jules Gosnell
Linder,
Last time that I looked at the PersistentManager the impression that I 
got was that it was not designed for use within a cluster, but rather 
within an isolated node. The move to a clustered mode of operation 
introduces many new problems into state management.

WADI (wadi.codehaus.org) is written specifically to resolve these 
problems. We are not yet production ready, but you may want to cast an 
eye over the project and, if interested in these issues, join the 
mailing list.

Cheers,
Jules
Linder Anna-Verena wrote:
Hi,
I have a problem with the configuration of the PersistentManager and session update times. I would like to share sessions across a cluster (managed outside of Tomcat) by having the PersistentManager write and read session data to and from a database. 

I tried to configure the PersistentManager to update the session data immediately, and 
with Tomcat 4.1.24, this works as I would have expected. In Tomcat 5 (the version we 
use on the production system), the PersistentManager seems to update the session entry 
every 60 seconds, no matter what I set in the configuration. I have tried this with 
Tomcat 5.0.19 and 5.0.27, and both with the JDBCStore and the FileStore.
What am I missing? My configuration follows below (I have tried it with 0, 1 and -1 as 
parameters to the time intervals).
Thanks for your help!
Anna Verena
---

   
   

   


Anna Verena Linder
TNS Infratest
Landsberger Str. 338
D-80687 München
t  +49 (0) 89 5600 - 1376
e  anna-verena.linder  @tns-infratest.com
www.tns-infratest.com  
www.tns-global.com  


The information transmitted is intended only for the person or entity to which it is 
addressed and may contain confidential and/or privileged material. Any review, 
retransmission, dissemination or other use of, or taking of any action in reliance 
upon, this information by persons or entities other than the intended recipient is 
prohibited.
If you received this in error, please contact the sender and delete the material from 
any computer.

 


--
/*
* Jules Gosnell
* Partner
* Core Developers Network (Europe)
* http://www.coredevelopers.net
*/

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


RE: Connecting to MS Access DB

2004-08-02 Thread Aris Javier
Hello!

got the same error before.. please check if you have declared "User DSN"
and "System DSN" at the same time.. if you do, then delete your "User
DSN". Only "System DSN" should prevail.

-Original Message-
From: Robert Bateman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 03, 2004 12:02 AM
To: Tomcat Users List
Subject: Re: Connecting to MS Access DB


Khalid,

Search the list...  You will see that Windows 2000/2003/XP services need
to 
know how to "log into" any data bases in order to access them.  One of
the 
biggest problems with services is accessing "mapped" files or files that

require "user permissions."  It is unfortunate, but a fact of life on
Windows 
2000/2003 and XP.

Just a thought...  Can you use the "personal" version of SQL Server
2000/2003 
instead of Access?  I believe Tomcat service will access this just fine.

Same with MySQL and Postgres SQL.

Bob

On Monday 02 August 2004 11:51 am, Muhammad Khalid Sohail Khan wrote:
> hi,
>
> now I have created a "System DSN", its works in the
> sense that now there is no ODBC or data source name
> error, but now I am getting the  following exception.
>
> "org.apache.commons.dbcp.SQLNestedException:
> Cannot create PoolableConnectionFactory (General error)"
>
> everything works fine when I run tomcat not as service (I am using 
> win2k). But I want to run it as service..
>
> any idea?
>
> Khalid
> University of Duisburg
>
>


-
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] Re: Understanding tomcat web administration tool.

2004-08-02 Thread Samuel V . Green III
After a bunch of "trail and error" sessions I found by NOT
adding a new user to my tomcat-users.xml and instead adding roles to the
"tomcat" user the manager AND admin tool work without a flaw.
Here is my final tomact-users.xml:

  
  
  
  
  
  
  


Thanks for all your help Ernesto!
Samuel.
On Aug 1, 2004, at 7:42 AM, Ernesto Echeverría wrote:
Proper jsp support meaning that you have the javac defined in the 
classpath
and that jsp files work fine under your installation.

Considering you have access to the manager app, what about stopping &
restarting admin, do you get errors on screen or do you get an OK 
message?

That application is under the server/webapps directory... Not under the
regular webapps.
José Ernesto Echeverría
[EMAIL PROTECTED]
Tel. (503)8859011
-Original Message-
From: Samuel V. Green III [mailto:[EMAIL PROTECTED]
Sent: Domingo, 01 de Agosto de 2004 06:46 a.m.
To: Tomcat Users List
Subject: Re: [tomcat] Re: Understanding tomcat web administration tool.
I now logged out and am getting errors again?
Why did it work for a "split-second"?
Samuel.
On Aug 1, 2004, at 5:38 AM, Samuel V. Green III wrote:
I clicked on /admin from within the manager app and entered username
and password and WALA!
it now works?  Who knows?
Samuel.
On Aug 1, 2004, at 5:34 AM, Samuel V. Green III wrote:
With respect to " 
When I attempt a login at the Admin. Tool screen I'm entering
UserName :  samuel
Password :samuel
I get the following errors:
HTTP Status 400 - Invalid direct reference to form login page
And when examining  localhost_log.2004-08-01.txt
I see these errors:
2004-08-01 04:20:52 StandardHost[localhost]: Error deploying
application at context path null
java.lang.IllegalStateException: Context path /admin is already in
use
2004-08-01 04:20:52 HostConfig[localhost] Error deploying
configuration descriptor adminsample.xml
java.io.IOException: java.lang.IllegalStateException: Context path
/admin is already in use
What do you mean by "properly configuring jsp support?"
My jsp-examples page loads and works fine.
Thanks,
Samuel.
On Jul 31, 2004, at 6:57 PM, Ernesto Echeverría wrote:
What kind of messages are you getting instead of the login screen?
Examined
the logs already? I think admin is a struts app so you need jsp
support properly configured. Have you checked the jsp-examples page?
José Ernesto Echeverría
[EMAIL PROTECTED]
Tel. (503)8859011
-Original Message-
From: Samuel V. Green III [mailto:[EMAIL PROTECTED]
Sent: Sábado, 31 de Julio de 2004 07:49 p.m.
To: Tomcat Users List
Subject: Re: [tomcat] Re: Understanding tomcat web administration
tool.
Thanks Ernesto.
I copied your code , restarted tomcat and still no luck with getting
admin tool to load.
Although Manager does work?
Samuel.
On Jul 31, 2004, at 5:52 PM, Ernesto Echeverría wrote:
What about deleting the 2nd tomcat user definition? You can use
roles="tomcat,admin,manager".
Take a look at my file:
 
  
  
  
  
  
  
  
  

José Ernesto Echeverría
[EMAIL PROTECTED]
Tel. (503)8859011
-Original Message-
From: Samuel V. Green III [mailto:[EMAIL PROTECTED]
Sent: Sábado, 31 de Julio de 2004 06:41 p.m.
To: Tomcat Users List
Subject: [tomcat] Re: Understanding tomcat web administration tool.
Hi,
Out of the box, you don't need to edit admin.xml or manager.xml.
You
just need to add a user with roles of admin and manager to the
tomcat-users.xml file and restart the server.
Yoav Shapira
Millennium Research Informatics



I'm still having problems getting Admin Tool to work:
Here is my interpretation of editing tomcat-users.xml to get it to
work.
 
   
   
   
   
   
   
   
   


What am I doing incorrect?
Thanks,
Samuel.



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

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

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

Removing Balancer Webapp?

2004-08-02 Thread Joe Krause
How do you remove the balancer webapp. I don't want to deploy my web app
into the webapps directory - I want to use my own path. But everytime I
change the path of the appBase, I get startup errors. Here's my
server.xml file:
 

 
  

 


 

  
 
  

  

 
This is very simple and clean and use to work in Tomcat 4.
 
Heres the startup messages:
 
Starting Tomcat
Using CATALINA_BASE:   /usr/local/tomcat5
Using CATALINA_HOME:   /usr/local/tomcat5
Using CATALINA_TMPDIR: /usr/local/tomcat5/temp
Using JAVA_HOME:   /usr/local/java
Aug 2, 2004 5:36:40 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Aug 2, 2004 5:36:40 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 769 ms
Aug 2, 2004 5:36:40 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 2, 2004 5:36:40 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.27
Aug 2, 2004 5:36:40 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Aug 2, 2004 5:36:40 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx ) 
Aug 2, 2004 5:36:40 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:/usr/tomcat/jakarta-tomcat-5.0.27/conf/Catalina/localhost/admin.xml
Aug 2, 2004 5:36:41 PM org.apache.catalina.realm.JAASRealm setContainer
INFO: Setting JAAS app name Catalina
Aug 2, 2004 5:36:41 PM org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
Aug 2, 2004 5:36:41 PM org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Aug 2, 2004 5:36:41 PM org.apache.struts.util.PropertyMessageResources

INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
Aug 2, 2004 5:36:43 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:/usr/tomcat/jakarta-tomcat-5.0.27/conf/Catalina/localhost/balancer.
xml
Aug 2, 2004 5:36:43 PM org.apache.catalina.core.StandardContext
resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /dvr/web/balancer does
not exist or is not a readable directory
at
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.jav
a:138)
at
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.
java:3910)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4138
)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:823)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at
org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeplo
yer.java:903)
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.SetNextRule.end(SetNextRule.java:256)
at org.apache.commons.digester.Rule.end(Rule.java:276)
at
org.apache.commons.digester.Digester.endElement(Digester.java:1058)
at
org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.ja
va:76)
at
org.apache.xerces.parsers.AbstractSAXParser.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:1567)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy
er.java:488)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
:482)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:968)
  

Re: Error: -Dsun.io.useCanonCaches=false

2004-08-02 Thread Héctor A . Abreu
Thank you Chuck and Endy for that quick and accurate response. It is working
now.

Thanks again!!

Héctor.

- Original Message -
From: "Endy Muhardin" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, August 01, 2004 10:13 PM
Subject: Re: Error: -Dsun.io.useCanonCaches=false


On Sunday 01 August 2004 21:31, Héctor A. Abreu wrote:
> Hi, there.
>
> I'm trying to start Tomcat 4.1.30 on my XP laptop with j2re1.4.2_05
>
> It throws the following error:
>
> C:\jakarta-tomcat-4.1.30\bin>startup.bat
> The JAVA_HOME environment variable is not defined correctly
> This environment variable is needed to run this program

I think the line above describe your problem.
Your should set environment variables JAVA_HOME to the folder of Java 2 SDK
installation.

One more thing.. you should use Java SDK (j2sdk1.4.2_03)
instead of Java Runtime Environment (j2re)


> Using CATALINA_BASE:   C:\jakarta-tomcat-4.1.30
> Using CATALINA_HOME:   C:\jakarta-tomcat-4.1.30
> Using CATALINA_TMPDIR: C:\jakarta-tomcat-4.1.30\temp
> Using JAVA_HOME:   C:\j2re1.4.2_05
> El sistema no puede encontrar el archivo -Dsun.io.useCanonCaches=false.
>
> (Note: "El sistema no puede encontrar el archivo..." means "The system
> cannot find the file..." in Spanish.)
>
> The extrange thing is that C:\j2re1.4.2_05 is the path where my Java
> resides.
>
> Any clue?
>
> Thank you in advance for any hint o suggestion.
>
> Regards,
>
> Héctor.

--
-- endy --
Project Syariah Banking
Enciety Business Consult
/* life learn contribute */

-
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: SunONE versus Tomcat performance

2004-08-02 Thread Vic Cekvenich
http://news.netcraft.com/archives/2003/04/10/java_servlet_engines.html
Above is Sun's market share of production sites.
So...
.V


On Friday 30 July 2004 05:40 pm, David Wall wrote:
It is worth noting that Sun Java Web Server has better performance than
Apache Tomcat; you can learn more about this from Sun Java Web Server vs.
Apache/Tomcat Benchmarks.
The link to the KeyLabs report is at
http://www.keylabs.com/results/sun/SunONEFinalReport_Solaris.pdf
Why would SunONE be anywhere from 2 to 5 times faster than Tomcat?
They also suggest that Tomcat would start to show errors when loading 200
users at a time, whereas SunONE could handle up to 500 users without any
errors.
David

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


isapi_redirector2.dll - IIS redirecting to multiple Tomcat instances

2004-08-02 Thread Matt Krevs
Hi all,

I'm using isapi_redirector2.dll to redirect webapp requests on my IIS
server to tomcat.

Is it possible to make this single redirector redirect requests to
different
instances of tomcat (depending on uri)?

For example, a request to IIS for "/app1/" should go to localhost:8080
and a request for "/app2/" should go to localhost:8081.

I'm using Windows, so if this is possible, what would my registry
entries look
like (ie: serverRoot key), and what would my workers2.properties look
like?

Thanks
Matt


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



Re: SunONE versus Tomcat performance

2004-08-02 Thread Nikola Milutinovic
Jérôme Duval wrote:
Why would you compare Apache and Tomcat vs. SunONE? Isn't there a lot of
overhead in using the connector and all that? Seems to me a more logical
test would be Tomcat vs SunONE and the most recent version of both, which
Tomcat 4.1.30 is not. I smell bogus test results!
When I see 2-5 times, I smell bogus results. I know that SunONE is 
professional, I know that Tomcat is free and contributed, but it CANNOT 
be 2x-5x faster. Even if SunONE is written in assembler (which I doubt).

Even if they wrote it in C++, they still need Java classloader and other 
stuff. There just isn't that much room for code optimization. If they 
are stating that with high user load SunONE outperforms Tomcat, I'd say 
it's either misconfigured Tomcat or connector issues.

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


Need to start Tomcat 4.1 twice

2004-08-02 Thread Jitesh Sinha
Hello all,
I am facing a strange problem.I need to start my Tomcat server twice.After
first start when I try to access anything I get the error Requested Resource
not available.After second start everything works fine.Any ideas why that
will happen?

Thanks,
-Jitesh


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



ajp over ssl

2004-08-02 Thread Michael Jürgens
Hi,
I want to connect an Apache Webserver over an unsecure channel to tomcat.
What is the preferred method?
AJP over a permanent ssh tunnel?
I think an AJP connection over SSH would be better.
but I don´t know how to do that.
a IPSec Conection is not possible, because of some firewall problems.
regards,
Michael
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]