Thanks Christopher for your response.
Stupid oversight. I corrected the r to R in the classname, but I got then another exception when the context was specified in server.xml
Jul 26, 2006 10:11:34 AM org.apache.tomcat.util.digester.Digester endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tomcat.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:898)
at org.apache.tomcat.util.digester.SetNextRule.end(SetNextRule.java:192)
at org.apache.tomcat.util.digester.Rule.end(Rule.java:228)
at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1057)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
at org.apache.catalina.startup.Catalina.load(Catalina.java:489)
at org.apache.catalina.startup.Catalina.load(Catalina.java:523)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:266)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
Caused by: java.lang.IllegalArgumentException: addChild: Child name 'null' is not unique
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:749)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
... 25 more
However I discovered that the manager.xml file that I updated without any impact in
Program Files\Apache Software Foundation\Tomcat5.5\server\webapps\manager
also resides in Program Files\Apache Software Foundation\Tomcat5.5\conf\Catalina\localhost.
I added the Valve tag there in the context and it works... Problem solved... I guess Whats under server is the non-deployed application source
and under conf the deployed one( I am new to tomcat). If someone would confirm me that or explain why we have 2 copies of the same files, I would appreciate... Thks again to those who responded.
Christopher Schultz <[EMAIL PROTECTED]>
07/25/2006 05:14 PM
|
|
Alain,
> <Valve className="org.apache.catalina.valves.remoteAddrValve"
> allow="127.0.0.1"/>
<snip>
> I get a ClassNotFound java exception for
> org.apache.catalina.valves.remoteAddrValve in the bootstrap process
It looks like you have a lowercase 'r' instead of an uppercase 'R' in
your class name. It should be "RemoteAddrValve".
-chris
--------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]