tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geoff Soutter" <ge...@whitewolf.com.au>
Subject [CATALINA] last checkin broke MemoryRealm? [was Re: [catalina] build.xml bugs?]
Date Thu, 27 Jul 2000 01:05:21 GMT
Hi Craig

> I suspect this problem is related to your previous problem building
> Tomcat
> itself.  If that job doesn't complete correctly, Catalina won't build
> correctly
> either.  (I just did clean builds of both and they worked for me, and
> both
> executed).

I created a new dir, checked out tomcat into it, and now it builds ok, and I
can get catalina to build too using the updated build stuff. However, when I
try and run catalina, it gets into what appears to be an endless loop during
the startup.

heres an example thread dump

D:\apps\jakarta\latest\build\catalina>bin\catalina run
Using BOOT PATH:
.\bin\bootstrap.jar;d:\apps\jdk\130\jre\lib\i18n.jar;d:\apps\jdk\130\jre\lib
\rt.jar;d:\apps\jdk\130\lib\tools.jar
Using CLASSPATH: .\dummy;.\lib\jasper.jar;.\lib\servlet.jar
Full thread dump:

"Signal Dispatcher" daemon prio=10 tid=0x768610 nid=0x129 waiting on monitor
[0..0]

"Finalizer" daemon prio=9 tid=0x765060 nid=0xb1 waiting on monitor
[0x8d8f000..0x8d8fdc8]
        at java.lang.Object.wait(Native Method)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:108)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:123)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:162)

"Reference Handler" daemon prio=10 tid=0x765d10 nid=0xea waiting on monitor
[0x8d4f000..0x8d4fdc8]
        at java.lang.Object.wait(Native Method)
        at java.lang.Object.wait(Object.java:420)
        at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:110)

"main" prio=5 tid=0x7619a0 nid=0xe9 runnable [0x6f000..0x6fc3c]
        at java.lang.String.indexOf(String.java:1330)
        at java.lang.String.indexOf(String.java:1274)
        at org.apache.tomcat.realm.MemoryRealm.addUser(MemoryRealm.java:340)
        at
org.apache.tomcat.realm.MemoryRealmUserAction.start(MemoryRealm.java:644)
        at
org.apache.tomcat.util.xml.XmlMapper.matchStart(XmlMapper.java:384)
        at
org.apache.tomcat.util.xml.XmlMapper.startElement(XmlMapper.java:81)
        at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391)
        at com.sun.xml.parser.Parser.content(Parser.java:1499)
        at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
        at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
        at com.sun.xml.parser.Parser.parse(Parser.java:284)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:126)
        at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:214)
        at org.apache.tomcat.realm.MemoryRealm.start(MemoryRealm.java:488)
        at
org.apache.tomcat.core.ContainerBase.start(ContainerBase.java:1105)
        at
org.apache.tomcat.core.StandardServer.start(StandardServer.java:440)
        at org.apache.tomcat.startup.Catalina.start(Catalina.java:517)
        at org.apache.tomcat.startup.Catalina.execute(Catalina.java:488)
        at org.apache.tomcat.startup.Catalina.process(Catalina.java:160)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.tomcat.startup.Bootstrap.main(Bootstrap.java:138)

"VM Thread" prio=5 tid=0x764f90 nid=0xb4 runnable

"VM Periodic Task Thread" prio=10 tid=0x767010 nid=0xa4 waiting on monitor
Full thread dump:

and then I did it a few seconds later...

"Signal Dispatcher" daemon prio=10 tid=0x768610 nid=0x129 waiting on monitor
[0..0]

"Finalizer" daemon prio=9 tid=0x765060 nid=0xb1 waiting on monitor
[0x8d8f000..0x8d8fdc8]
        at java.lang.Object.wait(Native Method)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:108)
        at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:123)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:162)

"Reference Handler" daemon prio=10 tid=0x765d10 nid=0xea waiting on monitor
[0x8d4f000..0x8d4fdc8]
        at java.lang.Object.wait(Native Method)
        at java.lang.Object.wait(Object.java:420)
        at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:110)

"main" prio=5 tid=0x7619a0 nid=0xe9 runnable [0x6f000..0x6fc3c]
        at org.apache.tomcat.realm.MemoryRealm.addUser(MemoryRealm.java:344)
        at
org.apache.tomcat.realm.MemoryRealmUserAction.start(MemoryRealm.java:644)
        at
org.apache.tomcat.util.xml.XmlMapper.matchStart(XmlMapper.java:384)
        at
org.apache.tomcat.util.xml.XmlMapper.startElement(XmlMapper.java:81)
        at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391)
        at com.sun.xml.parser.Parser.content(Parser.java:1499)
        at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400)
        at com.sun.xml.parser.Parser.parseInternal(Parser.java:492)
        at com.sun.xml.parser.Parser.parse(Parser.java:284)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:126)
        at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:214)
        at org.apache.tomcat.realm.MemoryRealm.start(MemoryRealm.java:488)
        at
org.apache.tomcat.core.ContainerBase.start(ContainerBase.java:1105)
        at
org.apache.tomcat.core.StandardServer.start(StandardServer.java:440)
        at org.apache.tomcat.startup.Catalina.start(Catalina.java:517)
        at org.apache.tomcat.startup.Catalina.execute(Catalina.java:488)
        at org.apache.tomcat.startup.Catalina.process(Catalina.java:160)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.tomcat.startup.Bootstrap.main(Bootstrap.java:138)

"VM Thread" prio=5 tid=0x764f90 nid=0xb4 runnable

"VM Periodic Task Thread" prio=10 tid=0x767010 nid=0xa4 waiting on monitor
Full thread dump:

looks like its having a problem with the XML parsing again. I'm using
JAXP1.01 and the JAXP parser...

I had the same behaviour under JDK 1.2.2 as well

I noticed that your very last checkin updated this file as well... so I'm
guessing it needed a bit more testing :-) Or maybe the same cosmic rays that
caused my gremlins last night are affecting you too :-)

> >
> > also, I think the readme could be more clear about where jaxp is
expected to
> > be installed ;-)
> >
>
> I just updated the Catalina README to reflect the current instructions.

thanks

geoff



Mime
View raw message