mbeans-descriptors.xml

2003-03-19 Thread Uddhav Shirname
Hi,
  I have a customised implementation of JDBCRealm. I am encoutering the
following exception at start up.

ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with TomcatJDBCRealm
at
org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:615
)
at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:574)
at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:783)
at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:751)
at
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(Serve
rLifecycleListener.java:339)
at
org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(Ser
verLifecycleListener.java:206)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:218
2)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)


I googled and found that i need to have any entry in mbeans-descriptors.xml.
I added the required mbean to this file, jarred it with other classes and
placed it under server/lib. I stil encounter the above exception.

Any clues whats happening, or if I am missing anything.

Thanks,
Uddhav



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



Re: How to turn on secure (MD5 Digest) version of WebDAV?

2003-03-16 Thread Uddhav Shirname
What Security Realm are you using? JDBC,JNDI, MemoryRealm?
I have had problems with DIGEST authentication for JDBC and JNDIRealm.
I had to implement getPassword() and getPrincipal() methods to make it work
with digest authentication.

-- Uddhav

- Original Message -
From: "Basil Bourque" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 17, 2003 7:54 AM
Subject: How to turn on secure (MD5 Digest) version of WebDAV?


> How does one turn on the secure logon feature (MD5 Digest) in Tomcat's
> WebDAV server?
>
> I cannot find any documentation on the "auth-method" parameter in the
> virtual host's "web.xml" file:
>
>
>  BASIC
>  Tomcat Supported Realm
>
>
> I tried replacing "BASIC" with "DIGEST". I am not sure if it is working
> or not, but my WebDAV client (Mac OS X Finder) fails to connect, with
> the logon dialog repeatedly displayed. The Finder connects properly if
> I use the "BASIC" value.
>
> I looked in the Tomcat documentation, perused Remy's source code,
> googled, and even searched the >43,000 messages I've archived from this
> list, but I cannot locate information about the "auth-method".
>
> I have Tomcat 4.1.21 beta running on Mac OX X 10.2.4 with Java 1.4.1.
>
> --Basil Bourque
>
>
> -
> 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: Increase heap for a specific webapplication

2003-03-13 Thread Uddhav Shirname
Hi,
   My interpretation of the problem is that it may not be related to heap.
>From the statistics, the memory heap consumption seems to be within bearable
limits. I suspect that the the first servlet after being heavily loaded is
starving susbsquent requests for want of some resources critical to its
processing. Are you using any resource pools in the servlet that are
synchronized? This seems to be the most likely reason since your cpu
utilisation is also very low, which points that you may have some I/O wait
cycles blocking other requests (or some other synchronous blocking
activity).

-- Uddhav

- Original Message -
From: "Raja Sekhar" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, March 14, 2003 11:41 AM
Subject: RE: Increase heap for a specific webapplication


> Hi Shapira,
>
> I have actually increased the heap size on my server. Its a 4 CPU
processor with 4 GB Ram. So I increased my VM options when starting the
tomcat to start with 128M and go upto 1.24GB. I suppose thats pretty huge
for that. The problem here is, it doesn't max out the memory. When the
tomcat stops responding, I check for the heap size and the CPU processes.
Both are normal. For example, these are the statistics what I have when my
CPU is actually hanging. Just have a look at them
>
> The total memory occupied by the tomcat was 145 M of which
> 121M was resident. This is the top output
>
> last pid:  5794;  load averages:  0.16,  0.19,  0.26
> 20:43:38
> 45 processes:  44 sleeping, 1 on cpu
> CPU states: 37.1% idle, 61.5% user,  1.4% kernel,  0.0% iowait,  0.0% swap
> Memory: 512M real, 130M free, 299M swap in use, 1099M swap free
>
>PID USERNAME THR PRI NICE  SIZE   RES STATETIMECPU COMMAND
>   5370 gsatpath  21  590  130M  108M sleep   27:39 24.82% java
>   5521 tomcat29  590  145M  121M sleep   14:28  2.95% java
>   5794 gsatpath   1  590 2584K 1696K cpu  0:00  0.09% top
>429 root  12  580 2464K 2152K sleep0:56  0.00% mibiisa
>161 root   5  580 3216K 2272K sleep0:27  0.00% automountd
>   5496 tomcat 9  590   96M   23M sleep0:04  0.00% java
>321 root   1  300 2984K 1640K sleep0:03  0.00% sshd
>153 root   1   00 2016K 1264K sleep0:00  0.00% lockd
>152 daemon 4   10 2520K 1824K sleep0:00  0.00% statd
> 49 root   5   20 1344K  848K sleep0:00  0.00%
syseventconfd
> 47 root   9  120 1536K 1192K sleep0:00  0.00% syseventd
>366 root   5  230 3144K 2216K sleep0:00  0.00% dmispd
>226 root   5  310 2688K 2072K sleep0:00  0.00% vold
>   5276 root   1  380 1816K 1448K sleep0:00  0.00% in.telnetd
>   4510 root   1  390 1816K 1448K sleep0:00  0.00% in.telnetd
>
> Can any one let me know why tomcat can hang in such stage???
>
> ..Raj
> --
>
> On Thu, 13 Mar 2003 12:01:00
>  Shapira, Yoav wrote:
> >
> >Howdy,
> >There is one heap per JVM, period.  It has nothing to do with tomcat or
> >web applications.  You can tune this heap extensively using the various
> >java runtime options: http://java.sun.com/docs/hotspot/VMOptions.html
> >
> >If it's an emergency and in production, just allocate more memory to the
> >overall heap for now.  But you should immediately start to profile your
> >applications, identify any leaks, and fix them, all in a development
> >environment.
> >
> >Yoav Shapira
> >Millennium ChemInformatics
> >
> >
> >>-Original Message-
> >>From: Raja Sekhar [mailto:[EMAIL PROTECTED]
> >>Sent: Thursday, March 13, 2003 11:18 AM
> >>To: [EMAIL PROTECTED]
> >>Subject: Increase heap for a specific webapplication
> >>
> >>Hi,
> >>
> >>I have two web applications running in my Tomcat 4.0.6. One application
> >is
> >>data centric and heavily loaded and other is very light with hardly any
> >>users hitting. Now what I observe is sometimes if there is a heavy
> >search
> >>made on the first system... it basically stops responding. I cant send
> >any
> >>further requests till restart. But if I hit the second webapp, it still
> >>keeps responding.
> >>
> >>So what I feel is tomcat is internally dividing the heap and virtual
> >memory
> >>for all the webapps equally.. Is there anyway I can alter this heap for
> >>each webapp separately??
> >>
> >>Or please let me know any other alternative for this problem asap
> >because
> >>this is a production problem.
> >>
> >>Thanks & Regards,
> >>
> >>..Raj
> >>
> >>
> >>Need a new email address that people can remember
> >>Check out the new EudoraMail at
> >>http://www.eudoramail.com
> >>
> >>-
> >>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 

Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null'

2003-03-12 Thread Uddhav Shirname
I am not absolutely sure if this is the problem, but I have placed the
database related jars under server/lib. It works for me.

-- Uddhav

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 12, 2003 6:04 PM
Subject: Re: AW: java.sql.SQLException: Cannot load JDBC driver class 'null'


>
> Gerlinde,
>
> Thanks for the response!
> I placed my jdbc jar file under common/lib, but I still get the same error
> message.
> If you or anyone else has any other ideas, that would be greatly
appreciated.
>
>
>
>
> "Gerlinde Fischer"
> <[EMAIL PROTECTED]   To: "Tomcat
Users List" <[EMAIL PROTECTED]>
> amberg.de> cc:
>Subject: AW:
java.sql.SQLException: Cannot load JDBC driver class
> 03/12/2003 05:47 AM 'null'
> Please respond to "Tomcat
> Users List"
>
>
>
>
>
>
> Hi
>
> where ist your Database Connection? In the server.xml in the
> context for your test application.
>
> The jdbc.driver must be placed into the directory
> common/lib.
>
> I hope this will help.
>
> Regards Gerlinde
>
>
> > -Ursprungliche Nachricht-
> > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Gesendet: Dienstag, 11. Marz 2003 22:58
> > An: [EMAIL PROTECTED]
> > Betreff: java.sql.SQLException: Cannot load JDBC driver class 'null'
> >
> >
> > Tomcat version - 4.1.12
> > MySQL version - 3.23.55-nt
> > OS - WinNT
> > JDK - 1.4.1_01
> >
> > I have researched this problem on the internet and in the
> > documentation for
> > Tomcat, and I still haven't resolved this issue. So, I'm looking
> > for help from
> > someone from this list.
> >
> > Here is my URL that I invoke: http://localhost:8080/dbtest/test.jsp
> > Here is the error I receive:
> >
> > java.sql.SQLException: Cannot load JDBC driver class 'null' at
> > org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
> > rce.java:529)
> >
> > Referencing this URL -
> > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-ex
> > amples-howto.html:
> > 1. I have a database and table with 1 row of data
> > 2. Here is the chunk of code that I inserted into my
> > $CATALINA_HOME/conf/server.xml.
> > 
> >> debug="5" reloadable="true" crossContext="true">
> >
> > >   prefix="localhost_DBTest_log." suffix=".txt"
> >   timestamp="true"/>
> >
> > > auth="Container"
> > type="javax.sql.DataSource"/>
> >
> >
> >
> >  factory
> >
> > org.apache.commons.dbcp.BasicDataSourceFactory
> >
> >
> >
> >
> >  maxActive
> >  100
> >
> >
> >
> >
> >  maxIdle
> >  30
> >
> >
> >
> >
> >  maxWait
> >  1
> >
> >
> >
> >
> > username
> > bugtracker
> >
> >
> > password
> > footin
> >
> >
> >
> >
> >   driverClassName
> >   org.gjt.mm.mysql.Driver
> >
> >
> >
> >
> >  url
> > 
> > jdbc:mysql://localhost:3306/bugtracker
> >
> >
> >
> > 3. Here is my web.xml under
$CATALINA_HOME/webapps/dbtest/web-inf/web.xml:
> >  
> >  > "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> > "http://java.sun.com/dtd/web-app_2_3.dtd";>
> > 
> >   MySQL Test App
> >   
> >   DB Connection
> >   jdbc/TestDB
> >   javax.sql.DataSource
> >   Container
> >   
> > 
> >
> > 4. Added my DB Driver under
> > $CATALINA_HOME/webapps/dbtest/lib/org/git/mm/mysql/Driver.class.
> > I also tried
> > just putting the jar file under the /lib.
> >
> > 5. Created a JSP and class just like in the example above. I just
> > changed my
> > select statement inside the class, that's all.
> >
> > 6. I have verified that my database is indeed running.
> >
> > 7. In my.ini (for MySQL), the port setting is NOT commented. The
> > bind-address IS
> > commented out.
> >
> > Thanks for any help!
> > Kevin
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional comma

Unable to authenticate using JDBCRealm

2003-03-12 Thread Uddhav Shirname
Hi,
   I have unencrypted passowords stored in database. I want users to be
authenticated using DIGEST scheme specified in web.xml. I am unable to do
this. Has anyone been able to succefully use JDBCRealm for DIGEST
authnenticatoin?(BASIC authn with JDBCRealm works fine). I am using Tomcat
4.1.18. Follwing are my configuration settings.

  server.xml:
  --
  

   web.xml:
   -

DIGEST
OnJava Application


Thanks,
Uddhav


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