RE: EXTERNAL: Re: Tomcat hung

2010-11-18 Thread Robillard, Greg L
Production, as of yet, strangely, I have not been able to create this problem 
testing.

Here is the top of the stack without a profiler.

2010-10-04 10:35:50
Full thread dump Java HotSpot(TM) Server VM (10.0-b19 mixed mode):

Attach Listener daemon prio=10 tid=0x08170400 nid=0x716b waiting on condition 
[0x..0x]
   java.lang.Thread.State: RUNNABLE

http-8080-200 daemon prio=10 tid=0xcbca9800 nid=0xb5e waiting on condition 
[0xc5dbc000..0xc5dbcea0]
   java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for  0xd50244e8 (a 
java.util.concurrent.locks.ReentrantReadWriteLock$FairSync)
at java.util.concurrent.locks.LockSupport.park(Unknown Source)
at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(Unknown
 Source)
at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireShared(Unknown 
Source)
at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireShared(Unknown 
Source)
at 
java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.lock(Unknown Source)
at 
com.lmco.fltwinds.wxserver.wcs.ScanningCoverage.getOffering(ScanningCoverage.java:286)
at 
com.lmco.fltwinds.wxserver.wcs.ScanningCoverage.getCoverageOffering(ScanningCoverage.java:282)
at com.luciad.ogc.wcs.server.f.a(SourceFile:124)
at com.luciad.ogc.wcs.server.f.a(SourceFile:14)
at com.luciad.ogc.wcs.server.f$c.handleRequest(SourceFile:155)
at com.luciad.ogc.common.f.a(LuciadMap:41)
at com.luciad.ogc.wcs.TLcdWCSServlet.a(LuciadMap:68)
at com.luciad.ogc.wcs.TLcdWCSServlet.doGet(LuciadMap:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)

http-8080-199 daemon prio=10 tid=0xcbca8400 nid=0xb5d waiting on condition 
[0xc5e0d000..0xc5e0de20]
   java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for  0xd50244e8 (a 
java.util.concurrent.locks.ReentrantReadWriteLock$FairSync)
at java.util.concurrent.locks.LockSupport.park(Unknown Source)

I can include more if required.

-Original Message-
From: Pid [mailto:p...@pidster.com]
Sent: Wednesday, November 17, 2010 3:57 PM
To: Tomcat Users List
Subject: EXTERNAL: Re: Tomcat hung

On 17/11/2010 21:50, Robillard, Greg L wrote:
 I continually get tomcat in this state and can only recover by restarting 
 tomcat from the command line.  Here is the stack trace that I gathered while 
 getting into this state, but it does not make any sense to me.

Production or testing?

Are these the only threads?

What happens if you jstack without attempting to connect a profiler?


p

 Tomcat version apache-tomcat-6.0.26
 
 OS linux
 
 Jstack trace on tomcat hang.
 Tomcat is not responding, nor any webapps.  Profiler will not attach
 
 Attaching to process ID 21989, please wait...
 Debugger attached successfully.
 Server compiler detected.
 JVM version is 10.0-b19
 Deadlock Detection:
 
 No deadlocks found.
 
 Thread 15911: (state = BLOCKED)
 - 
 org.netbeans.lib.profiler.server.ProfilerRuntimeMemory.getAndSendCurre
 ntStackTrace(char, char, int, long) @bci=0, line=218 (Compiled frame)
 - 
 org.netbeans.lib.profiler.server.ProfilerRuntimeObjLiveness.traceObjAl
 loc(java.lang.Object, char) @bci=158, line=278 (Compiled frame)
 - 
 java.io.ObjectInputStream$BlockDataInputStream.init(java.io.ObjectIn
 putStream, java.io.InputStream) @bci=91, line=2359 (Interpreted frame)
 - java.io.ObjectInputStream.init(java.io.InputStream) @bci=25, 
 line=276 (Interpreted frame)
 - sun.rmi.server.MarshalInputStream.init(java.io.InputStream) 
 @bci=2, line=107 (Interpreted frame)
 - sun.rmi.transport.ConnectionInputStream.init(java.io.InputStream) 
 @bci=2, line=38 (Interpreted frame

RE: Tomcat hung

2010-11-18 Thread Robillard, Greg L
java -version
java version 1.6.0_05
Java(TM) SE Runtime Environment (build 1.6.0_05-b13) Java HotSpot(TM) Server VM 
(build 10.0-b19, mixed mode)

Last I checked, this is a real VM.

I will investigate the weather code.

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
Sent: Wednesday, November 17, 2010 3:58 PM
To: Tomcat Users List
Subject: EXTERNAL: RE: Tomcat hung

 From: Robillard, Greg L [mailto:greg.l.robill...@lmco.com]
 Subject: Tomcat hung

 JVM version is 10.0-b19

No idea what JVM that is; strongly suggest you install a real one (e.g., 6u22) 
and see if the problem goes away.

What happens if you run Tomcat directly, not under control of the IDE?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat hung

2010-11-18 Thread Robillard, Greg L
thx

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
Sent: Thursday, November 18, 2010 10:23 AM
To: Tomcat Users List
Subject: EXTERNAL: RE: Tomcat hung

 From: Robillard, Greg L [mailto:greg.l.robill...@lmco.com]
 Subject: RE: Tomcat hung

 Java(TM) SE Runtime Environment (build 1.6.0_05-b13) Java HotSpot(TM) 
 Server VM (build 10.0-b19, mixed mode)

 Last I checked, this is a real VM.

Yes, it was identifying it just as 10.0-b19 that was confusing.

You might want to upgrade, since 1.6.0_05 is quite old and lots of fixes have 
gone in since then.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Should I upgrade to 7.0

2010-11-18 Thread Robillard, Greg L
I am relatively unfamiliar with tomcat.  I am currently running 6.26 in a 
production system that support 1 webapp for approximately 60 clients that 
continually poll the server for updates ( weather files ).

Is there any reason why I should upgrade to tomcat 7.0 release.

Thanks


Tomcat hung

2010-11-17 Thread Robillard, Greg L
I continually get tomcat in this state and can only recover by restarting 
tomcat from the command line.  Here is the stack trace that I gathered while 
getting into this state, but it does not make any sense to me.

Tomcat version apache-tomcat-6.0.26

OS linux

Jstack trace on tomcat hang.
Tomcat is not responding, nor any webapps.  Profiler will not attach

Attaching to process ID 21989, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 10.0-b19
Deadlock Detection:

No deadlocks found.

Thread 15911: (state = BLOCKED)
- 
org.netbeans.lib.profiler.server.ProfilerRuntimeMemory.getAndSendCurrentStackTrace(char,
 char, int, long) @bci=0, line=218 (Compiled frame)
- 
org.netbeans.lib.profiler.server.ProfilerRuntimeObjLiveness.traceObjAlloc(java.lang.Object,
 char) @bci=158, line=278 (Compiled frame)
- 
java.io.ObjectInputStream$BlockDataInputStream.init(java.io.ObjectInputStream,
 java.io.InputStream) @bci=91, line=2359 (Interpreted frame)
- java.io.ObjectInputStream.init(java.io.InputStream) @bci=25, line=276 
(Interpreted frame)
- sun.rmi.server.MarshalInputStream.init(java.io.InputStream) @bci=2, 
line=107 (Interpreted frame)
- sun.rmi.transport.ConnectionInputStream.init(java.io.InputStream) @bci=2, 
line=38 (Interpreted frame)
- sun.rmi.transport.StreamRemoteCall.getInputStream() @bci=32, line=115 
(Interpreted frame)
- sun.rmi.transport.Transport.serviceCall(java.rmi.server.RemoteCall) @bci=1, 
line=124 (Interpreted frame)
- 
sun.rmi.transport.tcp.TCPTransport.handleMessages(sun.rmi.transport.Connection, 
boolean) @bci=217, line=541 (Compiled frame)
- sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0() @bci=821, 
line=810 (Interpreted frame)
- sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run() @bci=58, line=652 
(Interpreted frame)
- java.util.concurrent.ThreadPoolExecutor$Worker.runTask(java.lang.Runnable) 
@bci=59, line=885 (Interpreted frame)
- java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=28, line=907 
(Interpreted frame)
- java.lang.Thread.run() @bci=11, line=619 (Interpreted frame)


Thread 12244: (state = BLOCKED)
- 
org.netbeans.lib.profiler.server.ProfilerRuntimeMemory.getAndSendCurrentStackTrace(char,
 char, int, long) @bci=0, line=218 (Compiled frame)
- 
org.netbeans.lib.profiler.server.ProfilerRuntimeObjLiveness.traceObjAlloc(java.lang.Object,
 char) @bci=158, line=278 (Compiled frame)
- 
java.io.ObjectInputStream$BlockDataInputStream.init(java.io.ObjectInputStream,
 java.io.InputStream) @bci=91, line=2359 (Interpreted frame)
- java.io.ObjectInputStream.init(java.io.InputStream) @bci=25, line=276 
(Interpreted frame)
- sun.rmi.server.MarshalInputStream.init(java.io.InputStream) @bci=2, 
line=107 (Interpreted frame)
- sun.rmi.transport.ConnectionInputStream.init(java.io.InputStream) @bci=2, 
line=38 (Interpreted frame)
- sun.rmi.transport.StreamRemoteCall.getInputStream() @bci=32, line=115 
(Interpreted frame)
- sun.rmi.transport.Transport.serviceCall(java.rmi.server.RemoteCall) @bci=1, 
line=124 (Interpreted frame)
- 
sun.rmi.transport.tcp.TCPTransport.handleMessages(sun.rmi.transport.Connection, 
boolean) @bci=217, line=541 (Compiled frame)
- sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0() @bci=821, 
line=810 (Interpreted frame)
- sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run() @bci=58, line=652 
(Interpreted frame)
- java.util.concurrent.ThreadPoolExecutor$Worker.runTask(java.lang.Runnable) 
@bci=59, line=885 (Interpreted frame)
- java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=28, line=907 
(Interpreted frame)
- java.lang.Thread.run() @bci=11, line=619 (Interpreted frame)


Thread 22760: (state = BLOCKED)
- java.lang.Object.wait(long) @bci=0 (Interpreted frame)
- java.lang.Object.wait() @bci=2, line=485 (Interpreted frame)
- java.util.TimerThread.mainLoop() @bci=28, line=483 (Interpreted frame)
- java.util.TimerThread.run() @bci=1, line=462 (Interpreted frame)


Thread 3343: (state = BLOCKED)
- 
org.netbeans.lib.profiler.server.ProfilerRuntimeMemory.getAndSendCurrentStackTrace(char,
 char, int, long) @bci=0, line=218 (Compiled frame)
- 
org.netbeans.lib.profiler.server.ProfilerRuntimeObjLiveness.traceObjAlloc(java.lang.Object,
 char) @bci=158, line=278 (Compiled frame)
- java.lang.String.valueOf(char[]) @bci=12, line=2841 (Interpreted frame)
- java.lang.Thread.getName() @bci=4, line=1061 (Interpreted frame)
- 
org.apache.catalina.connector.CoyoteAdapter.service(org.apache.coyote.Request, 
org.apache.coyote.Response) @bci=120, line=295 (Interpreted frame)
- org.apache.coyote.http11.Http11Processor.process(java.net.Socket) @bci=468, 
line=852 (Interpreted frame)
- 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(java.net.Socket)
 @bci=82, line=588 (Interpreted frame)
- org.apache.tomcat.util.net.JIoEndpoint$Worker.run() @bci=41, line=489 
(Interpreted frame)
- java.lang.Thread.run() @bci=11, line=619 (Interpreted frame)


Thread 3255: (state = BLOCKED)
- 

Tomcat application with memory leak

2010-11-10 Thread Robillard, Greg L
Version: 6.0.26

I currently have 2 apps deployed in my tomcat container.  I originally was 
running tomcat with 1024M of memory.  The symptom was the applications would 
stop responding after approximately 5 days.  The log stated there was out of 
memory errors.

Symptoms:

1. Users could not access either of the applications within the tomcat 
container 2. Tomcat did not respond to the shutdown script (had to be killed 
with kill -9) 3. Tomcat log files had stopped responding.
4. There were a  lot of messages (134) java.lang.OutOfMemoryError: Java heap 
space in the localhost* logfile (normally there are a few or none)

In an attempt to resolve the problem, I increased memory to 2048.  This allows 
the applications to work for about 3 weeks before like symptoms happen.

I have two questions:

1.  How can I run 2 tomcat containers on the same server, so I can separate the 
applications for further debugging.
2.  What are some steps to use in identifying the problem.

Best regards,

Greg

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: LockoutRealm configuration problem

2010-06-30 Thread Robillard, Greg L
Thanks, I will remove that as well.

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
Sent: Tuesday, June 29, 2010 11:00 PM
To: Tomcat Users List
Subject: RE: LockoutRealm configuration problem

 From: Robillard, Greg L [mailto:greg.l.robill...@lmco.com]
 Subject: LockoutRealm configuration problem

One more thing...

 Jun 29, 2010 3:00:25 PM org.apache.catalina.loader.WebappClassLoader
 validateJarFile
 
 INFO: validateJarFile(C:\Program Files\Apache Software 
 Foundation\Tomcat 6.0\webapps\SystemAdministration\WEB-
 INF\lib\javaee.jar) - jar not loaded. See Servlet Spec 2.3, section 
 9.7.2. Offending class: javax/servlet/Servlet.class

Get rid of that javaee.jar file - you don't want it anywhere on a system that 
Tomcat is running on, and absolutely never inside the webapp, regardless of 
what app server you're using.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Advanced LockoutRealm procedures

2010-06-30 Thread Robillard, Greg L
Using the LockoutRealm is running on my application.  I am looking for some 
advanced features.


1.I would like to re-direct a locked user to a different error page, 
informing them of their locked status.

2.   I would like to remove the lock time and force an administrator to 
remove the lock.

Has anyone worked in this realm, or should I just develop customized security.

Greg


RE: Advanced LockoutRealm procedures

2010-06-30 Thread Robillard, Greg L
Thanks

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org]
Sent: Wednesday, June 30, 2010 9:37 AM
To: Tomcat Users List
Subject: Re: Advanced LockoutRealm procedures

On 30/06/2010 14:50, Robillard, Greg L wrote:
 Using the LockoutRealm is running on my application.  I am looking for some 
 advanced features.


 1.I would like to re-direct a locked user to a different error page, 
 informing them of their locked status.

That would require customizing the Realm. A patch to do this would not be 
accepted in the Tomcat code base since it is a (minor) security vulnerability 
(it tells an attacker they have a valid user id but an invalid password).

 2.   I would like to remove the lock time and force an administrator to 
 remove the lock.

That would also require customizing the Realm. A patch to do this would be 
accepted providing that the current practice of using a size limited LRU cache 
for the locked out users remained. I'd suggest values  0 representing infinite 
lockout. Note the unlock feature already exists and can be accessed via JMX.

 Has anyone worked in this realm, or should I just develop customized security.

Apart from me (I wrote it) I don't recall anyone touching that part of the code.

Mark

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



LockoutRealm configuration problem

2010-06-29 Thread Robillard, Greg L
When LockoutRealm is added to configuration, tomcat will not start and I 
receive the following errors.  All runs well when the wrapper is not used.



Apache Tomcat 6.0.20 Server



Server.xml configuration:

...

GlobalNamingResources

Resource name=jdbc/fltwinds auth=Container type=javax.sql.DataSource

  maxActive=20 maxIdle=5 maxWait=1 removeAbandoned=true 
removeAbandonedTimeout=60 logAbandoned=true

  username=fltwinds password=fltwinds 
driverClassName=org.gjt.mm.mysql.Driver

  url=jdbc:mysql://localhost:3306/fltwinds/



  /GlobalNamingResources



...



Realm className=org.apache.catalina.realm.LockOutRealm failureCount=5 
lockOutTime=300 cacheSize=1000 cacheRemovalWarningTime=3600

Realm className=org.apache.catalina.realm.DataSourceRealm 
digest=MD5

   dataSourceName=jdbc/fltwinds userTable=users 
userNameCol=username userCredCol=password

   userRoleTable=users roleNameCol=role/

 Realm/



Catalina ERROR:



Jun 29, 2010 2:46:57 PM org.apache.tomcat.util.digester.Digester startElement

SEVERE: Begin event threw exception

java.lang.NullPointerException

at 
sun.jkernel.DownloadManager.getBootClassPathEntryForClass(DownloadManager.java:928)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:293)

at java.lang.ClassLoader.loadClass(ClassLoader.java:300)

at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

at 
org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:205)

at org.apache.tomcat.util.digester.Rule.begin(Rule.java:153)

at 
org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1358)

at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)

at 
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)

at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1339)

at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)

at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)

at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)

at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)

at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)

at 
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)

at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)

at 
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)

at 
org.apache.tomcat.util.digester.Digester.parse(Digester.java:1644)

at org.apache.catalina.startup.Catalina.load(Catalina.java:521)

at org.apache.catalina.startup.Catalina.load(Catalina.java:555)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at 
org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)

at 
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)

Jun 29, 2010 2:46:57 PM org.apache.catalina.startup.Catalina load

WARNING: Catalina.start using conf/server.xml:

java.lang.NullPointerException

at 
org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2808)

at 
org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2834)

at 
org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1361)

at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)

at 
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:179)

at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1339)

at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2747)


RE: LockoutRealm configuration problem

2010-06-29 Thread Robillard, Greg L
That was it, thanks.

-Original Message-
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com]
Sent: Tuesday, June 29, 2010 3:34 PM
To: Tomcat Users List
Subject: Re: LockoutRealm configuration problem

2010/6/30 Robillard, Greg L greg.l.robill...@lmco.com:
 When LockoutRealm is added to configuration, tomcat will not start and I 
 receive the following errors.  All runs well when the wrapper is not used.

 Apache Tomcat 6.0.20 Server

The last released 6.0.x version is 6.0.26.  The 6.0.28 release candidate build 
is at voting now.

 Realm className=org.apache.catalina.realm.LockOutRealm 
 failureCount=5 lockOutTime=300 cacheSize=1000 
 cacheRemovalWarningTime=3600

            Realm className=org.apache.catalina.realm.DataSourceRealm 
 digest=MD5

                   dataSourceName=jdbc/fltwinds userTable=users 
 userNameCol=username userCredCol=password

                   userRoleTable=users roleNameCol=role/

  Realm/

The above line should be /Realm


 java.lang.NullPointerException

                at 
 sun.jkernel.DownloadManager.getBootClassPathEntryForClass(DownloadMana
 ger.java:928)

                at 
 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:293)

                at 
 java.lang.ClassLoader.loadClass(ClassLoader.java:300)

That is JRE code. I suppose that it is caused by calling
ClassLoader.loadClass() with a null className.

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: LockoutRealm configuration problem

2010-06-29 Thread Robillard, Greg L
Thanks, I will deploy the new driver.

-Original Message-
From: Pid [mailto:p...@pidster.com]
Sent: Tuesday, June 29, 2010 4:08 PM
To: Tomcat Users List
Subject: Re: LockoutRealm configuration problem

On 29/06/2010 21:14, Robillard, Greg L wrote:

   username=fltwinds password=fltwinds 
 driverClassName=org.gjt.mm.mysql.Driver

Old school!

MySQL have a nice shiny new Connector/J driver, com.mysql.jdbc.Driver, much 
better to use that unless you have a really good reason.


p


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org