tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bognár Attila <att...@netalfa.hu>
Subject as400, web admin, server.xml
Date Thu, 19 Dec 2002 08:43:16 GMT
Hello,

I installed Tomcat v4.1.17 on an AS/400 box. Everything seems to work in 
the basic installation (the only change I made is update 
tomcat-users.xml to have an admin), however I have a problem:

when I visit the web administrator page, log in as admin (in role 
admin), change nothing, just hit "commit changes", a new server.xml is 
produced. This fine until now, Tomcat is working, but when I want to 
restart it, it stops with an exception. I also installed Tomcat on 
windows and did the same steps, Tomcat is restarting without any 
problem. If I try to start Tomcat on Windows with the server.xml created 
on, Tomcat cannot start (I changed the location of the webapps to 
reflect the windows installation, but it does not reach that part in the 
xml).

What can be the problem? I had this same problem with tomcat 4.1.12.

At the end of the email I put the output of tomcat with the exception 
(as400 and windows). If somebody feels (s)he can help, I can send the 
server.xml, of course, just didn't want to send it the this list.

as400 has jdk13, windows has jdk1.4.0_01.

thanks a lot,

attila

so here is the output on as400 (sorry for the format, I don't know how 
to redirect stdout to a file and have a readable format):

Jobname: 007542/BOGNARA/QP0ZSPWP         Using Classpath: 
/usr/local/jakarta-tomcat-4.1.17/bin/bootstrap.jar:/QIBM/Pro 
dData/Java400/jdk13/lib/tools.jar         Using CATALINA_BASE: 
/usr/local/jakarta-tomcat-4.1.17                  Using CATALINA_HOME: 
/usr/local/jakarta-tomcat-4.1.17                           Using 
JAVA_HOME: /QIBM/ProdData/Java400/jdk13 
   Using endorsed: 
/usr/local/jakarta-tomcat-4.1.17/bin:/usr/local/jakarta-tomca 
t-4.1.17/common/endorsed         ˘INFO! Registry - -Loading registry 
information                  ˘INFO! Registry - -Creating new Registry 
instance                           ˘INFO! Registry - -Creating MBeanServer
java.lang.IllegalAccessException 
java/lang/Class.newInstance()Ljava/lang/Object;+14 (Class.java:237) 
org/apache/commons/digester/ObjectCreateRule.begin(Lorg/xml/sax/Attribu 
   tes;)V+102 (ObjectCreateRule.java:253)
org/apache/commons/digester/Digester.startElement(Ljava/lang/String;Lja 
   va/lang/String;Ljava/lang/String;Lorg/xml/sax/Attributes;)V+345 
(Digester.jav   a:1237)
org/apache/xerces/parsers/AbstractSAXParser.startElement(Lorg/apache/xe
rces/xni/QName;Lorg/apache/xerces/xni/XMLAttributes;Lorg/apache/xerces/xni/Au 
   gmentations;)V+307 (AbstractSAXParser.java:459)
org/apache/xerces/parsers/AbstractXMLDocumentParser.emptyElement(Lorg/a
pache/xerces/xni/QName;Lorg/apache/xerces/xni/XMLAttributes;Lorg/apache/xerce 
   s/xni/Augmentations;)V+1 (AbstractXMLDocumentParser.java:221)
org/apache/xerces/impl/XMLNamespaceBinder.emptyElement(Lorg/apache/xerc
es/xni/QName;Lorg/apache/xerces/xni/XMLAttributes;Lorg/apache/xerces/xni/Augm 
   entations;)V+36 (XMLNamespaceBinder.java:595)
org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.scanStartElement( 
   )Z+214 (XMLDocumentFragmentScannerImpl.java:747)
org/apache/xerces/impl/XMLDocumentFragmentScannerImpl$FragmentContentDi 
   spatcher.dispatch(Z)Z+553 (XMLDocumentFragmentScannerImpl.java:1477)
org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.scanDocument(Z)Z+ 
   12 (XMLDocumentFragmentScannerImpl.java:329)
org/apache/xerces/parsers/DTDConfiguration.parse(Z)Z+59 (DTDConfigurati 
   on.java:525)
org/apache/xerces/parsers/DTDConfiguration.parse(Lorg/apache/xerces/xni 
   /parser/XMLInputSource;)V+27 (DTDConfiguration.java:581)
org/apache/xerces/parsers/XMLParser.parse(Lorg/apache/xerces/xni/parser 
   /XMLInputSource;)V+8 (XMLParser.java:152)

org/apache/xerces/parsers/AbstractSAXParser.parse(Lorg/xml/sax/InputSou 
   rce;)V+41 (AbstractSAXParser.java:1175)
org/apache/commons/digester/Digester.parse(Lorg/xml/sax/InputSource;)Lj 
   ava/lang/Object;+8 (Digester.java:1495) 
org/apache/catalina/startup/Catalina.start()V+61 (Catalina.java:449) 
org/apache/catalina/startup/Catalina.execute()V+7 (Catalina.java:400)
org/apache/catalina/startup/Catalina.process(˘Ljava/lang/String;)V+16 ( 
   Catalina.java:180)
org/apache/catalina/startup/Bootstrap.main(˘Ljava/lang/String;)V+564 (B 
   ootstrap.java:203)            ˘ERROR! Digester - -Begin event threw 
exception <java.lang.IllegalAccessExcep   tion> 
                 Catalina.start: java.lang.IllegalAccessException 
java.lang.IllegalAccessException

       java/lang/Throwable.<init>(Ljava/lang/String;)V+4 
(Throwable.java:90) 
org/xml/sax/SAXParseException.<init>(Ljava/lang/String;Lorg/xml/sax/Loc 
   ator;Ljava/lang/Exception;)V+1 (SAXParseException.java:84)
org/apache/commons/digester/Digester.createSAXException(Ljava/lang/Stri 
   ng;Ljava/lang/Exception;)Lorg/xml/sax/SAXException;+74 
(Digester.java:2312) 
org/apache/commons/digester/Digester.createSAXException(Ljava/lang/Exce 
   ption;)Lorg/xml/sax/SAXException;+5 (Digester.java:2332)
org/apache/commons/digester/Digester.startElement(Ljava/lang/String;Lja 
   va/lang/String;Ljava/lang/String;Lorg/xml/sax/Attributes;)V+370 
(Digester.jav   a:1240)
org/apache/xerces/parsers/AbstractSAXParser.startElement(Lorg/apache/xe
rces/xni/QName;Lorg/apache/xerces/xni/XMLAttributes;Lorg/apache/xerces/xni/Au 
   gmentations;)V+307 (AbstractSAXParser.java:459)
org/apache/xerces/parsers/AbstractXMLDocumentParser.emptyElement(Lorg/a
pache/xerces/xni/QName;Lorg/apache/xerces/xni/XMLAttributes;Lorg/apache/xerce 
   s/xni/Augmentations;)V+1 (AbstractXMLDocumentParser.java:221)
org/apache/xerces/impl/XMLNamespaceBinder.emptyElement(Lorg/apache/xerc
es/xni/QName;Lorg/apache/xerces/xni/XMLAttributes;Lorg/apache/xerces/xni/Augm 
   entations;)V+36 (XMLNamespaceBinder.java:595)
org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.scanStartElement( 
   )Z+214 (XMLDocumentFragmentScannerImpl.java:747)
org/apache/xerces/impl/XMLDocumentFragmentScannerImpl$FragmentContentDi 
   spatcher.dispatch(Z)Z+553 (XMLDocumentFragmentScannerImpl.java:1477)
org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.scanDocument(Z)Z+ 
   12 (XMLDocumentFragmentScannerImpl.java:329)
org/apache/xerces/parsers/DTDConfiguration.parse(Z)Z+59 (DTDConfigurati 
   on.java:525)
org/apache/xerces/parsers/DTDConfiguration.parse(Lorg/apache/xerces/xni
/parser/XMLInputSource;)V+27 (DTDConfiguration.java:581)
org/apache/xerces/parsers/XMLParser.parse(Lorg/apache/xerces/xni/parser 
   /XMLInputSource;)V+8 (XMLParser.java:152)
org/apache/xerces/parsers/AbstractSAXParser.parse(Lorg/xml/sax/InputSou 
   rce;)V+41 (AbstractSAXParser.java:1175)
org/apache/commons/digester/Digester.parse(Lorg/xml/sax/InputSource;)Lj 
   ava/lang/Object;+8 (Digester.java:1495) 
org/apache/catalina/startup/Catalina.start()V+61 (Catalina.java:449) 
org/apache/catalina/startup/Catalina.execute()V+7 (Catalina.java:400)
org/apache/catalina/startup/Catalina.process(˘Ljava/lang/String;)V+16 ( 
   Catalina.java:180)
org/apache/catalina/startup/Bootstrap.main(˘Ljava/lang/String;)V+564 (B 
   ootstrap.java:203)


on windows:

stdout:

Bootstrap: Create Catalina server
Catalina.start: java.lang.IllegalAccessException: Class 
org.apache.commons.digester.ObjectCreateRule can not access a member of 
class org.apache.catalina.core.StandardContextValve with modifiers ""
java.lang.IllegalAccessException: Class 
org.apache.commons.digester.ObjectCreateRule can not access a member of 
class org.apache.catalina.core.StandardContextValve with modifiers ""
	at 
org.apache.commons.digester.Digester.createSAXException(Digester.java:2312)
	at 
org.apache.commons.digester.Digester.createSAXException(Digester.java:2332)
	at org.apache.commons.digester.Digester.startElement(Digester.java:1240)
	at 
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:459)
	at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:221)
	at 
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:595)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:747)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
	at 
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
	at 
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
	at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
	at 
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
	at org.apache.commons.digester.Digester.parse(Digester.java:1479)
	at 
org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:187)
	at 
org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:258)
	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:324)
	at 
org.apache.catalina.startup.BootstrapService.init(BootstrapService.java:231)
	at 
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:297)



stderr:

Created catalinaLoader in: C:\Programs\Tomcat 4.1.17\server\lib
2002.12.19. 9:30:26 org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
2002.12.19. 9:30:27 org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
2002.12.19. 9:30:27 org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
2002.12.19. 9:30:28 org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.IllegalAccessException: Class 
org.apache.commons.digester.ObjectCreateRule can not access a member of 
class org.apache.catalina.core.StandardContextValve with modifiers ""
	at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:57)
	at java.lang.Class.newInstance0(Class.java:290)
	at java.lang.Class.newInstance(Class.java:249)
	at 
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:253)
	at org.apache.commons.digester.Digester.startElement(Digester.java:1237)
	at 
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:459)
	at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:221)
	at 
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:595)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:747)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
	at 
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
	at 
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
	at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
	at 
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
	at org.apache.commons.digester.Digester.parse(Digester.java:1479)
	at 
org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:187)
	at 
org.apache.catalina.startup.CatalinaService.load(CatalinaService.java:258)
	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:324)
	at 
org.apache.catalina.startup.BootstrapService.init(BootstrapService.java:231)
	at 
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:297)



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message