Windows 2003 Java VM memory leak due to C# garbage collection algorithm

2004-09-16 Thread Travis De Silva
Hi,

Wish someone could provide us insight to the following problem that we encounter. We 
have been trying for nearly two months now researching the web including this forum 
and trying out various suggestions but have been unsuccessful so far.

What we would like to know is that if there is a memory leak in our application, it 
should grow within the java heap and eventually give an out of memory error and crash 
the JVM. This is what I have known from the first day I got into Java and have always 
thought this to be correct. (until now)

We are running a Tomcat/5.0.27, 3 node cluster (on the same Windows Server 2003) and 
use the AJP13 connector to redirect requests from IIS 6.0 (running on IIS 5.0 
isolation mode) (tried with Tomcat 5.0.19 as well. The JVM :1.5.0-rc-b63 tried with 
1.4 as well) Using the recommended Oracle JDBC thin drivers for this version of the 
JVM, we connect to Oracle 9i which also runs on the same server.

The issue we are having is that the VM size for each of the Java.exe processes grows 
way beyond the max heap settings. (we understand that it will not be equal due to the 
JVM loading overhead)

For example, the heap settings is set to 512MB per tomcat/JVM instance but on Windows, 
it keeps growing to about 1.5 GB. This happens to each of the nodes and it goes into 
virtual memory and then eventually crashes and we have to restart the Tomcat cluster. 

Now I know with regard to Java application memory leaks, you got to check your 
programs. But what I want to know is that if there is a memory leak from our programs, 
it should eventually take the full java heap and then crash with an out of memory 
error. But that does not happen. In fact by monitoring the GC output, the heap seem to 
be working fine with each GC run increasing the free memory. In fact when we monitor 
the tomcat status page as well, we do see the java heap memory behaving correct. Also 
as I said, there are no out of memory errors in the log as well.

What I want to know is even if our program has a memory leak, it should crash the JVM 
right? It should not keep increasing the memory allocated from the Windows Server 2003 
O/S. 

Could this be a issue with the Windows server 2003 garbage collection as I read it is 
written using C#? anyone has any idea if this is the problem? 

Any help would be very much appreciated.

Thanks

Travis


RE: Why tomcat 4 or even 3?

2004-09-16 Thread POLO ARAUJO, JAVIER
Michael wrote:

 

>Since I just posted such a message let me explain why I am 

>installing 4.1.x.  It is for a third party software the latest release
of which requires Servlet spec 2.3.  That is >supported by TC 4 only.
The vendor does not take any responsibilty that their product will work
with Servlet spec 2.4, >so I can't use TC 5 no matter how much I want
to.  Maybe this is also a question of backwards compatability of new
>Servlet and other specs. Just as an example: I couldn't upgrade Java to
1.4 because the third party software definitely >didn't work with it, I
tried. Another example is tomcat itself.  I can't just replace TC3 with
TC4.  Essentially >everything has changed.  No TC3 config file will work
and no conversion tool or even a proper description exists.  So >for
real work it is not that simple to just use the latest version of tomcat
or whatever.

 

>Just my 2 cents.

>Michael

 

Hei! I agree with you. And even if it's true that bugs always tends to
rise in all software, you should think that sometimes is better fighting
against well-known bugs than against new bugs; for example, in
critical-mission systems never are used newer versions of soft or hard,
because you don't really know what kind of bugs you will find. In fact,
upgrading depends on the scenario, the mission of system, the users, the
money you have and also the compatibility with older versions! Saying
that you should always upgrade your systems is a too-simplistic
assortment (I hope this word is right!).

 

Javier Polo.



Re: Tomcat fine within the LAN, but invisible from without

2004-09-16 Thread Big Chiz
it can be alot of factors. if its a  fw problem, e.g if you only have
one public ip forwading it to your local host then you should have
something like this in your shorewall/rules

DNAT  net  loc:192.168.1.5 tcp 8080 - x.x.x.your_public_ip



On Fri, 17 Sep 2004 00:29:55 -0500, Lee Hoffner
<[EMAIL PROTECTED]> wrote:
> For some reason, I'm not getting replies to my posts, although I see them at
> http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/
> 
> Weird!
> 
> Anyway, in regard to those replies:
> >you can also add www.mydomain.com to your hosts file to test accessing
> >the web server within your lan, if that failed check your dns or if it
> >resolves to a public ip then check your fw
> >
> >
> >On Thu, 16 Sep 2004 13:03:14 -0700, Hassan Schroeder
> ><[EMAIL PROTECTED]> wrote:
> >> Lee Hoffner wrote:
> > >
> > >> I've untarred and setup Tomcat 4.1.30 on my server and can get to
> index.jsp
> > > >just fine on my web server's 192.168.x.x:8080 address, but I get a
> timeout
> > > >error if I try to browse to www.mydomain.com:8080.
> > >
> > >Sounds like a basic networking problem --
> > >
> > >1) does host/dig/nslookup resolve 'www.mydomain.com' to your address?
> > >
> > >2) if you're really trying this from "outside" your LAN, what's the
> > >firewall/routing setup? (hint: try it from "inside" first!)
> > >
> > >HTH,
> > >--
> > >Hassan Schroeder - [EMAIL PROTECTED]
> 
> I don't have a DNS server here, just a /etc/hosts file. www.mydomain.com is
> listed in the hosts file at 192.168.1.5
> nslookup finds www.mydomain.com at the public IP provided by my ISP.
> Shorewall has the rule:
> Action  ACCEPT
> Source Zone Net
> Destination Zone
> ProtocolTCP
> Source PortsAny
> Destination Ports   8080
> DNAT or REDIRECTNone
> 
> Trying to access the domain:8080 from within this LAN results in a timeout.
> Trying to access the domain:8080 from an office elsewhere results in an alert
> that the connection was refused.
> 
> I'm mystified. I'd be grateful for any help. 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: Tomcat fine within the LAN, but invisible from without

2004-09-16 Thread Lee Hoffner
For some reason, I'm not getting replies to my posts, although I see them at
http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/

Weird!

Anyway, in regard to those replies:
>you can also add www.mydomain.com to your hosts file to test accessing
>the web server within your lan, if that failed check your dns or if it
>resolves to a public ip then check your fw
>
>
>On Thu, 16 Sep 2004 13:03:14 -0700, Hassan Schroeder
><[EMAIL PROTECTED]> wrote:
>> Lee Hoffner wrote:
> >
> >> I've untarred and setup Tomcat 4.1.30 on my server and can get to 
index.jsp
> > >just fine on my web server's 192.168.x.x:8080 address, but I get a 
timeout
> > >error if I try to browse to www.mydomain.com:8080.
> >
> >Sounds like a basic networking problem --
> >
> >1) does host/dig/nslookup resolve 'www.mydomain.com' to your address?
> >
> >2) if you're really trying this from "outside" your LAN, what's the
> >firewall/routing setup? (hint: try it from "inside" first!)
> >
> >HTH,
> >--
> >Hassan Schroeder - [EMAIL PROTECTED]

I don't have a DNS server here, just a /etc/hosts file. www.mydomain.com is 
listed in the hosts file at 192.168.1.5
nslookup finds www.mydomain.com at the public IP provided by my ISP.
Shorewall has the rule:
Action  ACCEPT
Source Zone Net
Destination Zone
ProtocolTCP
Source PortsAny
Destination Ports   8080
DNAT or REDIRECTNone

Trying to access the domain:8080 from within this LAN results in a timeout. 
Trying to access the domain:8080 from an office elsewhere results in an alert 
that the connection was refused.

I'm mystified. I'd be grateful for any help. Thank you!


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



jk2 and file upload

2004-09-16 Thread juhani
Hi! As curren jk2 has problem with file upload i am asking does
anybody know when next version will be available or is there any
workaround?

Software used: 
 Windows server 2003
 IIS 6
 Tomcat 5.0.28
 jk2.0.4-win32-IIS



__
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 

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



Re: A little offbeat question

2004-09-16 Thread Frank Zammetti

I wish they would clarify that, to, "Don't set CLASSPATH yourself. Let
the applications or frameworks do that." I think that would be less
confusing.
As I understand it, this simply means that if you are going to execute a 
Java app, you should set the classpath right before executing the app (on 
the command line really).  Likewise, when you compile, construct the 
classpath on the command line of javac.  Or, when running Tomcat or 
something like that, let it's startup scripts create the classpath.

At least in Windows, all those situations would result in a "local" 
classpath, i.e., if you have three command prompt windows open, one to do 
compiles, one to execute apps directly and one to run Tomcat in, all three 
can basically set up their own classpath, completely independent of one 
another.  I think this is what that statement is talking about.

Frank
_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

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


Re: A little offbeat question

2004-09-16 Thread Joel
On Thu, 16 Sep 2004 07:41:11 -0500
"Caldarale, Charles R" <[EMAIL PROTECTED]> wrote

> > From: John Najarian [mailto:[EMAIL PROTECTED]
> > Subject: RE: RE: A little offbeat question
> > 
> > I'm still going to look at the CLASSPATH env var.  Maybe I should
> > add '.' to the CLASSPATH variable.
> 
> These days, Sun seems to be recommending not using the CLASSPATH 
> environment variable - ever. 

I wish they would clarify that, to, "Don't set CLASSPATH yourself. Let
the applications or frameworks do that." I think that would be less
confusing.

> Use either the -cp argument on each
> program invocation, or make the proper directory current when you
> execute the desired program. 

In light of security issues deriving from the default assumption of
having executables in the working directory, -cp would be the correct
way to do this. 

But I don't remember. Is Sun planning to do away with defaulting to the
current working directory when CLASSPATH is empty?

> Your experience is a good example of why
> global environment variables must be used very judiciously.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE 
> PROPRIETARY MATERIAL and is thus for use only by the intended recipient.
> If you received this in error, please contact the sender and delete the
> e-mail and its attachments from all computers.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-- 
Joel <[EMAIL PROTECTED]>


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



Re: Problem configuring a global resource to be linked from Context elements ....

2004-09-16 Thread Antony Paul
I think it is because of the way Tomcat classloaders work. Classes in
common\lib or common\classes cannot see classes in WEB-INF\lib. DBCP looks
for the JDBC Driver class and it cannot read it from WEB-INF\lib. This is
the answer I got when I had similar problem. For further info on this you
need help from experts in this list. If the problem is not solved please
reply.

rgds
Antony paul

- Original Message -
From: "Jonathan Rengifo" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, September 16, 2004 8:48 PM
Subject: Re: Problem configuring a global resource to be linked from Context
elements 


> Hi to all...
>
> Antony, sorry I have already found dbcp.jar and know what it does, but
> don't understand why I should copy it to my WEB-INF/lib application
> source ?
>
>
> On Thu, 16 Sep 2004 11:06:53 -0400, Jonathan Rengifo
> <[EMAIL PROTECTED]> wrote:
> > Hi again and thanks to all... :D
> >
> > Antony, please can you tell what is dbcp.jar and where I can find it?
> > so I can try your recommendation...
> >
> > Thanks...
> >
> >
> > Jonathan
> >
> > On Thu, 16 Sep 2004 18:35:51 +0530, Antony Paul
> > <[EMAIL PROTECTED]> wrote:
> > > Had you tried it with inside Context element. If it doesn't work it
means
> > > the JDBC driver is not found when Tomcat starts up. You have to put
JDBC jar
> > > in CATALINA_HOME\common\lib. It can be placed in WEB-INF\lib if you
place
> > > dbcp.jar too there.
> > >
> > > rgds
> > > Antony Paul
> > >
> > > - Original Message -
> > > From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> > > To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Jonathan
Rengifo"
> > > <[EMAIL PROTECTED]>
> > > Sent: Thursday, September 16, 2004 6:02 PM
> > > Subject: RE: Problem configuring a global resource to be linked from
Context
> > > elements 
> > >
> > >
> > > Hi,
> > >
> > >
> > > Maybe there really is a bug in the Tomcat release you're using: which
> > > one are you trying?
> > >
> > > Yoav Shapira
> > > Millennium Research Informatics
> > >
> > > >-Original Message-
> > > >From: Jonathan Rengifo [mailto:[EMAIL PROTECTED]
> > > >Sent: Wednesday, September 15, 2004 9:08 PM
> > > >To: Tomcat User List
> > > >Subject: Problem configuring a global resource to be linked from
> > > Context
> > > >elements 
> > > >
> > > >Hi all
> > > >
> > > >
> > > >This is the third time I've write a message to the list asking for
the
> > > >same issue, but didn't solve it, I am starting to think about this is
> > > >a really bug in Tomcat 5. My question is ... Why when I configure a
> > > >Resource inside the GlobalNamingResources element just to
ResourceLink
> > > >it inside the context it just doesn't work, throwing an exception
like
> > > >this ...
> > > >
> > > >org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver
> > > >class 'oracle.jdbc.driver.OracleDriver'
> > > >
> > > >This means to me that the oracle driver I am using is could no be
> > > >found, but then, why when I cut the Resource and paste it inside
every
> > > >Context I use it just work fine???...
> > > >
> > > >Please help How do I configure this global resource??
> > > >
> > > >Here is how I am setting this up...
> > > >
> > > >
> > > >
> > > > > > >type="javax.sql.DataSource"/>
> > > > 
> > > > 
> > > > factory
> > > >
> > > org.apache.commons.dbcp.BasicDataSourceFactory
> > > > 
> > > > 
> > > > url
> > > >
> > > jdbc:oracle:thin:@myDatabaseServer:port:user
> > > > 
> > > > 
> > > > password
> > > > myPassword
> > > > 
> > > > 
> > > > maxActive
> > > > 20
> > > > 
> > > > 
> > > > maxWait
> > > > -1
> > > > 
> > > > 
> > > > driverClassName
> > > > oracle.jdbc.driver.OracleDriver
> > > > 
> > > > 
> > > > username
> > > > myUser
> > > > 
> > > > 
> > > > maxIdle
> > > > 10
> > > > 
> > > > 
> > > >
> > > >
> > > >
> > > >Thanks ..
> > > >
> > > >Jonathan
> > > >
> > > >-
> > > >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 PROTECT

Re: Problem configuring a global resource to be linked from Context elements ....

2004-09-16 Thread Antony Paul
The correct file name is commons-dbcp-1.1.jar and is found in
CATALINA_HOME\common\lib directory.

rgds
Antony Paul

- Original Message -
From: "Jonathan Rengifo" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, September 16, 2004 8:36 PM
Subject: Re: Problem configuring a global resource to be linked from Context
elements 


> Hi again and thanks to all... :D
>
> Antony, please can you tell what is dbcp.jar and where I can find it?
> so I can try your recommendation...
>
> Thanks...
> Jonathan
>
>
> On Thu, 16 Sep 2004 18:35:51 +0530, Antony Paul
> <[EMAIL PROTECTED]> wrote:
> > Had you tried it with inside Context element. If it doesn't work it
means
> > the JDBC driver is not found when Tomcat starts up. You have to put JDBC
jar
> > in CATALINA_HOME\common\lib. It can be placed in WEB-INF\lib if you
place
> > dbcp.jar too there.
> >
> > rgds
> > Antony Paul
> >
> > - Original Message -
> > From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Jonathan
Rengifo"
> > <[EMAIL PROTECTED]>
> > Sent: Thursday, September 16, 2004 6:02 PM
> > Subject: RE: Problem configuring a global resource to be linked from
Context
> > elements 
> >
> >
> > Hi,
> >
> >
> > Maybe there really is a bug in the Tomcat release you're using: which
> > one are you trying?
> >
> > Yoav Shapira
> > Millennium Research Informatics
> >
> > >-Original Message-
> > >From: Jonathan Rengifo [mailto:[EMAIL PROTECTED]
> > >Sent: Wednesday, September 15, 2004 9:08 PM
> > >To: Tomcat User List
> > >Subject: Problem configuring a global resource to be linked from
> > Context
> > >elements 
> > >
> > >Hi all
> > >
> > >
> > >This is the third time I've write a message to the list asking for the
> > >same issue, but didn't solve it, I am starting to think about this is
> > >a really bug in Tomcat 5. My question is ... Why when I configure a
> > >Resource inside the GlobalNamingResources element just to ResourceLink
> > >it inside the context it just doesn't work, throwing an exception like
> > >this ...
> > >
> > >org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver
> > >class 'oracle.jdbc.driver.OracleDriver'
> > >
> > >This means to me that the oracle driver I am using is could no be
> > >found, but then, why when I cut the Resource and paste it inside every
> > >Context I use it just work fine???...
> > >
> > >Please help How do I configure this global resource??
> > >
> > >Here is how I am setting this up...
> > >
> > >
> > >
> > > > >type="javax.sql.DataSource"/>
> > > 
> > > 
> > > factory
> > >
> > org.apache.commons.dbcp.BasicDataSourceFactory
> > > 
> > > 
> > > url
> > >
> > jdbc:oracle:thin:@myDatabaseServer:port:user
> > > 
> > > 
> > > password
> > > myPassword
> > > 
> > > 
> > > maxActive
> > > 20
> > > 
> > > 
> > > maxWait
> > > -1
> > > 
> > > 
> > > driverClassName
> > > oracle.jdbc.driver.OracleDriver
> > > 
> > > 
> > > username
> > > myUser
> > > 
> > > 
> > > maxIdle
> > > 10
> > > 
> > > 
> > >
> > >
> > >
> > >Thanks ..
> > >
> > >Jonathan
> > >
> > >-
> > >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]
>
>

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



Re: Question on use of Java style comments in JSP

2004-09-16 Thread Antony Paul
t.jsp

<%//a%>
aaa

t_jsp.java
//a  out.write("\naaa\n");

The out.write() needs to be on second line.

rgds
Antony Paul

- Original Message -
From: "Jarl Skogsholm" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, September 16, 2004 8:14 PM
Subject: Re: Question on use of Java style comments in JSP


> Go look in the work directory and find the corresponding java file to this
> jsp.
>
> On Thu, 16 Sep 2004 19:22:50 +0530, Antony Paul <[EMAIL PROTECTED]>
> wrote:
>
> > It is not producing error messages on stdout/stderr or to screen instead
> > it
> > gives this output
> >
> > 
> > 
> > 
> > 
> >
> > rgds
> > Anotny Paul.
> >
>
> -
> 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]



Apache/TomCat Integration problem: No ClassDef Found Error

2004-09-16 Thread [EMAIL PROTECTED]

PLEASE HELP

I am following the instructions listed in
http://www.mail-archive.com/[EMAIL PROTECTED]/msg130210.html

Expected Results from ldd

 ldd /usr/local/httpd/modules/jkjni.so
libcrypt.so.1 => /lib/libcrypt.so.1 (0x40046000)
libapr-0.so.0 =>
/usr/local/httpd-2.0.49/lib/libapr-0.so.0 (0x40074000)
libaprutil-0.so.0 =>
/usr/local/httpd-2.0.49/lib/libaprutil-0.so.0
(0x40097000)
libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x400ab000)
libdb-4.0.so => /lib/libdb-4.0.so (0x400b2000)
libexpat.so.0 => /usr/lib/libexpat.so.0 (0x4015a000)
libc.so.6 => /lib/i686/libc.so.6 (0x4017a000)
librt.so.1 => /lib/i686/librt.so.1 (0x402b4000)
libm.so.6 => /lib/i686/libm.so.6 (0x402c6000)
libnsl.so.1 => /lib/libnsl.so.1 (0x402e8000)
libpthread.so.0 => /lib/i686/libpthread.so.0
(0x402fd000)
libdl.so.2 => /lib/libdl.so.2 (0x4034d000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x8000)

Actual Results from my installation..


[EMAIL PROTECTED] apache2]# ldd libjkjni.so
libcrypt.so.1 => /lib/libcrypt.so.1
(0x40032000)
libapr-0.so.0 =>
/usr/local/apache2/lib/libapr-0.so.0 (0x4005f000)
libc.so.6 => /lib/tls/libc.so.6 (0x4200)
librt.so.1 => /lib/librt.so.1 (0x4007d000)
libm.so.6 => /lib/tls/libm.so.6 (0x4008f000)
libnsl.so.1 => /lib/libnsl.so.1 (0x400b2000)
libpthread.so.0 => /lib/tls/libpthread.so.0
(0x400c7000)
libdl.so.2 => /lib/libdl.so.2 (0x400d4000)



I am missing apr-uitl etc... So I  am getting
Unsatisfied link Error...Please help...

MakeFile /server/apache2 is listed below..

# Gnu makefile and libtool are required
# use -D options to overrides defaults
CC=gcc
CP=/bin/cp
prefix=/usr/local
exec_prefix=${prefix}
  
  
   
APACHE2_HOME=/usr/local/apache2
OS=linux
JAVA_HOME=/usr/java/jdk1.5.0
APACHE2_INCL=-I/usr/local/apache2/include
APACHE2_LIBEXEC=/usr/local/apache2/modules
APACHE2_LIBDIR=/usr/local/apache2/lib
APR_INCL=
-I/usr/local/httpd-2.0.50/srclib/apr-util/include
-I/usr/local/httpd-2.0.50/srclib/apr/include
#APR_LIBS=-L/usr/local/apache2/lib
APR_LIBS=-L/usr/local/apache2/lib -lapr-0
#APR_LIBS=-L/root/software/httpd-2.0.50/srclib/apr-util/.libs
-laprutil-0
APR_LIBDIR_LA=
EXTRA_CFLAGS= -g -O2 -pthread
EXTRA_CPPFLAGS=-DLINUX=2 -D_REENTRANT
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE
ifneq ($(strip $(JAVA_HOME)),)
JAVA_INCL=-I ${JAVA_HOME}/include -I
${JAVA_HOME}/include/${OS}
JAVA_LIB=-L ${JAVA_HOME}/jre/lib/${ARCH} -L
${JAVA_HOME}/lib/${ARCH}/native_threads
endif
  
  
   
JK_DIR := ../..
BUILD_DIR = ${JK_DIR}/../build/jk2/apache2
  
  
   
# Extract EXTRA_CFLAGS and EXTRA_CPPFLAGS - same flags
used during apache2
# compilation
#include ${APACHE2_HOME}/build/config_vars.mk
  
  
   
# Yes, we use the same properties file as ant
#include ../../../build.properties


#LIBTOOL=/bin/sh /usr/local/apache2/build/libtool
--silent
LIBTOOL=/usr/bin/libtool
  
  
   
# It doesn't hurt if we include all
INCLUDES= -I${JK_DIR}/include \
  ${APACHE2_INCL} \
  ${APR_INCL} \
  ${JAVA_INCL}
  
  
   
JK_CFLAGS=-DCHUNK_SIZE=4096 -DUSE_APACHE_MD5
-DHAVE_JNI
#ifdef APR_LIBDIR_LA
#JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt
#else
#JK_LDFLAGS=-lcrypt ${APR_LIBS}
#endif'
ifdef APR_LIBDIR_LA
JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt
else
JK_LDFLAGS=-lcrypt ${APR_LIBS}
-L/usr/local/apache2/lib -laprutil-0 -lgdbm -ldb-4.0
-lexpat
endif
  
  
   
## Based on rules.mk
##

etc


Thanks







__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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



Re: Serializable Logging implementation

2004-09-16 Thread QM
On Thu, Sep 16, 2004 at 07:49:17PM -0500, Spiegs wrote:
: What is the best approach for someone starting a new app? Is having all 
: of your model objects contain a transient static log instance, implement 
: Serializable, and implement HttpSessionActivationListener to 
: reinstantiate the log instance the best approach? What other approaches 
: would you recommend if you were to start with a clean slate?

What about, "don't store model objects[1] in session (or anyplace else
that may be serialized)?"  If you're passing data around, use a DTO.

Whether to use DTOs is something of a religious issue; but pure
data-holders rarely need internal logging.  If client code wants to log
a value they fetch out of a DTO, let them have at it...

-QM

[1] = This statement assumes any "model object" that requires internal
logging is much more than a pure data-holder.

-- 

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


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



Re: Serializable Logging implementation

2004-09-16 Thread Spiegs
Ok, in a nutshell - using a private static logger in each model object 
will not be serialized across the cluster. Use the following 3 lines of 
code you provided and I won't have any problems with the log4j log 
instance not being serializable, because it never will be. Right? (I'm 
not familiar with how the Classloader handles static variables in a 
clustered environment)

Thanks,
Eric
 Original Message --
Ditch the super class philosphy. And copy the following 3 lines of code:
import ... LogFactory;
import ... Log;
private static log = LogFactory.get...(My.class);
You don't want to use the super class philophy because debugging the 
inheritance chain becomes impossible. For example:
SuperClass
SubClass
   SubSubClass
  SubSubSubClass

With a log variable at the Super class level inherited by the sub 
classes, it is IMPOSSIBLE to debug SubClass or SubSubClass. (As well as 
SuperClass) For example - I might want trace turned on for the super 
class and warn on for the rest of the classes in the hierarchy. 
Inheritance kills any chance of fine grained control of log output.

If it's static - it can't be transient. And all the instances share all 
the same log instance at the Classloader level so it is never serialized.

-Tim

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


Re: Serializable Logging implementation

2004-09-16 Thread Tim Funk
Ditch the super class philosphy. And copy the following 3 lines of code:
import ... LogFactory;
import ... Log;
private static log = LogFactory.get...(My.class);
You don't want to use the super class philophy because debugging the 
inheritance chain becomes impossible. For example:
SuperClass
  SubClass
 SubSubClass
SubSubSubClass

With a log variable at the Super class level inherited by the sub classes, it 
is IMPOSSIBLE to debug SubClass or SubSubClass. (As well as SuperClass) For 
example - I might want trace turned on for the super class and warn on for 
the rest of the classes in the hierarchy. Inheritance kills any chance of 
fine grained control of log output.

If it's static - it can't be transient. And all the instances share all the 
same log instance at the Classloader level so it is never serialized.

-Tim
Spiegs wrote:
What is the best approach for someone starting a new app? Is having all 
of your model objects contain a transient static log instance, implement 
Serializable, and implement HttpSessionActivationListener to 
reinstantiate the log instance the best approach? What other approaches 
would you recommend if you were to start with a clean slate?

If you were to put the above code into a superclass, doesn't that go 
against the previously discussed advice of having the log instance 
belong to each class?

Thanks,
Eric
 Original Message --
Subject:
Re: Serializable Logging implementation
From:
Tim Funk <[EMAIL PROTECTED]>
Date:
Wed, 15 Sep 2004 09:20:06 -0400
To:
Tomcat Users List <[EMAIL PROTECTED]>
Your NPE comes from the transient value not being restored from 
de-serialization.

Your best chance at this point without a lot of code changes is to
1) Make your log variable transient
2) Make your base class implement HttpSessionActivationListener.
3) Make your implementation of sessionDidActivate():
public void sessionDidActivate(HttpSessionEvent se) {
 if (log==null)
   log = LogFactory.getLog(this.getClass());
}
public void sessionWillPassivate (HttpSessionEvent se) {
 ; /* Nothing to do */
}
-Tim
Antony Paul wrote:
Then it throws NullPointerException
rgds
Antony Paul
- Original Message -
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 15, 2004 6:05 PM
Subject: RE: Serializable Logging implementation

Hi,
Hmm, you want to be careful with this pattern.  I like the private
static one for Loggers -- there are very good reasons it's the
recommended pattern (by log4j, by the java.util.logging folks) and the
one that's used (by Tomcat and most other serious apps I know of).
If you really want to stick with your "base class gets the logger"
pattern, consider marking it as transient.
Yoav Shapira
Millennium Research Informatics

-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 8:27 AM
To: Tomcat Users List
Subject: Re: Serializable Logging implementation
I extend a base form which gets the Log as
LogFactory.getLog(this.getClass());
So that no need to define and get a Log instance in subclass. Is there

any
way so that I can follow this pattern.
rgds
Antony Paul
- Original Message -
From: "Tim Funk" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 15, 2004 4:38 PM
Subject: Re: Serializable Logging implementation

logging instances should be static to the class.
// Commons logging example but a log4j equiv should be easy to find
private static Log log = LogFactory.getLog(MyClass.class);
-Tim
Antony Paul wrote:

Hi,
   I used Log4J and commons logging in an ActionForm which is

stored
in
the
session. When I reload the context it is invalidating the session

because it
is non serializable. Is there any work around for this ?. Or do I

have
to
use any other Logger.

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


Re: Serializable Logging implementation

2004-09-16 Thread Spiegs
What is the best approach for someone starting a new app? Is having all 
of your model objects contain a transient static log instance, implement 
Serializable, and implement HttpSessionActivationListener to 
reinstantiate the log instance the best approach? What other approaches 
would you recommend if you were to start with a clean slate?

If you were to put the above code into a superclass, doesn't that go 
against the previously discussed advice of having the log instance 
belong to each class?

Thanks,
Eric
 Original Message --
Subject:
Re: Serializable Logging implementation
From:
Tim Funk <[EMAIL PROTECTED]>
Date:
Wed, 15 Sep 2004 09:20:06 -0400
To:
Tomcat Users List <[EMAIL PROTECTED]>
Your NPE comes from the transient value not being restored from 
de-serialization.

Your best chance at this point without a lot of code changes is to
1) Make your log variable transient
2) Make your base class implement HttpSessionActivationListener.
3) Make your implementation of sessionDidActivate():
public void sessionDidActivate(HttpSessionEvent se) {
 if (log==null)
   log = LogFactory.getLog(this.getClass());
}
public void sessionWillPassivate (HttpSessionEvent se) {
 ; /* Nothing to do */
}
-Tim
Antony Paul wrote:
Then it throws NullPointerException
rgds
Antony Paul
- Original Message -
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 15, 2004 6:05 PM
Subject: RE: Serializable Logging implementation

Hi,
Hmm, you want to be careful with this pattern.  I like the private
static one for Loggers -- there are very good reasons it's the
recommended pattern (by log4j, by the java.util.logging folks) and the
one that's used (by Tomcat and most other serious apps I know of).
If you really want to stick with your "base class gets the logger"
pattern, consider marking it as transient.
Yoav Shapira
Millennium Research Informatics

-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 8:27 AM
To: Tomcat Users List
Subject: Re: Serializable Logging implementation
I extend a base form which gets the Log as
LogFactory.getLog(this.getClass());
So that no need to define and get a Log instance in subclass. Is there

any
way so that I can follow this pattern.
rgds
Antony Paul
- Original Message -
From: "Tim Funk" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 15, 2004 4:38 PM
Subject: Re: Serializable Logging implementation

logging instances should be static to the class.
// Commons logging example but a log4j equiv should be easy to find
private static Log log = LogFactory.getLog(MyClass.class);
-Tim
Antony Paul wrote:

Hi,
   I used Log4J and commons logging in an ActionForm which is

stored
in
the
session. When I reload the context it is invalidating the session

because it
is non serializable. Is there any work around for this ?. Or do I

have
to
use any other Logger.



Re: Tomcat fine within the LAN, but invisible from without

2004-09-16 Thread Big Chiz
you can also add www.mydomain.com to your hosts file to test accessing
the web server within your lan, if that failed check your dns or if it
resolves to a public ip then check your fw


On Thu, 16 Sep 2004 13:03:14 -0700, Hassan Schroeder
<[EMAIL PROTECTED]> wrote:
> Lee Hoffner wrote:
> 
> > I've untarred and setup Tomcat 4.1.30 on my server and can get to index.jsp
> > just fine on my web server's 192.168.x.x:8080 address, but I get a timeout
> > error if I try to browse to www.mydomain.com:8080.
> 
> Sounds like a basic networking problem --
> 
> 1) does host/dig/nslookup resolve 'www.mydomain.com' to your address?
> 
> 2) if you're really trying this from "outside" your LAN, what's the
> firewall/routing setup? (hint: try it from "inside" first!)
> 
> HTH,
> --
> Hassan Schroeder - [EMAIL PROTECTED]
> Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
> 
>dream.  code.
> 
> 
> 
> 
> -
> 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]



Traversing up a directory using RequestDispatcher

2004-09-16 Thread Xeth Waxman
I have a bizarre issue.  Using Tomcat 5.0.12, I have an application in
the directory C:\jakarta-tomcat-5.0.12\webapps called ChargeCard. 
After loggin in, I am trying to forward a request to jsp page in that
directory.  However, RequestDispatcher apparently uses the directory
C:\jakarta-tomcat-5.0.12\webapps\ROOT as the Document root, so I need
to go up a directory in my forward request (something like url =
"../ChargeCard/index.jsp";)  However, RequestDispatcher requires a /
to start off the url, so I can't use the ../ start to go up a
directory.  Does anyone have an idea how I would do this?  I tried url
= "/../ChargeCard/index.jsp";, but that results in a
NullPointerException being thrown.  All help is appreciated!
-- 
Xeth Waxman
[EMAIL PROTECTED]

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



RE: Basic connection problem

2004-09-16 Thread Dale, Matt

You posted this question already and it has been replied to, you should follow the 
advice in the original reply

-Original Message-
From: Lee Hoffner [mailto:[EMAIL PROTECTED]
Sent: 16 September 2004 23:21
To: [EMAIL PROTECTED]
Subject: Basic connection problem


Hi,

I've installed Tomcat 4.1.30 and can successfully connect to index.jsp at
192.168.x.x:8080. However, I cannot connect from outside the LAN to
www.mydomain.com:8080

What have I missed? Thanks!

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

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not the 
intended recipient or the person responsible for delivering to the intended recipient, 
be advised that you have received this E-mail in error and that any use or copying is 
strictly prohibited. If you have received this E-mail in error please notify the 
beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual sender and 
not beCogent Ltd. You must take full responsibility for virus checking this email and 
any attachments.
Please note that the content of this email or any of its attachments may contain data 
that falls within the scope of the Data Protection Acts and that you must ensure that 
any handling or processing of such data by you is fully compliant with the terms and 
provisions of the Data Protection Act 1984 and 1998.


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

Basic connection problem

2004-09-16 Thread Lee Hoffner
Hi,

I've installed Tomcat 4.1.30 and can successfully connect to index.jsp at
192.168.x.x:8080. However, I cannot connect from outside the LAN to
www.mydomain.com:8080

What have I missed? Thanks!

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



Worker errors in mod_jk.log

2004-09-16 Thread Steve Harris
Hi all,

We recently upgraded our apache to 1.3.31 and our connector to 1.2.6
(tomcat is 4.0.6, JDK is 1.3.1_04),
since then we have had q few entries in the mod_jk.log as follows ;

[Wed Sep 15 12:43:44 2004]  [jk_ajp_common.c (1462)]: ERROR: Client
connection aborted or network problems

Prior to the updated mod_jk being installed we had messages along the
lines of ;

[Tue Sep 14 16:49:47 2004]  [jk_ajp13_worker.c (381)]: Error
ajp13_process_callback - write failed

We have had no users complain of any errors whatsoever...


Any ideas on what causes this error ?


Cheers all - Steve


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



How to JkMount /app1 to /

2004-09-16 Thread Boris Folgmann
Ho!

I've got an Apache hosting multiple vhosts. Some of them should be
connected to Tomcat using mod_jk.

Tomcat 4 is running multiple webapps:
/app1
/app2
...

What I can do in Apache is:
www.dom1.com/app1 is mapped to /app1 using "JkMount /app1 Worker"
www.dom2.com/app2 is mapped to /app2 using "JkMount /app2 Worker"
...

But how can I avoid /app1 and /app2 in the URL?
It shouldn't be necessary because the domains are different, so Apache has
differnt vhosts for them.

So what I want to have is:
www.dom1.com should be mapped to /app1
www.dom2.com should be mapped to /app2
...

"JkMount / Worker" is not possible, because I have no root context in
tomcat. Additionally this construction can't disinguish between /app1 and
/app2.

Any idea?

greetings,
   boris


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



RE: Question about creating new HttpSessions

2004-09-16 Thread Justin Ruthenbeck
At 12:24 PM 9/16/2004, you wrote:
Shapira, Yoav said:
>
> Hi,
> Why don't you want to invalidate the old one?
Mainly because the case that brought up this problem is the tester
using the File->New->New window command, then browsing to a
bookmarked URL for the login page.  They need to be able to
continue using the old session in the old window, and the new
session in the new window.
Note that most browsers use the same cookie-set if you do a 
"File->New->New Window" command, but use a new cookie-set if you simply 
start them in another process (for Windows that means clicking on the 
icon again to launch a new browser instance).

Try it with whatever browser you're using to test (varies by browser, but 
all that I've used have a similar way to accomplish this), but solving 
the problem this way would be much, much, much easier than asking your 
app to do something it's not "supposed" to do.

justin

__
Justin Ruthenbeck
Lead 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: Tomcat fine within the LAN, but invisible from without

2004-09-16 Thread Hassan Schroeder
Lee Hoffner wrote:
I've untarred and setup Tomcat 4.1.30 on my server and can get to index.jsp 
just fine on my web server's 192.168.x.x:8080 address, but I get a timeout 
error if I try to browse to www.mydomain.com:8080.
Sounds like a basic networking problem --
1) does host/dig/nslookup resolve 'www.mydomain.com' to your address?
2) if you're really trying this from "outside" your LAN, what's the
   firewall/routing setup? (hint: try it from "inside" first!)
HTH,
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

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


Re: Shutdown process hanging when I load-on-startup

2004-09-16 Thread Hubert Rabago
On Thu, 16 Sep 2004 15:33:47 -0400, Shapira, Yoav <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> Please keep the discussion on the list, not person.  It might benefit
> others now in the future, from the archives.

Hmm... did not know I did that.  I just hit reply on Gmail and I
didn't check the To field.

> 
> >From what I can tell, my servlet#destroy() method is being called,
> >because I shut down the JMS connections and the ActiveMQ broker from
> >there.
> >
> >I'm just running Tomcat through the startup/shutdown batch files
> provided.
> 
> The most common cause for this is non-daemon threads started by you (or
> one of the libraries you use) that aren't shutting down.  The JVM can't
> shut those down for you, and the JVM process can't exit (so Tomcat can't
> unbind the port) until those threads are eliminated.
> 

As it turns out, though, this is also what was happening to me. 
Apparently I had a bug in my "shut-down-the-broker" code where I set a
flag to a wrong value and it didn't really shut it down.  UGH.  I hate
it when this happens.


See, I knew if I had non-daemon threads that it would cause issues
when I shut down the container, because I had this issue with apps I
inherited.
The reason I thought I got it right all this time was because of my
previous experience, in that if I didn't shut down the thread, I
expected my tomcat console to stay.  Like I said in my original post,
if I didn't have "load-on-startup", it shut down anyway.  Hmm. 
Confusing.


But at this point, I'm just glad it's working, and that's another bug
cleaned out of my code.

> To debug further, you should issue a SIGQUIT (or CTRL-BREAK on windows)
> to the JVM process when Tomcat "hangs."  You will see what threads are
> doing, and that should show you which ones are causing the hang.  If
> you're having trouble interrupting the thread dump, post it here and
> we'll try to help.
> 

Last time around, I added a context listener (or did I do this on a
destroy()?) which queried Thread.enumerate() when I shut down.  I
wasn't aware of the ctrl-break trick.  This is nice to know.  I'll
note this down the next time I insist that "I'm shutting down my
threads properly" or I inherit another app with stubborn threads.

> Yoav


Thanks for the help!!!  

Hubert

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



RE: Server.xml configuration problem

2004-09-16 Thread Caroline Jen
Hi, yours is working now.  Mine is not.  I missed the
steps.  Could you post your server.xml file please? 
Thanks.
--- "LINGALA, AMARESHWAR G (SBCSI)" <[EMAIL PROTECTED]>
wrote:

> 
> It is working now, All I have to do is put the
> resource params inside of
> the 
> 
>  Thanks for all your help !!!
>  
> 
> -Original Message-
> From: Jukka Uusisalo
> [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 16, 2004 1:50 PM
> To: Tomcat Users List
> Subject: Re: Server.xml configuration problem
> 
> 
> Hi,
> 
> Your datasource jdbc/myOracle must be inside some
> Context element or
> DefaultContext
> element like
> 
> 
>   auth="Container"
>type="javax.sql.DataSource"/>
> 
>   
> 
>   factoryn
>  
>
org.apache.commons.dbcp.BasicDataSourceFactory
> 
> 
> 
> 
> Default context element is inside Host element. And
> also there have be
> reference in your
> application web.xml like
> 
>   
> Datasource for my app
> jdbc/myDataSource
> javax.sql.DataSource
> container
>
> 
> - Jukka -
> 
> - Original Message - 
> From: "LINGALA, AMARESHWAR G (SBCSI)"
> <[EMAIL PROTECTED]>
> To: "Tomcat Users List"
> <[EMAIL PROTECTED]>
> Sent: Thursday, September 16, 2004 9:21 PM
> Subject: RE: Server.xml configuration problem
> 
> 
> 
> Can you please be more specific, I tried to follow
> up the documents but
> am unable to fix the bug. Can you please send me the
> example of the
> change? I would be very much thankful to you.
> 
>  I am assuming that
> 
>  >  type="javax.sql.DataSource"/>
> >
> > 
> 
>  Should make the tomcat recognise the database.
> 
>  Thanks
>   Amar
> 
> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 16, 2004 1:12 PM
> To: Tomcat Users List
> Subject: RE: Server.xml configuration problem
> 
> 
> 
> Hi,
> You need to add an explicit Context element for your
> webapp, and inside
> it a ResourceLink element to make the
> GlobalNamingResources DataSource
> visible to your webapp.  Check the configuration
> reference document for
> GlobalNamingResourcs and ResourceLink for details.
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> 
> >-Original Message-
> >From: LINGALA, AMARESHWAR G (SBCSI)
> [mailto:[EMAIL PROTECTED]
> >Sent: Thursday, September 16, 2004 2:04 PM
> >To: Tomcat Users List
> >Subject: Server.xml configuration problem
> >
> >
> > Hi,
> > I am trying to set-up Connection pooling for
> my web application, I
> >have made the following modifications to my
> server.xml file.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >  
> >  
> >  
>className="org.apache.catalina.mbeans.ServerLifecycleListener"
> >debug="0"/>
> >  
>className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
> >debug="0"/>
> >
> >  
> >  
> >
> >
> > type="java.lang.Integer"
> >value="30"/>
> >
> >
> > > 
> type="org.apache.catalina.UserDatabase"
> >   description="User database that can be
> updated and saved">
> >
> >
> >  
> >factory
> >
>
>org.apache.catalina.users.MemoryUserDatabaseFactory
> >  
> >  
> >pathname
> >conf/tomcat-users.xml
> >  
> >
> >
> > 
> >  >  type="javax.sql.DataSource"/>
> >
> > 
> >   
> > factory
> >
>
>org.apache.commons.dbcp.BasicDataSourceFactory
> >   
> >   
> > driverClassName
> > oracle.jdbc.driver.OracleDriver
> >   
> >   
> 
=== message truncated ===




___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

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



RE: Shutdown process hanging when I load-on-startup

2004-09-16 Thread Shapira, Yoav

Hi,
Please keep the discussion on the list, not person.  It might benefit
others now in the future, from the archives.

>From what I can tell, my servlet#destroy() method is being called,
>because I shut down the JMS connections and the ActiveMQ broker from
>there.
>
>I'm just running Tomcat through the startup/shutdown batch files
provided.

The most common cause for this is non-daemon threads started by you (or
one of the libraries you use) that aren't shutting down.  The JVM can't
shut those down for you, and the JVM process can't exit (so Tomcat can't
unbind the port) until those threads are eliminated.

To debug further, you should issue a SIGQUIT (or CTRL-BREAK on windows)
to the JVM process when Tomcat "hangs."  You will see what threads are
doing, and that should show you which ones are causing the hang.  If
you're having trouble interrupting the thread dump, post it here and
we'll try to help.

Yoav



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


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



RE: Question about creating new HttpSessions

2004-09-16 Thread Shapira, Yoav

Hola,

>Shapira, Yoav said:
>>
>> Hi,
>> Why don't you want to invalidate the old one?
>
>Mainly because the case that brought up this problem is the tester
>using the File->New->New window command, then browsing to a
>bookmarked URL for the login page.  They need to be able to
>continue using the old session in the old window, and the new
>session in the new window.
>--matt hoover

IMHO, it's one thing to fix bugs reported by testers, and a good thing
at that.  But it's another to tweak basic concepts like one user = one
session (at a time) just for a tester or test case.  So I'd tell him/her
to adjust his/her testing process.

But if you can't or don't want to do that, we're back to your original
question.  I don't think there's a way to force Tomcat to create new
sessions as you desire, especially without invalidating the old one.  To
have such a way means Tomcat supports session handling in ways not
described in the Servlet Specification, and that's a no-no for us.

However, we do give you this option if you're willing to write some
code.  Extend the standard manager to have the behavior you want.  See
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/manager.html for
the doc and
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/s
hare/org/apache/catalina/session/ for the source code of the relevant
classes.

Yoav



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


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



Re: Server.xml configuration problem

2004-09-16 Thread Jukka Uusisalo
Another issue with DefaultContext is, do you really want share that
datasource with
all your applications?

- Jukka -
- Original Message - 
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, September 16, 2004 10:13 PM
Subject: RE: Server.xml configuration problem



Hi,
I strongly encourage you to NOT use DefaultContext, but instead use the
ResourceLink approach I showed.  The reason is that DefaultContext is
gone in Tomcat 5.5.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: LINGALA, AMARESHWAR G (SBCSI) [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 16, 2004 3:10 PM
>To: Tomcat Users List
>Subject: RE: Server.xml configuration problem
>
>
>It is working now, All I have to do is put the resource params inside
of
>the 
>
> Thanks for all your help !!!
>
>
>-Original Message-
>From: Jukka Uusisalo [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 16, 2004 1:50 PM
>To: Tomcat Users List
>Subject: Re: Server.xml configuration problem
>
>
>Hi,
>
>Your datasource jdbc/myOracle must be inside some Context element or
>DefaultContext
>element like
>
>
> auth="Container"
>   type="javax.sql.DataSource"/>
>
>  
>
>  factoryn
>  org.apache.commons.dbcp.BasicDataSourceFactory
>
>
>
>
>Default context element is inside Host element. And also there have be
>reference in your
>application web.xml like
>
>  
>Datasource for my app
>jdbc/myDataSource
>javax.sql.DataSource
>container
>   
>
>- Jukka -
>
>- Original Message -
>From: "LINGALA, AMARESHWAR G (SBCSI)" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Thursday, September 16, 2004 9:21 PM
>Subject: RE: Server.xml configuration problem
>
>
>
>Can you please be more specific, I tried to follow up the documents but
>am unable to fix the bug. Can you please send me the example of the
>change? I would be very much thankful to you.
>
> I am assuming that
>
>>  type="javax.sql.DataSource"/>
>>
>> 
>
> Should make the tomcat recognise the database.
>
> Thanks
>  Amar
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 16, 2004 1:12 PM
>To: Tomcat Users List
>Subject: RE: Server.xml configuration problem
>
>
>
>Hi,
>You need to add an explicit Context element for your webapp, and inside
>it a ResourceLink element to make the GlobalNamingResources DataSource
>visible to your webapp.  Check the configuration reference document for
>GlobalNamingResourcs and ResourceLink for details.
>
>Yoav Shapira
>Millennium Research Informatics
>
>
>>-Original Message-
>>From: LINGALA, AMARESHWAR G (SBCSI) [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, September 16, 2004 2:04 PM
>>To: Tomcat Users List
>>Subject: Server.xml configuration problem
>>
>>
>> Hi,
>> I am trying to set-up Connection pooling for my web application,
I
>>have made the following modifications to my server.xml file.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>  
>>  
>>  >className="org.apache.catalina.mbeans.ServerLifecycleListener"
>>debug="0"/>
>>  >className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
"
>>debug="0"/>
>>
>>  
>>  
>>
>>
>>>value="30"/>
>>
>>
>>>  type="org.apache.catalina.UserDatabase"
>>   description="User database that can be updated and saved">
>>
>>
>>  
>>factory
>>
>>org.apache.catalina.users.MemoryUserDatabaseFactory
>>  
>>  
>>pathname
>>conf/tomcat-users.xml
>>  
>>
>>
>> 
>> >  type="javax.sql.DataSource"/>
>>
>> 
>>   
>> factory
>>
>>org.apache.commons.dbcp.BasicDataSourceFactory
>>   
>>   
>> driverClassName
>> oracle.jdbc.driver.OracleDriver
>>   
>>   
>> url
>>
>>
>>
>>jdbc:oracle:thin:@chd4.sbc.com:1521:ostl411
>>   
>>   
>> username
>> scott
>>   
>>   
>> password
>> tiger
>>   
>>   
>> maxActive
>> 20
>>   
>>   
>> maxIdle
>> 10
>>   
>>   
>> maxWait
>> -1
>>   
>> 
>>
>>
>>  
>>
>>  
>>
>>  
>>  
>>
>>
>>
>>
>>>   maxThreads="150" minSpareThreads="25"
>>maxSpareThreads="75"
>>   enableLookups="false" redirectPort="8443"
>>acceptCount="100"
>>   debug="0" connectionTimeout="2"
>>   disableUploadTimeout="true" />
>>
>>
>> 
>>
>>
>>
>>
>>
>>>   enableLookups="false" redirectPort="8443" debug="0"
>>   protocol="AJP/1.3" />
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>  
>>  
>>
>>  
>>  >  prefix="catalina_log." suffix=".txt"
>>  timestamp="true"/>
>>
>>  
>>
>>  
>>  > debug="0" resourceName="UserDatabase"/>
>>
>>  
>>  
>>
>>  
>>
>>  
>>
>>  
>>
>>  
>>
>>  
>>  >   unpackWARs="true" autoDe

RE: Question about creating new HttpSessions

2004-09-16 Thread Matt . Hoover
Shapira, Yoav said:
> 
> Hi,
> Why don't you want to invalidate the old one?

Mainly because the case that brought up this problem is the tester
using the File->New->New window command, then browsing to a
bookmarked URL for the login page.  They need to be able to
continue using the old session in the old window, and the new
session in the new window.
--matt hoover


RE: Shutdown process hanging when I load-on-startup

2004-09-16 Thread Shapira, Yoav

Hi,
What Tomcat version are you using?  Are you running Tomcat as a Windoze
service?

There's a similar issue in Bugzilla, in fact I was just reading it when
I saw your post:
http://issues.apache.org/bugzilla/show_bug.cgi?id=31239.

When you say you shut down the ActiveMQ broker properly, I assume you do
this in a servlet#destroy or a ContextListener#contextDestroyed method?

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Hubert Rabago [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 16, 2004 3:15 PM
>To: [EMAIL PROTECTED]
>Subject: Shutdown process hanging when I load-on-startup
>
>Hi,
>
>I have a servlet whose init() method sets up an ActiveMQ jms broker
>and a couple of JMS connections.
>
>When I specify load-on-startup for this servlet, Tomcat hangs when I
>shut it down.  I reach the "INFO: Stopping Coyote HTTP/1.1 on
>http-8080" line, afterwards it hangs.
>
>When I don't have load-on-startup specified, Tomcat shuts down
properly.
>
>In both cases, I shut down the ActiveMQ Jms broker properly.
>
>What am I doing wrong with this servlet?  What else can I look into to
>figure out what's happening?
>
>tia,
>Hubert
>
>-
>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: Question about creating new HttpSessions

2004-09-16 Thread Shapira, Yoav

Hi,
Why don't you want to invalidate the old one?

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 16, 2004 3:13 PM
>To: [EMAIL PROTECTED]
>Subject: Question about creating new HttpSessions
>
>First a little background.  I am working on a servlet that has a login
>page that creates new HttpSessions.  If my users close their browser
>windows between calls to the login page everything works wonderfully.
>But if they browse to the page while they still have a cookie from an
>old session, the method HttpServletRequest.getSession(true) returns the
>old session.  I want to force the creation of a new HttpSession in this
>case.  I do not want to invalidate the old session, I just want a new
>session.
>My servlet is deployed to a Tomcat 4.1.x container, but if I have to
>I can move to Tomcat 5.0.x.  In the ideal world, I would like to keep
>my servlet container independent, but if I have to do something Tomcat
>specific I will.
>My question is: Is there any way to force the creation of a new
>HttpSession, even if the HttpServletRequest has a cookie for an
>old session?
>Thank you in advance for your help
>--matt hoover



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: Server.xml configuration problem

2004-09-16 Thread LINGALA, AMARESHWAR G \(SBCSI\)
I will try that one too.

Thanks
 Amar

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 16, 2004 2:13 PM
To: Tomcat Users List
Subject: RE: Server.xml configuration problem



Hi,
I strongly encourage you to NOT use DefaultContext, but instead use the
ResourceLink approach I showed.  The reason is that DefaultContext is
gone in Tomcat 5.5.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: LINGALA, AMARESHWAR G (SBCSI) [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 16, 2004 3:10 PM
>To: Tomcat Users List
>Subject: RE: Server.xml configuration problem
>
>
>It is working now, All I have to do is put the resource params inside
of
>the 
>
> Thanks for all your help !!!
>
>
>-Original Message-
>From: Jukka Uusisalo [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 16, 2004 1:50 PM
>To: Tomcat Users List
>Subject: Re: Server.xml configuration problem
>
>
>Hi,
>
>Your datasource jdbc/myOracle must be inside some Context element or
>DefaultContext
>element like
>
>
> auth="Container"
>   type="javax.sql.DataSource"/>
>
>  
>
>  factoryn
>  org.apache.commons.dbcp.BasicDataSourceFactory
>
>
>
>
>Default context element is inside Host element. And also there have be
>reference in your
>application web.xml like
>
>  
>Datasource for my app
>jdbc/myDataSource
>javax.sql.DataSource
>container
>   
>
>- Jukka -
>
>- Original Message -
>From: "LINGALA, AMARESHWAR G (SBCSI)" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Thursday, September 16, 2004 9:21 PM
>Subject: RE: Server.xml configuration problem
>
>
>
>Can you please be more specific, I tried to follow up the documents but
>am unable to fix the bug. Can you please send me the example of the
>change? I would be very much thankful to you.
>
> I am assuming that
>
>>  type="javax.sql.DataSource"/>
>>
>> 
>
> Should make the tomcat recognise the database.
>
> Thanks
>  Amar
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 16, 2004 1:12 PM
>To: Tomcat Users List
>Subject: RE: Server.xml configuration problem
>
>
>
>Hi,
>You need to add an explicit Context element for your webapp, and inside
>it a ResourceLink element to make the GlobalNamingResources DataSource
>visible to your webapp.  Check the configuration reference document for
>GlobalNamingResourcs and ResourceLink for details.
>
>Yoav Shapira
>Millennium Research Informatics
>
>
>>-Original Message-
>>From: LINGALA, AMARESHWAR G (SBCSI) [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, September 16, 2004 2:04 PM
>>To: Tomcat Users List
>>Subject: Server.xml configuration problem
>>
>>
>> Hi,
>> I am trying to set-up Connection pooling for my web application,
I
>>have made the following modifications to my server.xml file.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>  
>>  
>>  >className="org.apache.catalina.mbeans.ServerLifecycleListener"
>>debug="0"/>
>>  >className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
"
>>debug="0"/>
>>
>>  
>>  
>>
>>
>>>value="30"/>
>>
>>
>>>  type="org.apache.catalina.UserDatabase"
>>   description="User database that can be updated and saved">
>>
>>
>>  
>>factory
>>
>>org.apache.catalina.users.MemoryUserDatabaseFactory
>>  
>>  
>>pathname
>>conf/tomcat-users.xml
>>  
>>
>>
>> 
>> >  type="javax.sql.DataSource"/>
>>
>> 
>>   
>> factory
>>
>>org.apache.commons.dbcp.BasicDataSourceFactory
>>   
>>   
>> driverClassName
>> oracle.jdbc.driver.OracleDriver
>>   
>>   
>> url
>>
>>
>>
>>jdbc:oracle:thin:@chd4.sbc.com:1521:ostl411
>>   
>>   
>> username
>> scott
>>   
>>   
>> password
>> tiger
>>   
>>   
>> maxActive
>> 20
>>   
>>   
>> maxIdle
>> 10
>>   
>>   
>> maxWait
>> -1
>>   
>> 
>>
>>
>>  
>>
>>  
>>
>>  
>>  
>>
>>
>>
>>
>>>   maxThreads="150" minSpareThreads="25"
>>maxSpareThreads="75"
>>   enableLookups="false" redirectPort="8443"
>>acceptCount="100"
>>   debug="0" connectionTimeout="2"
>>   disableUploadTimeout="true" />
>>
>>
>> 
>>
>>
>>
>>
>>
>>>   enableLookups="false" redirectPort="8443" debug="0"
>>   protocol="AJP/1.3" />
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>  
>>  
>>
>>  
>>  >  prefix="catalina_log." suffix=".txt"
>>  timestamp="true"/>
>>
>>  
>>
>>  
>>  > debug="0" resourceName="UserDatabase"/>
>>
>>  
>>  
>>
>>  
>>
>>  
>>
>>  
>>
>>  
>>
>>  
>>  >   unpackWARs="true" autoDeploy="true"
>>   xmlValidation="false" xmlNamespaceAware="false">
>>
>>
>>
>>
>

Shutdown process hanging when I load-on-startup

2004-09-16 Thread Hubert Rabago
Hi,

I have a servlet whose init() method sets up an ActiveMQ jms broker
and a couple of JMS connections.

When I specify load-on-startup for this servlet, Tomcat hangs when I
shut it down.  I reach the "INFO: Stopping Coyote HTTP/1.1 on
http-8080" line, afterwards it hangs.

When I don't have load-on-startup specified, Tomcat shuts down properly.

In both cases, I shut down the ActiveMQ Jms broker properly.

What am I doing wrong with this servlet?  What else can I look into to
figure out what's happening?

tia,
Hubert

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



RE: Server.xml configuration problem

2004-09-16 Thread Shapira, Yoav

Hi,
I strongly encourage you to NOT use DefaultContext, but instead use the
ResourceLink approach I showed.  The reason is that DefaultContext is
gone in Tomcat 5.5.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: LINGALA, AMARESHWAR G (SBCSI) [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 16, 2004 3:10 PM
>To: Tomcat Users List
>Subject: RE: Server.xml configuration problem
>
>
>It is working now, All I have to do is put the resource params inside
of
>the 
>
> Thanks for all your help !!!
>
>
>-Original Message-
>From: Jukka Uusisalo [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 16, 2004 1:50 PM
>To: Tomcat Users List
>Subject: Re: Server.xml configuration problem
>
>
>Hi,
>
>Your datasource jdbc/myOracle must be inside some Context element or
>DefaultContext
>element like
>
>
> auth="Container"
>   type="javax.sql.DataSource"/>
>
>  
>
>  factoryn
>  org.apache.commons.dbcp.BasicDataSourceFactory
>
>
>
>
>Default context element is inside Host element. And also there have be
>reference in your
>application web.xml like
>
>  
>Datasource for my app
>jdbc/myDataSource
>javax.sql.DataSource
>container
>   
>
>- Jukka -
>
>- Original Message -
>From: "LINGALA, AMARESHWAR G (SBCSI)" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Thursday, September 16, 2004 9:21 PM
>Subject: RE: Server.xml configuration problem
>
>
>
>Can you please be more specific, I tried to follow up the documents but
>am unable to fix the bug. Can you please send me the example of the
>change? I would be very much thankful to you.
>
> I am assuming that
>
>>  type="javax.sql.DataSource"/>
>>
>> 
>
> Should make the tomcat recognise the database.
>
> Thanks
>  Amar
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 16, 2004 1:12 PM
>To: Tomcat Users List
>Subject: RE: Server.xml configuration problem
>
>
>
>Hi,
>You need to add an explicit Context element for your webapp, and inside
>it a ResourceLink element to make the GlobalNamingResources DataSource
>visible to your webapp.  Check the configuration reference document for
>GlobalNamingResourcs and ResourceLink for details.
>
>Yoav Shapira
>Millennium Research Informatics
>
>
>>-Original Message-
>>From: LINGALA, AMARESHWAR G (SBCSI) [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, September 16, 2004 2:04 PM
>>To: Tomcat Users List
>>Subject: Server.xml configuration problem
>>
>>
>> Hi,
>> I am trying to set-up Connection pooling for my web application,
I
>>have made the following modifications to my server.xml file.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>  
>>  
>>  >className="org.apache.catalina.mbeans.ServerLifecycleListener"
>>debug="0"/>
>>  >className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
"
>>debug="0"/>
>>
>>  
>>  
>>
>>
>>>value="30"/>
>>
>>
>>>  type="org.apache.catalina.UserDatabase"
>>   description="User database that can be updated and saved">
>>
>>
>>  
>>factory
>>
>>org.apache.catalina.users.MemoryUserDatabaseFactory
>>  
>>  
>>pathname
>>conf/tomcat-users.xml
>>  
>>
>>
>> 
>> >  type="javax.sql.DataSource"/>
>>
>> 
>>   
>> factory
>>
>>org.apache.commons.dbcp.BasicDataSourceFactory
>>   
>>   
>> driverClassName
>> oracle.jdbc.driver.OracleDriver
>>   
>>   
>> url
>>
>>
>>
>>jdbc:oracle:thin:@chd4.sbc.com:1521:ostl411
>>   
>>   
>> username
>> scott
>>   
>>   
>> password
>> tiger
>>   
>>   
>> maxActive
>> 20
>>   
>>   
>> maxIdle
>> 10
>>   
>>   
>> maxWait
>> -1
>>   
>> 
>>
>>
>>  
>>
>>  
>>
>>  
>>  
>>
>>
>>
>>
>>>   maxThreads="150" minSpareThreads="25"
>>maxSpareThreads="75"
>>   enableLookups="false" redirectPort="8443"
>>acceptCount="100"
>>   debug="0" connectionTimeout="2"
>>   disableUploadTimeout="true" />
>>
>>
>> 
>>
>>
>>
>>
>>
>>>   enableLookups="false" redirectPort="8443" debug="0"
>>   protocol="AJP/1.3" />
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>  
>>  
>>
>>  
>>  >  prefix="catalina_log." suffix=".txt"
>>  timestamp="true"/>
>>
>>  
>>
>>  
>>  > debug="0" resourceName="UserDatabase"/>
>>
>>  
>>  
>>
>>  
>>
>>  
>>
>>  
>>
>>  
>>
>>  
>>  >   unpackWARs="true" autoDeploy="true"
>>   xmlValidation="false" xmlNamespaceAware="false">
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>> directory="logs"  prefix="localhost_log."
>suffix=".txt"
>>timestamp="true"/>
>>
>>  
>>
>>
>>
>>  

Question about creating new HttpSessions

2004-09-16 Thread Matt . Hoover
First a little background.  I am working on a servlet that has a login
page that creates new HttpSessions.  If my users close their browser
windows between calls to the login page everything works wonderfully.
But if they browse to the page while they still have a cookie from an
old session, the method HttpServletRequest.getSession(true) returns the
old session.  I want to force the creation of a new HttpSession in this
case.  I do not want to invalidate the old session, I just want a new
session.
My servlet is deployed to a Tomcat 4.1.x container, but if I have to
I can move to Tomcat 5.0.x.  In the ideal world, I would like to keep
my servlet container independent, but if I have to do something Tomcat
specific I will.
My question is: Is there any way to force the creation of a new
HttpSession, even if the HttpServletRequest has a cookie for an
old session?
Thank you in advance for your help
--matt hoover


Tomcat fine within the LAN, but invisible from without

2004-09-16 Thread Lee Hoffner
Hi,

I've untarred and setup Tomcat 4.1.30 on my server and can get to index.jsp 
just fine on my web server's 192.168.x.x:8080 address, but I get a timeout 
error if I try to browse to www.mydomain.com:8080.

What have I missed? Thanks!

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



RE: Server.xml configuration problem

2004-09-16 Thread LINGALA, AMARESHWAR G \(SBCSI\)

It is working now, All I have to do is put the resource params inside of
the 

 Thanks for all your help !!!
 

-Original Message-
From: Jukka Uusisalo [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 16, 2004 1:50 PM
To: Tomcat Users List
Subject: Re: Server.xml configuration problem


Hi,

Your datasource jdbc/myOracle must be inside some Context element or
DefaultContext
element like


  

  

  factoryn
  org.apache.commons.dbcp.BasicDataSourceFactory




Default context element is inside Host element. And also there have be
reference in your
application web.xml like

  
Datasource for my app
jdbc/myDataSource
javax.sql.DataSource
container
   

- Jukka -

- Original Message - 
From: "LINGALA, AMARESHWAR G (SBCSI)" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, September 16, 2004 9:21 PM
Subject: RE: Server.xml configuration problem



Can you please be more specific, I tried to follow up the documents but
am unable to fix the bug. Can you please send me the example of the
change? I would be very much thankful to you.

 I am assuming that

  type="javax.sql.DataSource"/>
>
> 

 Should make the tomcat recognise the database.

 Thanks
  Amar

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 1:12 PM
To: Tomcat Users List
Subject: RE: Server.xml configuration problem



Hi,
You need to add an explicit Context element for your webapp, and inside
it a ResourceLink element to make the GlobalNamingResources DataSource
visible to your webapp.  Check the configuration reference document for
GlobalNamingResourcs and ResourceLink for details.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: LINGALA, AMARESHWAR G (SBCSI) [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 16, 2004 2:04 PM
>To: Tomcat Users List
>Subject: Server.xml configuration problem
>
>
> Hi,
> I am trying to set-up Connection pooling for my web application, I
>have made the following modifications to my server.xml file.
>
>
>
>
>
>
>
>
>
>  
>  
>  className="org.apache.catalina.mbeans.ServerLifecycleListener"
>debug="0"/>
>  className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
>debug="0"/>
>
>  
>  
>
>
>value="30"/>
>
>
>  type="org.apache.catalina.UserDatabase"
>   description="User database that can be updated and saved">
>
>
>  
>factory
>
>org.apache.catalina.users.MemoryUserDatabaseFactory
>  
>  
>pathname
>conf/tomcat-users.xml
>  
>
>
> 
>   type="javax.sql.DataSource"/>
>
> 
>   
> factory
>
>org.apache.commons.dbcp.BasicDataSourceFactory
>   
>   
> driverClassName
> oracle.jdbc.driver.OracleDriver
>   
>   
> url
>
>
>
>jdbc:oracle:thin:@chd4.sbc.com:1521:ostl411
>   
>   
> username
> scott
>   
>   
> password
> tiger
>   
>   
> maxActive
> 20
>   
>   
> maxIdle
> 10
>   
>   
> maxWait
> -1
>   
> 
>
>
>  
>
>  
>
>  
>  
>
>
>
>
>   maxThreads="150" minSpareThreads="25"
>maxSpareThreads="75"
>   enableLookups="false" redirectPort="8443"
>acceptCount="100"
>   debug="0" connectionTimeout="2"
>   disableUploadTimeout="true" />
>
>
> 
>
>
>
>
>
>   enableLookups="false" redirectPort="8443" debug="0"
>   protocol="AJP/1.3" />
>
>
>
>
>
>
>
>
>
>
>
>
>  
>  
>
>  
>prefix="catalina_log." suffix=".txt"
>  timestamp="true"/>
>
>  
>
>  
>   debug="0" resourceName="UserDatabase"/>
>
>  
>  
>
>  
>
>  
>
>  
>
>  
>
>  
> unpackWARs="true" autoDeploy="true"
>   xmlValidation="false" xmlNamespaceAware="false">
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> directory="logs"  prefix="localhost_log."
suffix=".txt"
>timestamp="true"/>
>
>  
>
>
>
>  
>
>
>
> But whenever I try to access the database I get the following error.
>
>
> org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver
>of class '' for connect URL 'null'
> at
>org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSourc
e
>.java:780)
> at
>org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.j
a
>va:540)
> at
>com.sbc.ssbilling.database.DBConnectionImpl.makeDBConnection(DBConnecti
o
>nImpl.java:63)
> at
>com.sbc.ssbilling.calculation.action.CalculationsReportAction.execute(C
a
>lculationsReportAction.java:49)
> at
>org.apache.struts.action.RequestProcessor.processActionPerform(RequestP
r
>ocessor.java:484)
> at
>org.apache.struts.action.RequestProcessor.process(RequestProcessor.java
:
>274)
> at
>or

RE: JNDI Database Restore

2004-09-16 Thread Shapira, Yoav

Hi,
Maybe an approach using a validation query would suit your needs.
Configure the pool to test connection validity on borrow, and it'll keep
trying while the database restore is going on.  If you're doing a full
restore and/or running on a full server, this could take a while and is
kind of an ugly design, but if you're doing incremental quick restores
than it might be fine.  See
http://jakarta.apache.org/commons/dbcp/configuration.html for how to
configure DBCP to validate connections on borrow and/or return.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: J.Talarczyk [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 16, 2004 2:17 PM
>To: [EMAIL PROTECTED]
>Subject: JNDI Database Restore
>
>I have a web application running on one server that maintains multiple
>connection pools to a varitey of InterBase databases on another server.
>The databases need to be restored nightly to contain the most up to
date
>information. I am looking for a way to restore those databases nightly
>without having to shut down Tomcat. I have already attempted the
>following:
>
>1. Shutdown the databases one by one and attempt to restore. Errors out
>stating that the database may be in use.
>
>2. Restart the InterBase sever and restore the databases. This works
but
>then it causes some inital connection errors on the application side.
>
>3. Create a dummy user, shutdown the database, and attempt to restore
>using the sysdba account. Datbase in use errors still occur.
>
>Essentially I am looking for a way to flush all of the connections that
>Tomcat is currently holding.  Is my only option to manage my own
>connection pool, and when needed set it to null and then re-create it
as
>necessary?
>
>
>Any help would be greatly appreciated.
>Thanks in advance.
>
>
>This email is deemed confidential or privileged by the sender and any
>unauthorized disclosure, copying, distribution, or use of its contents
is
>strictly prohibited. If you have received this message in error, please
>alert Steven J. Baum, P.C. immediately. The statements contained in
this
>email are the opinion of the sender and not that of Steven J. Baum,
P.C.
>
>This firm is attempting to collect a debt. Any information obtained
will be
>used for that purpose.
>
>Steven J. Baum, P.C. strives to provide exemplary service. Please feel
free
>to contact us at [EMAIL PROTECTED] with any comments you may have.




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: Server.xml configuration problem

2004-09-16 Thread Jukka Uusisalo
Hi,

Your datasource jdbc/myOracle must be inside some Context element or
DefaultContext
element like


  

  

  factoryn
  org.apache.commons.dbcp.BasicDataSourceFactory




Default context element is inside Host element. And also there have be
reference in your
application web.xml like

  
Datasource for my app
jdbc/myDataSource
javax.sql.DataSource
container
   

- Jukka -

- Original Message - 
From: "LINGALA, AMARESHWAR G (SBCSI)" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, September 16, 2004 9:21 PM
Subject: RE: Server.xml configuration problem



Can you please be more specific, I tried to follow up the documents but
am unable to fix the bug. Can you please send me the example of the
change? I would be very much thankful to you.

 I am assuming that

  type="javax.sql.DataSource"/>
>
> 

 Should make the tomcat recognise the database.

 Thanks
  Amar

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 1:12 PM
To: Tomcat Users List
Subject: RE: Server.xml configuration problem



Hi,
You need to add an explicit Context element for your webapp, and inside
it a ResourceLink element to make the GlobalNamingResources DataSource
visible to your webapp.  Check the configuration reference document for
GlobalNamingResourcs and ResourceLink for details.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: LINGALA, AMARESHWAR G (SBCSI) [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 16, 2004 2:04 PM
>To: Tomcat Users List
>Subject: Server.xml configuration problem
>
>
> Hi,
> I am trying to set-up Connection pooling for my web application, I
>have made the following modifications to my server.xml file.
>
>
>
>
>
>
>
>
>
>  
>  
>  className="org.apache.catalina.mbeans.ServerLifecycleListener"
>debug="0"/>
>  className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
>debug="0"/>
>
>  
>  
>
>
>value="30"/>
>
>
>  type="org.apache.catalina.UserDatabase"
>   description="User database that can be updated and saved">
>
>
>  
>factory
>
>org.apache.catalina.users.MemoryUserDatabaseFactory
>  
>  
>pathname
>conf/tomcat-users.xml
>  
>
>
> 
>   type="javax.sql.DataSource"/>
>
> 
>   
> factory
>
>org.apache.commons.dbcp.BasicDataSourceFactory
>   
>   
> driverClassName
> oracle.jdbc.driver.OracleDriver
>   
>   
> url
>
>
>
>jdbc:oracle:thin:@chd4.sbc.com:1521:ostl411
>   
>   
> username
> scott
>   
>   
> password
> tiger
>   
>   
> maxActive
> 20
>   
>   
> maxIdle
> 10
>   
>   
> maxWait
> -1
>   
> 
>
>
>  
>
>  
>
>  
>  
>
>
>
>
>   maxThreads="150" minSpareThreads="25"
>maxSpareThreads="75"
>   enableLookups="false" redirectPort="8443"
>acceptCount="100"
>   debug="0" connectionTimeout="2"
>   disableUploadTimeout="true" />
>
>
> 
>
>
>
>
>
>   enableLookups="false" redirectPort="8443" debug="0"
>   protocol="AJP/1.3" />
>
>
>
>
>
>
>
>
>
>
>
>
>  
>  
>
>  
>prefix="catalina_log." suffix=".txt"
>  timestamp="true"/>
>
>  
>
>  
>   debug="0" resourceName="UserDatabase"/>
>
>  
>  
>
>  
>
>  
>
>  
>
>  
>
>  
> unpackWARs="true" autoDeploy="true"
>   xmlValidation="false" xmlNamespaceAware="false">
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> directory="logs"  prefix="localhost_log."
suffix=".txt"
>timestamp="true"/>
>
>  
>
>
>
>  
>
>
>
> But whenever I try to access the database I get the following error.
>
>
> org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver
>of class '' for connect URL 'null'
> at
>org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSourc
e
>.java:780)
> at
>org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.j
a
>va:540)
> at
>com.sbc.ssbilling.database.DBConnectionImpl.makeDBConnection(DBConnecti
o
>nImpl.java:63)
> at
>com.sbc.ssbilling.calculation.action.CalculationsReportAction.execute(C
a
>lculationsReportAction.java:49)
> at
>org.apache.struts.action.RequestProcessor.processActionPerform(RequestP
r
>ocessor.java:484)
> at
>org.apache.struts.action.RequestProcessor.process(RequestProcessor.java
:
>274)
> at
>org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
> at
>org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at
>org.apache.catali

RE: tomcat v5.5.2 doesn't read ResourceParams ?

2004-09-16 Thread Shapira, Yoav

Hi,
Isn't this the kind of thing that's much quicker to test than to ask the
list? ;)  I'd think your assumption is correct.

Please stop hijacking threads: if you want to continue this discussion,
create a new thread for it.  Thanks,

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 16, 2004 2:41 PM
>To: Tomcat Users List
>Subject: RE: tomcat v5.5.2 doesn't read ResourceParams ?
>
>
>The documentation says "DBCP provides support for JDBC 2.0. On systems
>using a 1.4 JVM DBCP will support JDBC 3.0."  Since Tomcat 5.5 uses the
1.5
>JVM, I would assume that DBCP will provide support for JDBC 3.0.  Am I
>correct in my assumption?
>
>Mark Lenz
>Software Engineer
>Control Systems Group
>Pierce Manufacturing, Inc.
>(920) 832-3523
>[EMAIL PROTECTED]
>
>
>
>  "Shapira, Yoav"
>  <[EMAIL PROTECTED]To:   "Tomcat Users
>List" <[EMAIL PROTECTED]>
>  .com>cc:
>   Subject:  RE: tomcat
v5.5.2
>doesn't read ResourceParams ?
>  09/16/2004 09:59
>  AM
>  Please respond to
>  "Tomcat Users
>  List"
>
>
>
>
>
>
>
>Hi,
>ResourceParams are gone.  See the updated docs:
>http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-example
s
>-howto.html.
>
>Yoav Shapira
>Millennium Research Informatics
>
>
>>-Original Message-
>>From: Torgeir Veimo [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, September 16, 2004 10:58 AM
>>To: [EMAIL PROTECTED]
>>Subject: tomcat v5.5.2 doesn't read ResourceParams ?
>>
>>Hi,
>>
>>I've been trying out tomcat v5.5.2alpha since yesterday, and from my
>>findings, it appears that it doesn't read the content of the
>>ResourceParams. At least when I look at the datasource with the admin
>>webapp, it has empty url, driverClassname etc.
>>
>>Have anyone seen similar results? I've added a copy of what I've put
in
>>conf/server.xml.
>>
>>
>>  
>>
>>>type="javax.sql.DataSource"
>>description="repository datasource definition" />
>>
>>
>>factory
>>
>>org.apache.commons.dbcp.BasicDataSourceFactory
>>
>>
>>maxActive
>>100
>>
>>
>>maxIdle
>>30
>>
>>
>>maxWait
>>1
>>
>>
>>
>>username
>>torgeir
>>
>>
>>password
>>
>>
>>
>>driverClassName
>>com.mysql.jdbc.Driver
>>
>>
>>url
>>jdbc:mysql://localhost/repository
>>
>>
>>  
>>
>>--
>>Torgeir Veimo <[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]
>
>
>
>
>
>
>
>Although this e-mail and any attachments are believed to be free of
>any virus or other defect which might affect any computer system, it
>is the responsibility of the recipient to check that it is virus-free
>and the sender accepts no responsibility or liability for any loss,
>injury, damage, cost or expense arising in any way from receipt or use
>thereof by the recipient.
>
>The information contained in this electronic mail message is
>confidential information and intended only for the use of the
>individual or entity named above, and may be privileged.  If the
>reader of this message is not the intended recipient, you are hereby
>notified that any dissemination, distribution or copying of this
>communication is strictly prohibited.  If you have received this
>transmission in error, please  contact the sender immediately, delete
>this material from your computer and destroy all related paper media.
>
>Please note that the documents transmitted are not intended to be
>binding until a hard copy has been manually signed by all parties.
>Thank you.
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confide

RE: Server.xml configuration problem

2004-09-16 Thread Shapira, Yoav

Hi,

>Can you please be more specific, I tried to follow up the documents but
>am unable to fix the bug. Can you please send me the example of the
>change? I would be very much thankful to you.
>
> I am assuming that
>
>>  type="javax.sql.DataSource"/>
>>
>>  
>
> Should make the tomcat recognise the database.

Your assumption is wrong.  I think the docs are clear, but here's an
explicit example to help you out hopefully:

Before  in server.xml, add


  


Don't forget to turn off auto deploy in the Host definition when you add
an explicit Context for your webapp, or it will be deployed twice (once
with the error you've been seeing).

Yoav



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


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



RE: tomcat v5.5.2 doesn't read ResourceParams ?

2004-09-16 Thread MLenz

The documentation says "DBCP provides support for JDBC 2.0. On systems
using a 1.4 JVM DBCP will support JDBC 3.0."  Since Tomcat 5.5 uses the 1.5
JVM, I would assume that DBCP will provide support for JDBC 3.0.  Am I
correct in my assumption?

Mark Lenz
Software Engineer
Control Systems Group
Pierce Manufacturing, Inc.
(920) 832-3523
[EMAIL PROTECTED]


   
  
  "Shapira, Yoav"  
  
  <[EMAIL PROTECTED]To:   "Tomcat Users List" <[EMAIL 
PROTECTED]>
  .com>cc: 
  
   Subject:  RE: tomcat v5.5.2 doesn't 
read ResourceParams ? 
  09/16/2004 09:59 
  
  AM   
  
  Please respond to
  
  "Tomcat Users
  
  List"
  
   
  
   
  





Hi,
ResourceParams are gone.  See the updated docs:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples
-howto.html.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Torgeir Veimo [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 16, 2004 10:58 AM
>To: [EMAIL PROTECTED]
>Subject: tomcat v5.5.2 doesn't read ResourceParams ?
>
>Hi,
>
>I've been trying out tomcat v5.5.2alpha since yesterday, and from my
>findings, it appears that it doesn't read the content of the
>ResourceParams. At least when I look at the datasource with the admin
>webapp, it has empty url, driverClassname etc.
>
>Have anyone seen similar results? I've added a copy of what I've put in
>conf/server.xml.
>
>
>  
>
>type="javax.sql.DataSource"
>description="repository datasource definition" />
>
>
>factory
>
>org.apache.commons.dbcp.BasicDataSourceFactory
>
>
>maxActive
>100
>
>
>maxIdle
>30
>
>
>maxWait
>1
>
>
>
>username
>torgeir
>
>
>password
>
>
>
>driverClassName
>com.mysql.jdbc.Driver
>
>
>url
>jdbc:mysql://localhost/repository
>
>
>  
>
>--
>Torgeir Veimo <[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]







Although this e-mail and any attachments are believed to be free of
any virus or other defect which might affect any computer system, it
is the responsibility of the recipient to check that it is virus-free
and the sender accepts no responsibility or liability for any loss,
injury, damage, cost or expense arising in any way from receipt or use
thereof by the recipient.

The information contained in this electronic mail message is
confidential information and intended only for the use of the
individual or entity named above, and may be privileged.  If the
reader of this message is not the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this
communication is strictly prohibited.  If you have received this
transmission in error, please  contact the sender immediately, delete
this material from your computer and destroy all related paper media.

Please no

mod_ldap in Apache and it's limitations (using LDAP with Apache/tomcat)

2004-09-16 Thread John Mattos
Hi

 

I have more information about my previous post relating to using Apache and
Tomcat with LDAP.

 

The situation is as follows. 

- The client is using Apache 2.x and Tomcat 5.x.  

- The application is a set of static HTML pages with the exception of one
servlet to do some graphing functionality. 

- Access to the HTML directories is limited and users are validated using
the mod_ldap and mod_auth_ldap module in Apache 2.x
(http://httpd.apache.org/docs-2.0/mod/mod_auth_ldap.html)

 

The problem : there are multiple LDAP Servers (that are really MS Active
directory), the mod_auth_ldap module can only be configured to deal with (1)
at a time, though I am not an expert at it, so please correct me if I'm
wrong about this.

 

Note: I have some Java utility classes that allow me to authenticate against
AD using AD's LDAP interface.

 

I'm looking for the simplest possible solution for this problem, as it's
only a short term solution. 

 

Immediately, of course I thought of making this a Struts application,
creating a simple login screen which uses my helper objects to validate the
user then store the user information in the session, and making all the HTML
files JSP files and checking the user's access rights before displaying the
page..This would also imply that I'd no longer use the mod_auth_ldap module

 

Thoughts? Is there a simple way of doing this (validating against multiple
LDAP Servers)? Is there a mod_auth_ldap guru out there who has run into a
similar situation before?

 

Thanks 

 

John



Re: Why tomcat 4 or even 3?

2004-09-16 Thread Ben Souther
> RTFM Consulting Services Inc

Beautiful.  I wish I thought of it.


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



RE: Server.xml configuration problem

2004-09-16 Thread LINGALA, AMARESHWAR G \(SBCSI\)

Can you please be more specific, I tried to follow up the documents but
am unable to fix the bug. Can you please send me the example of the
change? I would be very much thankful to you.

 I am assuming that 

  type="javax.sql.DataSource"/>
>
>   

 Should make the tomcat recognise the database. 

 Thanks
  Amar

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 16, 2004 1:12 PM
To: Tomcat Users List
Subject: RE: Server.xml configuration problem



Hi,
You need to add an explicit Context element for your webapp, and inside
it a ResourceLink element to make the GlobalNamingResources DataSource
visible to your webapp.  Check the configuration reference document for
GlobalNamingResourcs and ResourceLink for details.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: LINGALA, AMARESHWAR G (SBCSI) [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 16, 2004 2:04 PM
>To: Tomcat Users List
>Subject: Server.xml configuration problem
>
>
> Hi,
> I am trying to set-up Connection pooling for my web application, I
>have made the following modifications to my server.xml file.
>
>
>
>
>
>
>
>
>
>  
>  
>  className="org.apache.catalina.mbeans.ServerLifecycleListener"
>debug="0"/>
>  className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
>debug="0"/>
>
>  
>  
>
>
>value="30"/>
>
>
>  type="org.apache.catalina.UserDatabase"
>   description="User database that can be updated and saved">
>
>
>  
>factory
>
>org.apache.catalina.users.MemoryUserDatabaseFactory
>  
>  
>pathname
>conf/tomcat-users.xml
>  
>
>
>   
> type="javax.sql.DataSource"/>
>
>   
> 
>   factory
>
>org.apache.commons.dbcp.BasicDataSourceFactory
> 
> 
>   driverClassName
>   oracle.jdbc.driver.OracleDriver
> 
> 
>   url
>
>
>
>jdbc:oracle:thin:@chd4.sbc.com:1521:ostl411
> 
> 
>   username
>   scott
> 
> 
>   password
>   tiger
> 
> 
>   maxActive
>   20
> 
> 
>   maxIdle
>   10
> 
> 
>   maxWait
>   -1
> 
>   
>
>
>  
>
>  
>
>  
>  
>
>
>
>
>   maxThreads="150" minSpareThreads="25"
>maxSpareThreads="75"
>   enableLookups="false" redirectPort="8443"
>acceptCount="100"
>   debug="0" connectionTimeout="2"
>   disableUploadTimeout="true" />
>
>
>   
>
>
>
>
>
>   enableLookups="false" redirectPort="8443" debug="0"
>   protocol="AJP/1.3" />
>
>
>
>
>
>
>
>
>
>
>
>
>  
>  
>
>  
>prefix="catalina_log." suffix=".txt"
>  timestamp="true"/>
>
>  
>
>  
>   debug="0" resourceName="UserDatabase"/>
>
>  
>  
>
>  
>
>  
>
>  
>
>  
>
>  
> unpackWARs="true" autoDeploy="true"
>   xmlValidation="false" xmlNamespaceAware="false">
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> directory="logs"  prefix="localhost_log."
suffix=".txt"
>timestamp="true"/>
>
>  
>
>
>
>  
>
>
>
> But whenever I try to access the database I get the following error.
>
>
> org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver
>of class '' for connect URL 'null'
>   at
>org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSourc
e
>.java:780)
>   at
>org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.j
a
>va:540)
>   at
>com.sbc.ssbilling.database.DBConnectionImpl.makeDBConnection(DBConnecti
o
>nImpl.java:63)
>   at
>com.sbc.ssbilling.calculation.action.CalculationsReportAction.execute(C
a
>lculationsReportAction.java:49)
>   at
>org.apache.struts.action.RequestProcessor.processActionPerform(RequestP
r
>ocessor.java:484)
>   at
>org.apache.struts.action.RequestProcessor.process(RequestProcessor.java
:
>274)
>   at
>org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
>   at
>org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>   at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
a
>tionFilterChain.java:237)
>   at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
t
>erChain.java:157)
>   at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
v
>e.java:214)
>   at
>org.apache.catalina.core.StandardValveContext.invokeNex

JNDI Database Restore

2004-09-16 Thread J.Talarczyk
I have a web application running on one server that maintains multiple
connection pools to a varitey of InterBase databases on another server.
The databases need to be restored nightly to contain the most up to date
information. I am looking for a way to restore those databases nightly
without having to shut down Tomcat. I have already attempted the
following:

1. Shutdown the databases one by one and attempt to restore. Errors out
stating that the database may be in use.

2. Restart the InterBase sever and restore the databases. This works but
then it causes some inital connection errors on the application side.

3. Create a dummy user, shutdown the database, and attempt to restore
using the sysdba account. Datbase in use errors still occur.

Essentially I am looking for a way to flush all of the connections that
Tomcat is currently holding.  Is my only option to manage my own
connection pool, and when needed set it to null and then re-create it as
necessary?


Any help would be greatly appreciated.
Thanks in advance.


This email is deemed confidential or privileged by the sender and any unauthorized 
disclosure, copying, distribution, or use of its contents is strictly prohibited. If 
you have received this message in error, please alert Steven J. Baum, P.C. 
immediately. The statements contained in this email are the opinion of the sender and 
not that of Steven J. Baum, P.C.

This firm is attempting to collect a debt. Any information obtained will be used for 
that purpose.

Steven J. Baum, P.C. strives to provide exemplary service. Please feel free to contact 
us at [EMAIL PROTECTED] with any comments you may have.



Re: Why tomcat 4 or even 3?

2004-09-16 Thread Chuck Chopp
Wendy Smoak wrote:
From: "John Villar" <[EMAIL PROTECTED]>
i don't think that every T4 user has HP-UX

No... by my count, I think there are three of us. :)
And don't forget me... I'm the guy who runs Tomcat on OpenVMS on an HP Alpha 
system [well, really I think of them as DEC Alpha, not as Compaq Alpha or 
even as HP Alpha] and I have the same problem with Tomcat v4.1.x being the 
only version that HP provides for me to use.  As such, I continue to use 
Tomcat v4.1.x on my WinXP development system, too.  I also run it on 
NetWare, and it seems that Tomcat there, too, is still at v4.1.x as v5 
hasn't been provided by Novell.

--
Chuck Chopp
ChuckChopp (at) rtfmcsi (dot) com http://www.rtfmcsi.com
RTFM Consulting Services Inc. 864 801 2795 voice & voicemail
103 Autumn Hill Road  864 801 2774 fax
Greer, SC  29651
Do not send me unsolicited commercial email.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Server.xml configuration problem

2004-09-16 Thread Shapira, Yoav

Hi,
You need to add an explicit Context element for your webapp, and inside
it a ResourceLink element to make the GlobalNamingResources DataSource
visible to your webapp.  Check the configuration reference document for
GlobalNamingResourcs and ResourceLink for details.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: LINGALA, AMARESHWAR G (SBCSI) [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 16, 2004 2:04 PM
>To: Tomcat Users List
>Subject: Server.xml configuration problem
>
>
> Hi,
> I am trying to set-up Connection pooling for my web application, I
>have made the following modifications to my server.xml file.
>
>
>
>
>
>
>
>
>
>  
>  
>  className="org.apache.catalina.mbeans.ServerLifecycleListener"
>debug="0"/>
>  className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
>debug="0"/>
>
>  
>  
>
>
>value="30"/>
>
>
>  type="org.apache.catalina.UserDatabase"
>   description="User database that can be updated and saved">
>
>
>  
>factory
>
>org.apache.catalina.users.MemoryUserDatabaseFactory
>  
>  
>pathname
>conf/tomcat-users.xml
>  
>
>
>   
> type="javax.sql.DataSource"/>
>
>   
> 
>   factory
>
>org.apache.commons.dbcp.BasicDataSourceFactory
> 
> 
>   driverClassName
>   oracle.jdbc.driver.OracleDriver
> 
> 
>   url
>
>
>
>jdbc:oracle:thin:@chd4.sbc.com:1521:ostl411
> 
> 
>   username
>   scott
> 
> 
>   password
>   tiger
> 
> 
>   maxActive
>   20
> 
> 
>   maxIdle
>   10
> 
> 
>   maxWait
>   -1
> 
>   
>
>
>  
>
>  
>
>  
>  
>
>
>
>
>   maxThreads="150" minSpareThreads="25"
>maxSpareThreads="75"
>   enableLookups="false" redirectPort="8443"
>acceptCount="100"
>   debug="0" connectionTimeout="2"
>   disableUploadTimeout="true" />
>
>
>   
>
>
>
>
>
>   enableLookups="false" redirectPort="8443" debug="0"
>   protocol="AJP/1.3" />
>
>
>
>
>
>
>
>
>
>
>
>
>  
>  
>
>  
>prefix="catalina_log." suffix=".txt"
>  timestamp="true"/>
>
>  
>
>  
>   debug="0" resourceName="UserDatabase"/>
>
>  
>  
>
>  
>
>  
>
>  
>
>  
>
>  
> unpackWARs="true" autoDeploy="true"
>   xmlValidation="false" xmlNamespaceAware="false">
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> directory="logs"  prefix="localhost_log."
suffix=".txt"
>timestamp="true"/>
>
>  
>
>
>
>  
>
>
>
> But whenever I try to access the database I get the following error.
>
>
> org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver
>of class '' for connect URL 'null'
>   at
>org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSourc
e
>.java:780)
>   at
>org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.j
a
>va:540)
>   at
>com.sbc.ssbilling.database.DBConnectionImpl.makeDBConnection(DBConnecti
o
>nImpl.java:63)
>   at
>com.sbc.ssbilling.calculation.action.CalculationsReportAction.execute(C
a
>lculationsReportAction.java:49)
>   at
>org.apache.struts.action.RequestProcessor.processActionPerform(RequestP
r
>ocessor.java:484)
>   at
>org.apache.struts.action.RequestProcessor.process(RequestProcessor.java
:
>274)
>   at
>org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
>   at
>org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>   at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
a
>tionFilterChain.java:237)
>   at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
t
>erChain.java:157)
>   at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
v
>e.java:214)
>   at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
o
>ntext.java:104)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
5
>20)
>   at
>org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCo
n
>textValve.java:198)
>   at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
v
>e.java:152)
>   at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC
o
>ntext.java:104)
>   at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:

Server.xml configuration problem

2004-09-16 Thread LINGALA, AMARESHWAR G \(SBCSI\)

 Hi,
 I am trying to set-up Connection pooling for my web application, I
have made the following modifications to my server.xml file.









  
  
  
  

  
  








  
factory
 
org.apache.catalina.users.MemoryUserDatabaseFactory
  
  
pathname
conf/tomcat-users.xml
  



 


  
factory

org.apache.commons.dbcp.BasicDataSourceFactory
  
  
driverClassName
oracle.jdbc.driver.OracleDriver
  
  
url



jdbc:oracle:thin:@chd4.sbc.com:1521:ostl411
  
  
username
scott
  
  
password
tiger  
  
  
maxActive
20
  
  
maxIdle
10
  
  
maxWait
-1
  



  

  

  
  





















 
 



  
  

  
  

  

  
  

  
  

  

  

  

  

  
  

 















  



  



 But whenever I try to access the database I get the following error.


 org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver
of class '' for connect URL 'null'
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource
.java:780)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.ja
va:540)
at
com.sbc.ssbilling.database.DBConnectionImpl.makeDBConnection(DBConnectio
nImpl.java:63)
at
com.sbc.ssbilling.calculation.action.CalculationsReportAction.execute(Ca
lculationsReportAction.java:49)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.java:484)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
274)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
textValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:117)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:79
9)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:57
7)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:683)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:243)
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource
.java:773)
... 33 more
 

Any help would be greatly appreciated.


Thanks
 Amar

-

Re: [DefaultContext in tomcat 5.5]

2004-09-16 Thread Remy Maucherat
On Thu, 16 Sep 2004 12:05:46 +0200, Sebastien Moretti
<[EMAIL PROTECTED]> wrote:
> Hello,
> Does 'DefaultContext' element work in Tomcat 5.5 ?
> 
> I used it in tomcat 5.0.27 with this syntaxe in $CATALINA_HOME/conf/server.xml
> :
> 
>   
> ...
>  allowLinking="true"/>
>   

Defaults can be set for:
- all contexts in conf/context.xml (this will handle all the stuff
that a Context element can, instead of a subset like DefaultContext)
- per host, in conf///context.xml.default (still
with the usual Context element)

There's some documentation on that here:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html

-- 
x
Rémy Maucherat
Developer & Consultant
JBoss Group (Europe) SàRL
x

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



Re: java.lang.NoClassDefFoundError: org/apache/tomcat/logging/Logger

2004-09-16 Thread missioncoder
Thanks for your response, but I only found the following when I searched my 
entire system.

/usr/apache/jakarta-tomcat-5.0.27/common/lib/log4j-1.2.8.jar
/usr/apache/jakarta-tomcat-5.0.27/server/lib/log4j-1.2.8.jar
I executed the following command:
find / -name "log*.jar"
This is getting crazy... I can't lauch my admin application or my manager 
application..since I'm getting these errors everywhere.  I noticed that I 
can't even find a Logger.java file on my system.  Is that because the file 
is in a .jar?

Thanks again,
Kenshinmax
- Original Message - 
From: "Avinash R S" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, September 16, 2004 5:29 AM
Subject: Re: java.lang.NoClassDefFoundError: 
org/apache/tomcat/logging/Logger

Hi,
One of the main reasons for getting NotClassDefFoundError is tomcat is
encountering two different versions of Logger class.
Looks like you have two different versions of Log4j library in Tomcat(Search
and Verify all the Log4J library files in Tomcat and Webapps).
Do not hesitate to contact me back for any clarification.
Regards,
Avinash R S
- Original Message - 
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 15, 2004 11:33 PM
Subject: java.lang.NoClassDefFoundError: org/apache/tomcat/logging/Logger

Configuration: Solaris 9, Apache 1.3, Tomcat 5.0.7, JSDK 1.4Hello All,I
recently upgraded from Tomcat 4.0.1 to 5.2.7 and things have gone pretty
smooth, except when I attempt to load a jsp page I get the following error.
I have looked all over for a reference to
"org/apache/tomcat/logging/Logger", but I cannot find it, (server.xml,
web.xmlcatalina.sh, startup.sh)  Any Suggestions??Thanks in
advance...javax.servlet.ServletException: Servlet.init() for servlet jsp
threw exception
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
java.lang.Thread.run(Thread.java:534)
root cause
java.lang.NoClassDefFoundError: org/apache/tomcat/logging/Logger
org.apache.jasper.Constants.message(Constants.java:244)
org.apache.jasper.servlet.JspServlet.init(JspServlet.java:265)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
java.lang.Thread.run(Thread.java:534)

DISCLAIMER:
This message (including attachment if any) is confidential and may be 
privileged. Before opening attachments please check them for viruses and 
defects. MindTree Consulting Private Limited (MindTree) will not be 
responsible for any viruses or defects or any forwarded attachments 
emanating either from within MindTree or outside. If you have received this 
message by mistake please notify the sender by return  e-mail and delete 
this message from your system. Any unauthorized use or dissemination of this 
message in whole or in part is strictly prohibited.  Please note that 
e-mails are susceptible to change and MindTree shall not be liable for any 
improper, untimely or incomplete transmission.

-
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 Problems - Any help is appreciated

2004-09-16 Thread Jon Wingfield
Suddenly? ;)
The error message tends to imply there is no DOCTYPE (at all) in one of 
your web.xml files. The parser fails when validating the doc with this 
rather strange error message.

HTH,
Jon
Wilson, Allen wrote:
Hello...
I am running 4.1.18 and I suddenly started having problems with Tomcat.
Here is the information that is in the catalina.out file (as added it as
an attachment)...if someone can point me in the right direction to fix
this...I would appreciate it
Thanks you
Allen
** Information in file *
Starting service Tomcat-Standalone
Apache Tomcat/4.1.18
org.xml.sax.SAXParseException: Document root element "web-app", must
match DOCTYPE root "null".
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Error
HandlerWrapper.java:232)
at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.jav
a:173)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav
a:371)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav
a:305)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.rootElementSpecified(XMLDTDVa
lidator.java:1526)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDVali
dator.java:1804)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.
java:724)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(X
MLDocumentFragmentScannerImpl.java:759)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRoot
ElementHook(XMLDocumentScannerImpl.java:957)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(XMLDocumentFragmentScannerImpl.java:1544)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo
cumentFragmentScannerImpl.java:329)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5
25)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5
81)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java
:1175)
at
org.apache.commons.digester.Digester.parse(Digester.java:1495)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfi
g.java:282)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j
ava:243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3567
)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:821)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy
er.java:257)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java
:569)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:36
8)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
[ERROR] Digester - -Parse Error at line 1 column 10: Document root
element "web-app", must match DOCTYPE root "null".

org.xml.sax.SAXParseException: Document is invalid: no grammar found.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Error
HandlerWrapper.java:232)
at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.jav
a:173)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav
a:371)
at
org.apache.xerces.impl.XMLErrorRepor

RE: Tomcat Problems - Any help is appreciated

2004-09-16 Thread Shapira, Yoav

Hi,
Usually problems don't start by themselves ;)  Your web.xml seems
invalid; can you validate using a tool like XMLSpy?  Look into what
changed in your web.xml file(s) recently.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Wilson, Allen [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 16, 2004 11:44 AM
>To: Tomcat Users List
>Subject: Tomcat Problems - Any help is appreciated
>
>Hello...
>
>I am running 4.1.18 and I suddenly started having problems with Tomcat.
>Here is the information that is in the catalina.out file (as added it
as
>an attachment)...if someone can point me in the right direction to fix
>this...I would appreciate it
>
>Thanks you
>
>Allen
>
>** Information in file *
>
>Starting service Tomcat-Standalone
>Apache Tomcat/4.1.18
>org.xml.sax.SAXParseException: Document root element "web-app", must
>match DOCTYPE root "null".
>   at
>org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Erro
r
>HandlerWrapper.java:232)
>   at
>org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.ja
v
>a:173)
>   at
>org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.ja
v
>a:371)
>   at
>org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.ja
v
>a:305)
>   at
>org.apache.xerces.impl.dtd.XMLDTDValidator.rootElementSpecified(XMLDTDV
a
>lidator.java:1526)
>   at
>org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDVal
i
>dator.java:1804)
>   at
>org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator
.
>java:724)
>   at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(
X
>MLDocumentFragmentScannerImpl.java:759)
>   at
>org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRoo
t
>ElementHook(XMLDocumentScannerImpl.java:957)
>   at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi
s
>patcher.dispatch(XMLDocumentFragmentScannerImpl.java:1544)
>   at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLD
o
>cumentFragmentScannerImpl.java:329)
>   at
>org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
5
>25)
>   at
>org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
5
>81)
>   at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
>   at
>org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.jav
a
>:1175)
>   at
>org.apache.commons.digester.Digester.parse(Digester.java:1495)
>   at
>org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConf
i
>g.java:282)
>   at
>org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
>   at
>org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.
j
>ava:243)
>   at
>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS
u
>pport.java:166)
>   at
>org.apache.catalina.core.StandardContext.start(StandardContext.java:356
7
>)
>   at
>org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j
a
>va:821)
>   at
>org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
>   at
>org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
>   at
>org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo
y
>er.java:257)
>   at
>org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
>   at
>org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.jav
a
>:569)
>   at
>org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411)
>   at
>org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
>   at
>org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:3
6
>8)
>   at
>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS
u
>pport.java:166)
>   at
>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
>   at
>org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
>   at
>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
>   at
>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
>   at
>org.apache.catalina.core.StandardService.start(StandardService.java:497
)
>   at
>org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
>   at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
>   at
>org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
>   at
>org.apache.catalina.startup.Catalina.process(Catalina.java:180)
>   at java.lang.reflect.Method.invoke(Native Method)
>   at
>org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
>[ERROR] Digester - -Parse Error at line 1 column 10: Document root
>element "web-app", must match DOCTYPE root "null".
>match DOCTYPE root "null".>
>org.xml.sax.SAXParseException: Document is invalid: no grammar

Re: Tomcat Problems - Any help is appreciated

2004-09-16 Thread Torgeir Veimo
On Thu, 2004-09-16 at 10:44 -0500, Wilson, Allen wrote:
> Hello...
> 
> I am running 4.1.18 and I suddenly started having problems with Tomcat.
> Here is the information that is in the catalina.out file (as added it as
> an attachment)...if someone can point me in the right direction to fix
> this...I would appreciate it
> 
> Thanks you

[...]
> org.xml.sax.SAXParseException: Document root element "web-app", must
> match DOCTYPE root "null".
[...]
> [ERROR] Digester - -Parse Error at line 1 column 10: Document is
> invalid: no grammar found.  invalid: no grammar found.>

It cannot find any dtd to validate the web.xml file against. Do you have
something like 

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

in web.xml? Tomcat should have a local copy of this file, but it might
have been corrupted.

-- 
Torgeir Veimo <[EMAIL PROTECTED]>


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



Tomcat Problems - Any help is appreciated

2004-09-16 Thread Wilson, Allen
Hello...

I am running 4.1.18 and I suddenly started having problems with Tomcat.
Here is the information that is in the catalina.out file (as added it as
an attachment)...if someone can point me in the right direction to fix
this...I would appreciate it

Thanks you

Allen

** Information in file *

Starting service Tomcat-Standalone
Apache Tomcat/4.1.18
org.xml.sax.SAXParseException: Document root element "web-app", must
match DOCTYPE root "null".
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Error
HandlerWrapper.java:232)
at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.jav
a:173)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav
a:371)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav
a:305)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.rootElementSpecified(XMLDTDVa
lidator.java:1526)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDVali
dator.java:1804)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.
java:724)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(X
MLDocumentFragmentScannerImpl.java:759)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRoot
ElementHook(XMLDocumentScannerImpl.java:957)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(XMLDocumentFragmentScannerImpl.java:1544)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDo
cumentFragmentScannerImpl.java:329)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5
25)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:5
81)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java
:1175)
at
org.apache.commons.digester.Digester.parse(Digester.java:1495)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfi
g.java:282)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.j
ava:243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3567
)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:821)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy
er.java:257)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java
:569)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:36
8)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
pport.java:166)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
[ERROR] Digester - -Parse Error at line 1 column 10: Document root
element "web-app", must match DOCTYPE root "null".

org.xml.sax.SAXParseException: Document is invalid: no grammar found.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Error
HandlerWrapper.java:232)
at
org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.jav
a:173)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav
a:371)
at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.jav
a:305)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDVali
dator.java:1816)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XM

RE: Multiple Instances of Tomcat5 on SunOS5.8

2004-09-16 Thread Ralph Einfeldt

http://www.mail-archive.com/[EMAIL PROTECTED]/msg135862.html


> -Original Message-
> From: Rahul Bhardwaj [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 16, 2004 4:32 PM
> To: [EMAIL PROTECTED]
> Subject: Multiple Instances of Tomcat5 on SunOS5.8
> Importance: High
> 
> 
> HI,
> 
> We need to ve multiple instances of Tomcat5 on SunOS5.8.
> 
> 1.  Can I just ve 2 server.xml with different name and 
> configuration 
> under single Tomcat installation and then start the Tomcat 
> with -f option 
> to point to the specific server.xml.
>  
> 2.  Or Do I ve to make 2 directory structure for each 
> Tomcat instances 
> containing all the sub directories/files present in standard 
> installation 
> ?
> And then modify the server.xml in each instnce ...!!
> Moreover set the CATALINA_BASE in the startup script of each 
> instance...Is it correct ?
>  
> In any case I should be able to run the 2 instances parallely ?
> 
> Can anyone help in letting me know the simplest step by step 
> procedure to 
> do the same.
> 
> I 'd appreciate an early reply.
> 
> Thanks & regards,
> Rahul
> 
> 

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



RE: tomcat v5.5.2 doesn't read ResourceParams ?

2004-09-16 Thread Allistair Crossley
lol, yeah sorry. i tell you why i thought there was a problem and that was when 5.5.0 
went out and i plugged in my app, all my database refs were coming up as null and so 
on. i told the list and remy said (to paraphrase) that there was a problem with 
resource params but not that they had been taken out. but yes i should have checked 
the docs.

*the shame, the shame*

> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Sent: 16 September 2004 16:13
> To: Tomcat Users List
> Subject: RE: tomcat v5.5.2 doesn't read ResourceParams ?
> 
> 
> 
> Hola,
> 
> >yes, i was surprised that 5.5 was released without database 
> capability.
> i'm
> >not sure what the reasoning is.
> 
> Man, what did you have for breakfast? ;)  (Or lunch, or whatever the
> most recent meal is at your current location ;)).  Tomcat 5.5 has at
> least the same DB capabilities as Tomcat 5.0, in an easier and less
> verbose configuration format.  No DB capabilities were removed.
> 
> Yoav
> 
> 
> 
> This e-mail, including any attachments, is a confidential 
> business communication, and may contain information that is 
> confidential, proprietary and/or privileged.  This e-mail is 
> intended only for the individual(s) to whom it is addressed, 
> and may not be saved, copied, printed, disclosed or used by 
> anyone else.  If you are not the(an) intended recipient, 
> please immediately delete this e-mail from your computer 
> system and notify the sender.  Thank you.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



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



Re: Problem configuring a global resource to be linked from Context elements ....

2004-09-16 Thread Jonathan Rengifo
Hi to all...

Antony, sorry I have already found dbcp.jar and know what it does, but
don't understand why I should copy it to my WEB-INF/lib application
source ?


On Thu, 16 Sep 2004 11:06:53 -0400, Jonathan Rengifo
<[EMAIL PROTECTED]> wrote:
> Hi again and thanks to all... :D
> 
> Antony, please can you tell what is dbcp.jar and where I can find it?
> so I can try your recommendation...
> 
> Thanks...
> 
> 
> Jonathan
> 
> On Thu, 16 Sep 2004 18:35:51 +0530, Antony Paul
> <[EMAIL PROTECTED]> wrote:
> > Had you tried it with inside Context element. If it doesn't work it means
> > the JDBC driver is not found when Tomcat starts up. You have to put JDBC jar
> > in CATALINA_HOME\common\lib. It can be placed in WEB-INF\lib if you place
> > dbcp.jar too there.
> >
> > rgds
> > Antony Paul
> >
> > - Original Message -
> > From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Jonathan Rengifo"
> > <[EMAIL PROTECTED]>
> > Sent: Thursday, September 16, 2004 6:02 PM
> > Subject: RE: Problem configuring a global resource to be linked from Context
> > elements 
> >
> >
> > Hi,
> >
> >
> > Maybe there really is a bug in the Tomcat release you're using: which
> > one are you trying?
> >
> > Yoav Shapira
> > Millennium Research Informatics
> >
> > >-Original Message-
> > >From: Jonathan Rengifo [mailto:[EMAIL PROTECTED]
> > >Sent: Wednesday, September 15, 2004 9:08 PM
> > >To: Tomcat User List
> > >Subject: Problem configuring a global resource to be linked from
> > Context
> > >elements 
> > >
> > >Hi all
> > >
> > >
> > >This is the third time I've write a message to the list asking for the
> > >same issue, but didn't solve it, I am starting to think about this is
> > >a really bug in Tomcat 5. My question is ... Why when I configure a
> > >Resource inside the GlobalNamingResources element just to ResourceLink
> > >it inside the context it just doesn't work, throwing an exception like
> > >this ...
> > >
> > >org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver
> > >class 'oracle.jdbc.driver.OracleDriver'
> > >
> > >This means to me that the oracle driver I am using is could no be
> > >found, but then, why when I cut the Resource and paste it inside every
> > >Context I use it just work fine???...
> > >
> > >Please help How do I configure this global resource??
> > >
> > >Here is how I am setting this up...
> > >
> > >
> > >
> > > > >type="javax.sql.DataSource"/>
> > > 
> > > 
> > > factory
> > >
> > org.apache.commons.dbcp.BasicDataSourceFactory
> > > 
> > > 
> > > url
> > >
> > jdbc:oracle:thin:@myDatabaseServer:port:user
> > > 
> > > 
> > > password
> > > myPassword
> > > 
> > > 
> > > maxActive
> > > 20
> > > 
> > > 
> > > maxWait
> > > -1
> > > 
> > > 
> > > driverClassName
> > > oracle.jdbc.driver.OracleDriver
> > > 
> > > 
> > > username
> > > myUser
> > > 
> > > 
> > > maxIdle
> > > 10
> > > 
> > > 
> > >
> > >
> > >
> > >Thanks ..
> > >
> > >Jonathan
> > >
> > >-
> > >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: tomcat v5.5.2 doesn't read ResourceParams ?

2004-09-16 Thread Shapira, Yoav

Hola,

>yes, i was surprised that 5.5 was released without database capability.
i'm
>not sure what the reasoning is.

Man, what did you have for breakfast? ;)  (Or lunch, or whatever the
most recent meal is at your current location ;)).  Tomcat 5.5 has at
least the same DB capabilities as Tomcat 5.0, in an easier and less
verbose configuration format.  No DB capabilities were removed.

Yoav



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


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



RE: tomcat v5.5.2 doesn't read ResourceParams ?

2004-09-16 Thread Allistair Crossley
that could also do it ;)

> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
> Sent: 16 September 2004 16:00
> To: Tomcat Users List
> Subject: RE: tomcat v5.5.2 doesn't read ResourceParams ?
> 
> 
> 
> Hi,
> ResourceParams are gone.  See the updated docs:
> http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasourc
> e-examples
> -howto.html.
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> 
> >-Original Message-
> >From: Torgeir Veimo [mailto:[EMAIL PROTECTED]
> >Sent: Thursday, September 16, 2004 10:58 AM
> >To: [EMAIL PROTECTED]
> >Subject: tomcat v5.5.2 doesn't read ResourceParams ?
> >
> >Hi,
> >
> >I've been trying out tomcat v5.5.2alpha since yesterday, and from my
> >findings, it appears that it doesn't read the content of the
> >ResourceParams. At least when I look at the datasource with the admin
> >webapp, it has empty url, driverClassname etc.
> >
> >Have anyone seen similar results? I've added a copy of what 
> I've put in
> >conf/server.xml.
> >
> >
> >  
> >
> > >type="javax.sql.DataSource"
> >description="repository datasource definition" />
> >
> >
> >factory
> >
> >org.apache.commons.dbcp.BasicDataSourceFactory
> >
> >
> >maxActive
> >100
> >
> >
> >maxIdle
> >30
> >
> >
> >maxWait
> >1
> >
> >
> >
> >username
> >torgeir
> >
> >
> >password
> >
> >
> >
> >driverClassName
> >com.mysql.jdbc.Driver
> >
> >
> >url
> >jdbc:mysql://localhost/repository
> >
> >
> >  
> >
> >--
> >Torgeir Veimo <[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]
> 
> 


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



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



RE: Tomcat question

2004-09-16 Thread Thomas E. Dukes
> 
> Hi,
> 
> >Made the change.  It didn't break this time but when I try to access
> the
> >page, http://localhost/forum/admin/setup/setup.index!default.jspa, I
> still
> >get error 404 object not found
> 
> What's this weird URL?  Are you really running on port 80?

Hi,

I'm trying to setup jive forums.

Try this link:
http://palmettodomains.com/forum/admin/setup/main.jsp, the click the
Continue button.

Thanks!!


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



RE: tomcat v5.5.2 doesn't read ResourceParams ?

2004-09-16 Thread Allistair Crossley
yes, i was surprised that 5.5 was released without database capability. i'm not sure 
what the reasoning is.

> -Original Message-
> From: Torgeir Veimo [mailto:[EMAIL PROTECTED]
> Sent: 16 September 2004 16:04
> To: Tomcat Users List
> Subject: RE: tomcat v5.5.2 doesn't read ResourceParams ?
> 
> 
> On Thu, 2004-09-16 at 10:59 -0400, Shapira, Yoav wrote:
> > Hi,
> > ResourceParams are gone.  See the updated docs:
> > 
> http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasourc
> e-examples
> > -howto.html.
> 
> Aha, thanx!
> 
> I think this should be put in big red letters somewhere
> 
> -- 
> Torgeir Veimo <[EMAIL PROTECTED]>
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



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



Re: Problem configuring a global resource to be linked from Context elements ....

2004-09-16 Thread Jonathan Rengifo
Hi again and thanks to all... :D

Antony, please can you tell what is dbcp.jar and where I can find it?
so I can try your recommendation...

Thanks...
Jonathan


On Thu, 16 Sep 2004 18:35:51 +0530, Antony Paul
<[EMAIL PROTECTED]> wrote:
> Had you tried it with inside Context element. If it doesn't work it means
> the JDBC driver is not found when Tomcat starts up. You have to put JDBC jar
> in CATALINA_HOME\common\lib. It can be placed in WEB-INF\lib if you place
> dbcp.jar too there.
> 
> rgds
> Antony Paul
> 
> - Original Message -
> From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Jonathan Rengifo"
> <[EMAIL PROTECTED]>
> Sent: Thursday, September 16, 2004 6:02 PM
> Subject: RE: Problem configuring a global resource to be linked from Context
> elements 
> 
> 
> Hi,
> 
> 
> Maybe there really is a bug in the Tomcat release you're using: which
> one are you trying?
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> >-Original Message-
> >From: Jonathan Rengifo [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, September 15, 2004 9:08 PM
> >To: Tomcat User List
> >Subject: Problem configuring a global resource to be linked from
> Context
> >elements 
> >
> >Hi all
> >
> >
> >This is the third time I've write a message to the list asking for the
> >same issue, but didn't solve it, I am starting to think about this is
> >a really bug in Tomcat 5. My question is ... Why when I configure a
> >Resource inside the GlobalNamingResources element just to ResourceLink
> >it inside the context it just doesn't work, throwing an exception like
> >this ...
> >
> >org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver
> >class 'oracle.jdbc.driver.OracleDriver'
> >
> >This means to me that the oracle driver I am using is could no be
> >found, but then, why when I cut the Resource and paste it inside every
> >Context I use it just work fine???...
> >
> >Please help How do I configure this global resource??
> >
> >Here is how I am setting this up...
> >
> >
> >
> > >type="javax.sql.DataSource"/>
> > 
> > 
> > factory
> >
> org.apache.commons.dbcp.BasicDataSourceFactory
> > 
> > 
> > url
> >
> jdbc:oracle:thin:@myDatabaseServer:port:user
> > 
> > 
> > password
> > myPassword
> > 
> > 
> > maxActive
> > 20
> > 
> > 
> > maxWait
> > -1
> > 
> > 
> > driverClassName
> > oracle.jdbc.driver.OracleDriver
> > 
> > 
> > username
> > myUser
> > 
> > 
> > maxIdle
> > 10
> > 
> > 
> >
> >
> >
> >Thanks ..
> >
> >Jonathan
> >
> >-
> >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: tomcat v5.5.2 doesn't read ResourceParams ?

2004-09-16 Thread Torgeir Veimo
On Thu, 2004-09-16 at 10:59 -0400, Shapira, Yoav wrote:
> Hi,
> ResourceParams are gone.  See the updated docs:
> http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples
> -howto.html.

Aha, thanx!

I think this should be put in big red letters somewhere

-- 
Torgeir Veimo <[EMAIL PROTECTED]>


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



Re: Problem configuring a global resource to be linked from Context elements ....

2004-09-16 Thread Jonathan Rengifo
Hi all, and thanks for your support.

I am using Tomcat 5.0.28, this is the latest version, so I really
don't know if this is a real bug.

Like I early wrote, I try to cut and paste the configured database
resource from the  element to every context in
which I need that database resource, and it just work fine, but I
guess this is not the best way to do it, because I have a considerable
amount of context and virtual host, I have the database .jar inside
WEB-INF\lib inside my applications. Why this works when I copy the
resource to every context, and doesn't work as a global resource when
I link it through the ResourceLink element, like this:



inside every context element I need...

Thanks to all...

Regards

Jonathan






On Thu, 16 Sep 2004 18:35:51 +0530, Antony Paul
<[EMAIL PROTECTED]> wrote:
> Had you tried it with inside Context element. If it doesn't work it means
> the JDBC driver is not found when Tomcat starts up. You have to put JDBC jar
> in CATALINA_HOME\common\lib. It can be placed in WEB-INF\lib if you place
> dbcp.jar too there.
> 
> rgds
> Antony Paul
> 
> - Original Message -
> From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Jonathan Rengifo"
> <[EMAIL PROTECTED]>
> Sent: Thursday, September 16, 2004 6:02 PM
> Subject: RE: Problem configuring a global resource to be linked from Context
> elements 
> 
> 
> Hi,
> 
> 
> Maybe there really is a bug in the Tomcat release you're using: which
> one are you trying?
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> >-Original Message-
> >From: Jonathan Rengifo [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, September 15, 2004 9:08 PM
> >To: Tomcat User List
> >Subject: Problem configuring a global resource to be linked from
> Context
> >elements 
> >
> >Hi all
> >
> >
> >This is the third time I've write a message to the list asking for the
> >same issue, but didn't solve it, I am starting to think about this is
> >a really bug in Tomcat 5. My question is ... Why when I configure a
> >Resource inside the GlobalNamingResources element just to ResourceLink
> >it inside the context it just doesn't work, throwing an exception like
> >this ...
> >
> >org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver
> >class 'oracle.jdbc.driver.OracleDriver'
> >
> >This means to me that the oracle driver I am using is could no be
> >found, but then, why when I cut the Resource and paste it inside every
> >Context I use it just work fine???...
> >
> >Please help How do I configure this global resource??
> >
> >Here is how I am setting this up...
> >
> >
> >
> > >type="javax.sql.DataSource"/>
> > 
> > 
> > factory
> >
> org.apache.commons.dbcp.BasicDataSourceFactory
> > 
> > 
> > url
> >
> jdbc:oracle:thin:@myDatabaseServer:port:user
> > 
> > 
> > password
> > myPassword
> > 
> > 
> > maxActive
> > 20
> > 
> > 
> > maxWait
> > -1
> > 
> > 
> > driverClassName
> > oracle.jdbc.driver.OracleDriver
> > 
> > 
> > username
> > myUser
> > 
> > 
> > maxIdle
> > 10
> > 
> > 
> >
> >
> >
> >Thanks ..
> >
> >Jonathan
> >
> >-
> >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: tomcat v5.5.2 doesn't read ResourceParams ?

2004-09-16 Thread Allistair Crossley
they didn't in 5.5.0 either. i would have thought something so critical would have 
been corrected by now but looks like not ;)

ADC

> -Original Message-
> From: Torgeir Veimo [mailto:[EMAIL PROTECTED]
> Sent: 16 September 2004 15:58
> To: [EMAIL PROTECTED]
> Subject: tomcat v5.5.2 doesn't read ResourceParams ?
> 
> 
> Hi, 
> 
> I've been trying out tomcat v5.5.2alpha since yesterday, and from my
> findings, it appears that it doesn't read the content of the
> ResourceParams. At least when I look at the datasource with the admin
> webapp, it has empty url, driverClassname etc.
> 
> Have anyone seen similar results? I've added a copy of what 
> I've put in
> conf/server.xml.
> 
> 
>   
> 
>  type="javax.sql.DataSource"
> description="repository datasource definition" />
> 
> 
> factory
> 
> org.apache.commons.dbcp.BasicDataSourceFactory
> 
> 
> maxActive
> 100
> 
> 
> maxIdle
> 30
> 
> 
> maxWait
> 1
> 
> 
> 
> username
> torgeir
> 
> 
> password
> 
> 
> 
> driverClassName
> com.mysql.jdbc.Driver
> 
> 
> url
> jdbc:mysql://localhost/repository
> 
> 
>   
> 
> -- 
> Torgeir Veimo <[EMAIL PROTECTED]>
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



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



RE: Tomcat question

2004-09-16 Thread Shapira, Yoav

Hi,

>Made the change.  It didn't break this time but when I try to access
the
>page, http://localhost/forum/admin/setup/setup.index!default.jspa, I
still
>get error 404 object not found

What's this weird URL?  Are you really running on port 80?

Yoav



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


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



RE: tomcat v5.5.2 doesn't read ResourceParams ?

2004-09-16 Thread Shapira, Yoav

Hi,
ResourceParams are gone.  See the updated docs:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples
-howto.html.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Torgeir Veimo [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 16, 2004 10:58 AM
>To: [EMAIL PROTECTED]
>Subject: tomcat v5.5.2 doesn't read ResourceParams ?
>
>Hi,
>
>I've been trying out tomcat v5.5.2alpha since yesterday, and from my
>findings, it appears that it doesn't read the content of the
>ResourceParams. At least when I look at the datasource with the admin
>webapp, it has empty url, driverClassname etc.
>
>Have anyone seen similar results? I've added a copy of what I've put in
>conf/server.xml.
>
>
>  
>
>type="javax.sql.DataSource"
>description="repository datasource definition" />
>
>
>factory
>
>org.apache.commons.dbcp.BasicDataSourceFactory
>
>
>maxActive
>100
>
>
>maxIdle
>30
>
>
>maxWait
>1
>
>
>
>username
>torgeir
>
>
>password
>
>
>
>driverClassName
>com.mysql.jdbc.Driver
>
>
>url
>jdbc:mysql://localhost/repository
>
>
>  
>
>--
>Torgeir Veimo <[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: Tomcat question

2004-09-16 Thread Thomas E. Dukes
> Hi,
> 
> >
> >jspa
> >*.jspa
> >
> 
> That's pretty close: look at the servlet-mapping element for *.jsp.
> Copy and paste it, change the url-pattern to *.jspa.  That's 
> it.  Keep the servlet-name the same, don't modify it to jspa.
> 

Thanks!!

Made the change.  It didn't break this time but when I try to access the
page, http://localhost/forum/admin/setup/setup.index!default.jspa, I still
get error 404 object not found


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



tomcat v5.5.2 doesn't read ResourceParams ?

2004-09-16 Thread Torgeir Veimo
Hi, 

I've been trying out tomcat v5.5.2alpha since yesterday, and from my
findings, it appears that it doesn't read the content of the
ResourceParams. At least when I look at the datasource with the admin
webapp, it has empty url, driverClassname etc.

Have anyone seen similar results? I've added a copy of what I've put in
conf/server.xml.


  




factory

org.apache.commons.dbcp.BasicDataSourceFactory


maxActive
100


maxIdle
30


maxWait
1



username
torgeir


password



driverClassName
com.mysql.jdbc.Driver


url
jdbc:mysql://localhost/repository


  

-- 
Torgeir Veimo <[EMAIL PROTECTED]>


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



RE: Tomcat question

2004-09-16 Thread Shapira, Yoav

Hi,

>
>jspa
>*.jspa
>

That's pretty close: look at the servlet-mapping element for *.jsp.
Copy and paste it, change the url-pattern to *.jspa.  That's it.  Keep
the servlet-name the same, don't modify it to jspa.

Yoav



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


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



RE: Tomcat question

2004-09-16 Thread Thomas E. Dukes
> 
> *.jspa is not mapped to the JSP servlet.
> 
> See $CATALINA_HOME/conf/web.xml

Thanks, Tim,

I am really new to tomcat and java.  I took a look in the web.xml and didn't
see anything related to .jspa.  Can you please tell me what I need to add.
I tried adding:


jspa
*.jspa


But that broke everything.

Thanks
 
> -Tim
> 
> Thomas E. Dukes wrote:
> 
> > Hello,
> > 
> > Does anyone know why I am able to load .jsp files but not 
> .jspa files?
> > 
> > Example:
> > 
> > http://localhost/forum/admin/setup/index.jsp  works
> > 
> > http://localhost/forum/admin/setup/setup.index!default.jspa 
> does not 
> > work
> > 
> > I am using Fedora Core 2, tomcat 4.1.27 and the jk2 / AJP 
> 1.3 connector.
> > 
> 
> -
> 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: Question on use of Java style comments in JSP

2004-09-16 Thread Jarl Skogsholm
Go look in the work directory and find the corresponding java file to this 
jsp.

On Thu, 16 Sep 2004 19:22:50 +0530, Antony Paul <[EMAIL PROTECTED]> 
wrote:

It is not producing error messages on stdout/stderr or to screen instead 
it
gives this output





rgds
Anotny Paul.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Multiple Instances of Tomcat5 on SunOS5.8

2004-09-16 Thread Rahul Bhardwaj
HI,

We need to ve multiple instances of Tomcat5 on SunOS5.8.

1.  Can I just ve 2 server.xml with different name and configuration 
under single Tomcat installation and then start the Tomcat with -f option 
to point to the specific server.xml.
 
2.  Or Do I ve to make 2 directory structure for each Tomcat instances 
containing all the sub directories/files present in standard installation 
?
And then modify the server.xml in each instnce ...!!
Moreover set the CATALINA_BASE in the startup script of each 
instance...Is it correct ?
 
In any case I should be able to run the 2 instances parallely ?

Can anyone help in letting me know the simplest step by step procedure to 
do the same.

I 'd appreciate an early reply.

Thanks & regards,
Rahul



Re: Tomcat question

2004-09-16 Thread Tim Funk
*.jspa is not mapped to the JSP servlet.
See $CATALINA_HOME/conf/web.xml
-Tim
Thomas E. Dukes wrote:
Hello,
Does anyone know why I am able to load .jsp files but not .jspa files?
Example:
http://localhost/forum/admin/setup/index.jsp  works
http://localhost/forum/admin/setup/setup.index!default.jspa does not work
I am using Fedora Core 2, tomcat 4.1.27 and the jk2 / AJP 1.3 connector.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: IE6 and download problem using tomcat java servlet

2004-09-16 Thread Terry Orechia
Thanks for your help.   Your suggestions did not seem to make any 
difference.   However,  I got the application to work when making the 
request from the http  request http://.../download?fileid=353";>. 
This same request did not work when putting the http request in the address 
field of explorer and hitting go (except after the initial login).   I 
suspect it is due to security restraints configured in tomcat server, but 
not exactly sure.

Thanks,
Terry

- Original Message - 
From: "Brantley Hobbs" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 14, 2004 10:47 AM
Subject: RE: IE6 and download problem using tomcat java servlet

I should also have pointed out that at that point, you can keep your
.jpeg extension or whatever.  The browser could care less what the file
name is.  It simply looks at the MIME type.
B.
-Original Message-
From: Brantley Hobbs
Sent: Tuesday, September 14, 2004 10:44 AM
To: Tomcat Users List
Subject: RE: IE6 and download problem using tomcat java servlet
> I am having a problem downloading a jpeg file from a tomcat java
servlet
> to Internet Explorer 6.0.  I have changed the file extension to
"zzz"
to
> force the download prompt. If I restart tomcat(version 4.1.x),
the
While this is a working solution, it's not ideal.  To do this
seamlessly, you should set your output headers to a different mime
type.
"application/octet-stream" works well for provoking a download dialog.
Here's an example:
response.setContentType("application/octet-stream");
B.
-
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]


Tomcat question

2004-09-16 Thread Thomas E. Dukes
Hello,

Does anyone know why I am able to load .jsp files but not .jspa files?

Example:

http://localhost/forum/admin/setup/index.jsp  works

http://localhost/forum/admin/setup/setup.index!default.jspa does not work

I am using Fedora Core 2, tomcat 4.1.27 and the jk2 / AJP 1.3 connector.

Thanks


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



RE: Connection to data source

2004-09-16 Thread LINGALA, AMARESHWAR G \(SBCSI\)
Below is the complete server.xml









  
  
  
  

  
  








  
factory
 
org.apache.catalina.users.MemoryUserDatabaseFactory
  
  
pathname
conf/tomcat-users.xml
  


 


  
factory

org.apache.commons.dbcp.BasicDataSourceFactory
  
  
driverClassName
oracle.jdbc.driver.OracleDriver
  
  
url



jdbc:oracle:thin:@chd4.sbc.com:1521:ostl411
  
  
username
scott
  
  
password
tiger
  
  
maxActive
20
  
  
maxIdle
10
  
  
maxWait
-1
  



  

  

  
  





















 
 



  
  

  
  

  

  
  

  
  

  

  

  

  

  
  

 















  



  



-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 16, 2004 7:25 AM
To: Tomcat Users List
Subject: RE: Connection to data source



Hi,
Where in server.xml is the Resource tag located?

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: LINGALA, AMARESHWAR G (SBCSI) [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, September 15, 2004 3:27 PM
>To: Tomcat Users List
>Subject: RE: Connection to data source
>
>
> Below are the modifications made
>
>1. Server.xml
> type="javax.sql.DataSource"/>
>
>   
> 
>   factory
>
>org.apache.commons.dbcp.BasicDataSourceFactory
> 
> 
>   driverClassName
>   oracle.jdbc.driver.OracleDriver
> 
> 
>   url
>
>
>
>jdbc:oracle:thin:@chd4.sbc.com:1521:ostl411
> 
> 
>   username
>   user
> 
> 
>   password
>   pass
> 
> 
>   maxActive
>   20
> 
> 
>   maxIdle
>   10
> 
> 
>   maxWait
>   -1
> 
>   
>
>
>2. Web.xml
>   
>Oracle Datasource example
>jdbc/myoracle
>javax.sql.DataSource
>Container
>   
>
>3. Code
> Context initContext = new InitialContext();
> Context envContext  =
>(Context)initContext.lookup("java:/comp/env");
> DataSource ds =
(DataSource)envContext.lookup("jdbc/myoracle");
> //Connection conn = ds.getConnection();
> con = ds.getConnection();
>
>
> Thanks for the Help
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, September 15, 2004 2:15 PM
>To: Tomcat Users List
>Subject: RE: Connection to data source
>
>
>
>Hi,
>Please post the relevant parts of your server.xml, web.xml, and code
>using the DataSource, and maybe we can help you more.
>
>Yoav Shapira
>Millennium Research Informatics
>
>
>>-Original Message-
>>From: LINGALA, AMARESHWAR G (SBCSI) [mailto:[EMAIL PROTECTED]
>>Sent: Wednesday, September 15, 2004 3:10 PM
>>To: Tomcat Users List
>>Subject: Connection to data source
>>
>>
>> Hi,
>> I am trying to Implement Connection Pooling to my web
application.
>>I have followed Instructions from
>>http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-exampl
e
>s
>>-howto.html
>>
>> I have included code into server.xml of tomcat and also made changes
>to
>>web.xml of the application. But whenever I try to connect to the
>>database I get the following error.
>>
>>org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver
>of
>>class '' for connect URL 'null'
>>  at
>>org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSour
c
>e
>>.java:780)
>>  at
>>org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.
j
>a
>>va:540)
>>  at
>>com.sbc.ssbilling.database.DBConnectionImpl.makeDBConnection(DBConnect
i
>o
>>nImpl.java:63)
>>  at
>>com.sbc.ssbilling.calculation.action.CalculationsReportAction.execute(
C
>a
>>lculationsReportAction.java:49)
>>  at
>>org.apache.struts.action.RequestProcessor.processActionPerform(Request
P
>r
>>ocessor.java:484)
>>  at
>>org.apache.struts.action.RequestProcessor.process(RequestProcessor.jav
a
>:
>>274)
>>  at
>>org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482
)
>>  at
>>org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
>>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>  at
>>org.apache.cat

does this mean jk2 was not successful

2004-09-16 Thread Didier McGillis
Sep 16, 2004 5:51:12 AM org.apache.jk.server.JkMain start
INFO: APR not loaded, disabling jni components: java.io.IOException: 
java.lang.UnsatisfiedLinkError: /usr/local/apache2/modules/jkjni.so: 
/usr/local/apache2/modules/jkjni.so: undefined symbol: apr_md5_final

Just wondering?
_
Powerful Parental Controls Let your child discover the best the Internet has 
to offer. 
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines 
 Start enjoying all the benefits of MSN® Premium right now and get the 
first two months FREE*.

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


Re: Question on use of Java style comments in JSP

2004-09-16 Thread Antony Paul
It is not producing error messages on stdout/stderr or to screen instead it
gives this output






rgds
Anotny Paul.


- Original Message -
From: "Jarl Skogsholm" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, September 16, 2004 6:52 PM
Subject: Re: Question on use of Java style comments in JSP


> This displays properly if versions 5+.
> There is nothing wrong with using // in jsp files,  jsp's are converted
> into valid java code. Are you getting error messages?  does it produce any
> code at all?
>
>
> On Thu, 16 Sep 2004 18:42:44 +0530, Antony Paul <[EMAIL PROTECTED]>
> wrote:
>
> > Do you mean that none of the Tomcat versions behave properly ?.
> > I had used it at lot of JSP pages. It is for the first time I am having
a
> > problem.
> >
> > rgds
> > Antony Paul
> >
> > - Original Message -
> > From: "Tim Funk" <[EMAIL PROTECTED]>
> > Sent: Thursday, September 16, 2004 6:29 PM
> >
> >> Never use // in JSP code. Also never use if conditionals without {} (as
> > well
> >> as for loops).
> >>
> >> -Tim
> >>
> >> Antony Paul wrote:
> >>
> >> > Hi,
> >> > I have problems in displaying a JSP page in Tomcat 4.1.12. A file
> >> > containing code like this is not displayed
> >> > <%//a%>
> >> > aaa
> >> >
> >> > Instead it is displayed properly in Tomcat 4.1.30. Whic one behaves
> >> > correctly ?. 4.1.12 or 4.1.30
> >> >
> >>
>
>
>
>
> --
> They that can give up essential liberty to obtain a little temporary
> safety deserve neither liberty nor safety.
> -- Benjamin Franklin (1755)
>
> -
> 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: Why tomcat 4 or even 3?

2004-09-16 Thread Lemke, Michael IZ/HZA-IOR
> -Original Message-
> From: John Villar 
> Sent: Thursday, September 16, 2004 3:03 PM
> To: Tomcat Users List
> Subject: Re: Why tomcat 4 or even 3?
> 
> 
> That's true yoav, actually i live off that kind of things, 
> however, what 
> really amazes me is the messages that arrive at this list 
> saying "i've 
> just installed 4.1.x". the scenario you explained of 
> replication a 
> production environment on test grounds is a good approach, 
> but i don't 
> think everyone out there is deploying a test environment when 
> installing 
> the 4 branch. 

Since I just posted such a message let me explain why I am 
installing 4.1.x.  It is for a third party software the latest
release of which requires Servlet spec 2.3.  That is supported
by TC 4 only.  The vendor does not take any responsibilty that
their product will work with Servlet spec 2.4, so I can't use
TC 5 no matter how much I want to.  Maybe this is also a question
of backwards compatability of new Servlet and other specs.
Just as an example: I couldn't upgrade Java to 1.4 because the
third party software definitely didn't work with it, I tried.
Another example is tomcat itself.  I can't just replace TC3
with TC4.  Essentially everything has changed.  No TC3 config
file will work and no conversion tool or even a proper description
exists.  So for real work it is not that simple to just use the
latest version of tomcat or whatever.

Just my 2 cents.
Michael


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



RE: How to use a class loaded with a Custom ClassLoader

2004-09-16 Thread gfdgdf gdfgdf
Thanks. I'll give a look to it.
Regards
Francesco

"Shapira, Yoav" <[EMAIL PROTECTED]> wrote:

Hi,
Read the Loader configuration reference page:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/loader.html.
Your scenario is not rare, and this Loader approach was developed to
help you out.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: gfdgdf gdfgdf [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 16, 2004 9:06 AM
>To: Tomcat Users List
>Subject: RE: How to use a class loaded with a Custom ClassLoader
>
>
>"Shapira, Yoav" wrote:
>
>Hi,
>Actually, I'm not sure that would work anyhow. The Class is loaded in
>your ClassLoader, and nowhere else. The Tomcat classloader(s) still
>don't know about it, hence the CNFE.
>
>You would need to declare your Loader in server.xml (or the context.xml
>file for your webapp), and have it extend WebappClassLoader most
likely.
>This would become a pain I imagine, and it means your classloader would
>have to be in common/lib instead of WEB-INF/lib for your webapp.
>
>Yoav Shapira
>Millennium Research Informatics
>
>
>>-Original Message-
>>From: Shapira, Yoav
>>Sent: Thursday, September 16, 2004 8:26 AM
>>To: Tomcat Users List
>>Subject: RE: How to use a class loaded with a Custom ClassLoader
>>
>>
>>Hi,
>>
>>> public void contextInitialized(ServletContextEvent event)
>>> {
>>> CustomLoader c = new
>>>CustomLoader(context.getClass().getClassLoader());
>>> Class clazz = c.loadClass("C:\\jakarta-tomcat-
>>>5.0.16\\temp\\","SecretClass",true);
>>
>>If you add Class.forName("SecretClass") after this, does it work or
>>throw a CNFE?
>>
>>Yoav
>>
>>
>>
>>This e-mail, including any attachments, is a confidential business
>>communication, and may contain information that is confidential,
>>proprietary and/or privileged. This e-mail is intended only for the
>>individual(s) to whom it is addressed, and may not be saved, copied,
>>printed, disclosed or used by anyone else. If you are not the(an)
>intended
>>recipient, please immediately delete this e-mail from your computer
>system
>>and notify the sender. Thank you.
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>Hello,
>
>thanks for your answers.
>
>You mentioned to declare the classloader in server.xml.
>
>Have you idea how to include this information in server.xml ? I cannot
find
>any reference to Classloaders in it.
>
>Thanks again
>
>Francesco
>
>
>
>-
>Scopri Mister Yahoo! - il fantatorneo sul calcio di Yahoo! Sport'



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]



-
Scopri Mister Yahoo! -  il fantatorneo sul calcio di Yahoo! Sport'

Re: Question on use of Java style comments in JSP

2004-09-16 Thread Jarl Skogsholm
This displays properly if versions 5+.
There is nothing wrong with using // in jsp files,  jsp's are converted 
into valid java code. Are you getting error messages?  does it produce any 
code at all?

On Thu, 16 Sep 2004 18:42:44 +0530, Antony Paul <[EMAIL PROTECTED]> 
wrote:

Do you mean that none of the Tomcat versions behave properly ?.
I had used it at lot of JSP pages. It is for the first time I am having a
problem.
rgds
Antony Paul
- Original Message -
From: "Tim Funk" <[EMAIL PROTECTED]>
Sent: Thursday, September 16, 2004 6:29 PM
Never use // in JSP code. Also never use if conditionals without {} (as
well
as for loops).
-Tim
Antony Paul wrote:
> Hi,
> I have problems in displaying a JSP page in Tomcat 4.1.12. A file
> containing code like this is not displayed
> <%//a%>
> aaa
>
> Instead it is displayed properly in Tomcat 4.1.30. Whic one behaves
> correctly ?. 4.1.12 or 4.1.30
>


--
They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety.
-- Benjamin Franklin (1755)

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


Re: Problem using IIOP from servlet in Tomcat 5.0.18

2004-09-16 Thread Yoav Shapira
Hi,
I have some problem when people spam me ;)  Please stick to the mailing list
and avoid personal emails.  And remember
http://jakarta.apache.org/tomcat/faq/tomcatuser.html#why.

Thanks,

Yoav

--- Gaurav Handa <[EMAIL PROTECTED]> wrote:

> hi 
> 
>  I have some problem in calling the methods which use corba from the tomcat.
> 
>  1) I have configured eclipse 3.0 and Tomcat 5.0.18 on my machine
>  2) I have a class which communicates with my server using IIOP . The method
> which does that is tested and it works fine standalone ie when invoked from
> main method of its class.
>  3) When I try to call the same method from my servlet using this class
> instance it gives exception  :
> 
>org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 208 completed:
> Maybe
>   at com.sun.corba.se.internal.iiop.IIOPConnection.purge_calls(Unknown
> Source)
>   at com.sun.corba.se.internal.iiop.ReaderThread.run(Unknown Sourc
> 
>   Any help will be highly appreciated. 
> 
>  Thanks in advance :)
> 
> Regards,
> Gaurav Handa
> 9281
> 
> 


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



RE: Logfiles in TC4.1.30

2004-09-16 Thread Lemke, Michael IZ/HZA-IOR
> -Original Message-
> From: Tim Funk 
> Sent: Thursday, September 16, 2004 2:57 PM
> To: Tomcat Users List
> Subject: Re: Logfiles in TC4.1.30
> 
> 
> If you don't want access log valve to rotate, use rotatable="false"

Hey, cool.  That helps a lot.  Thanks.  Together with Yoav's reply
below I'll probably get it where I need it.

Thanks,
Michael

> 
> -Tim
> 
> Lemke, Michael IZ/HZA-IOR wrote:
> 
> >>-Original Message-
> >>From: Shapira, Yoav 
> >>Sent: Thursday, September 16, 2004 2:29 PM
> >>To: Tomcat Users List
> >>Subject: RE: Logfiles in TC4.1.30
> >>
> >>
> >>
> >>Hi,
> >>
> >>
> >>>I am about to set up a TC4.1.30 for production.  Unlike TC3.3 TC4.1
> >>
> >>creates
> >>
> >>>all logfiles with timestamps in the file name and creates 
> a new file
> >>
> >>every
> >>
> >>>night.  How do turn this off?  It interferes with out 
> logfile policy.
> >>
> >>You would have to turn off (comment out) all the Logger 
> >>elements in your
> >>server.xml.  That means all logging output will go to standard out,
> >>which by default is $CATALINA_HOME/logs/catalina.out.  That 
> >>file is not
> >>rotated or time-stamped, so maybe that will fit your logging policy
> >>better.
> > 
> > 
> > Thanks.  But that would mean I can't use AccessLog either, right?
> > Not exactly what I need.
> > 
> > 
> > 
> >>If you want to keep using the Tomcat Loggers, you can't control the
> >>rollover behavior.  
> > 
> > 
> > Has this been fixed in TC5?
> > 
> > 
> >>You'd have to extend FileLogger into a customized
> >>version.  See the Logger configuration reference page at
> >>http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html.
> >>
> >>Yoav
> >>
> >>
> >>
> >>This e-mail, including any attachments, is a confidential 
> >>business communication, and may contain information that is 
> >>confidential, proprietary and/or privileged.  This e-mail is 
> >>intended only for the individual(s) to whom it is addressed, 
> >>and may not be saved, copied, printed, disclosed or used by 
> >>anyone else.  If you are not the(an) intended recipient, 
> >>please immediately delete this e-mail from your computer 
> >>system and notify the sender.  Thank you.
> >>
> > 
> > 
> > Why do you post that to a public forum?
> >  
> > 
> > Michael
> > 
> > 
> -
> > 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: How to use a class loaded with a Custom ClassLoader

2004-09-16 Thread Shapira, Yoav

Hi,
Read the Loader configuration reference page:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/loader.html.
Your scenario is not rare, and this Loader approach was developed to
help you out.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: gfdgdf gdfgdf [mailto:[EMAIL PROTECTED]
>Sent: Thursday, September 16, 2004 9:06 AM
>To: Tomcat Users List
>Subject: RE: How to use a class loaded with a Custom ClassLoader
>
>
>"Shapira, Yoav" <[EMAIL PROTECTED]> wrote:
>
>Hi,
>Actually, I'm not sure that would work anyhow. The Class is loaded in
>your ClassLoader, and nowhere else. The Tomcat classloader(s) still
>don't know about it, hence the CNFE.
>
>You would need to declare your Loader in server.xml (or the context.xml
>file for your webapp), and have it extend WebappClassLoader most
likely.
>This would become a pain I imagine, and it means your classloader would
>have to be in common/lib instead of WEB-INF/lib for your webapp.
>
>Yoav Shapira
>Millennium Research Informatics
>
>
>>-Original Message-
>>From: Shapira, Yoav
>>Sent: Thursday, September 16, 2004 8:26 AM
>>To: Tomcat Users List
>>Subject: RE: How to use a class loaded with a Custom ClassLoader
>>
>>
>>Hi,
>>
>>> public void contextInitialized(ServletContextEvent event)
>>> {
>>> CustomLoader c = new
>>>CustomLoader(context.getClass().getClassLoader());
>>> Class clazz = c.loadClass("C:\\jakarta-tomcat-
>>>5.0.16\\temp\\","SecretClass",true);
>>
>>If you add Class.forName("SecretClass") after this, does it work or
>>throw a CNFE?
>>
>>Yoav
>>
>>
>>
>>This e-mail, including any attachments, is a confidential business
>>communication, and may contain information that is confidential,
>>proprietary and/or privileged. This e-mail is intended only for the
>>individual(s) to whom it is addressed, and may not be saved, copied,
>>printed, disclosed or used by anyone else. If you are not the(an)
>intended
>>recipient, please immediately delete this e-mail from your computer
>system
>>and notify the sender. Thank you.
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>Hello,
>
>thanks for your answers.
>
>You mentioned to declare the classloader in server.xml.
>
>Have you idea how to include this information in server.xml ? I cannot
find
>any reference to Classloaders in it.
>
>Thanks again
>
>Francesco
>
>
>
>-
>Scopri Mister Yahoo! -  il fantatorneo sul calcio di Yahoo! Sport'



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: [DefaultContext in tomcat 5.5]

2004-09-16 Thread Shapira, Yoav

Hi,

>I could send you the errors if you want but I delete the

Don't worry about it, I was just curious.

>I think it would be better to set options for a given webapp.

I think so too.

>Nevertheless, I don't know how to build this
>$CATALINA_HOME/webapps/APP/META-INF/context.xml file.

It's an XML text file (so you can use any text editor), whose contents
are a single Context element and any nested elements you want.  You
don't need a DTD or Schema.

>Is this syntax right ?
>allowLinking="true"/>

It's well-formed but invalid, because Context requires a docBase and a
path.

Yoav



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


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




Re: Question on use of Java style comments in JSP

2004-09-16 Thread Antony Paul
Do you mean that none of the Tomcat versions behave properly ?.
I had used it at lot of JSP pages. It is for the first time I am having a
problem.

rgds
Antony Paul

- Original Message -
From: "Tim Funk" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, September 16, 2004 6:29 PM
Subject: Re: Question on use of Java style comments in JSP


> Never use // in JSP code. Also never use if conditionals without {} (as
well
> as for loops).
>
> -Tim
>
> Antony Paul wrote:
>
> > Hi,
> > I have problems in displaying a JSP page in Tomcat 4.1.12. A file
> > containing code like this is not displayed
> > <%//a%>
> > aaa
> >
> > Instead it is displayed properly in Tomcat 4.1.30. Whic one behaves
> > correctly ?. 4.1.12 or 4.1.30
> >
>
> -
> 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: How to use a class loaded with a Custom ClassLoader

2004-09-16 Thread gfdgdf gdfgdf

"Shapira, Yoav" <[EMAIL PROTECTED]> wrote:

Hi,
Actually, I'm not sure that would work anyhow. The Class is loaded in
your ClassLoader, and nowhere else. The Tomcat classloader(s) still
don't know about it, hence the CNFE.

You would need to declare your Loader in server.xml (or the context.xml
file for your webapp), and have it extend WebappClassLoader most likely.
This would become a pain I imagine, and it means your classloader would
have to be in common/lib instead of WEB-INF/lib for your webapp.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Shapira, Yoav
>Sent: Thursday, September 16, 2004 8:26 AM
>To: Tomcat Users List
>Subject: RE: How to use a class loaded with a Custom ClassLoader
>
>
>Hi,
>
>> public void contextInitialized(ServletContextEvent event)
>> {
>> CustomLoader c = new
>>CustomLoader(context.getClass().getClassLoader());
>> Class clazz = c.loadClass("C:\\jakarta-tomcat-
>>5.0.16\\temp\\","SecretClass",true);
>
>If you add Class.forName("SecretClass") after this, does it work or
>throw a CNFE?
>
>Yoav
>
>
>
>This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary and/or privileged. This e-mail is intended only for the
>individual(s) to whom it is addressed, and may not be saved, copied,
>printed, disclosed or used by anyone else. If you are not the(an)
intended
>recipient, please immediately delete this e-mail from your computer
system
>and notify the sender. Thank you.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]



Hello,

thanks for your answers.

You mentioned to declare the classloader in server.xml.

Have you idea how to include this information in server.xml ? I cannot find any 
reference to Classloaders in it.

Thanks again

Francesco



-
Scopri Mister Yahoo! -  il fantatorneo sul calcio di Yahoo! Sport'

RE: Why tomcat 4 or even 3?

2004-09-16 Thread Shapira, Yoav

Hi,
We don't foster the use of older branches.  We always encourage people
to upgrade, and I think the text on the Tomcat home and status pages is
clear to that effect.

And by and large users do upgrade, I think.  You still see Tomcat 3 and
4 questions, and you'll see them forever, but I believe if you tracked
the volume the majority of the questions now are Tomcat 5.  Of course
this is subjective and hard to prove, unless someone wants to write a
cool archive stat crawler.

>the 4 branch. My principal concern about this topic is this: if the
>tomcat community fosters the use of old branches, people will start to

Your predicate is false, rendering the rest of your argument moot.
Moreover, even if it were true, it'd apply to any product out there, not
specifically to Tomcat.

Yoav



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


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



Re: [DefaultContext in tomcat 5.5]

2004-09-16 Thread Sebastien Moretti
>>> Hi,
>>> It's pretty much gone in Tomcat 5.5, don't use it.
>>>
>>> Yoav
>>
>>What can I use instead of it ?
>>
>>I tried
>>>allowLinking="true"/>
>>in $CATALINA_HOME/conf/context.xml but some errors appear.
>
>What errors, out of curiosity?  The above element doesn't make any sense
>because the Loader doesn't support any of those attribute ;)  I'm
>guessing you meant Context and the above is just a typo?
>
>If you need JNDI resources (this includes DataSources) shared between
>contexts, use the GlobalNamingResources element.  If you need to set
>options for a given webapp, do so in an explicit Context tag (or
>context.xml file) for that webapp.
>
>Yoav

I could send you the errors if you want but I delete the 
$CATALINA_HOME/logs/catalina.out file to get only the last tomcat daemon 
start. I could restart tomcat with this element in 
$CATALINA_HOME/conf/context.xml.

I think it would be better to set options for a given webapp.
Nevertheless, I don't know how to build this 
$CATALINA_HOME/webapps/APP/META-INF/context.xml file.

Is this syntax right ?


Thanks

-- 
Sebastien MORETTI
Linux User - #327894


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



Re: license-key for one jar-file

2004-09-16 Thread John Villar
First things first tell your provider that using the notion of 
"current working directory" on java is bad practice. Probably you will 
want to put the license key on the tomcat root (not webapps/ROOT, just 
the directory where tomcat is installed). When you try to acces a file 
(at least on the 5.0.x branch) that directory is used

John Villar
Gerente de Proyectos
Computadores Flor Hard Soft 2058 C.A.
www.florhard.com

Thomas Kübler escribió:
hallo,
i have one jar file in the web-inf/lib which needs a license-file to 
work.
the license-file must in the same directory, told me the developer. so 
i put
the license-file in the same directory, but it seems, that the library 
can't
find the key. where i have to put the license-file?

all is running with tomcat 5
thanks
thomas kübler
-
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: Problem configuring a global resource to be linked from Context elements ....

2004-09-16 Thread Antony Paul
Had you tried it with inside Context element. If it doesn't work it means
the JDBC driver is not found when Tomcat starts up. You have to put JDBC jar
in CATALINA_HOME\common\lib. It can be placed in WEB-INF\lib if you place
dbcp.jar too there.

rgds
Antony Paul

- Original Message -
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>; "Jonathan Rengifo"
<[EMAIL PROTECTED]>
Sent: Thursday, September 16, 2004 6:02 PM
Subject: RE: Problem configuring a global resource to be linked from Context
elements 



Hi,
Maybe there really is a bug in the Tomcat release you're using: which
one are you trying?

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Jonathan Rengifo [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, September 15, 2004 9:08 PM
>To: Tomcat User List
>Subject: Problem configuring a global resource to be linked from
Context
>elements 
>
>Hi all
>
>
>This is the third time I've write a message to the list asking for the
>same issue, but didn't solve it, I am starting to think about this is
>a really bug in Tomcat 5. My question is ... Why when I configure a
>Resource inside the GlobalNamingResources element just to ResourceLink
>it inside the context it just doesn't work, throwing an exception like
>this ...
>
>org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver
>class 'oracle.jdbc.driver.OracleDriver'
>
>This means to me that the oracle driver I am using is could no be
>found, but then, why when I cut the Resource and paste it inside every
>Context I use it just work fine???...
>
>Please help How do I configure this global resource??
>
>Here is how I am setting this up...
>
>
>
>type="javax.sql.DataSource"/>
> 
> 
> factory
>
org.apache.commons.dbcp.BasicDataSourceFactory
> 
> 
> url
>
jdbc:oracle:thin:@myDatabaseServer:port:user
> 
> 
> password
> myPassword
> 
> 
> maxActive
> 20
> 
> 
> maxWait
> -1
> 
> 
> driverClassName
> oracle.jdbc.driver.OracleDriver
> 
> 
> username
> myUser
> 
> 
> maxIdle
> 10
> 
> 
>
>
>
>Thanks ..
>
>Jonathan
>
>-
>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]



license-key for one jar-file

2004-09-16 Thread Thomas Kübler
hallo,
i have one jar file in the web-inf/lib which needs a license-file to work.
the license-file must in the same directory, told me the developer. so i 
put
the license-file in the same directory, but it seems, that the library 
can't
find the key. where i have to put the license-file?

all is running with tomcat 5
thanks
thomas kübler
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Why tomcat 4 or even 3?

2004-09-16 Thread John Villar
That's true yoav, actually i live off that kind of things, however, what 
really amazes me is the messages that arrive at this list saying "i've 
just installed 4.1.x". the scenario you explained of replication a 
production environment on test grounds is a good approach, but i don't 
think everyone out there is deploying a test environment when installing 
the 4 branch. My principal concern about this topic is this: if the 
tomcat community fosters the use of old branches, people will start to 
get old bugs, old problems and will receive the tired response in this 
list "search this  it comes up a lot", and that goes in detriment of 
the whole Tomcat community image (a mighty and solid image) and you will 
hear from some jerk things like "yeah, i tried tomcat, but its rather 
buggy and slow, i prefer the ClosedSource_VENDOR_X solution". The 
problem here is that management departments worldwide are concerned 
about the ROIs and TCOs of the systems, and we must give them those 
digits, just to grasp more "market share" (yuck!! management lingo, i'm 
sick of it, hate it or love it, we must live with it), revealing 
security and maintainability issues of having installed some old tomcat 
branch. Those are my toughts about this matter.

John Villar
Gerente de Proyectos
Computadores Flor Hard Soft 2058 C.A.
www.florhard.com

Shapira, Yoav escribió:
Hi,
All the arguments mentioned by others in this thread, especially the
"why upgrade if it's working" one, are raised frequently by companies
and developers.  It's a matter of resource constraints, as is everything
else in life ;)  Even you abide by the assumption that the latest stable
version is the best, and everyone should upgrade, you cannot assume
upgrading is a zero-cost task, and therefore you cannot assume there
will ever be sufficient motivation to do it.  That's a basic management
argument, and it's not specific to Tomcat by any means.
Naturally, I've heard the argument many times.  Since you also can't
assume any app is bug free, eventually bugs tend to show up.  Now the
developers have to re-learn the old version of the product, setup up a
dev environment for the old version of the app, patch, re-test, and
re-deploy.  This is frequently (in fact, research suggests nearly
always) must more costly than simply keeping up with upgrades.  Then the
company hires consultants to help them fix, and you'd be surprised how
many people make a nice living off of these type of consulting
assignments (any Tandy consultants on this list? ;).  This has been the
paradigm since at least the late 70's, and appears to only be getting
worse (again from research -- anyone on the list who reads the IEEE
Transactions on Engineering Management is fed up with this research).
But most developers are too busy to worry about that scenario, and it
goes back to the resource-constraint argument: if we as a company can
spend time on creating this new app to address an existing need, or
upgrading the server for a completely fine working app, that's a
no-brainer for management.
For government, military, and externally regulated industries the
scenario is even worse because there's a length change management and
audit process in place typically.
I could go on and on ;)  This is well-trodden territory, the subject of
much discussion in various offline forums I belong to.
Yoav Shapira
Millennium Research Informatics
 

-Original Message-
From: POLO ARAUJO, JAVIER [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 16, 2004 2:19 AM
To: [EMAIL PROTECTED]
Subject: Re: Why tomcat 4 or even 3?
What is more, a lot of app's for big companies are just forgotten or
have a few users, so why spend time upgrading to a newer version of
tomcat?

Paul said:
   

Sometimes one dont need to be faster.
 

I'm talking about a old legacy app (not critical - intranet), running
 

very well for a couple of years in the same old server.
 

Javier Polo.
   



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: Question on use of Java style comments in JSP

2004-09-16 Thread Tim Funk
Never use // in JSP code. Also never use if conditionals without {} (as well 
as for loops).

-Tim
Antony Paul wrote:
Hi,
I have problems in displaying a JSP page in Tomcat 4.1.12. A file
containing code like this is not displayed
<%//a%>
aaa
Instead it is displayed properly in Tomcat 4.1.30. Whic one behaves
correctly ?. 4.1.12 or 4.1.30
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Logfiles in TC4.1.30

2004-09-16 Thread Tim Funk
If you don't want access log valve to rotate, use rotatable="false"
-Tim
Lemke, Michael IZ/HZA-IOR wrote:
-Original Message-
From: Shapira, Yoav 
Sent: Thursday, September 16, 2004 2:29 PM
To: Tomcat Users List
Subject: RE: Logfiles in TC4.1.30


Hi,

I am about to set up a TC4.1.30 for production.  Unlike TC3.3 TC4.1
creates
all logfiles with timestamps in the file name and creates a new file
every
night.  How do turn this off?  It interferes with out logfile policy.
You would have to turn off (comment out) all the Logger 
elements in your
server.xml.  That means all logging output will go to standard out,
which by default is $CATALINA_HOME/logs/catalina.out.  That 
file is not
rotated or time-stamped, so maybe that will fit your logging policy
better.

Thanks.  But that would mean I can't use AccessLog either, right?
Not exactly what I need.

If you want to keep using the Tomcat Loggers, you can't control the
rollover behavior.  

Has this been fixed in TC5?

You'd have to extend FileLogger into a customized
version.  See the Logger configuration reference page at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html.
Yoav

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


Why do you post that to a public forum?
 

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


Question on use of Java style comments in JSP

2004-09-16 Thread Antony Paul
Hi,
I have problems in displaying a JSP page in Tomcat 4.1.12. A file
containing code like this is not displayed
<%//a%>
aaa

Instead it is displayed properly in Tomcat 4.1.30. Whic one behaves
correctly ?. 4.1.12 or 4.1.30

rgds
Anto Paul

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



RE: Problem configuring a global resource to be linked from Context elements ....

2004-09-16 Thread Caroline Jen
Hi, Yoav.  I have not yet solved my Tomcat 5.0.27 CP
configuration problem.  

Yesterday, you said that the Tomcat log should not
show it looked for MySQL driver when I am trying to
connect to the Oracle 9i driver.  It turned out that
there is "another application" in the webapps looking
for the MySQL driver.  My current application does not
look for the MySQL driver.

A nice person really look into my configuration and my
code and he said he does not see any obvious mistakes
that other people have made.  He is still helping
digging into my CP configuration connection to the
Oracle 9i.
--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote:

> 
> Hi,
> Maybe there really is a bug in the Tomcat release
> you're using: which
> one are you trying?
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> 
> >-Original Message-
> >From: Jonathan Rengifo [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, September 15, 2004 9:08 PM
> >To: Tomcat User List
> >Subject: Problem configuring a global resource to
> be linked from
> Context
> >elements 
> >
> >Hi all
> >
> >
> >This is the third time I've write a message to the
> list asking for the
> >same issue, but didn't solve it, I am starting to
> think about this is
> >a really bug in Tomcat 5. My question is ... Why
> when I configure a
> >Resource inside the GlobalNamingResources element
> just to ResourceLink
> >it inside the context it just doesn't work,
> throwing an exception like
> >this ...
> >
> >org.apache.commons.dbcp.SQLNestedException: Cannot
> load JDBC driver
> >class 'oracle.jdbc.driver.OracleDriver'
> >
> >This means to me that the oracle driver I am using
> is could no be
> >found, but then, why when I cut the Resource and
> paste it inside every
> >Context I use it just work fine???...
> >
> >Please help How do I configure this global
> resource??
> >
> >Here is how I am setting this up...
> >
> >
> >
> > scope="Shareable"
> >type="javax.sql.DataSource"/>
> > 
> > 
> > factory
> >
>
org.apache.commons.dbcp.BasicDataSourceFactory
> > 
> > 
> > url
> >
>
jdbc:oracle:thin:@myDatabaseServer:port:user
> > 
> > 
> > password
> > myPassword
> > 
> > 
> > maxActive
> > 20
> > 
> > 
> > maxWait
> > -1
> > 
> > 
> > driverClassName
> >
> oracle.jdbc.driver.OracleDriver
> > 
> > 
> > username
> > myUser
> > 
> > 
> > maxIdle
> > 10
> > 
> > 
> >
> >
> >
> >Thanks ..
> >
> >Jonathan
> >
>
>-
> >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]
> 
> 




__
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

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



Apache/Tomcat Integration problem (Aprutil lib missing) causing unsatisfied link error

2004-09-16 Thread [EMAIL PROTECTED]
I am following the instructions listed in
http://www.mail-archive.com/[EMAIL PROTECTED]/msg130210.html

Expected Results from ldd

 ldd /usr/local/httpd/modules/jkjni.so
libcrypt.so.1 => /lib/libcrypt.so.1 (0x40046000)
libapr-0.so.0 =>
/usr/local/httpd-2.0.49/lib/libapr-0.so.0 (0x40074000)
libaprutil-0.so.0 =>
/usr/local/httpd-2.0.49/lib/libaprutil-0.so.0
(0x40097000)
libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x400ab000)
libdb-4.0.so => /lib/libdb-4.0.so (0x400b2000)
libexpat.so.0 => /usr/lib/libexpat.so.0 (0x4015a000)
libc.so.6 => /lib/i686/libc.so.6 (0x4017a000)
librt.so.1 => /lib/i686/librt.so.1 (0x402b4000)
libm.so.6 => /lib/i686/libm.so.6 (0x402c6000)
libnsl.so.1 => /lib/libnsl.so.1 (0x402e8000)
libpthread.so.0 => /lib/i686/libpthread.so.0
(0x402fd000)
libdl.so.2 => /lib/libdl.so.2 (0x4034d000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x8000)

Actual Results from my installation..


[EMAIL PROTECTED] apache2]# ldd libjkjni.so
libcrypt.so.1 => /lib/libcrypt.so.1
(0x40032000)
libapr-0.so.0 =>
/usr/local/apache2/lib/libapr-0.so.0 (0x4005f000)
libc.so.6 => /lib/tls/libc.so.6 (0x4200)
librt.so.1 => /lib/librt.so.1 (0x4007d000)
libm.so.6 => /lib/tls/libm.so.6 (0x4008f000)
libnsl.so.1 => /lib/libnsl.so.1 (0x400b2000)
libpthread.so.0 => /lib/tls/libpthread.so.0
(0x400c7000)
libdl.so.2 => /lib/libdl.so.2 (0x400d4000)



I am missing apr-uitl etc... So I  am getting
Unsatisfied link Error...Please help...

MakeFile /server/apache2 is listed below..

# Gnu makefile and libtool are required
# use -D options to overrides defaults
CC=gcc
CP=/bin/cp
prefix=/usr/local
exec_prefix=${prefix}
  
  
   
APACHE2_HOME=/usr/local/apache2
OS=linux
JAVA_HOME=/usr/java/jdk1.5.0
APACHE2_INCL=-I/usr/local/apache2/include
APACHE2_LIBEXEC=/usr/local/apache2/modules
APACHE2_LIBDIR=/usr/local/apache2/lib
APR_INCL=
-I/usr/local/httpd-2.0.50/srclib/apr-util/include
-I/usr/local/httpd-2.0.50/srclib/apr/include
#APR_LIBS=-L/usr/local/apache2/lib
APR_LIBS=-L/usr/local/apache2/lib -lapr-0
#APR_LIBS=-L/root/software/httpd-2.0.50/srclib/apr-util/.libs
-laprutil-0
APR_LIBDIR_LA=
EXTRA_CFLAGS= -g -O2 -pthread
EXTRA_CPPFLAGS=-DLINUX=2 -D_REENTRANT
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE
ifneq ($(strip $(JAVA_HOME)),)
JAVA_INCL=-I ${JAVA_HOME}/include -I
${JAVA_HOME}/include/${OS}
JAVA_LIB=-L ${JAVA_HOME}/jre/lib/${ARCH} -L
${JAVA_HOME}/lib/${ARCH}/native_threads
endif
  
  
   
JK_DIR := ../..
BUILD_DIR = ${JK_DIR}/../build/jk2/apache2
  
  
   
# Extract EXTRA_CFLAGS and EXTRA_CPPFLAGS - same flags
used during apache2
# compilation
#include ${APACHE2_HOME}/build/config_vars.mk
  
  
   
# Yes, we use the same properties file as ant
#include ../../../build.properties


#LIBTOOL=/bin/sh /usr/local/apache2/build/libtool
--silent
LIBTOOL=/usr/bin/libtool
  
  
   
# It doesn't hurt if we include all
INCLUDES= -I${JK_DIR}/include \
  ${APACHE2_INCL} \
  ${APR_INCL} \
  ${JAVA_INCL}
  
  
   
JK_CFLAGS=-DCHUNK_SIZE=4096 -DUSE_APACHE_MD5
-DHAVE_JNI
#ifdef APR_LIBDIR_LA
#JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt
#else
#JK_LDFLAGS=-lcrypt ${APR_LIBS}
#endif'
ifdef APR_LIBDIR_LA
JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt
else
JK_LDFLAGS=-lcrypt ${APR_LIBS}
-L/usr/local/apache2/lib -laprutil-0 -lgdbm -ldb-4.0
-lexpat
endif
  
  
   
## Based on rules.mk
##

etc


Thanks



__
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

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



  1   2   >