Re: JVM' sperm size always increase after hot deploy to tomcat 5.0.28

2005-04-07 Thread edencane
Hi,

I'm afraid the subject of this post caused it to go to my spam box, :-
L.

On Apr 8, 2005 6:18 AM, Paulo Alvim [EMAIL PROTECTED] wrote:
 Hi,
 
 We had a war file with about 30MB using JSP pre-compilation and hot deploy
 as suggested in the Tomcat web-site. But after using the hot deploy a few
 times we received out of memory messages - in the JVM permanent area
 (perm).
 
 After migrating to 1.5.0_02 - to get better JVM information - we could see
 that the used perm size always increase until this max size, in every
 Tomcat app reloading (even with exploded files and Ant 'touches'). We
 always lost 7 to 15MB of the perm area in every reload process - and this
 area is never collected...
 
 Anyone could help us with more information here (maybe about TC class
 loaders or perm area)?
 
 Is there anyone with the same problem?
 
 Thanks in advance!
 
 Paulo Alvim
 Powerlogic
 Brazil
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
._
:|  .| |.|/.|_ 
:|__.|_|.|\.|_
:0421 276 282.

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



Re: Installation problem

2005-04-01 Thread edencane
Hi,

01Apr2005 @ 22:24 Panagiotis Karvounis thusly spake
 I am trying to install Tomcat latest version but I have a problem.
 During installation a problem about jvm.dll occurs!
 Can you help me?

Try uninstalling tomcat first.
If you already have a tomcat installed, you will get this message.
Remove the other tomcats, or remove the existing 'jvm.dll' file.

hth,
Luke

--
   /  /  _
  /_ /_/ / /=
  0421 276 282

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



Re: tomcat 5.5.7 / windowsXP / access database

2005-03-26 Thread edencane
Hi,

I've solved the problem. 
I needed to declare a 'system-wide' datasource on the windowsXP box.
In adminstrative tools, firstup I declared a user DSN, that has to be
a System DSN,
then it worked.

NOTE: the DriverManager.getConnection() method has a few different
constructors. Once you have the System wide DSN, any of the following
constructors work:
DriverManager.getConnection(jdbc:odbc:db);
DriverManager.getConnection(jdbc:odbc:db,,);
DriverManager.getConnection(jdbc:odbc:db,user,pass);

these all worked regardless of the settings for 'username' and
'password' in server.xml, even deleting those to settings from
server.xml didn't affect access to the access database.
THis was once again confirmed by rebooting the windows box and
(obviously) starting all services again.

Have a great Easter!
Luke

~
Hi,

I've recently started to experiment with tomcat 5.5.7 on windows XP,
trying to access an Access (.mdb) database.
I've set up a datasource in windows administration tools and used the
the tomcat administration (which had to be installed separately) to
configure a datasource in tomcat.

this gave me the following in 'server.xml' under GlobalNamingResources:
___
/
   Resource
 name=movies
 type=javax.sql.DataSource
 password=
 driverClassName=sun.jdbc.odbc.JdbcOdbcDriver
 maxIdle=2
 maxWait=5000
 username=
 url=jdbc:odbc:movies
 maxActive=4/
\___

I then got a servlet going with the following:
___
/
   Connection con = null;
   try {
   // Load the Driver class file
   Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
   out.println(Getting Connection!);
   // Make a connection to the ODBC datasource Movie Catalog
   // In this example we are opening a connection to the
   // database with every request.
   con = DriverManager.getConnection(jdbc:odbc:movies,,);
   if ( con == null ) {
   out.println(no Connection!);
   }
   else {
   out.println(we have a connection);
   }
\___

restarted tomcat and tried but get the following message after an
SqlException is thrown.
___
/
   SQLException -- [Microsoft][ODBC Driver Manager] Data source name
not found and no default
   driver specified
\___

In other words it chokes at:
___
/
   con = DriverManager.getConnection(jdbc:odbc:movies,,);
\___

any hints as to what I'm doing wrong?

thanks,
kind regards,
Luke

--
  /  /  _
 /_ /_/ / /=
 0421 276 282

  Hi,
 
  I've recently started to experiment with tomcat 5.5.7 on windows XP,
  trying to access an Access (.mdb) database.
  I've set up a datasource in windowsXP administration tools and used
  the the tomcat administration (which had to be installed separately)
  to configure a datasource in tomcat.
 
  this gave me the following in 'server.xml' under GlobalNamingResources:
  ___
  /
Resource
  name=movies
  type=javax.sql.DataSource
  password=
  driverClassName=sun.jdbc.odbc.JdbcOdbcDriver
  maxIdle=2
  maxWait=5000
  username=
  url=jdbc:odbc:movies
  maxActive=4/
  \___
 
  I then got a servlet going with the following:
  ___
  /
Connection con = null;
try {
// Load the Driver class file
Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
out.println(Getting Connection!);
// Make a connection to the ODBC datasource Movie Catalog
// In this example we are opening a connection to the
// database with every request.
con = DriverManager.getConnection(jdbc:odbc:movies,,);
if ( con == null ) {
out.println(no Connection!);
}
else {
out.println(we have a connection);
}
  \___
 
  restarted tomcat and tried but get the following message after an
  SqlException is thrown.
  ___
  /
SQLException -- [Microsoft][ODBC Driver Manager] Data source name
  not found and no default
driver specified
  \___
 
  In other words it chokes at:
  ___
  /
con = DriverManager.getConnection(jdbc:odbc:movies,,);
  \___
 
  any hints as to what I'm doing wrong?
 
  thanks,
  kind regards,
  Luke
 
  --
   /  /  _
  /_ /_/ / /=
  0421 276 282
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 


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



tomcat 5.5.7 / windowsXP / access database

2005-03-25 Thread edencane
Hi,

I've recently started to experiment with tomcat 5.5.7 on windows XP,
trying to access an Access (.mdb) database.
I've set up a datasource in windowsXP administration tools and used
the the tomcat administration (which had to be installed separately)
to configure a datasource in tomcat.

this gave me the following in 'server.xml' under GlobalNamingResources:
___
/
   Resource
 name=movies
 type=javax.sql.DataSource
 password=
 driverClassName=sun.jdbc.odbc.JdbcOdbcDriver
 maxIdle=2
 maxWait=5000
 username=
 url=jdbc:odbc:movies
 maxActive=4/
\___

I then got a servlet going with the following:
___
/
   Connection con = null;
   try {
   // Load the Driver class file
   Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
   out.println(Getting Connection!);
   // Make a connection to the ODBC datasource Movie Catalog
   // In this example we are opening a connection to the
   // database with every request.
   con = DriverManager.getConnection(jdbc:odbc:movies,,);
   if ( con == null ) {
   out.println(no Connection!);
   }
   else {
   out.println(we have a connection);
   }
\___

restarted tomcat and tried but get the following message after an
SqlException is thrown.
___
/
   SQLException -- [Microsoft][ODBC Driver Manager] Data source name
not found and no default
   driver specified
\___

In other words it chokes at:
___
/
   con = DriverManager.getConnection(jdbc:odbc:movies,,);
\___

any hints as to what I'm doing wrong?

thanks,
kind regards,
Luke

--
  /  /  _
 /_ /_/ / /=
 0421 276 282

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



late response to servlet api question ? thread

2005-03-24 Thread edencane
Hi, sorry about the late response to this, but the tomcat list is
refusing emails from my regular address because I am sending from a
dynamic IP address (I am using sendmail on a local machine to send
mail, rather than my ISPs smtp server, heh).
 
/
Hi,
19Mar2005 @ 05:41 brian thusly spake
 What are the advantages or the reason for the popularity of
 servlet api vis-a-vis the web server specific api ?

 Say Netscape server or IIS server also have their own
 specific api's as well where one could write server side
 code. But the servlet api is so popular and wide spread and
 one could argue that java sdk is free but then companies buy
 the third party j2ee servers like websphere or weblogic.

Don't quite understand what your question is -- I'll give it a go.
servlet api is a de facto standard put out by SUN,
the original specs, with which a container such as tomcat, webspere
(IBM), or weblogic (BEA), comply.

Netscape Server (iplanet), IIS or Apache are web servers, that is they
do not *do* servlets and JSPs.
+Apache can be made to serve them up using loadable modules.
Web servers are different beasts to Servlet containers.
Why companies buy a custom, tailored or otherwise proprietary product
is usually because of
+*out_of_the_box* (turn-key) solutions, available(payed for) support.
With an open source product there is quite a bit of learning, tuning,
configuration etc. that you need to
+do.
This can be challenging to company employees who are *used to* lock-in
solutions, and absolutely
+terrifying to unsavvy management, the idea of *no* support and open
(not completely controlled) code,
+can be very challenging.

Personally, I think the *Sun* solution is great.

hth,
kind regards,
Luke
\___

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