Problem with ConnectionPool on Linux

2003-11-11 Thread Veselin Kovacevic
Hi,

I have o problem with Tomcat 4.1.24 on SuseLinux7.3. Our application has
Controller servlet (below) where using connection objects from
connection pool. When tomcat started, application working fine and
everything OK that day. But next day when we try to start application we
get error message in isUser method (PortalUserDB class). It's first
place where we use connection object in application. Method isUser is
very simple method for authenticate user (below).
We get this exception: 
SQL Exception:java.sql.SQLException: No operations allowed after
connection closed

Connection object is not null in this case, and this message for me is
not correct.
Next, if I restart tomcat, everything working ok... (for next day).

On windows (we using windows for development platform) we have not this
problem.

What is problem? 
Is configuration server.xml or similar configuration files on Linux
different rather on windows?

Note:
On both platform we using Tomcat 4.1.24 and j2sdk1.4.1_03.


public class Controller extends HttpServlet {   

private DataSource ds;

public void init(ServletConfig config) throws ServletException {
super.init(config);
try {
InitialContext initCtx = new InitialContext();
Context envCtx =
(Context)initCtx.lookup("java:comp/env"); 
ds =
(DataSource)envCtx.lookup("jdbc/MySQLPool");
} catch (Exception e){
throw new UnavailableException(e.getMessage());
}
}

public void doGet(HttpServletRequest request,
HttpServletResponse response)
  throws IOException,
ServletException {

request.setCharacterEncoding("iso-8859-2");




if (ds != null) {
Connection conn = ds.getConnection();
if (conn != null) {
boolean isUserExists =
PortalUserDB.isUser(conn, userName, userPass);


conn.close();
}



}
}

public static boolean isUser(Connection conn, String userName, String
userPass)
throws SQLException, IOException {

String query = "SELECT user_name FROM admin_user " +
   "WHERE user_name = ? " +
"AND user_pass = ?";

boolean isUserExists = false;

try {
PreparedStatement pstmt = conn.prepareStatement(query);
pstmt.setString(1, userName);
pstmt.setString(2, userPass);

ResultSet rs = pstmt.executeQuery();

isUserExists = rs.next();

rs.close();
rs = null;
pstmt.close();
pstmt = null;

} catch (SQLException sqle) {
PortalLog.addLogLine("Class: PortalUserDB, Method:
isUser. SQL Exception:" + sqle, userName);
}

return isUserExists;
}

Thanks,
Veso

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



RE: Obtaining JK2 binaries for Linux

2003-11-05 Thread patrick . refondini
Quoting Andy Eastham <[EMAIL PROTECTED]>:

Thanks a million, just a few lines but it helped me a lot :)

I succeeded in building mod_jk2.so, jkjni.so 
I had to download apache to get the missing apxs.

Now getting busy testing ... Thanks again, Patrick


> Patrick,
> 
> I found this, but I did manage to compile them from source.
> 
> Unfortunately my notes don't seem to be that good, but here they are:
> build mod_jk2:
> 
> download connector src:
> jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz
> 
> gunzip and untar
> cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2
> ./configure --with-apxs2=/usr/local/apache2/bin/apxs
> --with-java-home=/usr/j
> ava/j2sdk1.4.2
> make
> 
> Built libraries are:
> jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz/jk/build/jk2/apache2/mod_jk2.
> so
> jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz/jk/build/jk2/apache2/jkjni.so
> 
> Copy these libraries into /usr/local/apache2/modules
> cp jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2/mod_jk2.so
> /usr/local/apache2/modules/
> cp jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2/jkjni.so
> /usr/local/apache2/modules/
> 
> Perhaps the options in "configure" above may be helpful?
> 
> Andy
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: 05 November 2003 12:11
> > To: Tomcat Users List
> > Subject: Obtaining JK2 binaries for Linux
> >
> >
> > Hi,
> > I try to set up JK2 for Apache/2.0.40 - Jakarta-Tomcat-4.1.29 on
> > RedHat Linux 9.0.
> >
> > I cannot find the binary distribution for the connector, or
> > cannot access it !
> > The only binary distributions availables are for Solaris and Windows :(
> >
> > I am based in Switzerland and wonder if the "smart" mirrors
> > redirection process
> > head me to an incomplete mirror ? I tried directly accessing this
> > URL found on
> > some doc (outside Apache.org):
> >
> > http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/rele
> ase/v1.2.2/bin/linux/i386/
> 
> But keep on being redirected to the official Apache binary download page.
> 
> I also tried building the connector from source
> (jakarta-tomcat-connectors-jk2-2.0.2-src) but can't manage to have it done.
> 
> Any link, advice appreciated
> 
> Patrick
> 
> 
> 
> -
> 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: Obtaining JK2 binaries for Linux

2003-11-05 Thread Andy Eastham
Patrick,

I found this, but I did manage to compile them from source.

Unfortunately my notes don't seem to be that good, but here they are:
build mod_jk2:

download connector src:
jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz

gunzip and untar
cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-java-home=/usr/j
ava/j2sdk1.4.2
make

Built libraries are:
jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz/jk/build/jk2/apache2/mod_jk2.
so
jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz/jk/build/jk2/apache2/jkjni.so

Copy these libraries into /usr/local/apache2/modules
cp jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2/mod_jk2.so
/usr/local/apache2/modules/
cp jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2/jkjni.so
/usr/local/apache2/modules/

Perhaps the options in "configure" above may be helpful?

Andy

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 05 November 2003 12:11
> To: Tomcat Users List
> Subject: Obtaining JK2 binaries for Linux
>
>
> Hi,
> I try to set up JK2 for Apache/2.0.40 - Jakarta-Tomcat-4.1.29 on
> RedHat Linux 9.0.
>
> I cannot find the binary distribution for the connector, or
> cannot access it !
> The only binary distributions availables are for Solaris and Windows :(
>
> I am based in Switzerland and wonder if the "smart" mirrors
> redirection process
> head me to an incomplete mirror ? I tried directly accessing this
> URL found on
> some doc (outside Apache.org):
>
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/rele
ase/v1.2.2/bin/linux/i386/

But keep on being redirected to the official Apache binary download page.

I also tried building the connector from source
(jakarta-tomcat-connectors-jk2-2.0.2-src) but can't manage to have it done.

Any link, advice appreciated

Patrick



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



Obtaining JK2 binaries for Linux

2003-11-05 Thread inaminute
Hi,
I try to set up JK2 for Apache/2.0.40 - Jakarta-Tomcat-4.1.29 on RedHat Linux 9.0.

I cannot find the binary distribution for the connector, or cannot access it !
The only binary distributions availables are for Solaris and Windows :(

I am based in Switzerland and wonder if the "smart" mirrors redirection process
head me to an incomplete mirror ? I tried directly accessing this URL found on
some doc (outside Apache.org):

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.2/bin/linux/i386/

But keep on being redirected to the official Apache binary download page.

I also tried building the connector from source
(jakarta-tomcat-connectors-jk2-2.0.2-src) but can't manage to have it done.

Any link, advice appreciated

Patrick



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



Re: Installing jakarta on linux RH9

2003-11-05 Thread Rodrigo Ruiz
Looking at the Red Hat 9 Release Notes, it seems that only JDKs prior to 
1.4.1 fail. You are using 1.4.2, so you are not supposed to need the 
LD_ASSUME_KERNEL setting ;-)

The problem comes from a new implementation of the POSIX Thread Native 
Library. This new version corrects some deviances from the POSIX 
standard, so applications that rely on these differences will fail.

Regards,
Rodrigo
Christopher Schultz wrote:

All,

The newest version (4.1.29) should be fine.  If I recall, however, 
there
was a problem with Sun's Java Virtual Machine, and RH9, which used an
incompatible threading library.  


No, on RH 9, all VMs will actually need the LD_ASSUME_KERNEL env 
variable (look in the archives for the details on the problems and 
the workaround).


Is this accurate? I use RH9 with kernel 2.4.20/i686, JDK 1.4.2-b28 
without any LD_ASSUME_KERNEL setting (that I know of).

Is this for a specific kernel version or architecture?

-chris

-
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: Installing jakarta on linux RH9

2003-11-04 Thread Oscar Carrillo
Interesting. I wonder if that's all it is. Any wish to elaborate if you
are not using a connector to Apache? I was assuming everyone who was using
tomcat on such heavy loads would be using Apache in front.

BTW, if by any chance you're using the daemon scripts off my site, you
would be using the "LD_KERNEL_ASSUME=2.2.5"

I set that because you definitely need it on RedHat 7.3, and I don't have 
a RH9 server in production yet. I'm probably also too afraid to change it 
even now though.

http://daydream.stanford.edu/tomcat/install_web_services.html

Oscar

On Tue, 4 Nov 2003, Christopher Schultz wrote:

> Remy,
> 
> >>> No, on RH 9, all VMs will actually need the LD_ASSUME_KERNEL env 
> >>> variable (look in the archives for the details on the problems and 
> >>> the workaround).
> >>
> >> Is this accurate? I use RH9 with kernel 2.4.20/i686, JDK 1.4.2-b28 
> >> without any LD_ASSUME_KERNEL setting (that I know of).
> > 
> > The problems are with the HTTP/1.1 connector (it dies after about one 
> > day, regardless of the load). Also, there has been a GLIBC update which 
> > could have fixed the issue, so if you keep your system fully patched, 
> > you could be ok.
> > 
> 
> I've never had anything die on me, and I have glibc-2.3.2-11.9, which 
> should be the version that comes on the RH9 installation media.
> 
> I'm using: Apache/2.0.46 (Unix) mod_jk/1.2.4 and Tomcat 4.1.27 with the 
> context reloading hotfix.
> 
> ??
> 
> Not that I'm unhappy not having problems, but I'm curious as to why some 
> people have this problem and I don't.
> 
> Oh! Duh, I see it, now. I'm only using the CoyoteConector to allow 
> Apache to connect to Tomcat. I'm not using Tomcat as a standalone web 
> server.
> 
> (I decided to post this message anyway in case some people were not 
> clear what the problem is)
> 
> -chris
> 
> 
> -
> 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: Linux Distribution

2003-11-04 Thread Tracy Saward
Hi,
  
We are independent consultants currently undertaking a study of satisfaction
among end-users of Open Source Software, notably Tomcat, for a company which
has asked us for recommendations in terms of deploying policy for such
systems. 
I was hoping to set up a quick (5 minute) telephone interview with yourself
or the appropriate person to discuss your experience with this product to
date.

Please feel free to telephone me anytime, or reply to this e-mail indicating
an appropriate time/person for me to recall.

Thanks for your gracious attention to this request!

Best regards,

Tracy


Tracy Saward
Fleetward Group
85 Maskell Street
St Heliers
Auckland
New Zealand
Tel:   64 9 575 1626
Fax:   64 9 585 0939
Mail: [EMAIL PROTECTED]
 


-Original Message-
From: Wade Chandler [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 05, 2003 11:21 AM
To: 'Tomcat Users List'
Subject: RE: Linux Distribution


So some how since they are more open source means that Fedora will suck..?
Hmmm. Does tomcat suck? Nope.  Does Apache suck? nope.  What about Castor
from Exolab? Nope.  That's been my point and I'm sticking to it.  What about
many other open source projects?  What about Netbeans?  I can't see the
argument for how the Fedora project vs. RH8 or 9 methodology equates to lack
of patches, poor work, and an overall bad experience.  How about Debian?  It
is in the same type of arena as Fedora.  FreeBSD and OpenBSD are the same
type of projects.  Check out http://fedora.redhat.com.  They have release
cycles like most good projects.  They have nice sub projects.  Leads for the
different areas. Seems like a good layout.  Am I missing something here?  I
don't know. But, lets go to the red hat list for this one.  We've been
having this debate for the past couple of months on that list.  Anyways,
that's my point.  I think I've rambled on long enough.  I like RH, SuSE,
Slackware, Debian, and a few others.  I think RH rocks.  Looking forward to
Fedora. :-)

Wade

-Original Message-
From: John Corrigan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 4:49 PM
To: Tomcat Users List
Subject: RE: Linux Distribution


There is always Debian.  One of the reasons I switched to Debian was how
easy it is to stay current with patches.

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2003 12:00 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: Linux Distribution


Will they still give out patches promptly for fedora?  I doubt it though

How's freeBSD or openBSD?


-Original Message-
From: Wade Chandler [mailto:[EMAIL PROTECTED]
Sent: November 4, 2003 5:44 AM
To: 'Tomcat Users List'
Subject: RE: Linux Distribution


Actually Red Hat isn't just dropping their free distro.  They are moving to
a model closer to the model you see right here. http://fedora.redhat.com Why
not just use that?  You are used to the Red Hat setup (I guess).  SuSE is a
good distro.  You could also use Debian, but you'll find Red Hat and SuSE
more commercially supported.  Depends on what you need I guess.  You can
still download Fedora for free (all ISO's).  Their new model is a good
thing.  Red Hat developers working with the rest of the open source
community.  Awesome.  They're more open.

Wade

-Original Message-
From: Laurent Michenaud [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2003 7:23 AM
To: [EMAIL PROTECTED]
Subject: Linux Distribution


Hi,

We are actually using the RedHat Linux Distribution for our developpment
environnment.

Redhat doesn't offer anymore free patches for Redhat anterior to version 9.
Free Patches for Redhat 9.0 will stop on 30 avril.

We are thinking about choosing another distribution.

What distribution do u use actually and which one would u choose instead of
Redhat ?

Thanks



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


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




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




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





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



RE: Linux Distribution

2003-11-04 Thread Wade Chandler
So some how since they are more open source means that Fedora will
suck..? Hmmm. Does tomcat suck? Nope.  Does Apache suck? nope.  What
about Castor from Exolab? Nope.  That's been my point and I'm sticking
to it.  What about many other open source projects?  What about
Netbeans?  I can't see the argument for how the Fedora project vs. RH8
or 9 methodology equates to lack of patches, poor work, and an overall
bad experience.  How about Debian?  It is in the same type of arena as
Fedora.  FreeBSD and OpenBSD are the same type of projects.  Check out
http://fedora.redhat.com.  They have release cycles like most good
projects.  They have nice sub projects.  Leads for the different areas.
Seems like a good layout.  Am I missing something here?  I don't know.
But, lets go to the red hat list for this one.  We've been having this
debate for the past couple of months on that list.  Anyways, that's my
point.  I think I've rambled on long enough.  I like RH, SuSE,
Slackware, Debian, and a few others.  I think RH rocks.  Looking forward
to Fedora. :-)

Wade

-Original Message-
From: John Corrigan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 4:49 PM
To: Tomcat Users List
Subject: RE: Linux Distribution


There is always Debian.  One of the reasons I switched to Debian was how
easy it is to stay current with patches.

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2003 12:00 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: Linux Distribution


Will they still give out patches promptly for fedora?  I doubt it
though

How's freeBSD or openBSD?


-Original Message-
From: Wade Chandler [mailto:[EMAIL PROTECTED]
Sent: November 4, 2003 5:44 AM
To: 'Tomcat Users List'
Subject: RE: Linux Distribution


Actually Red Hat isn't just dropping their free distro.  They are moving
to a model closer to the model you see right here.
http://fedora.redhat.com Why not just use that?  You are used to the Red
Hat setup (I guess).  SuSE is a good distro.  You could also use Debian,
but you'll find Red Hat and SuSE more commercially supported.  Depends
on what you need I guess.  You can still download Fedora for free (all
ISO's).  Their new model is a good thing.  Red Hat developers working
with the rest of the open source community.  Awesome.  They're more
open.

Wade

-Original Message-
From: Laurent Michenaud [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2003 7:23 AM
To: [EMAIL PROTECTED]
Subject: Linux Distribution


Hi,

We are actually using the RedHat Linux Distribution for our developpment
environnment.

Redhat doesn't offer anymore free patches for Redhat anterior to version
9. Free Patches for Redhat 9.0 will stop on 30 avril.

We are thinking about choosing another distribution.

What distribution do u use actually and which one would u choose instead
of Redhat ?

Thanks



-
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: Linux Distribution

2003-11-04 Thread John Corrigan
There is always Debian.  One of the reasons I switched to Debian was how
easy it is to stay current with patches.

-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2003 12:00 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: Linux Distribution


Will they still give out patches promptly for fedora?  I doubt it though

How's freeBSD or openBSD?


-Original Message-
From: Wade Chandler [mailto:[EMAIL PROTECTED]
Sent: November 4, 2003 5:44 AM
To: 'Tomcat Users List'
Subject: RE: Linux Distribution


Actually Red Hat isn't just dropping their free distro.  They are moving
to a model closer to the model you see right here.
http://fedora.redhat.com Why not just use that?  You are used to the Red
Hat setup (I guess).  SuSE is a good distro.  You could also use Debian,
but you'll find Red Hat and SuSE more commercially supported.  Depends
on what you need I guess.  You can still download Fedora for free (all
ISO's).  Their new model is a good thing.  Red Hat developers working
with the rest of the open source community.  Awesome.  They're more
open.

Wade

-Original Message-
From: Laurent Michenaud [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 04, 2003 7:23 AM
To: [EMAIL PROTECTED]
Subject: Linux Distribution


Hi,

We are actually using the RedHat Linux Distribution for our developpment
environnment.

Redhat doesn't offer anymore free patches for Redhat anterior to version
9. Free Patches for Redhat 9.0 will stop on 30 avril.

We are thinking about choosing another distribution.

What distribution do u use actually and which one would u choose instead
of Redhat ?

Thanks



-
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: Linux Distribution

2003-11-04 Thread Yansheng Lin
Will they still give out patches promptly for fedora?  I doubt it though

How's freeBSD or openBSD?


-Original Message-
From: Wade Chandler [mailto:[EMAIL PROTECTED] 
Sent: November 4, 2003 5:44 AM
To: 'Tomcat Users List'
Subject: RE: Linux Distribution


Actually Red Hat isn't just dropping their free distro.  They are moving
to a model closer to the model you see right here.
http://fedora.redhat.com Why not just use that?  You are used to the Red
Hat setup (I guess).  SuSE is a good distro.  You could also use Debian,
but you'll find Red Hat and SuSE more commercially supported.  Depends
on what you need I guess.  You can still download Fedora for free (all
ISO's).  Their new model is a good thing.  Red Hat developers working
with the rest of the open source community.  Awesome.  They're more
open.

Wade

-Original Message-
From: Laurent Michenaud [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 7:23 AM
To: [EMAIL PROTECTED]
Subject: Linux Distribution


Hi,
 
We are actually using the RedHat Linux Distribution for our developpment
environnment.
 
Redhat doesn't offer anymore free patches for Redhat anterior to version
9. Free Patches for Redhat 9.0 will stop on 30 avril.
 
We are thinking about choosing another distribution.
 
What distribution do u use actually and which one would u choose instead
of Redhat ?
 
Thanks



-
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: Installing jakarta on linux RH9

2003-11-04 Thread Christopher Schultz
Remy,

No, on RH 9, all VMs will actually need the LD_ASSUME_KERNEL env 
variable (look in the archives for the details on the problems and 
the workaround).
Is this accurate? I use RH9 with kernel 2.4.20/i686, JDK 1.4.2-b28 
without any LD_ASSUME_KERNEL setting (that I know of).
The problems are with the HTTP/1.1 connector (it dies after about one 
day, regardless of the load). Also, there has been a GLIBC update which 
could have fixed the issue, so if you keep your system fully patched, 
you could be ok.

I've never had anything die on me, and I have glibc-2.3.2-11.9, which 
should be the version that comes on the RH9 installation media.

I'm using: Apache/2.0.46 (Unix) mod_jk/1.2.4 and Tomcat 4.1.27 with the 
context reloading hotfix.

??

Not that I'm unhappy not having problems, but I'm curious as to why some 
people have this problem and I don't.

Oh! Duh, I see it, now. I'm only using the CoyoteConector to allow 
Apache to connect to Tomcat. I'm not using Tomcat as a standalone web 
server.

(I decided to post this message anyway in case some people were not 
clear what the problem is)

-chris

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


Re: Installing jakarta on linux RH9

2003-11-04 Thread Remy Maucherat
Christopher Schultz wrote:
All,

The newest version (4.1.29) should be fine.  If I recall, however, there
was a problem with Sun's Java Virtual Machine, and RH9, which used an
incompatible threading library.  


No, on RH 9, all VMs will actually need the LD_ASSUME_KERNEL env 
variable (look in the archives for the details on the problems and the 
workaround).


Is this accurate? I use RH9 with kernel 2.4.20/i686, JDK 1.4.2-b28 
without any LD_ASSUME_KERNEL setting (that I know of).

Is this for a specific kernel version or architecture?
The problems are with the HTTP/1.1 connector (it dies after about one 
day, regardless of the load). Also, there has been a GLIBC update which 
could have fixed the issue, so if you keep your system fully patched, 
you could be ok.

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


Re: Installing jakarta on linux RH9

2003-11-04 Thread Christopher Schultz
All,

The newest version (4.1.29) should be fine.  If I recall, however, there
was a problem with Sun's Java Virtual Machine, and RH9, which used an
incompatible threading library.  
No, on RH 9, all VMs will actually need the LD_ASSUME_KERNEL env 
variable (look in the archives for the details on the problems and the 
workaround).
Is this accurate? I use RH9 with kernel 2.4.20/i686, JDK 1.4.2-b28 
without any LD_ASSUME_KERNEL setting (that I know of).

Is this for a specific kernel version or architecture?

-chris

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


RE: Installing jakarta on linux RH9

2003-11-04 Thread LEONARDO MARTINEZ
Thank's for all!!!
Gracias por todo


>>-Mensaje original-
>>De: LEONARDO MARTINEZ 
>>Enviado el: Lunes, 03 de Noviembre de 2003 18:00
>>Para: Tomcat Users List
>>Asunto: Installing jakarta on linux RH9
>>
>>
>>Hi!
>>
>>I need install a web server on RH9 that support jsp, it's web 
>>server is a jakarta Tomcat but I don't know da version to 
>>install, maybe v 4.1.29 ?? PLZ send a answer
>>
>>(sorry, I'm not a native english, im spanish)
>>
>>LOL
>>BR
>>SONNIC
>>
>>-
>>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] Linux Distribution

2003-11-04 Thread Wade Chandler
Well I didn't see where he made them sound like MS, they have given too
much to the open source community for anyone to label them that way.  I
guess either you agree with a standard or you don't.  There is United
Linux for enterprise with SuSE, Turbo Linux, another distro (I can't
remember their name), and go figure (SCO...??? They need to go away).  I
think RH, SuSE, and the others need to come together and support LSB and
keep extending that, but hey they are Linux regardless, but they aren't
doing themselves any favors by not standardizing.  The one thing they
should not want is the Unix wars all over again. Losing battle.  

I would use Debian more if I could get more binary packages precompiled
for it.  Takes too much time to compile everything (but anyways).  I
think RH is a good company.  They have devoted plenty of man power to
Linux, and no one can argue with that.  They have a completely free
version, then they have the version that keeps them alive.  SuSE and
others have done the same.  They have all fixed bugs in different
projects and contributed.  

As for the article, it's almost 2 years old if you can go by the dates
in the url.  That would be about right per the comment about SuSE laying
off employees in the US.  They are Germany based, so that would make
sense to me.  Reign in their efforts to provide a better product.  They
seem to be soaring away now days (doing well).  RH seems to be doing the
same if you look at their revenues.

Anyways, this is the Tomcat list, so I wouldn't want to get into a large
debate on the list.  Those are just some observations.  The distros have
their own lists for these types of discussions.  I think they all have
their place, but like everything you are always going to have a few out
shine the others.  It's one thing you can rely on, for right or wrong.

Wade

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 8:54 AM
To: Tomcat Users List
Subject: Re: [OT] Linux Distribution


On 11/04/2003 01:43 PM Wade Chandler wrote:
> Actually Red Hat isn't just dropping their free distro.  They are 
> moving to a model closer to the model you see right here. 
> http://fedora.redhat.com Why not just use that?  You are used to the 
> Red Hat setup (I guess).  SuSE is a good distro.  You could also use 
> Debian, but you'll find Red Hat and SuSE more commercially supported.

> Depends on what you need I guess.  You can still download Fedora for 
> free (all ISO's).  Their new model is a good thing.  Red Hat 
> developers working with the rest of the open source community.  
> Awesome.  They're more open.

That's the first time I've seen anyone say anything good about RedHat 
for a while. I've heard some horror stories about RedHat from people
working for RedHat so hearing the other side of the coin is interesting.

What about this:
http://archive.infoworld.com/articles/op/xml/01/02/19/010219oppetreley.x
ml

He says SuSE and all the others need to consolidate a linux standard, 
and he also doesn't say anything good about RedHat, he makes them sound 
like Microsoft.

Adam

-- 
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9

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

2003-11-04 Thread Adam Hardy
On 11/04/2003 01:43 PM Wade Chandler wrote:
Actually Red Hat isn't just dropping their free distro.  They are moving
to a model closer to the model you see right here.
http://fedora.redhat.com Why not just use that?  You are used to the Red
Hat setup (I guess).  SuSE is a good distro.  You could also use Debian,
but you'll find Red Hat and SuSE more commercially supported.  Depends
on what you need I guess.  You can still download Fedora for free (all
ISO's).  Their new model is a good thing.  Red Hat developers working
with the rest of the open source community.  Awesome.  They're more
open.
That's the first time I've seen anyone say anything good about RedHat 
for a while. I've heard some horror stories about RedHat from people
working for RedHat so hearing the other side of the coin is interesting.

What about this:
http://archive.infoworld.com/articles/op/xml/01/02/19/010219oppetreley.xml
He says SuSE and all the others need to consolidate a linux standard, 
and he also doesn't say anything good about RedHat, he makes them sound 
like Microsoft.

Adam

--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Linux Distribution

2003-11-04 Thread Wade Chandler
Actually Red Hat isn't just dropping their free distro.  They are moving
to a model closer to the model you see right here.
http://fedora.redhat.com Why not just use that?  You are used to the Red
Hat setup (I guess).  SuSE is a good distro.  You could also use Debian,
but you'll find Red Hat and SuSE more commercially supported.  Depends
on what you need I guess.  You can still download Fedora for free (all
ISO's).  Their new model is a good thing.  Red Hat developers working
with the rest of the open source community.  Awesome.  They're more
open.

Wade

-Original Message-
From: Laurent Michenaud [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2003 7:23 AM
To: [EMAIL PROTECTED]
Subject: Linux Distribution


Hi,
 
We are actually using the RedHat Linux Distribution for our developpment
environnment.
 
Redhat doesn't offer anymore free patches for Redhat anterior to version
9. Free Patches for Redhat 9.0 will stop on 30 avril.
 
We are thinking about choosing another distribution.
 
What distribution do u use actually and which one would u choose instead
of Redhat ?
 
Thanks



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



Linux Distribution

2003-11-04 Thread Laurent Michenaud
Hi,
 
We are actually using the RedHat Linux Distribution for our developpment
environnment.
 
Redhat doesn't offer anymore free patches for Redhat anterior to version
9.
Free Patches for Redhat 9.0 will stop on 30 avril.
 
We are thinking about choosing another distribution.
 
What distribution do u use actually and which one would u choose instead
of Redhat ?
 
Thanks


Re: Installing jakarta on linux RH9

2003-11-03 Thread Javier
On 03/11/2003 at 18:00 LEONARDO MARTINEZ wrote:

>I need install a web server on RH9 that support jsp, it's web server is
>a jakarta Tomcat but I don't know da version to install, maybe v 4.1.29
>??
>PLZ send a answer
>


Hola

SI, podes instalar esa o la 5.

Como suele ocurrir, la versiones superiores traen mejoras con respecto a
sus predecesoras...







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



Re: Installing jakarta on linux RH9 (LEONARDO)

2003-11-03 Thread Carlos Cajina - Hotmail
Hola, sobre tu pregunta, la más reciente versión de Tomcat es la que
mencionas en tu correo (4.1.29), puedes instalar esa. Personalmente yo no he
tenido problemas con la versión anterior (4.1.27) He trabajado con esa cerca
de dos meses sin dificultad.

(Hi. About your question: yes, the latest Tomcat release is the one you
mention in your email: 4.1.29, you could start with it. Personally, I'll
stay with the previous stable version, 4.1.27. I have been working nice with
it for about 2 months)

Te recomiendo que hagas la instalación evitando los RPM's. Baja el archivo
*.tar.gz y trata de hacer la instalación a mano, hay varios tutoriales
buenos para eso (por ejemplo:
http://daydream.stanford.edu/tomcat/install_web_services.html)

I recommend that you install Tomcat avoiding RPM's. Download source files
and do it by hand, there are excelent tutorials for this (ie.
http://daydream.stanford.edu/tomcat/install_web_services.html)

Buena suerte!
Gud luck!

- Original Message - 
From: "LEONARDO MARTINEZ" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, November 03, 2003 4:00 PM
Subject: Installing jakarta on linux RH9


Hi!

I need install a web server on RH9 that support jsp, it's web server is
a jakarta Tomcat but I don't know da version to install, maybe v 4.1.29
??
PLZ send a answer

(sorry, I'm not a native english, im spanish)

LOL
BR
SONNIC

-
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: Installing jakarta on linux RH9

2003-11-03 Thread Remy Maucherat
Nathan Mcminn wrote:
The newest version (4.1.29) should be fine.  If I recall, however, there
was a problem with Sun's Java Virtual Machine, and RH9, which used an
incompatible threading library.  
No, on RH 9, all VMs will actually need the LD_ASSUME_KERNEL env 
variable (look in the archives for the details on the problems and the 
workaround).

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


RE: Installing jakarta on linux RH9

2003-11-03 Thread Nathan Mcminn
The newest version (4.1.29) should be fine.  If I recall, however, there
was a problem with Sun's Java Virtual Machine, and RH9, which used an
incompatible threading library.  


Nathan McMinn
Application Developer
NequalsOne - HealthCare marketing tools
mailto:[EMAIL PROTECTED]
http://www.NequalsOne.com 

> -Original Message-
> From: LEONARDO MARTINEZ [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 03, 2003 4:00 PM
> To: Tomcat Users List
> Subject: Installing jakarta on linux RH9
> 
> 
> Hi!
> 
> I need install a web server on RH9 that support jsp, it's web 
> server is a jakarta Tomcat but I don't know da version to 
> install, maybe v 4.1.29 ?? PLZ send a answer
> 
> (sorry, I'm not a native english, im spanish)
> 
> LOL
> BR
> SONNIC
> 
> -
> 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]



Installing jakarta on linux RH9

2003-11-03 Thread LEONARDO MARTINEZ
Hi!

I need install a web server on RH9 that support jsp, it's web server is
a jakarta Tomcat but I don't know da version to install, maybe v 4.1.29
??
PLZ send a answer

(sorry, I'm not a native english, im spanish)

LOL
BR
SONNIC

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



[OT] Error compiling mod_jk (linux)

2003-10-29 Thread Ivan Venuti
Hello,

I'd like to use a Apache+Tomcat for using SSL & Certificates.
I need to build the mod_jk module for Apache.

I have downloaded jakarta-tomcat-connectors-jk-1.2-src-current.zip from
Jakarta Web Site.
I have unzipped it and:

1) cd (DIR)/jk/native
2) ./configure --with-apxs=(APACHE DIR)/bin/apxs
3) make

and I'm optaining these errors:

gcc -I/usr/local/apache/include -g -O2 -DLINUX=22 -DMOD_SSL=208115 -DUSE_HSR
EGEX
 -DEAPI -DUSE_EXPAT -I../lib/expat-lite -g -O2 -I
/usr/java/j2sdk1.4.0//include
-I /usr/java/j2sdk1.4.0//include/ -c jk_connect.c  -fPIC -DPIC -o
.libs/jk_conne
ct.lo
jk_connect.c: In function `jk_resolve':
jk_connect.c:123: `in_addr_t' undeclared (first use in this function)
jk_connect.c:123: (Each undeclared identifier is reported only once
jk_connect.c:123: for each function it appears in.)
jk_connect.c:123: parse error before `laddr'
jk_connect.c:167: `laddr' undeclared (first use in this function)
make[1]: *** [jk_connect.lo] Error 1
make[1]: Leaving directory
`/home/javauser/apache/jakarta-tomcat-connectors-jk-1
.2.5-src/jk/native/common'
make: *** [all-recursive] Error 1

Anyone can help me with this?

I'm using RH 7, on a i686

-- Ivan



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



Re: Tomcat 5 to start automatically on linux at bootup

2003-10-28 Thread Oscar Carrillo
Also my page:

http://daydream.stanford.edu/tomcat/install_web_services.html

You can download one for apache, tomcat, and postgresql. It will probably 
be the same as the one Tim noted, except mine has a status command for 
tomcat that tells you how many threads/processes are running for tomcat.

I also have the LD_KERNE_ASSUME=2.2.5 set so that tomcat doesn't
occasionally crash due to the threading issues with RedHat.

Oscar

On Tue, 28 Oct 2003, Tim Funk wrote:

>  From http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links ...
> 
> http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html
> 
> -Tim
> 
> Mark Tebong wrote:
> > Hi. I have installed Tomcat 5 on redhad 9, and works fine. However I would like to 
> > start it as a service automatically everytime the computer boots up.
> > Please can someone please provide a reference to information on how to do that or 
> > simply tell me how to do that?
> > Thanks MT
> > 
> 
> 
> -
> 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 to start automatically on linux at bootup

2003-10-28 Thread Mark Tebong
thank you Tim

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 2:35 PM
To: Tomcat Users List
Subject: Re: Tomcat 5 to start automatically on linux at bootup


 From http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links ...

http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html

-Tim

Mark Tebong wrote:
> Hi. I have installed Tomcat 5 on redhad 9, and works fine. However I would like to 
> start it as a service automatically everytime the computer boots up.
> Please can someone please provide a reference to information on how to do that or 
> simply tell me how to do that?
> Thanks MT
> 


-
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 to start automatically on linux at bootup

2003-10-28 Thread Tim Funk
From http://nagoya.apache.org/wiki/apachewiki.cgi?Tomcat/Links ...

http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html

-Tim

Mark Tebong wrote:
Hi. I have installed Tomcat 5 on redhad 9, and works fine. However I would like to 
start it as a service automatically everytime the computer boots up.
Please can someone please provide a reference to information on how to do that or 
simply tell me how to do that?
Thanks MT


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


Tomcat 5 to start automatically on linux at bootup

2003-10-28 Thread Mark Tebong
Hi. I have installed Tomcat 5 on redhad 9, and works fine. However I would like to 
start it as a service automatically everytime the computer boots up.
Please can someone please provide a reference to information on how to do that or 
simply tell me how to do that?
Thanks MT

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



Re: J2SDK 1.4.2_01 + Linux + file.encoding

2003-10-28 Thread Luiz Ricardo
Hi everyone,

maybe this is off-topic but I read somewhere in Internet that the JVM
System Properties should not be configured via -D parameter cause it is
not guarranted to work. I always used this to configure the
file.encoding in Linux machines to ISO-8859-1 but it didn´t work with
J2SDK 1.4.2 so some pages serverd by Tomcat display ISO-8859-1
characters as question marks.

I solved my problem setting the enviroment variable LANG to my specific
locale (LANG=pt_BR.ISO-8859-1) and it worked it out!

Luiz Ricardo
- Original Message - 
From: "David O'Brien" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, October 27, 2003 2:21 PM
Subject: Re: J2SDK 1.4.2_01 + Linux + file.encoding


> I face the same problem but haven't found a solution yet. I had to
revert
> to the old version of the SDK.
> If you find anything could you let me know?
> -Dave
>
>
> At 12:12 PM 10/27/2003, you wrote:
> >Hi everyone,
> >
> >I have the following configuration:
> >
> >Linux Mandrake 8.0
> >J2SDK 1.4.2_01
> >Tomcat 4.1.27
> >
> >In my application I have to read some files that contains characters
> >that are ISO-8859-1 charset but when I display these file contents by
> >Tomcat the ISO-8859-1 characters are replaced by question marks,
Tomcat
> >is started with the parameter -Dfile.encoding=ISO-8859-1.
> >
> >The detail is that if I use J2SDK1.4.1 everything works fine! I would
> >like to know if someone here faced this problem and/or has some tip
how
> >to solve it.
> >
> >Thanks in advance,
> >
> >Luiz Ricardo
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> David G. O'Brien
> Web Services Coordinator / Systems Administrator
>
> NACCRRA
> The Nation's Network of Child Care Resource & Referral
> 1319 F Street NW, Suite 500
> Washington, DC 20004
> (202) 393-5501 ext. 113
> (202) 393-1109 fax
>


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



Re: J2SDK 1.4.2_01 + Linux + file.encoding

2003-10-27 Thread Jean-Francois Arcand
Have you file a bug on java.sun.com? That would be good to make them 
aware of the problem (and there is possibly a workaround described 
there). This is clearly not an issue with Tomcat, but with the JDK.

-- Jeanfrancois

David O'Brien wrote:

I face the same problem but haven't found a solution yet. I had to 
revert to the old version of the SDK.
If you find anything could you let me know?
-Dave

At 12:12 PM 10/27/2003, you wrote:

Hi everyone,

I have the following configuration:

Linux Mandrake 8.0
J2SDK 1.4.2_01
Tomcat 4.1.27
In my application I have to read some files that contains characters
that are ISO-8859-1 charset but when I display these file contents by
Tomcat the ISO-8859-1 characters are replaced by question marks, Tomcat
is started with the parameter -Dfile.encoding=ISO-8859-1.
The detail is that if I use J2SDK1.4.1 everything works fine! I would
like to know if someone here faced this problem and/or has some tip how
to solve it.
Thanks in advance,

Luiz Ricardo

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


David G. O'Brien
Web Services Coordinator / Systems Administrator
NACCRRA
The Nation's Network of Child Care Resource & Referral
1319 F Street NW, Suite 500
Washington, DC 20004
(202) 393-5501 ext. 113
(202) 393-1109 fax


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


Re: J2SDK 1.4.2_01 + Linux + file.encoding

2003-10-27 Thread David O'Brien
I face the same problem but haven't found a solution yet. I had to revert 
to the old version of the SDK.
If you find anything could you let me know?
-Dave

At 12:12 PM 10/27/2003, you wrote:
Hi everyone,

I have the following configuration:

Linux Mandrake 8.0
J2SDK 1.4.2_01
Tomcat 4.1.27
In my application I have to read some files that contains characters
that are ISO-8859-1 charset but when I display these file contents by
Tomcat the ISO-8859-1 characters are replaced by question marks, Tomcat
is started with the parameter -Dfile.encoding=ISO-8859-1.
The detail is that if I use J2SDK1.4.1 everything works fine! I would
like to know if someone here faced this problem and/or has some tip how
to solve it.
Thanks in advance,

Luiz Ricardo

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


David G. O'Brien
Web Services Coordinator / Systems Administrator
NACCRRA
The Nation's Network of Child Care Resource & Referral
1319 F Street NW, Suite 500
Washington, DC 20004
(202) 393-5501 ext. 113
(202) 393-1109 fax


J2SDK 1.4.2_01 + Linux + file.encoding

2003-10-27 Thread Luiz Ricardo
Hi everyone,

I have the following configuration:

Linux Mandrake 8.0
J2SDK 1.4.2_01
Tomcat 4.1.27

In my application I have to read some files that contains characters
that are ISO-8859-1 charset but when I display these file contents by
Tomcat the ISO-8859-1 characters are replaced by question marks, Tomcat
is started with the parameter -Dfile.encoding=ISO-8859-1.

The detail is that if I use J2SDK1.4.1 everything works fine! I would
like to know if someone here faced this problem and/or has some tip how
to solve it.

Thanks in advance,

Luiz Ricardo


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



RePost: Linux Kernel 2.6

2003-10-27 Thread Oscar Carrillo
Ok, maybe you all headed out of town for the weekend and aren't watching
the list. So I'm reposting this so that maybe I can catch the Monday
morning stampede. For those in Daylight Savings Time zones, remember 
you've got an extra hour to read the list :)

Just wondering if anyone has experience with Tomcat and Linux kernel 
pre-2.6.

It looks like this kernel is going to go mainstream soon, so I'd like to 
know what to expect. Linus Torvalds has said there will probably be one 
more minor revision and then the next will be 2.6. By my rough estimates 
that puts it at about 1 month away.

Don't mind being the first to try it out, but I'm thinking there's others
who already have. If so, what's your experience?

Oscar

On Thu, 23 Oct 2003, Oscar Carrillo wrote:

> Has anyone tried running Apache/Tomcat with the new 2.6-pre kernel?
> 
> Or for that matter, has anyone ran it under the mm, or O1 scheduler 
> patches? I'm also planning on running it with a dual AthlonMP system. Has 
> anyone had any experiences with that, good or bad. I assume it should be 
> no problem but any feedback would be appreciated.
> 
> Thanks,
> Oscar



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



Re: mod_jk 1.2 binary for Linux?

2003-10-25 Thread Bill Barker
You should be able to get the RPM from http://www.jpackage.org.

"Stu Statman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> I am unsure if I'm asking this question in the right forum, and while I
> did a quick look through the archives, I may be repeating a question
> that someone else has asked and has had answered. If so, I apologize.
>
> Someone in my org is trying to put together a development server image
> (Linux, Apache, Tomcat, JVM, etc.), and needs a clean binary of mod_jk.
> I pointed him at
> http://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/linux/,
> but it turns out that there's no binary there. It's an empty directory.
> He and I both did some surfing around, and can't seem to spot a binary
> anywhere else.
>
> Do need to compile our own version of the binary? Is there someplace
> else I should be looking?
>
> Thanks for the help, apologies for what's probably a noob question ...
>
> Stu Statman




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



Re: mod_jk 1.2 binary for Linux?

2003-10-25 Thread Stu Statman
Manolo Ramirez T. wrote:

Hi,

I sugest that you compile the src, it's not to dificult if you now the 
steps, download it from here:

http://apache.towardex.com/jakarta/tomcat-connectors/jk/jakarta-tomcat-connectors-jk-1.2-src-current.tar.gz 

to compile (in Redhat 9):

$ tar xzf XXX
$ cd XXX/jk/native/
$ sh buildconf.sh
$ ./configure --with-apxs=/usr/sbin/apxs
$ make
The binary file will be in XXX/jk/native/apache-2.0/mod_jk.so

I hope this helps.
That's approximately the way I built it last (though expressed somewhat 
more cleanly than my "Uh, just, you know, build it."). I'll pass it on, 
thanks much ...

Stu Statman



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


Re: mod_jk 1.2 binary for Linux?

2003-10-25 Thread Stu Statman
Oscar Carrillo wrote:

Silly me. I thought you were looking for ModJK2.0.

Heh, no prob. We'll go to 2.0 eventually, but we're not quite ready 
(organizationally) to take that leap quite yet.

You should have no problem. And full instructions are on my site as well.

http://daydream.stanford.edu/tomcat/install_web_services.html

Thanks!

Stu Statman



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


Re: mod_jk 1.2 binary for Linux?

2003-10-25 Thread Oscar Carrillo
Silly me. I thought you were looking for ModJK2.0.

You should have no problem. And full instructions are on my site as well.

http://daydream.stanford.edu/tomcat/install_web_services.html

Oscar

On Sat, 25 Oct 2003, 
Manolo Ramirez T. wrote:

> Hi,
> 
> I sugest that you compile the src, it's not to dificult if you now the 
> steps, download it from here:
> 
> http://apache.towardex.com/jakarta/tomcat-connectors/jk/jakarta-tomcat-connectors-jk-1.2-src-current.tar.gz
> 
> to compile (in Redhat 9):
> 
> $ tar xzf XXX
> $ cd XXX/jk/native/
> $ sh buildconf.sh
> $ ./configure --with-apxs=/usr/sbin/apxs
> $ make
> 
> The binary file will be in XXX/jk/native/apache-2.0/mod_jk.so
> 
> I hope this helps.
> 
> Regards,
> 
> _
> Manolo Ramirez T.
> 
> 
> 
> Stu Statman wrote:
> > 
> > I am unsure if I'm asking this question in the right forum, and while I 
> > did a quick look through the archives, I may be repeating a question 
> > that someone else has asked and has had answered. If so, I apologize.
> > 
> > Someone in my org is trying to put together a development server image 
> > (Linux, Apache, Tomcat, JVM, etc.), and needs a clean binary of mod_jk. 
> > I pointed him at 
> > http://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/linux/, 
> > but it turns out that there's no binary there. It's an empty directory. 
> > He and I both did some surfing around, and can't seem to spot a binary 
> > anywhere else.
> > 
> > Do need to compile our own version of the binary? Is there someplace 
> > else I should be looking?
> > 
> > Thanks for the help, apologies for what's probably a noob question ...
> > 
> > Stu Statman
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: mod_jk 1.2 binary for Linux?

2003-10-25 Thread Oscar Carrillo
I would recommend compiling it, and it doesn't seem that there's a linux 
binary available for download.

I will be adding JK2 tutorial (only JK1.2 for now) shortly on my site, but
looking at it now and John Turner's site, you should be able to figure it
out. I find that it's always a gamble using a pre-built connector anyways.

http://daydream.stanford.edu/tomcat/install_web_services.html

I link to John Turner's site and other helpful sites on my page.

Oscar

On Sat, 25 Oct 2003, Stu Statman wrote:

> 
> I am unsure if I'm asking this question in the right forum, and while I 
> did a quick look through the archives, I may be repeating a question 
> that someone else has asked and has had answered. If so, I apologize.
> 
> Someone in my org is trying to put together a development server image 
> (Linux, Apache, Tomcat, JVM, etc.), and needs a clean binary of mod_jk. 
> I pointed him at 
> http://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/linux/, 
> but it turns out that there's no binary there. It's an empty directory. 
> He and I both did some surfing around, and can't seem to spot a binary 
> anywhere else.
> 
> Do need to compile our own version of the binary? Is there someplace 
> else I should be looking?
> 
> Thanks for the help, apologies for what's probably a noob question ...
> 
> Stu Statman
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: mod_jk 1.2 binary for Linux?

2003-10-25 Thread Manolo Ramirez T.
Hi,

I sugest that you compile the src, it's not to dificult if you now the 
steps, download it from here:

http://apache.towardex.com/jakarta/tomcat-connectors/jk/jakarta-tomcat-connectors-jk-1.2-src-current.tar.gz

to compile (in Redhat 9):

$ tar xzf XXX
$ cd XXX/jk/native/
$ sh buildconf.sh
$ ./configure --with-apxs=/usr/sbin/apxs
$ make
The binary file will be in XXX/jk/native/apache-2.0/mod_jk.so

I hope this helps.

Regards,

_
Manolo Ramirez T.


Stu Statman wrote:
I am unsure if I'm asking this question in the right forum, and while I 
did a quick look through the archives, I may be repeating a question 
that someone else has asked and has had answered. If so, I apologize.

Someone in my org is trying to put together a development server image 
(Linux, Apache, Tomcat, JVM, etc.), and needs a clean binary of mod_jk. 
I pointed him at 
http://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/linux/, 
but it turns out that there's no binary there. It's an empty directory. 
He and I both did some surfing around, and can't seem to spot a binary 
anywhere else.

Do need to compile our own version of the binary? Is there someplace 
else I should be looking?

Thanks for the help, apologies for what's probably a noob question ...

Stu Statman

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




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


mod_jk 1.2 binary for Linux?

2003-10-25 Thread Stu Statman
I am unsure if I'm asking this question in the right forum, and while I 
did a quick look through the archives, I may be repeating a question 
that someone else has asked and has had answered. If so, I apologize.

Someone in my org is trying to put together a development server image 
(Linux, Apache, Tomcat, JVM, etc.), and needs a clean binary of mod_jk. 
I pointed him at 
http://apache.towardex.com/jakarta/tomcat-connectors/jk/binaries/linux/, 
but it turns out that there's no binary there. It's an empty directory. 
He and I both did some surfing around, and can't seem to spot a binary 
anywhere else.

Do need to compile our own version of the binary? Is there someplace 
else I should be looking?

Thanks for the help, apologies for what's probably a noob question ...

Stu Statman

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


Re: Linux Kernel 2.6 and other info

2003-10-23 Thread Oscar Carrillo
BTW,

I never have any problems with migrating from one built kernel to a newer
built kernel. The only time I've ever had problems was moving from a stock
RH kernel. Maybe RH stock kernel does something a little differently with
threads.

Of course, this is why it's better to compile from source instead of using
RPMs for such crucial packages. Or should I say, that's one reason why
some of us prefer installing from source. We never know exactly what RH is
doing in some areas. Most of the time we don't want to know, but in
something like this I feel better knowing what's going on underneath, and
therefore being able to do something about it when something goes wrong.  
And personally I don't think or expect RH to much care about breaking
Apache/mod_jk/Tomcat/Java when they want all those people to be paying for
RH Enterprise and customer support.

Anyways, I actually think people are better off, and helping the
community, if they compile certain packages from source. I guess this
turned into my 2 cents :)

Oscar


On Thu, 23 Oct 2003, Oscar Carrillo wrote:

> Has anyone tried running Apache/Tomcat with the new 2.6-pre kernel?
> 
> Or for that matter, has anyone ran it under the mm, or O1 scheduler 
> patches? I'm also planning on running it with a dual AthlonMP system. Has 
> anyone had any experiences with that, good or bad. I assume it should be 
> no problem but any feedback would be appreciated.
> 
> As a side note, I built Apache with a stock RH9 kernel and after compiling
> a new kernel, apache couldn't load the modules. I compiled it again and
> all was fine. But I thought it be good to post it here in case others have
> the problem too.
> 
> Thanks,
> Oscar
> 
> 
> -
> 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]



Linux Kernel 2.6 and other info

2003-10-23 Thread Oscar Carrillo
Has anyone tried running Apache/Tomcat with the new 2.6-pre kernel?

Or for that matter, has anyone ran it under the mm, or O1 scheduler 
patches? I'm also planning on running it with a dual AthlonMP system. Has 
anyone had any experiences with that, good or bad. I assume it should be 
no problem but any feedback would be appreciated.

As a side note, I built Apache with a stock RH9 kernel and after compiling
a new kernel, apache couldn't load the modules. I compiled it again and
all was fine. But I thought it be good to post it here in case others have
the problem too.

Thanks,
Oscar


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



Re: [OT] Re: linux : Limit of file descriptor

2003-10-23 Thread Randy Watler
Francois:

We have not run into a FD limit "within the JVM" using Tomcat, (only 
aformentioned user limits that can be modified using ulimit). I too have 
read of OS/JVM limits surrounding some operations like select() for the 
NIO package, but these apparently are not limits on Tomcat or Coyote 
Connector implementations AFAIK.

Randy Watler
Finali Corporation

Francois JEANMOUGIN wrote:

>>Can you post the contents of the following files:
>>/proc/sys/fs/file-max
>>
>>
>As already mentioned :209713
>  
>
>>/proc/sys/fs/file-nr
>>
>>
>23321398209713
>So. 2332 FDs opened, 1398 used. I found a message talking about a hard
coded limit of 1024 in the Jvm... Is it a per thread limit or ?
>
>  
>


RE: [OT] Re: linux : Limit of file descriptor

2003-10-23 Thread Francois JEANMOUGIN


> Francois,
> If you've solved this problem, please disregard this message.  I've
> marked
> this issue as off topic because it relates to Linux and not Tomcat.

Well, counting FDs is linux related, but why is there so much FDs opened could be 
tomcat related (even if, as a bofh, I would say it's something to do with those thing, 
you know? That specific sort of users called developers). Anyway.
 
> lsof won't properly report the total number of opened file
> descriptors.  I was
> doing the same thing for a client who ran into this issue with file-
> max set to
> 16384.  I was using lsof and wc to count the lines, however it
> reported
> something like 80,000.

Yes, I ran into this lately yesterday (GMT), lsof reported a number of FDs of 
more than 22, so as already said, it should report shared FDs as well. Please 
apologize.
 
> You sound pretty knowledgeable, so you may have seen this, however the
> best
> way to handle this is using the proc file system.  An explaination is
> available at
> http://www.ussg.iu.edu/hypermail/linux/kernel/0208.2/0145.html

Yep, I use it.

> Can you post the contents of the following files:
> /proc/sys/fs/file-max
As already mentioned :209713
> /proc/sys/fs/file-nr
23321398209713
So. 2332 FDs opened, 1398 used. I found a message talking about a hard coded limit 
of 1024 in the Jvm... Is it a per thread limit or ?

> /proc/sys/fs/inode-nr
164972  39841
It seems to be OK there, about 4 inodes free
> /proc/sys/fs/inode-state
165000  39823   0   0   0   0   0
Show about the same, just adding "everything is OK, good luck, and see you later" in a 
OS point of view.

> Once you've pasted this information, we'll see if we can figure this
> out.

So. I think I ran into a Jvm limit (user is unlimited, shame on me). I will go back to 
the developers corner to ask.

Thank you for your help.

François.


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



[OT] Re: linux : Limit of file descriptor

2003-10-22 Thread Justin L Spies
Quoting Randy Watler <[EMAIL PROTECTED]>:

> Francois,
> 
> This may be a Red Herring, but I have to wonder if the usage of Posix 
> threads in the RedHat enterprise servers is causing problems somehow? 
> Are your other servers RedHat enterprise boxen or different in other 
> ways? What JVM are you using?
> 
> Randy Watler
> Finali Corporation
> 
> 
> 

Francois,
If you've solved this problem, please disregard this message.  I've marked 
this issue as off topic because it relates to Linux and not Tomcat.

lsof won't properly report the total number of opened file descriptors.  I was 
doing the same thing for a client who ran into this issue with file-max set to 
16384.  I was using lsof and wc to count the lines, however it reported 
something like 80,000.  

You sound pretty knowledgeable, so you may have seen this, however the best 
way to handle this is using the proc file system.  An explaination is 
available at http://www.ussg.iu.edu/hypermail/linux/kernel/0208.2/0145.html 

Can you post the contents of the following files:
/proc/sys/fs/file-max
/proc/sys/fs/file-nr
/proc/sys/fs/inode-nr
/proc/sys/fs/inode-state


Once you've pasted this information, we'll see if we can figure this out.

Sincerely,
Justin L. Spies

-
This mail sent through IMP: http://horde.org/imp/

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



Re: linux : Limit of file descriptor

2003-10-22 Thread Randy Watler
Francois,

This may be a Red Herring, but I have to wonder if the usage of Posix 
threads in the RedHat enterprise servers is causing problems somehow? 
Are your other servers RedHat enterprise boxen or different in other 
ways? What JVM are you using?

Randy Watler
Finali Corporation



smime.p7s
Description: S/MIME Cryptographic Signature


RE: linux : Limit of file descriptor

2003-10-22 Thread Ralph Einfeldt
Sorry, but I can't beleaf that each thread has his own fd.

On my box I have a limit of 1024 files but lsof report over 
6500 open fd's. (As the the jar files are memory mapped files
on my box, lsof doesn't show the fd, so I can't proove that 
they are shared)

> -Original Message-
> From: Francois JEANMOUGIN 
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 22, 2003 3:25 PM
> To: Tomcat Users List
> Subject: RE: linux : Limit of file descriptor 
> 
> > 
> > Those are shared fd's.
> 
> Nope, those are real FDs
>  

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



RE: linux : Limit of file descriptor

2003-10-22 Thread Francois JEANMOUGIN


> Francois:
> 
> H. Are you running with a fronting web server, (i.e. Apache, IIS,
> etc), or Tomcat stand alone?

Standalone.


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



Re: linux : Limit of file descriptor

2003-10-22 Thread Randy Watler
Francois:

H. Are you running with a fronting web server, (i.e. Apache, IIS, 
etc), or Tomcat stand alone?

Randy Watler
Finali Corporation


smime.p7s
Description: S/MIME Cryptographic Signature


RE: linux : Limit of file descriptor

2003-10-22 Thread Francois JEANMOUGIN


> For what it is worth, we run vanilla RedHat 8.0 servers and have to
> bump
> up the number handles available to Tomcat using ulimit, (otherwise it
> is
> limited to ~1024). We have a complex application that does a lot of
> proxied access work. Despite that, we have only run out of file
> descriptors once in several years during what we think was a DOS
> attack.
> Remember, each socket gets a file descriptor as well.

Yes. So we have 500 clients and this uses a pool of SQL connections (about 
120). Everything else is local open files. Mostly jar and java that doesn't seem to be 
shared. That's strange.
 
> It seems unlikely that the FDs are being consumed by Tomcat if your
> log
> files look normal. Does the number of file handles climb steadily over
> time or rapidly balloon beyond norms on startup? What build of Linux
> is
> on the box in question?

It is a RedHat enterprise server 2.1 (due to silly constructor support restrictions). 
I just saw the problem today, so I don't saw it coming up. The service was restarted 
this morning and two hours later, it already reached the current score. This night, it 
will be dead...

On another machine running about the same type of applications (and two tomcat 
instances), I "only" have 8000FDs opened (which could be correcte regarding the number 
of jars, connections and log files).

François.


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



Re: linux : Limit of file descriptor

2003-10-22 Thread Randy Watler
Francois,

For what it is worth, we run vanilla RedHat 8.0 servers and have to bump 
up the number handles available to Tomcat using ulimit, (otherwise it is 
limited to ~1024). We have a complex application that does a lot of 
proxied access work. Despite that, we have only run out of file 
descriptors once in several years during what we think was a DOS attack. 
Remember, each socket gets a file descriptor as well.

It seems unlikely that the FDs are being consumed by Tomcat if your log 
files look normal. Does the number of file handles climb steadily over 
time or rapidly balloon beyond norms on startup? What build of Linux is 
on the box in question?

Randy Watler
Finali Corporation
Francois JEANMOUGIN wrote:

 

-Message d'origine-
De : Ralph Einfeldt [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 22 octobre 2003 15:09
À : Tomcat Users List
Objet : RE: linux : Limit of file descriptor
Those are shared fd's.
   

Nope, those are real FDs

 

(Otherwise you would have hit the limit much earlier
as it is typically something betweenn 1024 and 4096).
   

Nope, on this server, it is 209713. You want some?

François.

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




smime.p7s
Description: S/MIME Cryptographic Signature


RE: linux : Limit of file descriptor

2003-10-22 Thread Francois JEANMOUGIN


> -Message d'origine-
> De : Ralph Einfeldt [mailto:[EMAIL PROTECTED]
> Envoyé : mercredi 22 octobre 2003 15:09
> À : Tomcat Users List
> Objet : RE: linux : Limit of file descriptor
> 
> Those are shared fd's.

Nope, those are real FDs
 
> (Otherwise you would have hit the limit much earlier
> as it is typically something betweenn 1024 and 4096).

Nope, on this server, it is 209713. You want some?

François.


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



RE: linux : Limit of file descriptor

2003-10-22 Thread Ralph Einfeldt
Those are shared fd's.

(Otherwise you would have hit the limit much earlier
as it is typically something betweenn 1024 and 4096).

> -Original Message-
> From: Francois JEANMOUGIN 
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 22, 2003 3:05 PM
> To: Tomcat Users List
> Subject: linux : Limit of file descriptor 
> 
> 
> One of my developers reached the limit of file descriptors 
> using tomcat. With no more than 400 clients at a time and 500 
> threads, we have more than 20 (two hundred thousands) of 
> FD opened. As far as I can read (just try to read a lsof 
> output with more than 20 lines), each thread seems to 
> open all the jar and java files.
> 

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



linux : Limit of file descriptor

2003-10-22 Thread Francois JEANMOUGIN
Hi all,

One of my developers reached the limit of file descriptors using tomcat. With no more 
than 400 clients at a time and 500 threads, we have more than 20 (two hundred 
thousands) of FD opened. As far as I can read (just try to read a lsof output with 
more than 20 lines), each thread seems to open all the jar and java files.

Anyone already seen this? It only happens on this machine, so it is probably 
configuration or application related. Just need some tip about such problem.

Thanks,

François.


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



Re: Can i use the same code in linux---sat

2003-10-21 Thread Daniel Gibby
You may want to change some settings because of that, but mostly just 
the paths to directories will be different to where things are located. 
Linux paths instead of Windows paths.

Daniel

kgsat wrote:

Hi Gibby,

Thanks for your response.Does the configuration mean that there are changes
in web.xml and server.xml files based on the OS?
regards
sat
- Original Message - 
From: "Daniel Gibby" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 21, 2003 3:35 PM
Subject: Re: Can i use the same code in linux---sat

 

The Java code should be the same, the only issue I know of is
configuration of your server. Environment variables are handled
differently, and paths to resources and configuration files are of
course different..
Daniel Gibby

kgsat wrote:

   

Hi folks,

I have been into a development for a video download site using jsp and
servlets. And it  was intended to run on windows 2000 with apache and
tomcat.
now the OS has been changed to linux9.0
Can i run the same code in linux also.Or i need to do any changes in
 

order
 

to run the windows java code in linux.

Any tips on this.Pl advise

thanks and regards
sat


 

-
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: Can i use the same code in linux---sat

2003-10-20 Thread kgsat
Hi Gibby,

Thanks for your response.Does the configuration mean that there are changes
in web.xml and server.xml files based on the OS?
regards
sat
- Original Message - 
From: "Daniel Gibby" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 21, 2003 3:35 PM
Subject: Re: Can i use the same code in linux---sat


> The Java code should be the same, the only issue I know of is
> configuration of your server. Environment variables are handled
> differently, and paths to resources and configuration files are of
> course different..
>
> Daniel Gibby
>
> kgsat wrote:
>
> >Hi folks,
> >
> >I have been into a development for a video download site using jsp and
> >servlets. And it  was intended to run on windows 2000 with apache and
> >tomcat.
> >now the OS has been changed to linux9.0
> >Can i run the same code in linux also.Or i need to do any changes in
order
> >to run the windows java code in linux.
> >
> >Any tips on this.Pl advise
> >
> >thanks and regards
> >sat
> >
> >
> >
>
>
>
> -
> 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: Can i use the same code in linux---sat

2003-10-20 Thread Daniel Gibby
The Java code should be the same, the only issue I know of is
configuration of your server. Environment variables are handled
differently, and paths to resources and configuration files are of
course different..

Daniel Gibby

kgsat wrote:

>Hi folks,
>
>I have been into a development for a video download site using jsp and
>servlets. And it  was intended to run on windows 2000 with apache and
>tomcat.
>now the OS has been changed to linux9.0
>Can i run the same code in linux also.Or i need to do any changes in  order
>to run the windows java code in linux.
>
>Any tips on this.Pl advise
>
>thanks and regards
>sat
>
>  
>



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



Can i use the same code in linux---sat

2003-10-20 Thread kgsat
Hi folks,
(B
(BI have been into a development for a video download site using jsp and
(Bservlets. And it  was intended to run on windows 2000 with apache and
(Btomcat.
(Bnow the OS has been changed to linux9.0
(BCan i run the same code in linux also.Or i need to do any changes in  order
(Bto run the windows java code in linux.
(B
(BAny tips on this.Pl advise
(B
(Bthanks and regards
(Bsat

Re: Slow HTTP upload speed with IE and Tomcat on Solaris (works fine on Linux and Windows)

2003-10-17 Thread Jonathan Eric Miller
Can someone that has a Solaris box try this (see the file attachments on my
original message)? It works great on my Linux box. Could it be some kind of
buffering problem?

I noticed something else that is strange. Mozilla uploads/downloads faster
with SSL than without when using Tomcat 5 on Linux (4.4 MBs versus 3 MBs).
IE is substantially slower when using SSL. I noticed that Mozilla was using
AES-128. IE was using 128 bit too, but, I don't know how to check what the
specific cipher suite was that was being used. Also, IE seems substantially
faster at downloads than Mozilla. IE was 9.47 MBs where as Mozilla was only
3 MBs.

Jon

- Original Message - 
From: "Jonathan Eric Miller" <[EMAIL PROTECTED]>
To: "Tomcat User List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 15, 2003 3:52 PM
Subject: Slow HTTP upload speed with IE and Tomcat on Solaris (works fine on
Linux and Windows)


> I'm having a strange problem with regard to HTTP upload speed when using
> Internet Explorer on Windows with Tomcat on Solaris. If I upload a 10 MB
> file over a 100 Mbs Ethernet connection, it takes 2 minutes 25 seconds if
I
> use IE (~80 Kbs). If I use Mozilla, it takes 3 seconds (~3 Mbs). If I try
> the same thing, but, run Tomcat on Linux instead, it takes 2 seconds when
> using IE. It takes 1 second if I run Tomcat on my local Windows computer.
> I'm using Solaris 8 with a patch cluster that I downloaded and installed
> within the last few weeks, Tomcat 5.0.12, J2SE 1.4.1, and the version of
> Internet Explorer that comes with Windows XP with all the Windows updates
> applied. The problem seems to occur with Tomcat 4.1.24 as well. I also
tried
> it on a different Windows 2000 computer to make sure nothing was wrong
with
> my XP box and the other computer had the same problem.
>
> Has anyone else had this problem? Is there anyone out there that has a
> Solaris box that wouldn't mind running the test application that I created
> to see if you have the same problem?
>
> I'm wondering if the problem might be with our network, but, I don't think
> that's the case because I have another application on a Solaris box that
> does HTTP uploads using a Perl application that doesn't have the
performance
> problem.
>
> Jon
>






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



Slow HTTP upload speed with IE and Tomcat on Solaris (works fine on Linux and Windows)

2003-10-15 Thread Jonathan Eric Miller
I'm having a strange problem with regard to HTTP upload speed when using
Internet Explorer on Windows with Tomcat on Solaris. If I upload a 10 MB
file over a 100 Mbs Ethernet connection, it takes 2 minutes 25 seconds if I
use IE (~80 Kbs). If I use Mozilla, it takes 3 seconds (~3 Mbs). If I try
the same thing, but, run Tomcat on Linux instead, it takes 2 seconds when
using IE. It takes 1 second if I run Tomcat on my local Windows computer.
I'm using Solaris 8 with a patch cluster that I downloaded and installed
within the last few weeks, Tomcat 5.0.12, J2SE 1.4.1, and the version of
Internet Explorer that comes with Windows XP with all the Windows updates
applied. The problem seems to occur with Tomcat 4.1.24 as well. I also tried
it on a different Windows 2000 computer to make sure nothing was wrong with
my XP box and the other computer had the same problem.

Has anyone else had this problem? Is there anyone out there that has a
Solaris box that wouldn't mind running the test application that I created
to see if you have the same problem?

I'm wondering if the problem might be with our network, but, I don't think
that's the case because I have another application on a Solaris box that
does HTTP uploads using a Perl application that doesn't have the performance
problem.

Jon
import java.text.*;
import java.util.*;

public class TimeSpan {
	public TimeSpan(Date startDate, Date endDate) {
		long l = (endDate.getTime() - startDate.getTime()) / 1000;
		hours = l / 60 / 60;
		minutes = l / 60 - (hours * 60);
		seconds = l - (hours * 60 * 60) - (minutes * 60);
	}
	
	public String toString() {
		Object[] o = {new Long(hours), new Long(minutes), new Long(seconds)};
		return new MessageFormat("{0,number,00}:{1,number,00}:{2,number,00}").format(o);
	}
	
	public long hours;
	public long minutes;
	public long seconds;
}
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class FileUpload3 extends HttpServlet {
	public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
		try {
			resp.setContentType("text/html");
			PrintWriter pw = resp.getWriter();
			pw.println("http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\";>");
			pw.println("File Upload");
			pw.println("");
			pw.println("File: ");
			pw.println("");
			pw.println("");
			pw.println("");
			pw.close();
		}
		catch(Exception e) {
			e.printStackTrace();
		}
	}

	public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {
		try {
			Date d = new Date();
			ServletInputStream sis = req.getInputStream();
			while(sis.read() != -1);
			sis.close();
			Date d2 = new Date();
			TimeSpan ts = new TimeSpan(d, d2);
			resp.setContentType("text/html");
			PrintWriter pw = resp.getWriter();
			pw.println("http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\";>");
			pw.println("File Upload");
			pw.println("");
			pw.println("" + ts + "");
			pw.println("");
			pw.println("");
			pw.close();
		}
		catch(Exception e) {
			e.printStackTrace();
		}
	}
}

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

RE: Download jk2 for apache2 and linux

2003-10-13 Thread Mario Juric
Hi Chap,

Do not know where the binaries went, but the source code is here:

http://mirrors.ccs.neu.edu/Apache/dist/jakarta/tomcat-4/source/

Equivalent binaries should otherwise be here:

http://mirrors.ccs.neu.edu/Apache/dist/jakarta/tomcat-4/binaries/

...but the connectors are absent. I had a lot of trouble figuring out how to
compile this, but I finally succeeded. If you have similar problems
yourself, you are welcome to ask me, I might be able to spare you the agony
I went through. I am now facing agonizing grsecurity problems...

Connecting Apache and Tomcat is not for sissies...

Cheers
Mario

-Original Message-
From: Anthony Gray [mailto:[EMAIL PROTECTED] 
Sent: 13. oktober 2003 14:31
To: [EMAIL PROTECTED]
Subject: Download jk2 for apache2 and linux

Hi,

I am trying to download the Apache-Tomcat connector for Apache2, however I
can't find the linux version.  I've tried the following links, but have had
no luck (even jk):

http://apache.ausgamers.com/jakarta/tomcat-connectors/jk2/binaries/
http://apache.ausgamers.com/jakarta/tomcat-connectors/jk/binaries/linux/

I was able to download the jk about 1 month ago but now the linux version
seems to have gone.  Any Ideas?

Thanks
Anthony

_
Hot chart ringtones and polyphonics. Go to  
http://ninemsn.com.au/mobilemania/default.asp


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



Download jk2 for apache2 and linux

2003-10-13 Thread Anthony Gray
Hi,

I am trying to download the Apache-Tomcat connector for Apache2, however I
can't find the linux version.  I've tried the following links, but have had
no luck (even jk):
http://apache.ausgamers.com/jakarta/tomcat-connectors/jk2/binaries/
http://apache.ausgamers.com/jakarta/tomcat-connectors/jk/binaries/linux/
I was able to download the jk about 1 month ago but now the linux version
seems to have gone.  Any Ideas?
Thanks
Anthony
_
Hot chart ringtones and polyphonics. Go to  
http://ninemsn.com.au/mobilemania/default.asp

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


RE: Tomcat on Linux

2003-09-29 Thread King,Daniel
I'm running tomcat 5x on Red Hat 7.2 and Red Hat 9.  The tomcat binary comes with a 
script at:
 
$CATALINA_HOME/bin/catalina.sh
 
To run tomcat as a service, create a script, let's call it 'tomcatservice', and put it 
at:
 
/etc/init.d/tomcatservice
 
Make it executable, keep it owned by root.  Assume you are going run tomcat as user 
'myuser'.  Install tomcat, which just amounts to untarring it, and moving it where you 
want it.  Change owner on the directory to myuser, eg.
 
chown -R myuser:myuser jakarta-tomcat-5.0.9
chmod -R 750 jakarta-tomcat-5.0.9
 
Then your 'tomcatservice' script will contain something like:
 
JAVA_HOME=/usr/java/j2sdk1.4.0_01
export JAVA_HOME
 
cd $CATALINA_HOME/bin
su myuser -c "./catalina.sh $*"
 
Then put a link to tomcatservice at:
 
cd /etc/rc3.d
 
as follows:
 
ln -s /etc/init.d/tocmatservice SNNtomcatservice
 
where NN is a number not already taken by the other links in that directory.  To kill 
tomcat, add:
 
ln -s /etc/init.d/tocmatservice KNNtomcatservice
 
S for start, K for kill.  Links in  /etc/rc3.d will be called automatically if you 
come up in text mode in linux.  If you start up in gui mode, do the same but go to 
/etc/rc5.d instead.  You might want to do both.
 
I call tomcat using port 8080, so I am not sure about your question regarding port 80.
 
One thing to look out for, is that RHL 8 and 9 are missing a library needed by Tomcat, 
libstdc++-libc6.1-1.so.2.  I had to get it from RHL 7.2 and copy it to /usr/lib on RHL 
9 to get Tomcat to run.

-Original Message- 
From: Joao Medeiros [mailto:[EMAIL PROTECTED] 
Sent: Sun 9/28/2003 12:42 PM 
To: 'Tomcat Users List' 
Cc: 
Subject: Tomcat on Linux



Hi folks,

    I've decided to start doing some testing on Tomcat under Linux for which
I have installed Redhat 8 which is now up and running, downloaded the
JSDK for Linux which is also setup and downloaded the Tomcat files but
before I go ahead and start installing it I was wondering if you could
help me out determining a few things:

- Shall I create a new user, i.e. 'Tomcat' and install the server under
it or shall I just put it under ROOT? I know that if I do choose to
install it under a different user other than ROOT I'll have to setup
special execute permissions so the server can run on port 80 for
instance...

- I read somewhere that in order for Tomcat to run as a daemon one will
have to use the jsvc tool. Has anyone got any experience in doing it?

TIA,
/JM




-
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 on Linux

2003-09-29 Thread Peter Harrison
On Mon, 29 Sep 2003 06:42, Joao Medeiros wrote:
> Hi folks,
>
> I've decided to start doing some testing on Tomcat under Linux for which
> I have installed Redhat 8 which is now up and running, downloaded the
> JSDK for Linux which is also setup and downloaded the Tomcat files but
> before I go ahead and start installing it I was wondering if you could
> help me out determining a few things:
>
> - Shall I create a new user, i.e. 'Tomcat' and install the server under
> it or shall I just put it under ROOT? I know that if I do choose to
> install it under a different user other than ROOT I'll have to setup
> special execute permissions so the server can run on port 80 for
> instance...

I have generally set up Tomcat under my own user account and run it on 8080. 
If you are in production you should be running Apache on the front end 
anyway, although I suggest you set up a "tomcat" account under users if this 
is the case, and install tomcat in /usr/local/tomcat. You don't need to do 
anything clever to make it work - tomcat runs without any special 
permissions.

I have however installed the JDK under /usr/local/java, and given execute 
permissions, but not write permissions. In other words its a standard JDK 
install if performed under root. I havn't dealt with permissions to TCP port 
80 if tomcat isn't running as root, so I can't help there.

> - I read somewhere that in order for Tomcat to run as a daemon one will
> have to use the jsvc tool. Has anyone got any experience in doing it?

I have a script which runs on boot to start tomcat on my production boxes. It 
can be found online easy enough. Essentially the script calls startup.sh. I 
have been running Tomcat on Linux for at least four years now - since 1999 
when I first got into this technology.

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



Tomcat on Linux

2003-09-28 Thread Joao Medeiros
Hi folks,

I've decided to start doing some testing on Tomcat under Linux for which
I have installed Redhat 8 which is now up and running, downloaded the
JSDK for Linux which is also setup and downloaded the Tomcat files but
before I go ahead and start installing it I was wondering if you could
help me out determining a few things:

- Shall I create a new user, i.e. 'Tomcat' and install the server under
it or shall I just put it under ROOT? I know that if I do choose to
install it under a different user other than ROOT I'll have to setup
special execute permissions so the server can run on port 80 for
instance...

- I read somewhere that in order for Tomcat to run as a daemon one will
have to use the jsvc tool. Has anyone got any experience in doing it?

TIA,
/JM




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



RE: Tomcat5, SSL, IBM JDK 1.4 and Linux

2003-09-26 Thread Halstead, Chris
Thanks Bill.  I actually stumbled across that nugget on a Resin discussion list around 
1AM and got it working.  Thank the gods for Google.

The interesting thing is that while IE, Netscape and Opera all fail to work with the 
setting sslProtocol="TLS" I had no problems at all connecting with Mozilla Firebird.  
There were no issues with wget either.  Go figure.

Since the IBM JDK is becoming more popular perhaps there should be something in the 
docs about 'IbmX509' and 'SSL' when using it.  If I get a spare moment I'll try to 
work up a doc patch.

Thanks again for the quick reply.

-chris


> -Original Message-
> From: Bill Barker [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 25, 2003 11:16 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Tomcat5, SSL, IBM JDK 1.4 and Linux
> 
> 
> It seems that IBM's JSSE implementation has some limitations 
> using the TLS
> protocol.  However, Tomcat seems to work fine if you change the
> sslProtocol="SSL".
> 

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



Re: Tomcat5, SSL, IBM JDK 1.4 and Linux

2003-09-25 Thread Bill Barker
It seems that IBM's JSSE implementation has some limitations using the TLS
protocol.  However, Tomcat seems to work fine if you change the
sslProtocol="SSL".

"Halstead, Chris" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
OK, I'm tearing my hair out here ;-)

What's the secret to making SSL work in Tomcat 5.0.12 when running on Linux
with IBM JDK 1.4?  I have followed the steps to the letter (thrice) and have
nothing to show for it yet.  I found that you need to set algorithm to
"IbmX509" in the connector def, which stopped me from getting IOExceptions
in JSSE14SocketFactory.init().  After doing that, the connector initializes
and binds to the port, but attempts to connect with a browser immediately
fail.  Netscape is nice enough to let me know that it could find no ciphers
in common with the server, whereas IE just fails.  Non-secure works great.

I followed the exact same steps on a Sun box running Sun's 1.4 JDK (with the
exact same install set, tarred and moved), and all works just fine.

This happens identically on an i386 machine as well as on an s/390 Linux
partition.

I even tried plopping the JSSE stuff in JAVA_HOME/jre/lib/ext, but no joy.

I have tried using a self-signed cert as well as a demo cert from Verisign.

What on earth am I missing?

-chris




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



Tomcat5, SSL, IBM JDK 1.4 and Linux

2003-09-25 Thread Halstead, Chris
OK, I'm tearing my hair out here ;-)

What's the secret to making SSL work in Tomcat 5.0.12 when running on Linux with IBM 
JDK 1.4?  I have followed the steps to the letter (thrice) and have nothing to show 
for it yet.  I found that you need to set algorithm to "IbmX509" in the connector def, 
which stopped me from getting IOExceptions in JSSE14SocketFactory.init().  After doing 
that, the connector initializes and binds to the port, but attempts to connect with a 
browser immediately fail.  Netscape is nice enough to let me know that it could find 
no ciphers in common with the server, whereas IE just fails.  Non-secure works great.

I followed the exact same steps on a Sun box running Sun's 1.4 JDK (with the exact 
same install set, tarred and moved), and all works just fine.

This happens identically on an i386 machine as well as on an s/390 Linux partition.

I even tried plopping the JSSE stuff in JAVA_HOME/jre/lib/ext, but no joy.

I have tried using a self-signed cert as well as a demo cert from Verisign.

What on earth am I missing?

-chris

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



RE: Tomcat heap memory allocation in Linux

2003-09-24 Thread Shapira, Yoav

Howdy,
So the same tomcat version and same JDK version on different platforms
yield different results? ;)  That's a shocker...  There have been
discussions on this list in the past regarding the unreliability (is
that a noun??) of the top command on linux.  You can search the archives
for more details.

You can use Runtime#totalMemory and the likes to measure heap memory
usage in a platform-independent way.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, September 24, 2003 2:53 PM
>To: [EMAIL PROTECTED]
>Subject: Tomcat heap memory allocation in Linux
>
>Hi,
>
>I am using tomcat 4.1.27 running on Red Hat Linux 9 and Sun's JDK
1.4.1_01.
>Here is my issue.  I wanted to allocate more heap space to run tomcat.
So,
>I
>placed the following line in the file catalina.sh:
>
>  JAVA_OPTS="-Xms256m -Xmx400m"
>
>I shut down tomcat, reboot linux, and started tomcat.  I executed the
>command
>top to verify the memory is actually being used up by tomcat.  Here is
the
>result of the top command:
>
>CPU states:  0.5% user,  8.7% system,  0.0% nice, 90.7% idle
>Mem:   384716K av,  183864K used,  200852K free,   0K shrd,
18980K
>buff
>Swap:  257000K av,   28672K used,  228328K free
59340K
>cached
>
>If you noticed, memory usage is less than the 256MB that I specified.
If
>you
>consider that other processes are also running, tomcat is not consuming
the
>initial 256MB that I specified in the JAVA_OPTS.  I thought maybe the
start
>command for tomcat is worry.  So, I ran a ps on the tomcat process and
got
>the
>following:
>
>UIDPID  PPID  C STIME TTY  TIME CMD
>root  6982 1  0 15:11 pts/100:00:11 /var/app/java/bin/java
-
>Xms256m -Xmx400m -Djava.endorsed.dirs=/var/app/tomcat/bin:/v
>
>I think this showed the executed command to start tomcat is correct.  I
am
>not
>sure what is going on.  Is the top command not returning an accurate
>reading?
>Am I forgot to do something here?  By the way, I also tried
CATALINA_OPTS
>instead of JAVA_OPTS and got the same result.
>
>Here is the strange thing.  When I used the JAVA_OPTS with tomcat
4.1.27
>running on Windows2000 server and Sun's JDK 1.4.1_01, tomcat is
actually
>consuming the initial memory that I specified in JAVA_OPTS.
>
>Does anybody have an idea?  Any help would be appreciated.
>
>Thanks,
>
>Son
>
>-
>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]



Tomcat heap memory allocation in Linux

2003-09-24 Thread sqdang
Hi,

I am using tomcat 4.1.27 running on Red Hat Linux 9 and Sun's JDK 1.4.1_01.  
Here is my issue.  I wanted to allocate more heap space to run tomcat.  So, I 
placed the following line in the file catalina.sh:

  JAVA_OPTS="-Xms256m -Xmx400m"

I shut down tomcat, reboot linux, and started tomcat.  I executed the command 
top to verify the memory is actually being used up by tomcat.  Here is the 
result of the top command:

CPU states:  0.5% user,  8.7% system,  0.0% nice, 90.7% idle
Mem:   384716K av,  183864K used,  200852K free,   0K shrd,   18980K buff
Swap:  257000K av,   28672K used,  228328K free   59340K cached

If you noticed, memory usage is less than the 256MB that I specified.  If you 
consider that other processes are also running, tomcat is not consuming the 
initial 256MB that I specified in the JAVA_OPTS.  I thought maybe the start 
command for tomcat is worry.  So, I ran a ps on the tomcat process and got the 
following:

UIDPID  PPID  C STIME TTY  TIME CMD
root  6982 1  0 15:11 pts/100:00:11 /var/app/java/bin/java -
Xms256m -Xmx400m -Djava.endorsed.dirs=/var/app/tomcat/bin:/v

I think this showed the executed command to start tomcat is correct.  I am not 
sure what is going on.  Is the top command not returning an accurate reading?  
Am I forgot to do something here?  By the way, I also tried CATALINA_OPTS 
instead of JAVA_OPTS and got the same result.

Here is the strange thing.  When I used the JAVA_OPTS with tomcat 4.1.27 
running on Windows2000 server and Sun's JDK 1.4.1_01, tomcat is actually 
consuming the initial memory that I specified in JAVA_OPTS.

Does anybody have an idea?  Any help would be appreciated.

Thanks,

Son

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



[OT]Tomcat-Apache-Cocoon-Perl-Java-Linux-XML Job

2003-09-16 Thread Joachim Bauernberger
Hi,

-> plz, excuse this off-topic post.

Anybody  interested please contact me off-list under.
mailto:[EMAIL PROTECTED]

Good knowledge of German language is required.

Best regards,
~/joachim


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



RE: Apache/Tomcat/MySQL Startup Sequence on Linux

2003-09-15 Thread Dana Bourgeois
Umm... you didn't get a response to your initial question about starting
things in the right order so perhaps I can help.

Sometimes it can be as easy as taking out background commands (ampersand)
from the scripts to force them to wait until the app completes its startup.


If that doesn't work, and I've seen plenty of cases where it doesn't, I'd
write a new script (wrapper) that calls the existing set of startup scripts
in proper order and waits for an indication that the application is up and
ready.  I haven't written such a thing for any of these applications but
MySQL, for example, should respond properly to an ODBC connection when it is
up.  Apache should respond to a GET.  Try scripting those in an until loop
after calling the regular startup script in your new SuperScript.  

Another technique is to loop in your wrapper watching either the regular
startup script to end (not likely to help with this problem), watching the
process list for an indication that startup is complete or watching the
messages log.  Sendmail, for example, is listed in the process list as
"accepting connections" when it is ready.  Apache should have the proper
number of child processes idling when it is ready.  

Your new Superscript should go in the proper spot for booting and the
regular scripts should be removed.  

Hope this helps.


Dana Bourgeois


> -Original Message-
> From: Walker Chris [mailto:[EMAIL PROTECTED] 
> Sent: Monday, September 15, 2003 2:39 AM
> To: 'Tomcat Users List'
> Subject: Apache/Tomcat/MySQL Startup Sequence on Linux
> 
> 
> Hi,
> 
> I'm having problems coordinating the startup scripts for 
> Apache, Tomcat (connected via mod_webapp) and MySQL.  The 
> situation seems to be this:
> 
> - mod_webapp requires Tomcat to be already running when httpd starts
> 
> - the Tomcat application contains a connection pool that 
> requires MySQL to be running when Tomcat starts (this is a 
> crap architecture, but I havn't time to change it)
> 
> I can execute the startup scripts manually in the sequence 
> MySQL/Tomcat/Apache, and everything is fine.  But when they 
> are executed at system boot it doesn't work.  The httpd log 
> contains a "web application not found" message, and pages 
> from the application are not available.
> 
> I've renamed the startup scripts so that the sequence is 
> correct, but it still doesn't work.  My guess is that most of 
> the Tomcat startup forks, so that the httpd startup is 
> invoked before it has completed.
> 
> I can think of two very klugey workarounds: 
> 
> - call httpd restart at the end of the Tomcat startup - what 
> will this do if the "real" httpd script is still executing?
> 
> - make the httpd script sleep for a while before it does 
> anything - but there's no way to guarantee it will sleep long enough
> 
> Alternatively I could add code to the httpd script to see if 
> Tomcat has completed its startup.  But I don't know for sure 
> how I would tell, and I'd rather avoid this sort of hack if 
> there's a proper way to do it.
> 
> Chris Walker
> 
> -
> 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: Apache/Tomcat/MySQL Startup Sequence on Linux

2003-09-15 Thread Walker Chris
Andy,

I wish.  The expression "I worked to 3am" may give you some idea of how much
spare time I have, especially now that I've got to reconfigure the
production server without anyone noticing...

Chris

-Original Message-
From: Andy Eastham [mailto:[EMAIL PROTECTED]
Sent: 15 September 2003 13:37
To: Tomcat Users List
Subject: RE: Apache/Tomcat/MySQL Startup Sequence on Linux


Chris,

Webapp is unsupported because JK is better and noone in the open source
community wants to support it.  Are you volunteering ;-)

Andy

> -Original Message-
> From: Walker Chris [mailto:[EMAIL PROTECTED]
> Sent: 15 September 2003 11:58
> To: 'Tomcat Users List'
> Subject: RE: Apache/Tomcat/MySQL Startup Sequence on Linux
>
>
> Aaargh!  I worked to 3am for several days to get webapp set up.
> I shouldn't
> believe what I read in books.
>
> What's the difference between jk and jk2?  And why is webapp unsupported?
>
> Chris
>
> -Original Message-
> From: Tim Funk [mailto:[EMAIL PROTECTED]
> Sent: 15 September 2003 11:46
> To: Tomcat Users List
> Subject: Re: Apache/Tomcat/MySQL Startup Sequence on Linux
>
>
> Don't use mod_webapp. Use jk or jk2. Webapp is unsupported.
>
> jk, jk2 allow for either side to go down and all is still ok when
> it comes
> back up
>
> -Tim
>
> Walker Chris wrote:
>
> > Hi,
> >
> > I'm having problems coordinating the startup scripts for Apache, Tomcat
> > (connected via mod_webapp) and MySQL.  The situation seems to be this:
> >
> > - mod_webapp requires Tomcat to be already running when httpd starts
> >
> > - the Tomcat application contains a connection pool that
> requires MySQL to
> > be running when Tomcat starts (this is a crap architecture, but I havn't
> > time to change it)
> >
> > I can execute the startup scripts manually in the sequence
> > MySQL/Tomcat/Apache, and everything is fine.  But when they are executed
> at
> > system boot it doesn't work.  The httpd log contains a "web application
> not
> > found" message, and pages from the application are not available.
> >
> > I've renamed the startup scripts so that the sequence is correct, but it
> > still doesn't work.  My guess is that most of the Tomcat
> startup forks, so
> > that the httpd startup is invoked before it has completed.
> >
> > I can think of two very klugey workarounds:
> >
> > - call httpd restart at the end of the Tomcat startup - what
> will this do
> if
> > the "real" httpd script is still executing?
> >
> > - make the httpd script sleep for a while before it does anything - but
> > there's no way to guarantee it will sleep long enough
> >
> > Alternatively I could add code to the httpd script to see if Tomcat has
> > completed its startup.  But I don't know for sure how I would tell, and
> I'd
> > rather avoid this sort of hack if there's a proper way to do it.
> >
> > Chris Walker
> >
>
>
> -
> 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: Apache/Tomcat/MySQL Startup Sequence on Linux

2003-09-15 Thread Andy Eastham
Chris,

Webapp is unsupported because JK is better and noone in the open source
community wants to support it.  Are you volunteering ;-)

Andy

> -Original Message-
> From: Walker Chris [mailto:[EMAIL PROTECTED]
> Sent: 15 September 2003 11:58
> To: 'Tomcat Users List'
> Subject: RE: Apache/Tomcat/MySQL Startup Sequence on Linux
>
>
> Aaargh!  I worked to 3am for several days to get webapp set up.
> I shouldn't
> believe what I read in books.
>
> What's the difference between jk and jk2?  And why is webapp unsupported?
>
> Chris
>
> -Original Message-
> From: Tim Funk [mailto:[EMAIL PROTECTED]
> Sent: 15 September 2003 11:46
> To: Tomcat Users List
> Subject: Re: Apache/Tomcat/MySQL Startup Sequence on Linux
>
>
> Don't use mod_webapp. Use jk or jk2. Webapp is unsupported.
>
> jk, jk2 allow for either side to go down and all is still ok when
> it comes
> back up
>
> -Tim
>
> Walker Chris wrote:
>
> > Hi,
> >
> > I'm having problems coordinating the startup scripts for Apache, Tomcat
> > (connected via mod_webapp) and MySQL.  The situation seems to be this:
> >
> > - mod_webapp requires Tomcat to be already running when httpd starts
> >
> > - the Tomcat application contains a connection pool that
> requires MySQL to
> > be running when Tomcat starts (this is a crap architecture, but I havn't
> > time to change it)
> >
> > I can execute the startup scripts manually in the sequence
> > MySQL/Tomcat/Apache, and everything is fine.  But when they are executed
> at
> > system boot it doesn't work.  The httpd log contains a "web application
> not
> > found" message, and pages from the application are not available.
> >
> > I've renamed the startup scripts so that the sequence is correct, but it
> > still doesn't work.  My guess is that most of the Tomcat
> startup forks, so
> > that the httpd startup is invoked before it has completed.
> >
> > I can think of two very klugey workarounds:
> >
> > - call httpd restart at the end of the Tomcat startup - what
> will this do
> if
> > the "real" httpd script is still executing?
> >
> > - make the httpd script sleep for a while before it does anything - but
> > there's no way to guarantee it will sleep long enough
> >
> > Alternatively I could add code to the httpd script to see if Tomcat has
> > completed its startup.  But I don't know for sure how I would tell, and
> I'd
> > rather avoid this sort of hack if there's a proper way to do it.
> >
> > Chris Walker
> >
>
>
> -
> 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: Apache/Tomcat/MySQL Startup Sequence on Linux

2003-09-15 Thread Tim Funk
FAQ.
http://jakarta.apache.org/tomcat/faq/connectors.html
-Tim

Walker Chris wrote:

Aaargh!  I worked to 3am for several days to get webapp set up.  I shouldn't
believe what I read in books.
What's the difference between jk and jk2?  And why is webapp unsupported?

Chris

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: 15 September 2003 11:46
To: Tomcat Users List
Subject: Re: Apache/Tomcat/MySQL Startup Sequence on Linux
Don't use mod_webapp. Use jk or jk2. Webapp is unsupported.

jk, jk2 allow for either side to go down and all is still ok when it comes 
back up

-Tim

Walker Chris wrote:


Hi,

I'm having problems coordinating the startup scripts for Apache, Tomcat
(connected via mod_webapp) and MySQL.  The situation seems to be this:
- mod_webapp requires Tomcat to be already running when httpd starts

- the Tomcat application contains a connection pool that requires MySQL to
be running when Tomcat starts (this is a crap architecture, but I havn't
time to change it)
I can execute the startup scripts manually in the sequence
MySQL/Tomcat/Apache, and everything is fine.  But when they are executed
at

system boot it doesn't work.  The httpd log contains a "web application
not

found" message, and pages from the application are not available.

I've renamed the startup scripts so that the sequence is correct, but it
still doesn't work.  My guess is that most of the Tomcat startup forks, so
that the httpd startup is invoked before it has completed.
I can think of two very klugey workarounds: 

- call httpd restart at the end of the Tomcat startup - what will this do
if

the "real" httpd script is still executing?

- make the httpd script sleep for a while before it does anything - but
there's no way to guarantee it will sleep long enough
Alternatively I could add code to the httpd script to see if Tomcat has
completed its startup.  But I don't know for sure how I would tell, and
I'd

rather avoid this sort of hack if there's a proper way to do it.

Chris Walker



-
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: Apache/Tomcat/MySQL Startup Sequence on Linux

2003-09-15 Thread Walker Chris
Aaargh!  I worked to 3am for several days to get webapp set up.  I shouldn't
believe what I read in books.

What's the difference between jk and jk2?  And why is webapp unsupported?

Chris

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: 15 September 2003 11:46
To: Tomcat Users List
Subject: Re: Apache/Tomcat/MySQL Startup Sequence on Linux


Don't use mod_webapp. Use jk or jk2. Webapp is unsupported.

jk, jk2 allow for either side to go down and all is still ok when it comes 
back up

-Tim

Walker Chris wrote:

> Hi,
> 
> I'm having problems coordinating the startup scripts for Apache, Tomcat
> (connected via mod_webapp) and MySQL.  The situation seems to be this:
> 
> - mod_webapp requires Tomcat to be already running when httpd starts
> 
> - the Tomcat application contains a connection pool that requires MySQL to
> be running when Tomcat starts (this is a crap architecture, but I havn't
> time to change it)
> 
> I can execute the startup scripts manually in the sequence
> MySQL/Tomcat/Apache, and everything is fine.  But when they are executed
at
> system boot it doesn't work.  The httpd log contains a "web application
not
> found" message, and pages from the application are not available.
> 
> I've renamed the startup scripts so that the sequence is correct, but it
> still doesn't work.  My guess is that most of the Tomcat startup forks, so
> that the httpd startup is invoked before it has completed.
> 
> I can think of two very klugey workarounds: 
> 
> - call httpd restart at the end of the Tomcat startup - what will this do
if
> the "real" httpd script is still executing?
> 
> - make the httpd script sleep for a while before it does anything - but
> there's no way to guarantee it will sleep long enough
> 
> Alternatively I could add code to the httpd script to see if Tomcat has
> completed its startup.  But I don't know for sure how I would tell, and
I'd
> rather avoid this sort of hack if there's a proper way to do it.
> 
> Chris Walker
>  


-
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: Apache/Tomcat/MySQL Startup Sequence on Linux

2003-09-15 Thread Tim Funk
Don't use mod_webapp. Use jk or jk2. Webapp is unsupported.

jk, jk2 allow for either side to go down and all is still ok when it comes 
back up

-Tim

Walker Chris wrote:

Hi,

I'm having problems coordinating the startup scripts for Apache, Tomcat
(connected via mod_webapp) and MySQL.  The situation seems to be this:
- mod_webapp requires Tomcat to be already running when httpd starts

- the Tomcat application contains a connection pool that requires MySQL to
be running when Tomcat starts (this is a crap architecture, but I havn't
time to change it)
I can execute the startup scripts manually in the sequence
MySQL/Tomcat/Apache, and everything is fine.  But when they are executed at
system boot it doesn't work.  The httpd log contains a "web application not
found" message, and pages from the application are not available.
I've renamed the startup scripts so that the sequence is correct, but it
still doesn't work.  My guess is that most of the Tomcat startup forks, so
that the httpd startup is invoked before it has completed.
I can think of two very klugey workarounds: 

- call httpd restart at the end of the Tomcat startup - what will this do if
the "real" httpd script is still executing?
- make the httpd script sleep for a while before it does anything - but
there's no way to guarantee it will sleep long enough
Alternatively I could add code to the httpd script to see if Tomcat has
completed its startup.  But I don't know for sure how I would tell, and I'd
rather avoid this sort of hack if there's a proper way to do it.
Chris Walker
 


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


Apache/Tomcat/MySQL Startup Sequence on Linux

2003-09-15 Thread Walker Chris
Hi,

I'm having problems coordinating the startup scripts for Apache, Tomcat
(connected via mod_webapp) and MySQL.  The situation seems to be this:

- mod_webapp requires Tomcat to be already running when httpd starts

- the Tomcat application contains a connection pool that requires MySQL to
be running when Tomcat starts (this is a crap architecture, but I havn't
time to change it)

I can execute the startup scripts manually in the sequence
MySQL/Tomcat/Apache, and everything is fine.  But when they are executed at
system boot it doesn't work.  The httpd log contains a "web application not
found" message, and pages from the application are not available.

I've renamed the startup scripts so that the sequence is correct, but it
still doesn't work.  My guess is that most of the Tomcat startup forks, so
that the httpd startup is invoked before it has completed.

I can think of two very klugey workarounds: 

- call httpd restart at the end of the Tomcat startup - what will this do if
the "real" httpd script is still executing?

- make the httpd script sleep for a while before it does anything - but
there's no way to guarantee it will sleep long enough

Alternatively I could add code to the httpd script to see if Tomcat has
completed its startup.  But I don't know for sure how I would tell, and I'd
rather avoid this sort of hack if there's a proper way to do it.

Chris Walker

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



Re: To Access File in Linux.

2003-09-15 Thread mourad jaber
Hi,
It's not java problem. it's cohabitation between Unix world and Windows...
I see 3 ways :
- If it is only read access you need, you can try to use http server
- Use ftp and you can use some common-net classes to use it in java.
- Install samba on your AIX and mount share directory on your windows 
and use it as local filesystem...

Mourad

Anitha K Rao wrote:

Hi,

  I have to find a solution for this. Can Anybody help me.

My Tomcat is on Windows.
My database server is on Windows/Linux.
My Actual Content which I need to put onto database is on AIX machine. 
Client can be a window/linux user.

How can I access from Java, files which are present on AIX machines?



Best Regards
Anitha
 



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


To Access File in Linux.

2003-09-15 Thread Anitha K Rao
Hi,

   I have to find a solution for this. Can Anybody help me.

My Tomcat is on Windows.
My database server is on Windows/Linux.
My Actual Content which I need to put onto database is on AIX machine. 
Client can be a window/linux user.

 How can I access from Java, files which are present on AIX machines?




Best Regards
Anitha


RE: Setting the classpath in Windows and Linux

2003-09-11 Thread Mike Curwen
As much as it is painful at first, if you download and stumble through
using ANT, you will never look back with regret. ANT allows you to
configure the classpath that is sent to the java compiler. No need to
copy or move any jars around.  It can be daunting at first, but like I
said, it's wonderful once you know your way around.

> -Original Message-
> From: Anson Zeall [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 11, 2003 8:27 AM
> To: Tomcat Users List
> Subject: Setting the classpath in Windows and Linux
> 
> 
> Hi,
> 
>  I have a question on setting the classpath for Windows 
> and Linux. Right now, I'm using a really stupid way (but 
> works for the moment =P) to compile my java files; copying 
> all the related jar files with my J2SE libraries. I know this 
> ain't the right method. So, I would like to ask who can lead 
> me to the right method? Hehe...
> 
> For windows, my Tomcat dir and java dir respectively, are located at:
> 
> C:\Apache\Tomcat  &C:\j2sdk_nb\j2sdk1.4.2
> 
> For Linux, my Tomcat dir and java dir respectively are located at:
> 
> /import/elfman/2/sew35/tomcat& /usr/local/java/jdk1.4.1
> 
> Regards,
> 
> 
> Anson
> 
> 


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



Setting the classpath in Windows and Linux

2003-09-11 Thread Anson Zeall
Hi,

 I have a question on setting the classpath for Windows and Linux. Right
now, I'm using a really stupid way (but works for the moment =P) to compile
my java files; copying all the related jar files with my J2SE libraries. I
know this ain't the right method. So, I would like to ask who can lead me to
the right method? Hehe...

For windows, my Tomcat dir and java dir respectively, are located at:

C:\Apache\Tomcat  &C:\j2sdk_nb\j2sdk1.4.2

For Linux, my Tomcat dir and java dir respectively are located at:

/import/elfman/2/sew35/tomcat& /usr/local/java/jdk1.4.1

Regards,


Anson

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

Windows / Linux Context Difference (Weirdness with HTML Links)

2003-09-09 Thread Brandon M. Blank
I have recently developed a site using Tomcat 4.1.27 under Linux. The
site resides at http:// <http://%3chost%3e/%3cappName> /.
When using an html link with the href set to "/index.jsp" it goes to
http:// <http://%3chost%3e/%3cappName%3e/index.jsp>
//index.jsp
 
When implementing this using tomcat 4.1.27 under Windows 2000 for my
client, the same link would go to the URL: http://
<http://%3chost%3e/index.jsp> /index.jsp
 
Both server.xml files use the same context definition.
 

 
Any ideas on what would be causing this behavior and how I can remedy it
without recoding all of my links?
 
Thanks.
 
BB


Windows / Linux Context Difference (Weirdness with HTML Links)

2003-09-08 Thread Brandon M. Blank
I have recently developed a site using Tomcat 4.1.27 under Linux. The
site resides at http:// <http://%3chost%3e/%3cappName> /.
When using an html link with the href set to "/index.jsp" it goes to
http:// <http://%3chost%3e/%3cappName%3e/index.jsp>
//index.jsp
 
When implementing this using tomcat 4.1.27 under Windows 2000 for my
client, the same link would go to the URL: http://
<http://%3chost%3e/index.jsp> /index.jsp
 
Both server.xml files use the same context definition.
 

 
Any ideas on what would be causing this behavior and how I can remedy it
without recoding all of my links?
 
Thanks.
 
BB
 


RE: Java Virtual Machines on Linux

2003-09-08 Thread Mike Cherichetti \(Renegade Internet\)
Ryan,

I've had good luck with the IBM JVM on Linux.  The Sun JVM is slower, uses
more memory, and isn't as stable.  At least that's been my experience with
it.  I'd narrow your options down to IBM and BEA.

Mike

-Original Message-
From: Ryan Lissack [mailto:[EMAIL PROTECTED]
Sent: Monday, September 08, 2003 12:36 PM
To: [EMAIL PROTECTED]
Subject: Java Virtual Machines on Linux


Hi,

I am interested to hear if others have used anything other than the Sun VM
for a production Tomcat system, running on Linux, and what their experiences
were.

>From what I can see, there are four main options at the moment:
Sun JRE 1.4.2
Blackdown JRE 1.4.1
IBM JRE 1.4.1
BEA JRockit 8.1 (J2SE 1.4 compatible)

Any comments/suggestions on any of the above?

We are using Tomcat 4.1 (with CoyoteConnector) running on x86 based dual CPU
machines using Red Hat Linux 9 (kernel 2.4.20-8smp).

Thanks for you attention.

Ryan


-
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: Java Virtual Machines on Linux

2003-09-08 Thread jmoliere
> Hi,
>
> I am interested to hear if others have used anything other than the Sun
> VM for a production Tomcat system, running on Linux, and what their
> experiences were.
>
> From what I can see, there are four main options at the moment:
> Sun JRE 1.4.2
> Blackdown JRE 1.4.1
> IBM JRE 1.4.1
> BEA JRockit 8.1 (J2SE 1.4 compatible)
>
> Any comments/suggestions on any of the above?
>
> We are using Tomcat 4.1 (with CoyoteConnector) running on x86 based dual
> CPU machines using Red Hat Linux 9 (kernel 2.4.20-8smp).
>

from my previous experience, if your application uses heavy serialization
(HTTP session replication for example) you could gain better response time
with the JRockit from BEA
never used the blackdown in production environement (just for development)
IBM 1.4 had several bugs (with properties loading...), I think they 're
fixed now

regards
Jerome
> Thanks for you attention.
>
> Ryan
>
>
> - 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]



Java Virtual Machines on Linux

2003-09-08 Thread Ryan Lissack
Hi,

I am interested to hear if others have used anything other than the Sun VM
for a production Tomcat system, running on Linux, and what their experiences
were.

>From what I can see, there are four main options at the moment:
Sun JRE 1.4.2
Blackdown JRE 1.4.1
IBM JRE 1.4.1
BEA JRockit 8.1 (J2SE 1.4 compatible)

Any comments/suggestions on any of the above?

We are using Tomcat 4.1 (with CoyoteConnector) running on x86 based dual CPU
machines using Red Hat Linux 9 (kernel 2.4.20-8smp).

Thanks for you attention.

Ryan


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



RE: How to get tomcat to autostart on linux

2003-09-03 Thread batristain
Thanks for the info

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 03, 2003 11:04 AM
To: Tomcat Users List
Subject: Re: How to get tomcat to autostart on linux



Courtesy of Oscar Carrillo:

http://daydream.stanford.edu/tomcat/install_web_services.html#daemons

You need to download his tomcatd script, and copy it to /etc/rc.d/init.d.

Then execute: /sbin/chkconfig --del tomcatd

Then execute: /sbin/chkconfig --add tomcatd

Note you will need to modify the tomcatd script to meet your needs, such 
as changing the paths, etc.

John

[EMAIL PROTECTED] wrote:

> Greetings,
> I need to know how to get tomcat to autostart on a redhat linux 8 box 
> - can anyone tell me?
> 
> Thanks,
> Bobbie
> 
> Bobbie Atristain
> Internet Systems Administrator
> Media General, INC.
> 804.649.6156
> 
> -
> 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 get tomcat to autostart on linux

2003-09-03 Thread Carlos Cajina - Hotmail
Hi Bobbie.

Please see
http://daydream.stanford.edu/tomcat/install_web_services.html#java  At the
end of the HOW-TO you'll find what you need...

Good luck!!!

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 03, 2003 8:52 AM
Subject: How to get tomcat to autostart on linux


> Greetings,
> I need to know how to get tomcat to autostart on a redhat linux 8 box -
can
> anyone tell me?
>
> Thanks,
> Bobbie
>
> Bobbie Atristain
> Internet Systems Administrator
> Media General, INC.
> 804.649.6156
>
> -
> 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 get tomcat to autostart on linux

2003-09-03 Thread Filip Hanik
you can create a script in /etc/init.d/ or
in /etc/rc.local simply put 

export TOMCAT_HOME=blablabla
export CATALINA_HOME=$TOMCAT_HOME
$CATALINA_HOME/bin/startup.sh

Filip


- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 03, 2003 7:52 AM
Subject: How to get tomcat to autostart on linux


Greetings,
I need to know how to get tomcat to autostart on a redhat linux 8 box - can
anyone tell me?

Thanks,
Bobbie

Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156

-
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 get tomcat to autostart on linux

2003-09-03 Thread John Turner
Courtesy of Oscar Carrillo:

http://daydream.stanford.edu/tomcat/install_web_services.html#daemons

You need to download his tomcatd script, and copy it to /etc/rc.d/init.d.

Then execute: /sbin/chkconfig --del tomcatd

Then execute: /sbin/chkconfig --add tomcatd

Note you will need to modify the tomcatd script to meet your needs, such 
as changing the paths, etc.

John

[EMAIL PROTECTED] wrote:

Greetings,
I need to know how to get tomcat to autostart on a redhat linux 8 box - can
anyone tell me?
Thanks,
Bobbie
Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156
-
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]


How to get tomcat to autostart on linux

2003-09-03 Thread batristain
Greetings,
I need to know how to get tomcat to autostart on a redhat linux 8 box - can
anyone tell me?

Thanks,
Bobbie

Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156

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



RE: Unable to obtain a module (.so) for JK2 on Linux (RH9)

2003-09-01 Thread Eric J. Pinnell
I agree with Stuart.  Use JK if JK2 won't work.  I don't understand what's
up with JK2 and RH9.  Enough people are having troubles with it.

I'm curious enough now to take a look.

-e

On Mon, 1 Sep 2003, Stuart Stephen wrote:

>
> I had a similar problem, it wouldn't compile a .so in RH9.
>
> I gave up on it and went back to good old trusty mod_jk 1 in the end.
>
> -Original Message-
> From: jerome moliere [mailto:[EMAIL PROTECTED]
> Sent: 30 August 2003 09:20
> To: Tomcat Users List
> Subject: Re: Unable to obtain a module (.so) for JK2 on Linux (RH9)
>
>
> Eric J. Pinnell wrote:
>
> >Hi,
> >
> >
> thanks eric,
>
> >JK2 should compile with just the following:
> >
> >./configure --with-apxs2=/path/to/apache/bin/apxs
> >make
> >
> >
> yes ,it should .
> but I still can't have this fu... module compiled
>
> >It should create mod_jk2.so in the build directory tree not in the
> >directory that you ran configure and make from.  I forget exactly where it
> >puts it but a find ./ | grep so from the top level of the source should
> >root it out quick fast.
> >
> >
> >
> yes the location is ../build/jk2/apache2 but allways empty for me (no
> .so at all)
> & the find keeps returning nothing for my .so
> can't spent much time for this problem so I'll use mod_proxy instead 
>
> Jerome
>
>
>
> -
> 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: Unable to obtain a module (.so) for JK2 on Linux (RH9)

2003-09-01 Thread Stuart Stephen

I had a similar problem, it wouldn't compile a .so in RH9.

I gave up on it and went back to good old trusty mod_jk 1 in the end.

-Original Message-
From: jerome moliere [mailto:[EMAIL PROTECTED]
Sent: 30 August 2003 09:20
To: Tomcat Users List
Subject: Re: Unable to obtain a module (.so) for JK2 on Linux (RH9)


Eric J. Pinnell wrote:

>Hi,
>  
>
thanks eric,

>JK2 should compile with just the following:
>
>./configure --with-apxs2=/path/to/apache/bin/apxs
>make
>  
>
yes ,it should .
but I still can't have this fu... module compiled

>It should create mod_jk2.so in the build directory tree not in the
>directory that you ran configure and make from.  I forget exactly where it
>puts it but a find ./ | grep so from the top level of the source should
>root it out quick fast.
>
>  
>
yes the location is ../build/jk2/apache2 but allways empty for me (no 
.so at all)
& the find keeps returning nothing for my .so
can't spent much time for this problem so I'll use mod_proxy instead 

Jerome



-
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: Unable to obtain a module (.so) for JK2 on Linux (RH9)

2003-08-30 Thread jerome moliere
Eric J. Pinnell wrote:

Hi,
 

thanks eric,

JK2 should compile with just the following:

./configure --with-apxs2=/path/to/apache/bin/apxs
make
 

yes ,it should .
but I still can't have this fu... module compiled
It should create mod_jk2.so in the build directory tree not in the
directory that you ran configure and make from.  I forget exactly where it
puts it but a find ./ | grep so from the top level of the source should
root it out quick fast.
 

yes the location is ../build/jk2/apache2 but allways empty for me (no 
.so at all)
& the find keeps returning nothing for my .so
can't spent much time for this problem so I'll use mod_proxy instead 

Jerome



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


Re: Unable to obtain a module (.so) for JK2 on Linux (RH9)

2003-08-29 Thread Eric J. Pinnell
Hi,

JK2 should compile with just the following:

./configure --with-apxs2=/path/to/apache/bin/apxs
make

It should create mod_jk2.so in the build directory tree not in the
directory that you ran configure and make from.  I forget exactly where it
puts it but a find ./ | grep so from the top level of the source should
root it out quick fast.

-e


On Fri, 29 Aug 2003, jerome moliere wrote:

> Hi all,
> i'm not sure that's the right place for such question but I'm unable for
> 2 days to get
> the compilation goes to end
> Everything seems to work but I don't have any so file generated...
>
> I'm using a configure with options:
> ./configure --with-tomcat40=/usr/local/tomcat/
> --with-tomcat41=/usr/local/tomcat/ --with-tomcat40=/usr/local/tomcat/
> --with-apxs2=/usr/local/apache2/bin/apxs
> --with-apr=/usr/local/apr-0.9.3  --with-apache2=/usr/local/httpd
>
> where  /usr/local/apache2 contains binaries for apache (&apxs2)
> /usr/local/httpd contains src files for apache
>
> I'm using the JK 2.0.2 files & Apache 2.0.47 on redhat 9 (with GCC 2.96
> or 3.2.2)
>
> any help greatly appreciated
> drives me crazy :)
>
> cheers
> Jerome
>
>
>
>
> -
> 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]



Unable to obtain a module (.so) for JK2 on Linux (RH9)

2003-08-29 Thread jerome moliere
Hi all,
i'm not sure that's the right place for such question but I'm unable for 
2 days to get
the compilation goes to end
Everything seems to work but I don't have any so file generated...

I'm using a configure with options:
./configure --with-tomcat40=/usr/local/tomcat/ 
--with-tomcat41=/usr/local/tomcat/ --with-tomcat40=/usr/local/tomcat/  
--with-apxs2=/usr/local/apache2/bin/apxs   
--with-apr=/usr/local/apr-0.9.3  --with-apache2=/usr/local/httpd

where  /usr/local/apache2 contains binaries for apache (&apxs2)
/usr/local/httpd contains src files for apache
I'm using the JK 2.0.2 files & Apache 2.0.47 on redhat 9 (with GCC 2.96 
or 3.2.2)

any help greatly appreciated
drives me crazy :)
cheers
Jerome


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


RE: Can't stop Tomcat-5.0.5 with Cocoon-2.1 on Linux

2003-08-29 Thread Morgan Pyne
Hi Victor,

Which JVM are you using? 

Assuming Sun's , try checking if you have started your JVM with the option 
"-Xrs", which reduces use of operating-system signals by the Java virtual 
machine.

If yes, this will prevent a thread dump from occurring when the JVM 
receives a SIGQUIT.

Regards,
Morgan


> -Original Message-
> From: Skladovs, Victor [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 28, 2003 18:02
> To: Tomcat Users List
> Subject: AW: Can't stop Tomcat-5.0.5 with Cocoon-2.1 on Linux
> 
> 
> Why nothing happens when I try to generate thread dump on Linux?
> 
> My steps:
> 
> 1)determine the java PID with pstree -p command:
> 
> -java(3855)---java(3856)-+-java(3857)
>  |-java(3858)
>  |-java(3859)
>  |-java(3860)
>  |-java(3861)
>  |-java(3862)
>  `-java(3863)
> 
> 2) then kill -QUIT 3855
> 
> NOTHING.
> 
> What do I do wrong?
> 
> Thanks,
> Viktor
> 
> -Ursprüngliche Nachricht-
> Von: Skladovs, Victor 
> Gesendet: Donnerstag, 28. August 2003 16:29
> An: Tomcat Users List
> Betreff: AW: Can't stop Tomcat-5.0.5 with Cocoon-2.1 on Linux
> 
> 
> I stop Tomcat with a command:
> 
> $TOMCAT_HOME/bin> ./shutdown.sh
> 
> Haven't managed to create a thread dump ... 
> 
> Viktor
> 
> -Ursprüngliche Nachricht-
> Von: Jean-Francois Arcand [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 28. August 2003 15:50
> An: Tomcat Users List
> Betreff: Re: Can't stop Tomcat-5.0.5 with Cocoon-2.1 on Linux
> 
> 
> My first guess is that Cocoon have a thread that doesn't die when you 
> stop the application (they probably have a shutdown listener). How do 
> you stop Tomcat?
> Can you also add a thread dump (CTRL-\) to this mail (do that before 
> stopping and then after if the console is still up)
> 
> -- Jeanfrancois
> 
> Skladovs, Victor wrote:
> 
> >Hi to all!
> >
> >I can't stop tomcat-5.0.5 on Linux with the latest cocoon - 
> 2.1. (with 
> >JDK 1.4.1_02)
> >
> >Although catalina.out seems to be allright:
> >
> >28.08.2003 15:21:53 org.apache.catalina.core.StandardService stop
> >INFO: Stopping service Catalina
> >28.08.2003 15:21:53 org.apache.coyote.http11.Http11Protocol destroy
> >INFO: Stoping http11 protocol on 8091 
> >Catalina:type=ThreadPool,name=http8091
> >28.08.2003 15:21:53 org.apache.catalina.core.StandardHostDeployer
> remove
> >INFO: Removing web application at context path /admin 28.08.2003 
> >15:21:53 org.apache.catalina.logger.LoggerBase stop
> >INFO: unregistering logger 
> >Catalina:type=Logger,path=/admin,host=localhost
> >28.08.2003 15:21:53 org.apache.catalina.core.StandardHostDeployer
> remove
> >INFO: Removing web application at context path /servlets-examples 
> >28.08.2003 15:21:53 org.apache.catalina.core.StandardHostDeployer
> remove
> >INFO: Removing web application at context path /jsp-examples 
> 28.08.2003 
> >15:21:53 org.apache.catalina.core.StandardHostDeployer
> remove
> >INFO: Removing web application at context path /cocoon
> >Thu Aug 28 15:21:54 CEST 2003 SHUTDOWN : System.exit() was 
> not called 
> >28.08.2003 15:21:54 org.apache.catalina.core.StandardHostDeployer
> remove
> >INFO: Removing web application at context path /tomcat-docs 
> 28.08.2003 
> >15:21:54 org.apache.catalina.core.StandardHostDeployer
> remove
> >INFO: Removing web application at context path /iceproject 
> 28.08.2003 
> >15:21:54 org.apache.catalina.core.StandardHostDeployer
> remove
> >INFO: Removing web application at context path
> >28.08.2003 15:21:54 org.apache.catalina.core.StandardHostDeployer
> remove
> >INFO: Removing web application at context path /manager 28.08.2003 
> >15:21:54 org.apache.catalina.logger.LoggerBase stop
> >INFO: unregistering logger Catalina:type=Logger,host=localhost
> >28.08.2003 15:21:54 org.apache.catalina.logger.LoggerBase stop
> >INFO: unregistering logger Catalina:type=Logger
> >
> >a "java process" is being always shown:
> >
> >myserver:/usr/local/tomcat-5.0.5/bin # ps -aux|grep java
> >
> >root 15859  0.0 17.8 248400 45592 pts/2  S15:20   0:00
> >/usr/local/j2sdk1
> >.4.2_01/bin/java -Djava.awt.headless=true 
> >-Djava.endorsed.dirs=/usr/local/tomcat
> >-5.0.5/common/endorsed -classpath 
> >/usr/local/j2sdk1.4.2_01/lib/tools.jar:/usr/lo
> >cal/tomcat-5.0.5/bin/bootstrap.jar:/usr/local/Apa

AW: Can't stop Tomcat-5.0.5 with Cocoon-2.1 on Linux

2003-08-28 Thread Skladovs, Victor
Why nothing happens when I try to generate thread dump on Linux?

My steps:

1)determine the java PID with pstree -p command:

-java(3855)---java(3856)-+-java(3857)
 |-java(3858)
 |-java(3859)
 |-java(3860)
 |-java(3861)
 |-java(3862)
 `-java(3863)

2) then kill -QUIT 3855

NOTHING.

What do I do wrong?

Thanks,
Viktor

-Ursprüngliche Nachricht-
Von: Skladovs, Victor 
Gesendet: Donnerstag, 28. August 2003 16:29
An: Tomcat Users List
Betreff: AW: Can't stop Tomcat-5.0.5 with Cocoon-2.1 on Linux


I stop Tomcat with a command:

$TOMCAT_HOME/bin> ./shutdown.sh

Haven't managed to create a thread dump ... 

Viktor

-Ursprüngliche Nachricht-
Von: Jean-Francois Arcand [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 28. August 2003 15:50
An: Tomcat Users List
Betreff: Re: Can't stop Tomcat-5.0.5 with Cocoon-2.1 on Linux


My first guess is that Cocoon have a thread that doesn't die when you 
stop the application (they probably have a shutdown listener). How do 
you stop Tomcat?
Can you also add a thread dump (CTRL-\) to this mail (do that before 
stopping and then after if the console is still up)

-- Jeanfrancois

Skladovs, Victor wrote:

>Hi to all!
>
>I can't stop tomcat-5.0.5 on Linux with the latest cocoon - 2.1. (with
>JDK 1.4.1_02)
>
>Although catalina.out seems to be allright:
>
>28.08.2003 15:21:53 org.apache.catalina.core.StandardService stop
>INFO: Stopping service Catalina
>28.08.2003 15:21:53 org.apache.coyote.http11.Http11Protocol destroy
>INFO: Stoping http11 protocol on 8091
>Catalina:type=ThreadPool,name=http8091
>28.08.2003 15:21:53 org.apache.catalina.core.StandardHostDeployer
remove
>INFO: Removing web application at context path /admin
>28.08.2003 15:21:53 org.apache.catalina.logger.LoggerBase stop
>INFO: unregistering logger
>Catalina:type=Logger,path=/admin,host=localhost
>28.08.2003 15:21:53 org.apache.catalina.core.StandardHostDeployer
remove
>INFO: Removing web application at context path /servlets-examples
>28.08.2003 15:21:53 org.apache.catalina.core.StandardHostDeployer
remove
>INFO: Removing web application at context path /jsp-examples
>28.08.2003 15:21:53 org.apache.catalina.core.StandardHostDeployer
remove
>INFO: Removing web application at context path /cocoon
>Thu Aug 28 15:21:54 CEST 2003 SHUTDOWN : System.exit() was not called
>28.08.2003 15:21:54 org.apache.catalina.core.StandardHostDeployer
remove
>INFO: Removing web application at context path /tomcat-docs
>28.08.2003 15:21:54 org.apache.catalina.core.StandardHostDeployer
remove
>INFO: Removing web application at context path /iceproject
>28.08.2003 15:21:54 org.apache.catalina.core.StandardHostDeployer
remove
>INFO: Removing web application at context path 
>28.08.2003 15:21:54 org.apache.catalina.core.StandardHostDeployer
remove
>INFO: Removing web application at context path /manager
>28.08.2003 15:21:54 org.apache.catalina.logger.LoggerBase stop
>INFO: unregistering logger Catalina:type=Logger,host=localhost
>28.08.2003 15:21:54 org.apache.catalina.logger.LoggerBase stop
>INFO: unregistering logger Catalina:type=Logger
>
>a "java process" is being always shown:
>
>myserver:/usr/local/tomcat-5.0.5/bin # ps -aux|grep java
>
>root 15859  0.0 17.8 248400 45592 pts/2  S15:20   0:00
>/usr/local/j2sdk1
>.4.2_01/bin/java -Djava.awt.headless=true
>-Djava.endorsed.dirs=/usr/local/tomcat
>-5.0.5/common/endorsed -classpath
>/usr/local/j2sdk1.4.2_01/lib/tools.jar:/usr/lo
>cal/tomcat-5.0.5/bin/bootstrap.jar:/usr/local/Apache2/htdocs/ice/icewww
/
>classes/
>ice -Dcatalina.base=/usr/local/tomcat-5.0.5
>-Dcatalina.home=/usr/local/tomcat-5.
>0.5 -Djava.io.tmpdir=/usr/local/tomcat-5.0.5/temp
>org.apache.catalina.startup.Bo
>otstrap start
>
>I must use "kill" command to stop process. 
>BUT IT WORKS WITHOUT COCOON!
>
>Has anybody already faced this problem? Any ideas?
>
>Thanx,
>Viktor
>
>-
>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]



AW: Can't stop Tomcat-5.0.5 with Cocoon-2.1 on Linux

2003-08-28 Thread Skladovs, Victor
I stop Tomcat with a command:

$TOMCAT_HOME/bin> ./shutdown.sh

Haven't managed to create a thread dump ... 

Viktor

-Ursprüngliche Nachricht-
Von: Jean-Francois Arcand [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 28. August 2003 15:50
An: Tomcat Users List
Betreff: Re: Can't stop Tomcat-5.0.5 with Cocoon-2.1 on Linux


My first guess is that Cocoon have a thread that doesn't die when you 
stop the application (they probably have a shutdown listener). How do 
you stop Tomcat?
Can you also add a thread dump (CTRL-\) to this mail (do that before 
stopping and then after if the console is still up)

-- Jeanfrancois

Skladovs, Victor wrote:

>Hi to all!
>
>I can't stop tomcat-5.0.5 on Linux with the latest cocoon - 2.1. (with
>JDK 1.4.1_02)
>
>Although catalina.out seems to be allright:
>
>28.08.2003 15:21:53 org.apache.catalina.core.StandardService stop
>INFO: Stopping service Catalina
>28.08.2003 15:21:53 org.apache.coyote.http11.Http11Protocol destroy
>INFO: Stoping http11 protocol on 8091
>Catalina:type=ThreadPool,name=http8091
>28.08.2003 15:21:53 org.apache.catalina.core.StandardHostDeployer
remove
>INFO: Removing web application at context path /admin
>28.08.2003 15:21:53 org.apache.catalina.logger.LoggerBase stop
>INFO: unregistering logger
>Catalina:type=Logger,path=/admin,host=localhost
>28.08.2003 15:21:53 org.apache.catalina.core.StandardHostDeployer
remove
>INFO: Removing web application at context path /servlets-examples
>28.08.2003 15:21:53 org.apache.catalina.core.StandardHostDeployer
remove
>INFO: Removing web application at context path /jsp-examples
>28.08.2003 15:21:53 org.apache.catalina.core.StandardHostDeployer
remove
>INFO: Removing web application at context path /cocoon
>Thu Aug 28 15:21:54 CEST 2003 SHUTDOWN : System.exit() was not called
>28.08.2003 15:21:54 org.apache.catalina.core.StandardHostDeployer
remove
>INFO: Removing web application at context path /tomcat-docs
>28.08.2003 15:21:54 org.apache.catalina.core.StandardHostDeployer
remove
>INFO: Removing web application at context path /iceproject
>28.08.2003 15:21:54 org.apache.catalina.core.StandardHostDeployer
remove
>INFO: Removing web application at context path 
>28.08.2003 15:21:54 org.apache.catalina.core.StandardHostDeployer
remove
>INFO: Removing web application at context path /manager
>28.08.2003 15:21:54 org.apache.catalina.logger.LoggerBase stop
>INFO: unregistering logger Catalina:type=Logger,host=localhost
>28.08.2003 15:21:54 org.apache.catalina.logger.LoggerBase stop
>INFO: unregistering logger Catalina:type=Logger
>
>a "java process" is being always shown:
>
>myserver:/usr/local/tomcat-5.0.5/bin # ps -aux|grep java
>
>root 15859  0.0 17.8 248400 45592 pts/2  S15:20   0:00
>/usr/local/j2sdk1
>.4.2_01/bin/java -Djava.awt.headless=true
>-Djava.endorsed.dirs=/usr/local/tomcat
>-5.0.5/common/endorsed -classpath
>/usr/local/j2sdk1.4.2_01/lib/tools.jar:/usr/lo
>cal/tomcat-5.0.5/bin/bootstrap.jar:/usr/local/Apache2/htdocs/ice/icewww
/
>classes/
>ice -Dcatalina.base=/usr/local/tomcat-5.0.5
>-Dcatalina.home=/usr/local/tomcat-5.
>0.5 -Djava.io.tmpdir=/usr/local/tomcat-5.0.5/temp
>org.apache.catalina.startup.Bo
>otstrap start
>
>I must use "kill" command to stop process. 
>BUT IT WORKS WITHOUT COCOON!
>
>Has anybody already faced this problem? Any ideas?
>
>Thanx,
>Viktor
>
>-
>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]



<    2   3   4   5   6   7   8   9   10   11   >