Re: Compile and Deploy JSPs - Tomcat 4.0

2004-12-20 Thread Antony Paul
The proper way to do this is use the JSPC task to compile  JSP files
to class files and then create url mappings in the web.xml for the
JSPs to class files. The class files are to be deployed in the
WEB-INF/classes directory. The Anto JSPC task(which is same supplied
with Tomcat).
   I think this topic is discussed previously and you can find details
in the archives.

rgds
Antony Paul


On Tue, 21 Dec 2004 09:21:00 +0200, Abhay Hiwarkar
<[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I have around 120 JSP files and want to avoid deploying them with the
> source-code.
> 
> Using JSPC utility, I am able to compile them to ".java" files.
> 
> If required, I can get the ".class" files from: /tomcat4.0/work/myApp.
> 
> Can anybody help me deploying only the ".class" files with Tomcat4.0.
> 
> Many Thanks in advance,
> 
> Regards,
> Abhay
> 
> -
> 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]



Compile and Deploy JSPs - Tomcat 4.0

2004-12-20 Thread Abhay Hiwarkar
Hi,

I have around 120 JSP files and want to avoid deploying them with the
source-code.

Using JSPC utility, I am able to compile them to ".java" files.

If required, I can get the ".class" files from: /tomcat4.0/work/myApp.

Can anybody help me deploying only the ".class" files with Tomcat4.0.

Many Thanks in advance,

Regards,
Abhay

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



Synchronizing properties in cluster setup

2004-12-20 Thread Srinivas Rao Ch
Hi,

 

I successfully configured my clustering setup with mod_jk2 and it is running
fine. Now the problem is I have some properties files in my tomcat web
application which gets modified when some features are accessed. If some
changes are there in one cluster member, I have to update the same in other
members also.

 

And, I have a folder of icons which gets changed when client uploads new
icon in to the system. I have to synchronize this folder also across all the
cluster members. Can somebody suggest me how I can do this with the setup I
have(Apache 2.0.52 + Tomcat 5.0.16 + mod_jk2).

 

Is there any service already available to sync the resources like these?

 

Regards,

Srinivas



Re: [OT] Request an app test (free beer!)

2004-12-20 Thread Chirag

On Windows 98 + JDK 1.5

the output is

Windows 98


Bye for Now

CSJakharia

 

Message-ID: <[EMAIL PROTECTED]>
Date: Mon, 20 Dec 2004 17:26:23 -0500
From: "Frank W. Zammetti" 
Reply-to: [EMAIL PROTECTED]
MIME-Version: 1.0
To: Commons User , 
Struts User ,
Tomcat User 
Subject: [OT] Request an app test (free beer!)
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I was informed last OT post I made that the subject should always 
include the word "beer". I added the "free" to get your attention :)

I'm working on something for which I need to know what the os.name 
property on various OS's is. I would greatly appreciate it if some 
folks could try the following:

public class test {
public static void main(String[] args) {
System.out.println(System.getProperty("os.name"));
}
}

I'm particularly interested in various *nix variants, Linux, Mac and 
such. Windows I already have answers for (although some verification to 
be sure nothing fishy is going on wouldn't hurt).

If you could just post your OS and what the result was, I would greatly 
appreciate it. Thanks in advance!

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com






 Subscribe to bermudaEmail:  [input]  [input]  Browse Archives at 
groups-beta.google.com 



-
Do you Yahoo!?
 The all-new My Yahoo! – What will yours do?

Re: DBCP/DB2/Tomcat 4.1.24 problem!

2004-12-20 Thread Andreas Vombach
James,
please see my message in "Tomcat 5.5 classloading blues" from 20.12 and 
the following.

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


DBCP/DB2/Tomcat 4.1.24 problem!

2004-12-20 Thread James Milks
Hi,
I am trying to get DBCP connection pooling to work with Tomcat 4.1.24
and DB2 8.X. I can connect directly, but whenever I try to use DBCP, I
receive a "Cannot load driver class 'null'" error. The DB2 and JNDI jar
files are located in \common\lib.

This code snippet works:
...
String url = "jdbc:db2://myserver:5/mydb";
String user = "test";
String pass = "password";
Class.forName("com.ibm.db2.jcc.DB2Driver");
Connection conn = DriverManager.getConnection(url,user,pass);
Statement stmt = conn.createStatement();
ResultSet myRs = stmt.executeQuery("select * from myTable");
...

This leads me to believe that:
a) My driver is fine and jar file location is ok
b) My login credentials are fine
I use the same driver and connection info in my DBCP config. 

---
Now when I try to use DBCP, this code snippet does NOT work.
...
Context jndiCtx = new InitialContext();
Context ctx = (Context) jndiCtx.lookup("java:comp/env");
DataSource ds = (DataSource) ctx.lookup("jdbc/mydb");
Connection conn = ds.getConnection();
Statement stmt = conn.createStatement();
ResultSet myRs = stmt.executeQuery("select * from myTable");
...

Tomcat does not throw any errors at startup in any logs and when I
execute the above code, the DataSource retrieved (ds) is not null and a
getClassName() call reveals a generic commons DataSource object.
However, once it gets to the getConnection() method, the evil "Cannot
load driver class 'null'" error occurs.

I tried messing around with the JNDI entries to prove that was OK, and
as expected I get a naming error if I put a wrong value. This tells me
that the "lookup" portion works, yes?

Here are the relevant server.xml and the web.xml entries:

--
server.xml (note: I also tried it without the factory param)
--
...

   

  
   
   factory
   org.apache.commons.dbcp.BasicDataSourceFactory
   

   username
   test
   

   password
   password
   

   driverClassName
   com.ibm.db2.jcc.DB2Driver
   

   url
   jdbc:db2://myserver:5/mydb
   



--
web.xml
--
...

  jdbc/mydb
  javax.sql.DataSource
  Container



So, that is pretty much it. I have consulted 2 books, countless
websites, and would appreciate any help.

Thanks

JW


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



Re: mod_jk2 future?

2004-12-20 Thread QM
On Mon, Dec 20, 2004 at 02:02:56PM +0100, [EMAIL PROTECTED] wrote:
: I will check with the developpers team whether switching from JK2 to JK
: could be a problem but is there any known issues in switching from one
: connector to the other (apart for the configuration files)

I can't say, as I've never had to make that switch in a production app.
I don't see what else could trip you up, though, unless you have a
strong tie to some jk2-specific feature.

-QM

-- 

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


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



RE: [OT] Request an app test (free beer!)

2004-12-20 Thread Subir Sengupta
RH Linux v9:

Linux

-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 20, 2004 2:26 PM
To: Commons User; Struts User; Tomcat User
Subject: [OT] Request an app test (free beer!)


I was informed last OT post I made that the subject should always 
include the word "beer".  I added the "free" to get your attention :)

I'm working on something for which I need to know what the os.name 
property on various OS's is.  I would greatly appreciate it if some 
folks could try the following:

public class test {
public static void main(String[] args) {
System.out.println(System.getProperty("os.name"));
}
}

I'm particularly interested in various *nix variants, Linux, Mac and 
such.  Windows I already have answers for (although some verification to

be sure nothing fishy is going on wouldn't hurt).

If you could just post your OS and what the result was, I would greatly 
appreciate it.  Thanks in advance!

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com


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



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



Re: filterStart error on Tomcat but not on Sun 8

2004-12-20 Thread QM
:Here is a snippet of the server log:
:INFO: Installing web application at context path /Math1 from URL
:file:Q:\Programs\Java\jakarta-tomcat\Tomcat 5.0.30\webapps\Math1
:19/12/2004 13:33:56 org.apache.catalina.core.StandardContext start
:SEVERE: Error filterStart
:19/12/2004 13:33:56 org.apache.catalina.core.StandardContext start
:SEVERE: Context startup failed due to previous errors

As no one else has jumped on this yet, I'll take a stab at it:


1/ any reason you're running 5.0.30?  Unless I've missed a list post (a
possibility) that's still in beta.

2/ could you crank up the log verbosity to see what else is going on as
the filter's being loaded?  What if the filter's init() method is
throwing an exception/error/etc?

3/ identical environments, other than the OS difference? i.e. same
classpath and JAR versions all around, same JDK version, same Tomcat,
same webapp version, etc?

-QM

-- 

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


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



Re: <%@page isThreadSafe="false" %> does not work

2004-12-20 Thread QM
On Mon, Dec 20, 2004 at 09:33:11AM -0500, Kurt Overberg wrote:
: I have a situation in my webapp where the user (administrator) can 
: 'Publish' items.  I need to make it so only one person can 'publish' at a 
: time.  Would this be a valid use of 'isThreadSafe'?  Would it make user #2 
: wait until the page had finished processing for user #1?  It would save me 
: from writing a bunch of messy locking code.  Thanks!

What sort of "messy" code would that be?

I've seen people use a database as a sort of distributed semaphore.
This not only spares you from using isThreadSafe (which, IIRC, died in
servlet spec 2.4/JSP 2.0 along with SingleThreadModel); it means your
app can scale to multiple app servers without you touching additional
code.

-QM

-- 

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


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



RE: [OT] Request an app test (free beer!)

2004-12-20 Thread Mike Curwen
Win XP SP2 = "Windows XP"

> -Original Message-
> From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] 
> Sent: Monday, December 20, 2004 4:26 PM
> To: Commons User; Struts User; Tomcat User
> Subject: [OT] Request an app test (free beer!)
> 
> 


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



Re: [OT] Request an app test (free beer!)

2004-12-20 Thread Greg Lappen
On Mac OS X, the output is "Mac OS X"
Greg
On Dec 20, 2004, at 5:26 PM, Frank W. Zammetti wrote:
I was informed last OT post I made that the subject should always 
include the word "beer".  I added the "free" to get your attention :)

I'm working on something for which I need to know what the os.name 
property on various OS's is.  I would greatly appreciate it if some 
folks could try the following:

public class test {
public static void main(String[] args) {
System.out.println(System.getProperty("os.name"));
}
}
I'm particularly interested in various *nix variants, Linux, Mac and 
such.  Windows I already have answers for (although some verification 
to be sure nothing fishy is going on wouldn't hurt).

If you could just post your OS and what the result was, I would 
greatly appreciate it.  Thanks in advance!

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: [OT] Request an app test (free beer!)

2004-12-20 Thread Parsons Technical Services
On TAO Linux (Compiled from RHEL)
Linux
I already use this. I switch from pooled (on server) to direct on my 
development box (windows). Saves me the hassle of changing code.

Doug
- Original Message - 
From: "Frank W. Zammetti" <[EMAIL PROTECTED]>
To: "Commons User" <[EMAIL PROTECTED]>; "Struts User" 
<[EMAIL PROTECTED]>; "Tomcat User" <[EMAIL PROTECTED]>
Sent: Monday, December 20, 2004 5:26 PM
Subject: [OT] Request an app test (free beer!)


I was informed last OT post I made that the subject should always include 
the word "beer".  I added the "free" to get your attention :)

I'm working on something for which I need to know what the os.name 
property on various OS's is.  I would greatly appreciate it if some folks 
could try the following:

public class test {
public static void main(String[] args) {
System.out.println(System.getProperty("os.name"));
}
}
I'm particularly interested in various *nix variants, Linux, Mac and such. 
Windows I already have answers for (although some verification to be sure 
nothing fishy is going on wouldn't hurt).

If you could just post your OS and what the result was, I would greatly 
appreciate it.  Thanks in advance!

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: $CATALINA_BASE

2004-12-20 Thread Dwayne Ghant
Could someone please confirm that I would have to take the time
configure all the CATALINA_BASE's to be in the same place
for all tihe installed instances of  tomcat.. I can do the rest.
Dwayne Ghant wrote:
Hello All,
Just a real quick question???
I'm in the process of configuring
more then one instance of tomcat .
How would I configure many instances?
of tomcat with the same
$CATALINA_BASE/bin
$CATALINA_BASE/conf
$CATALINA_BASE/log
.
.
.
.
etc.

--
Dwayne A. Ghant
Application Developer
Temple University
215.204.
[EMAIL PROTECTED]

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


Re: Tomcat/JVM crashes on Linux

2004-12-20 Thread Eric Rotick
The application receives data packets from acoustic sensors. While the
total load is not huge, because of the way the data is collected there
are periods of no activity and then periods when all hell breaks
loose. This happens every 15 minutes and we size the memory based on
the use of swap over a 24 hour period. Tomcat is by far this biggest
process and it can grow quite large due to internal queuing waiting
for other services to become available.

On average there are 2,500 hits every 15 minutes spread across 2
machines in a cluster.


On Mon, 20 Dec 2004 15:15:17 -0500, Greg Lappen <[EMAIL PROTECTED]> wrote:
> What kind of load does your application handle?  I am not processing a
> HUGE amount of requests, but we server about 6000 visitors a day,
> 15,000 pages.
> 
> Greg
> On Dec 20, 2004, at 1:28 PM, Wade Chandler wrote:
> 
> > Greg Lappen wrote:
> >> Hello-
> >> Has anyone had a problem with Tomcat 5.0.28 crashing on Linux with no
> >> error messages?
> >> My production server running with JDK 1.4.2_06, RedHat EL 3.0 just
> >> crashes, no core dump, no errors in catalina.out, no clues.
> >> Sometimes it goes for days, sometimes it happens several times in one
> >> day.  I am running the tomcat process behind Apache 2 with mod_proxy.
> >>  Setting "ulimit -c unlimited" in the catalina.sh startup file still
> >> did not produce a core file.
> >> If nobody else has experienced this, do you have any suggestions on
> >> how to debug it further?
> >> Thanks,
> >> Greg
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > I'm using the same setup as you less Apache2.  I use tomcat as the web
> > server.  Using TC5.0.28 and JDK1.4.2_06, and I have yet to have the
> > server crash once.  Not much help, but might give you some clues where
> > to look.
> >
> > Connector log (mod_proxyassuming you mean you're using the new
> > connector code)is there anything in the Apache2 log?  I assume
> > from your post you mean that the java process just completely goes
> > away.  You might find (depending on the running directory of the java
> > process running tomcat) a pid dump log file or something...not sure if
> > the vm produces one of these or not.  You also might check in
> > /var/log/messages file to see if for some reason the kernel or some
> > lib got some error it logged.
> >
> > Wade
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



RE: Tomcat 5.0.28, problems with using the jsp servlet to display images

2004-12-20 Thread Tony Chan


Hi everyone,

I wonder if anyone have similar experiences with the following problem
before.

This is what I want to do:
http://domainName/{anything but underscore} <- dealt with by the Gateway
servlet
http://domainName/_folderName/*.abc <- dealt with by the JSP servlet

The current solution in web.xml:
.
/_folderName/*jsp<
/servlet-name>
/*Gateway
.

This solution works well with most files. However, the jsp servlet also
tries to parse and convert images and other files to JAVA files if they are
located in the "/_folderName/" folder. Unfortunately, this type of
conversion breaks some images and executable files.

I also tried to use the default servlet to deal with images to no avail
/_folderName/images/*jsp. Using a customized dispatcher to
redirect (forward/include) traffic also doesn't work as requests get into an
infinite loop.

Any suggestion would be much appreciated.

Thanks,
Tony Chan





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



Re: [OT] Request an app test (free beer!)

2004-12-20 Thread Peter Maas
On solaris:

SunOS

--p

On Mon, 2004-12-20 at 17:26 -0500, Frank W. Zammetti wrote:
> I was informed last OT post I made that the subject should always 
> include the word "beer".  I added the "free" to get your attention :)
> 
> I'm working on something for which I need to know what the os.name 
> property on various OS's is.  I would greatly appreciate it if some 
> folks could try the following:
> 
> public class test {
> public static void main(String[] args) {
> System.out.println(System.getProperty("os.name"));
> }
> }
> 
> I'm particularly interested in various *nix variants, Linux, Mac and 
> such.  Windows I already have answers for (although some verification to 
> be sure nothing fishy is going on wouldn't hurt).
> 
> If you could just post your OS and what the result was, I would greatly 
> appreciate it.  Thanks in advance!
> 
-- 
Peter Maas
Application Architect / Streaming
 
Noterik Multimedia BV
Prins Hendrikkade 120
1011 AM Amsterdam
The Netherlands

Tel: +31 (0)205929966
Fax: +31 (0)204688405
Gsm: +31 (0)624687952

Web: www.noterik.nl
--
Take a look at our streaming solutions: 
http://www.streamedit.com/demo.html

Get firefox: 
http://www.mozilla.org/products/firefox/
---
:wq!



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



Re: [OT] Request an app test (free beer!)

2004-12-20 Thread Peter Maas
On Debian GNU/Linux:

Linux

--p

On Mon, 2004-12-20 at 17:26 -0500, Frank W. Zammetti wrote:
> I was informed last OT post I made that the subject should always 
> include the word "beer".  I added the "free" to get your attention :)
> 
> I'm working on something for which I need to know what the os.name 
> property on various OS's is.  I would greatly appreciate it if some 
> folks could try the following:
> 
> public class test {
> public static void main(String[] args) {
> System.out.println(System.getProperty("os.name"));
> }
> }
> 
> I'm particularly interested in various *nix variants, Linux, Mac and 
> such.  Windows I already have answers for (although some verification to 
> be sure nothing fishy is going on wouldn't hurt).
> 
> If you could just post your OS and what the result was, I would greatly 
> appreciate it.  Thanks in advance!
> 
-- 
Peter Maas
Application Architect / Streaming
 
Noterik Multimedia BV
Prins Hendrikkade 120
1011 AM Amsterdam
The Netherlands

Tel: +31 (0)205929966
Fax: +31 (0)204688405
Gsm: +31 (0)624687952

Web: www.noterik.nl
--
Take a look at our streaming solutions: 
http://www.streamedit.com/demo.html

Get firefox: 
http://www.mozilla.org/products/firefox/
---
:wq!



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



Re: Tomcat/JVM crashes on Linux

2004-12-20 Thread Eric Rotick
No core dump and nothing significant in the log files. The process
just went away. Actually now I think about it we did have some other
weirdness like JARs that were corrupt that also went away with the
good memory.


On Mon, 20 Dec 2004 15:13:35 -0500, Greg Lappen <[EMAIL PROTECTED]> wrote:
> When you say the problem was similar, did you also have no core dump or
> log messages, just a missing JVM process?  I am asking our hosting
> provider to test the server's RAM - I was going to do this before but
> since no other process ever crashes (Apache, MySql, etc.) we didn't
> think it could be the RAM.
> 
> Greg
> 
> On Dec 20, 2004, at 1:57 PM, Eric Rotick wrote:
> 
> > I had a similar problem with an almost identical setup to yours which
> > turned out to be bad memory. An extra 1GB stick was added which had a
> > bad section in the top of the memory map. This memory only got used
> > when things got busy so everyone suspected some threading issue. We
> > got lucky and spotted something totally absurd in the logs which
> > prompted a memtest86 run and hey presto we got our answer.
> >
> >
> > On Mon, 20 Dec 2004 13:28:56 -0500, Wade Chandler
> > <[EMAIL PROTECTED]> wrote:
> >> Greg Lappen wrote:
> >>> Hello-
> >>>
> >>> Has anyone had a problem with Tomcat 5.0.28 crashing on Linux with no
> >>> error messages?
> >>>
> >>> My production server running with JDK 1.4.2_06, RedHat EL 3.0 just
> >>> crashes, no core dump, no errors in catalina.out, no clues.
> >>> Sometimes
> >>> it goes for days, sometimes it happens several times in one day.  I
> >>> am
> >>> running the tomcat process behind Apache 2 with mod_proxy.  Setting
> >>> "ulimit -c unlimited" in the catalina.sh startup file still did not
> >>> produce a core file.
> >>>
> >>> If nobody else has experienced this, do you have any suggestions on
> >>> how
> >>> to debug it further?
> >>>
> >>> Thanks,
> >>>
> >>> Greg
> >>>
> >>>
> >>> -
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>
> >> I'm using the same setup as you less Apache2.  I use tomcat as the web
> >> server.  Using TC5.0.28 and JDK1.4.2_06, and I have yet to have the
> >> server crash once.  Not much help, but might give you some clues where
> >> to look.
> >>
> >> Connector log (mod_proxyassuming you mean you're using the new
> >> connector code)is there anything in the Apache2 log?  I assume
> >> from
> >> your post you mean that the java process just completely goes away.
> >> You
> >> might find (depending on the running directory of the java process
> >> running tomcat) a pid dump log file or something...not sure if the vm
> >> produces one of these or not.  You also might check in
> >> /var/log/messages
> >> file to see if for some reason the kernel or some lib got some error
> >> it
> >> logged.
> >>
> >> Wade
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



[OT] Request an app test (free beer!)

2004-12-20 Thread Frank W. Zammetti
I was informed last OT post I made that the subject should always 
include the word "beer".  I added the "free" to get your attention :)

I'm working on something for which I need to know what the os.name 
property on various OS's is.  I would greatly appreciate it if some 
folks could try the following:

public class test {
public static void main(String[] args) {
System.out.println(System.getProperty("os.name"));
}
}
I'm particularly interested in various *nix variants, Linux, Mac and 
such.  Windows I already have answers for (although some verification to 
be sure nothing fishy is going on wouldn't hurt).

If you could just post your OS and what the result was, I would greatly 
appreciate it.  Thanks in advance!

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat/JVM crashes on Linux

2004-12-20 Thread Wade Chandler
Greg Lappen wrote:
What kind of load does your application handle?  I am not processing a 
HUGE amount of requests, but we server about 6000 visitors a day, 15,000 
pages.

Greg
On Dec 20, 2004, at 1:28 PM, Wade Chandler wrote:
Greg Lappen wrote:
Hello-
Has anyone had a problem with Tomcat 5.0.28 crashing on Linux with no 
error messages?
My production server running with JDK 1.4.2_06, RedHat EL 3.0 just 
crashes, no core dump, no errors in catalina.out, no clues.  
Sometimes it goes for days, sometimes it happens several times in one 
day.  I am running the tomcat process behind Apache 2 with mod_proxy. 
 Setting "ulimit -c unlimited" in the catalina.sh startup file still 
did not produce a core file.
If nobody else has experienced this, do you have any suggestions on 
how to debug it further?
Thanks,
Greg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

I'm using the same setup as you less Apache2.  I use tomcat as the web 
server.  Using TC5.0.28 and JDK1.4.2_06, and I have yet to have the 
server crash once.  Not much help, but might give you some clues where 
to look.

Connector log (mod_proxyassuming you mean you're using the new 
connector code)is there anything in the Apache2 log?  I assume 
from your post you mean that the java process just completely goes 
away.  You might find (depending on the running directory of the java 
process running tomcat) a pid dump log file or something...not sure if 
the vm produces one of these or not.  You also might check in 
/var/log/messages file to see if for some reason the kernel or some 
lib got some error it logged.

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


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

No where that load on the system I wrote about though it stays up and I 
haven't rebooted the system or restarted the process in a good number of 
days.  It's only in the hundreds a day.

I have another application which runs over http using rpc with 
serialized classes, and it processes quite a bit of information, plus it 
spawns it's own threads.  It uses apache and/or iis as the front end. 
Though if it were up to me we would only be using tomcat.  We were using 
an ISAPI c++ application for everything at one time.  We are adding more 
and more functionality to it.  I'm sure it uses more process and memory 
resources as it will run backend import processes, a ton of logic 
processing, and report generation, and the pure nature of the 
application will have more hits a day with more fire power per hit than 
your web site.  In testing it hasn't crashed.

What are your memeory settings for your tomcat process?  If you don't 
give the process enough memory to do what it has to do it won't be able 
to behave correctly.  Though catalina.out should show you out of memory 
errors like that.  Have you used any testing environment to profile the 
system and gathered any information about the state of the machine when 
it will crash?  Have you been able to reproduce the issue with any valid 
results yet?  I'd be asking myself how best to do this.

You can write a simple application to test your web application, or you 
could purchase some software to hit a bunch of web pages.  Basically you 
can spawn a bunch of threads from a given machine randomly hitting 
different links and try to reproduce the issue if you don't have any 
real hard logic there to test.  Do you have any application logic in 
your site?  If so, do you perform any logging or anything of that 
nature?  You may be getting some exception you could have caught and 
logged yourself like an out of memory error before tomcat barfed out.

Something obviously has to be happening for the process to just go away. 
 Do you have to use Apache2 as a front end to the application?  If not 
see if you are able to produce the same issue using only tomcat.  Be 
sure you edit your memory settings for tomcat.  Don't try to run it in 
128MB of memory or something like that. ulimit is fine as far as linux 
goes, but you still need to be sure and not have any limits on the JVM. 
 For instance, the default value for -Xmx is 64 which means 64 mega 
bytes.

Depending on how much memory you have on your computer you probably want 
to up this (orin your case you definitely want to up this).  With 
that many hits you may very well be getting enough hits at the same time 
during the busy moments of the day to crash you out as I'm not sure how 
tomcat will behave if it is hammered and doesn't have any room to play. 
 You can add something like (granted you aren't already using -Xmx)
JAVA_OPTS=$JAVA_OPTS -Xmx1000m

to your catalina.sh file so that you can give tom

Re: Difficulty connecting to DB2 for iSeries from Tomcat 5.0.28

2004-12-20 Thread David Uctaa
I have 2 ResourceLink entries in context.xml because there are
databases on two different servers.  Is there another way to do that
reference?

The server.xml is configured as:


 
 
 
   
 paramName
 paramValue
   
 
 
   
 paramName
 paramValue
   
 


isn't this correct?




On Mon, 20 Dec 2004 11:42:38 -0800 (PST), sven morales
<[EMAIL PROTECTED]> wrote:
> Hi,
>I have not seen a context.xml file with those dual
> .  Furthermore, the way you have the
> Resource/ResourceParams defined under 
> seems to be not nested properly.
> 
> aka_sergio
> 
> --- David Uctaa <[EMAIL PROTECTED]> wrote:
> 
> > I am running Tomcat 5.0.28 on Win XP SP1.  We have
> > DB2 running on 2
> > iSeries servers.  When I attempt to look up a
> > DataSource from JNDI to
> > get a connection from it, the JNDI lookup is
> > returning null.
> >
> > I am using IBM's JTOpen library for the JDBC
> > drivers, and I am
> > attempting to use Tomcat to manage the connection
> > pooling.  I am
> > following the instructions I saw listed here:
> > http://www.itjungle.com/fhg/fhg060204-story01.html .
> >   I am trying the
> > first option, using the Commons DBCP connection
> > pool.
> >
> > I have attached copies of my server.xml and the
> > context configuration
> > file webappname.xml.  The code I am using to access
> > the data source is
> > pretty generic:
> >
> > Context initCtx = new InitialContext();
> > Context ctx = (Context)
> > initCtx.lookup("java:comp/env");
> > DataSource ds = (DataSource)
> > ctx.lookup("jdbc/myFirstDataSource");
> > Connection conn = ds.getConnection();
> >
> > It turns out the that ctx.lookup call is returning
> > null, as if it
> > can't find the JNDI resource, and I can't figure out
> > what I have
> > misconfigured.
> >
> > Any and all help will be greatly appreciated.
> > > 
> >  > docBase="WebAppName" path="/WebAppName"
> > privileged="true"
> > workDir="work\Catalina\localhost\webappname">
> >> name="jdbc/myFirstDataSource"
> > type="javax.sql.DataSource"/>
> >> name="jdbc/mySecondDataSource"
> > type="javax.sql.DataSource"/>
> > 
> >
> >
> > > 
> > 
> >>
> className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
> >>
> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
> >   
> >  >
> type="com.ibm.as400.access.AS400JDBCConnectionPoolDataSource"
> > auth="container" name="jdbc/myFirstDataSource"/>
> >  >
> type="com.ibm.as400.access.AS400JDBCConnectionPoolDataSource"
> > auth="container" name="jdbc/mySecondDataSource"/>
> > 
> >   
> > factory
> >
> >
> org.apache.catalina.users.MemoryUserDatabaseFactory
> >   
> >   
> > pathname
> > conf/tomcat-users.xml
> >   
> > 
> > 
> >   
> > factory
> >
> >
> org.apache.commons.dbcp.BasicDataSourceFactory
> >   
> >   
> > driverClassName
> >
> > com.ibm.as400.access.AS400JDBCDriver
> >   
> >   
> > url
> >
> >
> jdbc:as400://as400.oursite.com;prompt=false;naming=sql;trace=false;libraries=*LIBL
> > 
> >   
> >   
> > password
> > abcdefg
> >   
> >   
> > username
> > 123456
> >   
> >   
> > maxWait
> > 5000
> >   
> >   
> > maxActive
> > 4
> >   
> >   
> >   prompt
> >   false
> >   
> >   
> >   trace
> >   false
> >   
> >   
> >   naming
> >   system
> >   
> >   
> > maxIdle
> > 2
> >   
> > 
> > 
> >   
> > factory
> >
> >
> org.apache.commons.dbcp.BasicDataSourceFactory
> >   
> >   
> > driverClassName
> >
> > com.ibm.as400.access.AS400JDBCDriver
> >   
> >   
> > url
> >
> >
> jdbc:as400://abcde.oursite.com;prompt=false;naming=sql;trace=false;libraries=*LIBL
> > 
> >   
> >   
> > password
> > xyz
> >   
> >   
> > username
> > 98765
> >   
> >   
> > maxWait
> > 5000
> >   
> >   
> > maxActive
> > 4
> >   
> >   
> >   prompt
> >   false
> >   
> >   
> >   trace
> >   false
> >   
> >   
> >   naming
> >   system
> >   
> >   
> > maxIdle
> > 2
> >   
> > 
> >   
> >   
> >  > connectionTimeout="2"
> > disableUploadTimeout="true" port="8080"
> > redirectPort="8443" maxSpareThreads="75"
> > maxThreads="150" minSpareThreads="25">
> > 
> >  >
> protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
> > redirectPort="8443">
> > 
> > 
> >   
> >  > className="org.apache.catalina.logger.FileLogger"
> > prefix="localhost_log." suffix=".t

$CATALINA_BASE

2004-12-20 Thread Dwayne Ghant
Hello All,
Just a real quick question???
I'm in the process of configuring
more then one instance of tomcat .
How would I configure many instances?
of tomcat with the same
$CATALINA_BASE/bin
$CATALINA_BASE/conf
$CATALINA_BASE/log
.
.
.
.
etc.
--
Dwayne A. Ghant
Application Developer
Temple University
215.204.
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat/JVM crashes on Linux

2004-12-20 Thread Greg Lappen
What kind of load does your application handle?  I am not processing a 
HUGE amount of requests, but we server about 6000 visitors a day, 
15,000 pages.

Greg
On Dec 20, 2004, at 1:28 PM, Wade Chandler wrote:
Greg Lappen wrote:
Hello-
Has anyone had a problem with Tomcat 5.0.28 crashing on Linux with no 
error messages?
My production server running with JDK 1.4.2_06, RedHat EL 3.0 just 
crashes, no core dump, no errors in catalina.out, no clues.  
Sometimes it goes for days, sometimes it happens several times in one 
day.  I am running the tomcat process behind Apache 2 with mod_proxy. 
 Setting "ulimit -c unlimited" in the catalina.sh startup file still 
did not produce a core file.
If nobody else has experienced this, do you have any suggestions on 
how to debug it further?
Thanks,
Greg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I'm using the same setup as you less Apache2.  I use tomcat as the web 
server.  Using TC5.0.28 and JDK1.4.2_06, and I have yet to have the 
server crash once.  Not much help, but might give you some clues where 
to look.

Connector log (mod_proxyassuming you mean you're using the new 
connector code)is there anything in the Apache2 log?  I assume 
from your post you mean that the java process just completely goes 
away.  You might find (depending on the running directory of the java 
process running tomcat) a pid dump log file or something...not sure if 
the vm produces one of these or not.  You also might check in 
/var/log/messages file to see if for some reason the kernel or some 
lib got some error it logged.

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


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


Re: Tomcat/JVM crashes on Linux

2004-12-20 Thread Greg Lappen
When you say the problem was similar, did you also have no core dump or 
log messages, just a missing JVM process?  I am asking our hosting 
provider to test the server's RAM - I was going to do this before but 
since no other process ever crashes (Apache, MySql, etc.) we didn't 
think it could be the RAM.

Greg
On Dec 20, 2004, at 1:57 PM, Eric Rotick wrote:
I had a similar problem with an almost identical setup to yours which
turned out to be bad memory. An extra 1GB stick was added which had a
bad section in the top of the memory map. This memory only got used
when things got busy so everyone suspected some threading issue. We
got lucky and spotted something totally absurd in the logs which
prompted a memtest86 run and hey presto we got our answer.
On Mon, 20 Dec 2004 13:28:56 -0500, Wade Chandler
<[EMAIL PROTECTED]> wrote:
Greg Lappen wrote:
Hello-
Has anyone had a problem with Tomcat 5.0.28 crashing on Linux with no
error messages?
My production server running with JDK 1.4.2_06, RedHat EL 3.0 just
crashes, no core dump, no errors in catalina.out, no clues.  
Sometimes
it goes for days, sometimes it happens several times in one day.  I 
am
running the tomcat process behind Apache 2 with mod_proxy.  Setting
"ulimit -c unlimited" in the catalina.sh startup file still did not
produce a core file.

If nobody else has experienced this, do you have any suggestions on 
how
to debug it further?

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

I'm using the same setup as you less Apache2.  I use tomcat as the web
server.  Using TC5.0.28 and JDK1.4.2_06, and I have yet to have the
server crash once.  Not much help, but might give you some clues where
to look.
Connector log (mod_proxyassuming you mean you're using the new
connector code)is there anything in the Apache2 log?  I assume 
from
your post you mean that the java process just completely goes away.  
You
might find (depending on the running directory of the java process
running tomcat) a pid dump log file or something...not sure if the vm
produces one of these or not.  You also might check in 
/var/log/messages
file to see if for some reason the kernel or some lib got some error 
it
logged.

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

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


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


Re: Adding withOUT server restart?

2004-12-20 Thread Robert Hunt
Peter,

I added the mx4j-tools.jar to the classpath and  node as noted.  I 
had to add 'port="9050"' to the  node to skew it away from the 8009 
default.

But now I'm stuck; what front-end should be used?  You instructions conflict 
with what's found here: http://mc4j.sourceforge.net/usageTomcat.html



Re: Difficulty connecting to DB2 for iSeries from Tomcat 5.0.28

2004-12-20 Thread sven morales
Hi,
   I have not seen a context.xml file with those dual 
.  Furthermore, the way you have the
Resource/ResourceParams defined under 
seems to be not nested properly.  

aka_sergio

--- David Uctaa <[EMAIL PROTECTED]> wrote:

> I am running Tomcat 5.0.28 on Win XP SP1.  We have
> DB2 running on 2
> iSeries servers.  When I attempt to look up a
> DataSource from JNDI to
> get a connection from it, the JNDI lookup is
> returning null.
> 
> I am using IBM's JTOpen library for the JDBC
> drivers, and I am
> attempting to use Tomcat to manage the connection
> pooling.  I am
> following the instructions I saw listed here: 
> http://www.itjungle.com/fhg/fhg060204-story01.html .
>   I am trying the
> first option, using the Commons DBCP connection
> pool.
> 
> I have attached copies of my server.xml and the
> context configuration
> file webappname.xml.  The code I am using to access
> the data source is
> pretty generic:
> 
> Context initCtx = new InitialContext();
> Context ctx = (Context)
> initCtx.lookup("java:comp/env");
> DataSource ds = (DataSource)
> ctx.lookup("jdbc/myFirstDataSource");
> Connection conn = ds.getConnection();
> 
> It turns out the that ctx.lookup call is returning
> null, as if it
> can't find the JNDI resource, and I can't figure out
> what I have
> misconfigured.
> 
> Any and all help will be greatly appreciated.
> > 
>  docBase="WebAppName" path="/WebAppName"
> privileged="true"
> workDir="work\Catalina\localhost\webappname">
>name="jdbc/myFirstDataSource"
> type="javax.sql.DataSource"/>
>name="jdbc/mySecondDataSource"
> type="javax.sql.DataSource"/>
> 
> 
> 
> > 
> 
>   
className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
>   
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
>   
> 
type="com.ibm.as400.access.AS400JDBCConnectionPoolDataSource"
> auth="container" name="jdbc/myFirstDataSource"/>
> 
type="com.ibm.as400.access.AS400JDBCConnectionPoolDataSource"
> auth="container" name="jdbc/mySecondDataSource"/>
> 
>   
> factory
>
>
org.apache.catalina.users.MemoryUserDatabaseFactory
>   
>   
> pathname
> conf/tomcat-users.xml
>   
> 
> 
>   
> factory
>
>
org.apache.commons.dbcp.BasicDataSourceFactory
>   
>   
> driverClassName
>
> com.ibm.as400.access.AS400JDBCDriver
>   
>   
> url
> 
>
jdbc:as400://as400.oursite.com;prompt=false;naming=sql;trace=false;libraries=*LIBL
> 
>   
>   
> password
> abcdefg
>   
>   
> username
> 123456
>   
>   
> maxWait
> 5000
>   
>   
> maxActive
> 4
>   
>
>   prompt
>   false
>   
>
>   trace
>   false
>   
>
>   naming
>   system
>   
>   
> maxIdle
> 2
>   
> 
> 
>   
> factory
>
>
org.apache.commons.dbcp.BasicDataSourceFactory
>   
>   
> driverClassName
>
> com.ibm.as400.access.AS400JDBCDriver
>   
>   
> url
> 
>
jdbc:as400://abcde.oursite.com;prompt=false;naming=sql;trace=false;libraries=*LIBL
> 
>   
>   
> password
> xyz
>   
>   
> username
> 98765
>   
>   
> maxWait
> 5000
>   
>   
> maxActive
> 4
>   
>
>   prompt
>   false
>   
>
>   trace
>   false
>   
>
>   naming
>   system
>   
>   
> maxIdle
> 2
>   
> 
>   
>   
>  connectionTimeout="2"
> disableUploadTimeout="true" port="8080"
> redirectPort="8443" maxSpareThreads="75"
> maxThreads="150" minSpareThreads="25">
> 
> 
protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"
> redirectPort="8443">
> 
> 
>   
>  className="org.apache.catalina.logger.FileLogger"
> prefix="localhost_log." suffix=".txt"
> timestamp="true"/>
>   
>className="org.apache.catalina.logger.FileLogger"
> prefix="catalina_log." suffix=".txt"
> timestamp="true"/>
>   
className="org.apache.catalina.realm.UserDatabaseRealm"/>
> 
>   
> 
> 
> 
> >
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
[EMAIL PROTECTED]




__ 
Do you Yahoo!? 
Send a seasonal email greeting and help others. Do good. 
http://celebrity.mail.yahoo.com

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



Re: filterStart error on Tomcat but not on Sun 8

2004-12-20 Thread Nat Gross
Shheesh. I see my post contained garbage chars. (I simply copied - 
pasted from IE.
Anyhow, how do I go about diagnosing this problem?

19/12/2004 13:33:56 org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart   
19/12/2004 13:33:56 org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors

http://java.sun.com/xml/ns/j2ee";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
   
   LogtrackFilter
   ez.servlets.filters.LogtrackFilter
   
   
   LogtrackFilter
   /*
   
Thanks again, -nat.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: MYSQL Authentication

2004-12-20 Thread Fredrik Liden
Hey M,

Yes it does using JDBCRealm. Instructions are here:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/realm-howto.html#JDBCRea
lm

-Fredrik


-Original Message-
From: Michael Hamilton [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 20, 2004 10:56 AM
To: Tomcat Users List
Subject: MYSQL Authentication


I have a servlet that I do custom authentication with on the backend,
but I want to move this MYSQL authentication into Tomcat. Does Tomcat
support user authentication from a database?

-M


-
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/JVM crashes on Linux

2004-12-20 Thread Eric Rotick
I had a similar problem with an almost identical setup to yours which
turned out to be bad memory. An extra 1GB stick was added which had a
bad section in the top of the memory map. This memory only got used
when things got busy so everyone suspected some threading issue. We
got lucky and spotted something totally absurd in the logs which
prompted a memtest86 run and hey presto we got our answer.


On Mon, 20 Dec 2004 13:28:56 -0500, Wade Chandler
<[EMAIL PROTECTED]> wrote:
> Greg Lappen wrote:
> > Hello-
> >
> > Has anyone had a problem with Tomcat 5.0.28 crashing on Linux with no
> > error messages?
> >
> > My production server running with JDK 1.4.2_06, RedHat EL 3.0 just
> > crashes, no core dump, no errors in catalina.out, no clues.  Sometimes
> > it goes for days, sometimes it happens several times in one day.  I am
> > running the tomcat process behind Apache 2 with mod_proxy.  Setting
> > "ulimit -c unlimited" in the catalina.sh startup file still did not
> > produce a core file.
> >
> > If nobody else has experienced this, do you have any suggestions on how
> > to debug it further?
> >
> > Thanks,
> >
> > Greg
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> 
> I'm using the same setup as you less Apache2.  I use tomcat as the web
> server.  Using TC5.0.28 and JDK1.4.2_06, and I have yet to have the
> server crash once.  Not much help, but might give you some clues where
> to look.
> 
> Connector log (mod_proxyassuming you mean you're using the new
> connector code)is there anything in the Apache2 log?  I assume from
> your post you mean that the java process just completely goes away.  You
> might find (depending on the running directory of the java process
> running tomcat) a pid dump log file or something...not sure if the vm
> produces one of these or not.  You also might check in /var/log/messages
> file to see if for some reason the kernel or some lib got some error it
> logged.
> 
> Wade
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



RE: extra directory in WebDAV servlet listing

2004-12-20 Thread Mark Thomas
The extra directory problem is now fixed in CVS for TC4.1.x and TC5.5.x

I'll look at the arbitrary file system root next.

Mark



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



MYSQL Authentication

2004-12-20 Thread Michael Hamilton
I have a servlet that I do custom authentication with on the backend,
but I want to move this MYSQL authentication into Tomcat. Does Tomcat
support user authentication from a database?

-M


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



Difficulty connecting to DB2 for iSeries from Tomcat 5.0.28

2004-12-20 Thread David Uctaa
I am running Tomcat 5.0.28 on Win XP SP1.  We have DB2 running on 2
iSeries servers.  When I attempt to look up a DataSource from JNDI to
get a connection from it, the JNDI lookup is returning null.

I am using IBM's JTOpen library for the JDBC drivers, and I am
attempting to use Tomcat to manage the connection pooling.  I am
following the instructions I saw listed here: 
http://www.itjungle.com/fhg/fhg060204-story01.html .   I am trying the
first option, using the Commons DBCP connection pool.

I have attached copies of my server.xml and the context configuration
file webappname.xml.  The code I am using to access the data source is
pretty generic:

Context initCtx = new InitialContext();
Context ctx = (Context) initCtx.lookup("java:comp/env");
DataSource ds = (DataSource) ctx.lookup("jdbc/myFirstDataSource");
Connection conn = ds.getConnection();

It turns out the that ctx.lookup call is returning null, as if it
can't find the JNDI resource, and I can't figure out what I have
misconfigured.

Any and all help will be greatly appreciated.


  
  





  
  
  



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


  
factory
org.apache.commons.dbcp.BasicDataSourceFactory
  
  
driverClassName
com.ibm.as400.access.AS400JDBCDriver
  
  
url
	jdbc:as400://as400.oursite.com;prompt=false;naming=sql;trace=false;libraries=*LIBL

  
  
password
abcdefg
  
  
username
123456
  
  
maxWait
5000
  
  
maxActive
4
  
   
  	prompt
  	false
  
   
  	trace
  	false
  
   
  	naming
  	system
  
  
maxIdle
2
  


  
factory
org.apache.commons.dbcp.BasicDataSourceFactory
  
  
driverClassName
com.ibm.as400.access.AS400JDBCDriver
  
  
url
	jdbc:as400://abcde.oursite.com;prompt=false;naming=sql;trace=false;libraries=*LIBL

  
  
password
xyz
  
  
username
98765
  
  
maxWait
5000
  
  
maxActive
4
  
   
  	prompt
  	false
  
   
  	trace
  	false
  
   
  	naming
  	system
  
  
maxIdle
2
  

  
  





  

  
  
  

  



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

Re: Tomcat/JVM crashes on Linux

2004-12-20 Thread Wade Chandler
Greg Lappen wrote:
Hello-
Has anyone had a problem with Tomcat 5.0.28 crashing on Linux with no 
error messages?

My production server running with JDK 1.4.2_06, RedHat EL 3.0 just 
crashes, no core dump, no errors in catalina.out, no clues.  Sometimes 
it goes for days, sometimes it happens several times in one day.  I am 
running the tomcat process behind Apache 2 with mod_proxy.  Setting 
"ulimit -c unlimited" in the catalina.sh startup file still did not 
produce a core file.

If nobody else has experienced this, do you have any suggestions on how 
to debug it further?

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

I'm using the same setup as you less Apache2.  I use tomcat as the web 
server.  Using TC5.0.28 and JDK1.4.2_06, and I have yet to have the 
server crash once.  Not much help, but might give you some clues where 
to look.

Connector log (mod_proxyassuming you mean you're using the new 
connector code)is there anything in the Apache2 log?  I assume from 
your post you mean that the java process just completely goes away.  You 
might find (depending on the running directory of the java process 
running tomcat) a pid dump log file or something...not sure if the vm 
produces one of these or not.  You also might check in /var/log/messages 
file to see if for some reason the kernel or some lib got some error it 
logged.

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


Re: Tomcat 5.5 classloading blues

2004-12-20 Thread Andreas Vombach
Yes, if you look into the commons-dbcp 1.2.1 source, 
BasicDataSource.java, line 757 ff:

   // Load the JDBC driver class
   if (driverClassName != null) {
   try {
   Class.forName(driverClassName);
   } catch (Throwable t) {
   String message = "Cannot load JDBC driver class '" +
   driverClassName + "'";
   logWriter.println(message);
   t.printStackTrace(logWriter);
   throw new SQLNestedException(message, t);
   }
   }
I think this is the one being used in tomcat 5.5.4.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat/JVM crashes on Linux

2004-12-20 Thread Greg Lappen
Hello-
Has anyone had a problem with Tomcat 5.0.28 crashing on Linux with no 
error messages?

My production server running with JDK 1.4.2_06, RedHat EL 3.0 just 
crashes, no core dump, no errors in catalina.out, no clues.  Sometimes 
it goes for days, sometimes it happens several times in one day.  I am 
running the tomcat process behind Apache 2 with mod_proxy.  Setting 
"ulimit -c unlimited" in the catalina.sh startup file still did not 
produce a core file.

If nobody else has experienced this, do you have any suggestions on how 
to debug it further?

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


Re: Tomcat 5.5 classloading blues

2004-12-20 Thread Jacob Kjome
Quoting Andreas Vombach <[EMAIL PROTECTED]>:

> Hello, I'm new to the list and did not read this thread from the
> beginning but also use tapestry (3.0) on tomcat.
> I keep tapestry-3.0.jar and tapestry-contrib-3.0.jar in the lib dir of
> the (to be deployed) war file, the rest goes to /shared/lib except
> xercesImpl.jar and xml-apis.jar which go in /common/endorsed (very
> special case)
> The classloading problem I ran into was on the dbms side, jdbc drivers
> should go into /common/lib if you want to use pooling because the dbcp
> stuff resides here.
> The class.forName() call is mostly the reason for these troubles because
> it relies on the current classloader ...
>

Which is why you should always do..

Class.forName("com.mypackage.SomeClass", true,
Thread.currentThread().getContextClassLoader());

Jake

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



autodeploy

2004-12-20 Thread Andreas Vombach
For some reason if I use a db pool the auto-deploy of war files does not 
seem to work anymore. The change in the server.xml is that the 
jndi-ressources have to be declared.
Are there any known influences? The dbcp only works if I declare it for 
my app, a "global" one is not being found.

 
   
   
   
   
   
 
   
 
   
 
 
   
 

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


Admin app fails with "MBeanServer is not available"

2004-12-20 Thread Andy Cohen
I've searched the mailing list archives, and the net at large, but I haven't
seen anyone report this problem for Tomcat 5:

I downloaded and installed Tomcat 5.5.4, and version 5.5.4 of the Admin
webapp. The Admin webapp starts up fine, but when I click on the
"Environment Entries" button in the Admin webapp, I get the error message
which I've appended to this email. I've tried downloading various
incarnations of JMX jars, and putting them in various Tomcat folders, as
some archived messages recommended for this problem under Tomcat 4.x, but
to no avail.

Is this a real bug, or am I just doing something wrong?

Thanks for any help,

Andy Cohen
System Software Developer
[EMAIL PROTECTED]



HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

javax.servlet.ServletException: MBeanServer is not available

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:845)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:778)

admin.resources.listEnvEntries_jsp._jspService(listEnvEntries_jsp.java:437)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

javax.servlet.jsp.JspException: MBeanServer is not available
org.apache.webapp.admin.AttributeTag.doEndTag(AttributeTag.java:163)

admin.resources.listEnvEntries_jsp._jspx_meth_controls_attribute_0(listEnvEntries_jsp.java:766)

admin.resources.listEnvEntries_jsp._jspService(listEnvEntries_jsp.java:380)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:388)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:231)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

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



Re: Tomcat 5.5 classloading blues

2004-12-20 Thread Andreas Vombach
Hello, I'm new to the list and did not read this thread from the 
beginning but also use tapestry (3.0) on tomcat.
I keep tapestry-3.0.jar and tapestry-contrib-3.0.jar in the lib dir of 
the (to be deployed) war file, the rest goes to /shared/lib except 
xercesImpl.jar and xml-apis.jar which go in /common/endorsed (very 
special case)
The classloading problem I ran into was on the dbms side, jdbc drivers 
should go into /common/lib if you want to use pooling because the dbcp 
stuff resides here.
The class.forName() call is mostly the reason for these troubles because 
it relies on the current classloader ...

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


Re: Change value of Header Server

2004-12-20 Thread Tim Funk
Its a Connector attribute. In 5.5.3 or better.
server="WayTooParanoid/1.618"
-Tim
Andras Balogh wrote:
Hello,
   We are running a web application with Tomcat5.0.
As i have seen Tomcat returns this as Response Headers:
"Server: Apache-Coyote/1.1"
   It is possible to change this value? According to some this is a 
security issue showing what
Server we are using ( i don't agree with that).

Can you help me?
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Change value of Header Server

2004-12-20 Thread Andras Balogh
Hello,
   We are running a web application with Tomcat5.0.
As i have seen Tomcat returns this as Response Headers:
"Server: Apache-Coyote/1.1"
   It is possible to change this value? According to some this is a 
security issue showing what
Server we are using ( i don't agree with that).

Can you help me?
Thank You and best regards,
Andras.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5.5 classloading blues

2004-12-20 Thread Henrik Vendelbo
>  >Everything ran great. I got Tapestry examples working fine.
>  >
>  >And then based on working web apps, I moved some of the Tapestry jars
into
>  >shared/lib. All of a sudden the classloader couldn't find
>  >ServletInputStream.
>
> That's a bit bizarre

Exactly my point. I know that if you have multiple servlet-api.jars in the
class path you get that sort of error, so I verified about a hundred times
that I hadn't, and then decided to get some better logging output to figure
out what went wrong.

>
>  >Then I realised that I needed to install commons logging and log4j to
get
>  >proper logging, so I put them in commons as described. Now I get a
>  >NoClassDefFound on LogFactory instead.
>  >
>
> Did you put commons-logging.jar (*not* commons-logging-api.jar) along
> with logj4-jar in common/lib?  And did you make sure you webapp doesn't
> contain another copy of commons-logging.jar in WEB-INF/lib?

Yes I moved commons-logging-1.0.4.jar into the commons/lib along with
log4j-1.2.8, and renamed to WEB-INF/lib to no-lib (Shouldnt be needing
anything really)

>
>  >1) The logging guide advises to put the jars in commons, why not put
them in
>  >server/lib and in the invidual WEB-INF/lib to get per webapp log files
and
>  >no risk of classloading issues ?
>  >
>
> First, this assumes that the server applies child-first classloading
> behavior which is recommended by the servlet spec, but not
> mandated.  Tomcat implements this, and I actually like that it does, but
> most other servers I know of either don't provide for it or provide it as
a
> non-default option.  This means that putting your logging jars in
> WEB-INF/lib does not guarantee per-webapp log files unless you stick to
> Tomcat.  This can be better accomplished by using a repository selector in
> Log4j (especially when Log4j-1.3 is released as it makes usage of such
> selectors much easier).
> http://wiki.apache.org/logging-log4j/AppContainerLogging

Well, I just wondered why the Tomcat docs were not at least explaining such
considerations. Others have warned against the repository selector until 1.3
comes out. And I'm sure that I am not the only one who would want seperate
logging facilities working painlessly in their current environment.

Thanks for the input,

Henrik



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



Re: <%@page isThreadSafe="false" %> does not work

2004-12-20 Thread Kurt Overberg
I have a situation in my webapp where the user (administrator) can 'Publish' 
items.  I need to make it so only one person can 'publish' at a time.  Would 
this be a valid use of 'isThreadSafe'?  Would it make user #2 wait until the 
page had finished processing for user #1?  It would save me from writing a bunch 
of messy locking code.  Thanks!

/kurt
Shapira, Yoav wrote:
Hi,
Don't rely on SingleThreadModel, it's more than deprecated: it's evil.
Don't use the isThreadSafe directive, don't use SingleThreadModel.
Yoav Shapira http://www.yoavshapira.com
 


-Original Message-
From: zerol tib [mailto:[EMAIL PROTECTED]
Sent: Monday, December 06, 2004 10:23 AM
To: [EMAIL PROTECTED]
Subject: <[EMAIL PROTECTED] isThreadSafe="false" %> does not work
Howdy,
I compared two servlets' source code compiled from JSPs,
at the beginning of  one jsp I add page directive:
<[EMAIL PROTECTED] isThreadSafe="false" %>
and  the other, <[EMAIL PROTECTED] isThreadSafe="true" %>.
But the two servlet are the same , I had thought the first
servlet will implement interface SingleThreadModel, but it
didn't. Could anyone give me a hint?
BTW, jsp compiler (Lomboz) says SingleThreadModel
is deprecated.
Thanks in advance.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

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


Re: mod_jk2 future?

2004-12-20 Thread g . lams
Actually I don't remember.
When we decided to use Tomcat instead of Websphere a few months ago, I 
read quite a lot of documentation/articles (I'm not a developer, but the 
systems' administrator of our linux servers). I just remember reading the 
following line because I saved it: ""jk2 is a refactoring of mod_jk and 
uses the Apache Portable Runtime (apr). If you are using Apache 2.0, 
you'll might want to use jk2".
Also in the tomcat-connector documentation, 
http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/index.html , 
(now in archive but not at the time of my readings): 
"JK2 is a refactoring of JK and is much more powerfull."
and then
"Even if it works with Apache 1.3, JK2 has been developed with Apache 2.0 
in mind, "
and
"JK2 improves the modularity and has a better separation between protocol 
and physical layer". 

So at that time the impression was really of JK2 being the successor of JK

I will check with the developpers team whether switching from JK2 to JK 
could be a problem but is there any known issues in switching from one 
connector to the other (apart for the configuration files)

Thank you all for your answers and have a nice day

Gaël

QM <[EMAIL PROTECTED]> wrote on 20/12/2004 12.58.30:

> On Mon, Dec 20, 2004 at 12:16:51PM +0100, [EMAIL PROTECTED] wrote:
> : Tomcat), Tomcat-5.0.28, configured with mod_jk2 because I read that 
md_jk2
> : was the connector to use with apache 2.x.x
> 
> Where did you read this? 
> I ask because plain mod_jk (aka version 1) works just fine with Apache
> 2.x.  A lot of people went through the hassles of setting up jk2 just to
> use Apache 2.x, and for no good reason.
> 
> -QM
> 
> -- 
> 
> software  -- http://www.brandxdev.net
> tech news -- http://www.RoarNetworX.com
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: strange tomcat Behavior need urgent help.

2004-12-20 Thread Parsons Technical Services
The pool manager built into Tomcat handles this just fine. Also ensure you 
have the latest drivers.

Doug
- Original Message - 
From: "Eric Rotick" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, December 20, 2004 7:39 AM
Subject: Re: strange tomcat Behavior need urgent help.


This is a MySql problem. It shuts down connections if they have been
idle for too long. You need a pool manager that takes care of this.
Something like c3p0 will do the job.
On Sun, 19 Dec 2004 12:28:09 + (GMT), Krishnakant Mane
<[EMAIL PROTECTED]> wrote:

hello all,
I am Krishnakant Mane from India.  I own a software
firm and we generally implement our systems on linux
and all open source servers like jakarta tomcat and
apache server in particular.  of late I have been
facing a strange problem with tomcat.
I am a tomcat 5 aka 5.0.25 user.  I have deployed an
database based application using mysql as the
back-end.  I use mysql jdbc driver to connect to the
database.
the application runs fine for a long time.  I check it
personally for the entire day.  since our developers
work on the server the entire day, I am sure there is
that it works.  but when we shut our office and come
next day morning, the application does not respond.
what could be the problem.
it is strange to see that when the server is under
some kind of a small work load it works absolutely
fine.  but when we don't touch it for the entire night
the thing sympally does not work.  does tomcat also
require warm-up?  haha.
by the way, I have kept the jdbc (jar) library in the
common/lib directory as all my applications are
database based.  is it the right thing to do?
and lastly what steps should I take to avoid the above
mentioned problem.  one thing I will like to mention.
when the application give problem in the morning, it
responds with just the title and when it comes to the
database connection it gets stuck I believe.  but when
I run some console app with the same jdbc driver it
properly connects to the same database/table.  and the
application works fine when I reload again.
Please provide some valuable feedback
thanks
Krishnakant.
___
Win a castle for NYE with your mates and Yahoo! Messenger
http://uk.messenger.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


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


Re: strange tomcat Behavior need urgent help.

2004-12-20 Thread Eric Rotick
This is a MySql problem. It shuts down connections if they have been
idle for too long. You need a pool manager that takes care of this.
Something like c3p0 will do the job.


On Sun, 19 Dec 2004 12:28:09 + (GMT), Krishnakant Mane
<[EMAIL PROTECTED]> wrote:
> 
> 
> hello all,
> I am Krishnakant Mane from India.  I own a software
> firm and we generally implement our systems on linux
> and all open source servers like jakarta tomcat and
> apache server in particular.  of late I have been
> facing a strange problem with tomcat.
> I am a tomcat 5 aka 5.0.25 user.  I have deployed an
> database based application using mysql as the
> back-end.  I use mysql jdbc driver to connect to the
> database.
> the application runs fine for a long time.  I check it
> personally for the entire day.  since our developers
> work on the server the entire day, I am sure there is
> that it works.  but when we shut our office and come
> next day morning, the application does not respond.
> what could be the problem.
> it is strange to see that when the server is under
> some kind of a small work load it works absolutely
> fine.  but when we don't touch it for the entire night
> the thing sympally does not work.  does tomcat also
> require warm-up?  haha.
> by the way, I have kept the jdbc (jar) library in the
> common/lib directory as all my applications are
> database based.  is it the right thing to do?
> and lastly what steps should I take to avoid the above
> mentioned problem.  one thing I will like to mention.
> when the application give problem in the morning, it
> responds with just the title and when it comes to the
> database connection it gets stuck I believe.  but when
> I run some console app with the same jdbc driver it
> properly connects to the same database/table.  and the
> application works fine when I reload again.
> Please provide some valuable feedback
> thanks
> Krishnakant.
> 
> 
> ___
> Win a castle for NYE with your mates and Yahoo! Messenger
> http://uk.messenger.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: Adding withOUT server restart?

2004-12-20 Thread Peter Rossbach
Hello Robert,
you can to this via JMX MBeanFactory ( createStandardHost, 
removeStandardHost).

  public String createStandardHost(String parent, String name,
String appBase, boolean autoDeploy,
boolean deployXML, boolean 
liveDeploy, 
boolean unpackWARs,
boolean xmlNamespaceAware,
boolean xmlValidation)

Parent is the Service MBean ( example "Catalina:type=Service")
You can configure a JMX Http Adaptor
Add mx4j-tools.jar at bin/setClassPath.sh - CLASSPATH
Configure the JMX Http Adaptor at your server.xml
   

Access the MBeans via http://localhost:9050 and search for the MBeanFactory.
regards
Peter
Robert Hunt schrieb:
Is there a way/example to add a virtual host programmatically *WITHOUT* having to edit 
server.xml (adding another  node) and restarting the server?  (If you're about to 
say, "Use the admin web app", then see this: 
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg143691.html )
[TC 5.0.25 on Win XP]
 


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


Re: mod_jk2 future?

2004-12-20 Thread QM
On Mon, Dec 20, 2004 at 12:16:51PM +0100, [EMAIL PROTECTED] wrote:
: Tomcat), Tomcat-5.0.28, configured with mod_jk2 because I read that md_jk2
: was the connector to use with apache 2.x.x

Where did you read this?  
I ask because plain mod_jk (aka version 1) works just fine with Apache
2.x.  A lot of people went through the hassles of setting up jk2 just to
use Apache 2.x, and for no good reason.

-QM

-- 

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


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



Re: Preparing for subfolder/subaddresses

2004-12-20 Thread QM
On Mon, Dec 20, 2004 at 06:10:59PM +0700, Peter Lauri wrote:
: I am developing a web application that will in the end consist of three
: subdomains:
: 
: wap.mydomain.com
: www.mydomain.com
: client.mydomain.com
: 
: How do I create the general folder structure for this? They will all have
: separate servlets, but their general classes will be common.

By "folder structure," do you mean your development area or deployment
area?  

For deployment: three separate WAR files, one for each logical webapp
(subdomain).

For development: whatever you do here, resist the temptation to put the
common code in shared/lib or common/lib.  Put that code under each
webapp's WEB-ING/lib to make them as self-contained and portable as
possible.

-QM

-- 

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


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



RE: mod_jk2 future?

2004-12-20 Thread Dale, Matt

The recommended ways to go are JK or mod_proxy_ajp.

Ta
Matt

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 20 December 2004 11:17
To: [EMAIL PROTECTED]
Subject: mod_jk2 future?


Hi all,

I've a jsp-based application (interface to an oracle db) that will go in 
production in January. The server is actually configured this way:
SuSe 9.0, Apache 2.0.48 (with a virtual host redirecting everything to 
Tomcat), Tomcat-5.0.28, configured with mod_jk2 because I read that md_jk2 
was the connector to use with apache 2.x.x

I read (by chance?) somewhere on the jakarta web site that mod_jk2 (aka 
JK2) is officially unsupported since mid-November.

At this point I'm not sure what to do: should I use JK? Should I stay with 
mod_jk2 and wait for its successor which should be (??) within the core 
Apache distribution?

Any advice would be greatly appreciated

Regards,

Gaël

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

Re: mod_jk2 future?

2004-12-20 Thread Mladen Turk
[EMAIL PROTECTED] wrote:
I read (by chance?) somewhere on the jakarta web site that mod_jk2 (aka 
JK2) is officially unsupported since mid-November.

Well, it is actually not supported for a much longer time :).
At this point I'm not sure what to do: should I use JK? Should I stay with 
mod_jk2 and wait for its successor which should be (??) within the core 
Apache distribution?

Any advice would be greatly appreciated
If you already have a configured server that is working and you face
no problems, stay with JK2, but be prepared for no support.
If not use JK, cause JK2 successor (proxy_ajp) will not be available for
Apache2.0, but rater for the upcoming Apache2.1/2.2
Regards,
Mladen.

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


mod_jk2 future?

2004-12-20 Thread g . lams
Hi all,

I've a jsp-based application (interface to an oracle db) that will go in 
production in January. The server is actually configured this way:
SuSe 9.0, Apache 2.0.48 (with a virtual host redirecting everything to 
Tomcat), Tomcat-5.0.28, configured with mod_jk2 because I read that md_jk2 
was the connector to use with apache 2.x.x

I read (by chance?) somewhere on the jakarta web site that mod_jk2 (aka 
JK2) is officially unsupported since mid-November.

At this point I'm not sure what to do: should I use JK? Should I stay with 
mod_jk2 and wait for its successor which should be (??) within the core 
Apache distribution?

Any advice would be greatly appreciated

Regards,

Gaël

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



Preparing for subfolder/subaddresses

2004-12-20 Thread Peter Lauri
Best groupmember,

I am developing a web application that will in the end consist of three
subdomains:

wap.mydomain.com
www.mydomain.com
client.mydomain.com

client will all be run over HTTPS, others HTTP.

How do I create the general folder structure for this? They will all have
separate servlets, but their general classes will be common.

-- Best of Times
Peter Lauri


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



RE: how to include web.xml in war file

2004-12-20 Thread Sann Maung
Hi,

Thanks. Now I get the idea and trying.

But here is my extract of build.xml









I put my web.xml in /src/web.xml
I can now include the web.xml in the my app.war file.
But I found it to be in different place.

It should be under myapp/WEB-INF/web.xml
but
I found it at myapp/WEB-INF/classes/web.xml


Please help me to find out the problem.
My application is a very simple one with only one java
file.

thanks,




--- "Goel, Manish Kumar" <[EMAIL PROTECTED]>
wrote:

> for web.xml u need webxml attribute inside war tag
> like this:
> 
> 
> 
>  webxml="src/metadata/myapp.xml">
>   
>   
>   
> 
>   
>   
>  prefix="images"/>
> 
> 
> cheers
> Manish
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: Sann Maung [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 20, 2004 10:33 AM
> To: [EMAIL PROTECTED]
> Subject: how to include web.xml in war file
> 
> 
> Hi,
> 
> I am using "Ant" to create the ".war" files for
> deployment. But I noticed that inside the package,
> "web.xml" is not included. Is it supposed to be that
> way or am I missing some steps to create web.xml?
> 
> 
> 
> rgds,
> 
> 
> 
> 
> __
> Do you Yahoo!?
> Meet the all-new My Yahoo! - Try it today!
> http://my.yahoo.com
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
***
> Information contained in this email message is
> intended only for use of the
> individual or entity named above. If the reader of
> this message is not the
> intended recipient, or the employee or agent
> responsible to deliver it to
> the intended recipient, you are hereby notified that
> any dissemination,
> distribution or copying of this communication is
> strictly prohibited. If you
> have received this communication in error, please
> immediately notify the
> [EMAIL PROTECTED] and destroy the original
> message.
>
**
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

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



[ANN] Jakarta Tomcat Connectors 1.2.8-rc-1 released

2004-12-20 Thread Mladen Turk
The Apache Jakarta Tomcat team is proud to announce the immediate 
availability of Jakarta Tomcat Connectors 1.2.8-rc-1
(Relase Canditate 1).

We expect it to be ratified as a Stable release when the vote takes 
place in the next week.

Please see the 
http://jakarta.apache.org/tomcat/connectors-doc/changelog.html
for a full list of changes.

You can download sources from:
http://www.apache.org/dist/jakarta/tomcat-connectors/jk/source
The binaries (for WIN32 only at the moment) are availabe at:
http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32/
The Jakarta Tomcat Connectors Team
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]