RE: struts-config.xml-Is there a tool to find errors in it?

2001-12-19 Thread Martin Farrell

Hi

Why dont you amend the example from http://www.ecerami.com/xerces/ where the
xml document is validated against a dtd.

The stack trace and warnings should be sufficient to figure out where the
problem in the xml lies?

Martin

-Original Message-
From: Bryant, Doug [mailto:[EMAIL PROTECTED]]
Sent: 19 December 2001 13:40
To: 'Struts Users Mailing List'
Subject: RE: struts-config.xml-Is there a tool to find errors in it?


I use xmllint. It is very simplistic, but works well. It comes as part of
the gnome xml library, but you can download the sources and compile with
cygwin on windows if you need to run it there.  

homepage at
http://xmlsoft.org/

Sources at 
ftp://ftp.gnome.org/pub/GNOME/stable/sources/libxml/

hope this helps.

Doug

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 2:14 AM
To: Struts Users Mailing List
Subject: struts-config.xml-Is there a tool to find errors in it?


Hi

I have an error with my struts-config.xml file and I cannot find where 
the error is.  Is there a tool which will help me track down where the 
error is, the messages in the tomcat log files are not very helpful in 
tracking down the error.

Cheers

Tony



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

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


** For great Emap magazine subscription & gift offers visit 
http://www.emapmagazines.co.uk **


The information in this email is intended only for the addressee(s) named above.
Access to this email by anyone else is unauthorised.
If you are not the intended recipient of this message any disclosure, copying, 
distribution or any action taken in reliance on it is prohibited and may be unlawful. 

Emap plc and or its subsidiaries do not warrant that any attachments are free from 
viruses or other defects and accept no liability for any losses resulting from 
infected email transmissions.

Please note that any views expressed in this email may be those of the originator 
and do not necessarily reflect those of this organisation.



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




RE: struts-config.xml-Is there a tool to find errors in it?

2001-12-19 Thread Bryant, Doug

I use xmllint. It is very simplistic, but works well. It comes as part of
the gnome xml library, but you can download the sources and compile with
cygwin on windows if you need to run it there.  

homepage at
http://xmlsoft.org/

Sources at 
ftp://ftp.gnome.org/pub/GNOME/stable/sources/libxml/

hope this helps.

Doug

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 2:14 AM
To: Struts Users Mailing List
Subject: struts-config.xml-Is there a tool to find errors in it?


Hi

I have an error with my struts-config.xml file and I cannot find where 
the error is.  Is there a tool which will help me track down where the 
error is, the messages in the tomcat log files are not very helpful in 
tracking down the error.

Cheers

Tony



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: struts-config.xml-Is there a tool to find errors in it?

2001-12-19 Thread antony

Does it pose any problems developing an application with JDK1.4 and 
running it on

Tomcat4 using JRE1.3?

Cheers

Tony


Tuomo Syvänperä wrote:

> The problem only came up occasionally. If I had two webapps and I 
> started the servlet container and accessed one of them, it works fine. 
> If after that I try to access the other one, it gives the error below.
> Everything has worked fine since I switched back to 1.3 JDK.
> 
> /tuomo
> 
> [EMAIL PROTECTED] wrote:
> 
>> Yes I am using 1.4beta.  But an almost identical webapp works with 
>> 1.4beta.  Strange I say.
>>
>>
>>
>> Tuomo Syvänperä wrote:
>>
>>> Hi Antony,
>>> Are you using Sun's JDK 1.4 beta.. I got the same 'object is not an 
>>> instance of declaring class' - error when I used JDK 1.4.
>>> Try switching to 1.3
>>>
>>> /tuomo
>>>
>>> [EMAIL PROTECTED] wrote:
>>>
 Here is the part of the debug log which shows the error

 ---start tomcat log--
 [snip]
 resolveEntity('-//Apache Software Foundation//DTD Struts 
 Configuration 1.0//EN', 
 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
  Resolving to alternate DTD 
 
>'jar:file:/var/tomcat4/webapps/sturdy/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'
> 

 New org.apache.struts.action.ActionFormBean
 Set org.apache.struts.action.ActionFormBean properties
 Begin event threw exception
 java.lang.IllegalArgumentException: object is not an instance of 
 declaring class
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42) 

 at 
 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28) 

 at java.lang.reflect.Method.invoke(Method.java:327)
 at 
 org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:988) 

 at 
 org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:904) 

 at 
 org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:932) 

 at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:509)
 at 
 org.apache.struts.digester.SetPropertiesRule.begin(SetPropertiesRule.java:120) 

 at 
 org.apache.struts.digester.Digester.startElement(Digester.java:528)
 at 
 org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329) 

 at 
 org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
 at 
 
>org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1214)
> 

 at 
 
>org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806)
> 

 at 
 
>org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)
> 

 at 
 
>org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) 

 at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
 at 
 org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:316)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:91)
 at org.apache.struts.digester.Digester.parse(Digester.java:755)
 at 
 org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331) 

 at 
 org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
 at javax.servlet.GenericServlet.init(GenericServlet.java)
 at 
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java)
 at 
 org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java) 

 at 
 org.apache.catalina.core.StandardContext.start(StandardContext.java)
 at 
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java)
 at 
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java)
 at 
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java)
 at 
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java)
 at 
 
>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java) 

 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java)
 at 
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java)
 at 
 org.apache.catalina.core.StandardService.sta

Re: struts-config.xml-Is there a tool to find errors in it?

2001-12-19 Thread antony

I changed to have tomcat run with 1.3 and it works fine now.

Question for someone. Is the active development of struts done with Suns 
JDK1.3 or Suns JDK1.4? or  some other vendors JDK.
Cheers

Tony


Tuomo Syvänperä wrote:

> The problem only came up occasionally. If I had two webapps and I 
> started the servlet container and accessed one of them, it works fine. 
> If after that I try to access the other one, it gives the error below.
> Everything has worked fine since I switched back to 1.3 JDK.
> 
> /tuomo




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: struts-config.xml-Is there a tool to find errors in it?

2001-12-19 Thread Tuomo Syvänperä

The problem only came up occasionally. If I had two webapps and I 
started the servlet container and accessed one of them, it works fine. 
If after that I try to access the other one, it gives the error below.
Everything has worked fine since I switched back to 1.3 JDK.

/tuomo

[EMAIL PROTECTED] wrote:

> Yes I am using 1.4beta.  But an almost identical webapp works with 
> 1.4beta.  Strange I say.
> 
> 
> 
> Tuomo Syvänperä wrote:
> 
>> Hi Antony,
>> Are you using Sun's JDK 1.4 beta.. I got the same 'object is not an 
>> instance of declaring class' - error when I used JDK 1.4.
>> Try switching to 1.3
>>
>> /tuomo
>>
>> [EMAIL PROTECTED] wrote:
>>
>>> Here is the part of the debug log which shows the error
>>>
>>> ---start tomcat log--
>>> [snip]
>>> resolveEntity('-//Apache Software Foundation//DTD Struts 
>>> Configuration 1.0//EN', 
>>> 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
>>>  Resolving to alternate DTD 
>>> 
>'jar:file:/var/tomcat4/webapps/sturdy/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'
> 
>>>
>>> New org.apache.struts.action.ActionFormBean
>>> Set org.apache.struts.action.ActionFormBean properties
>>> Begin event threw exception
>>> java.lang.IllegalArgumentException: object is not an instance of 
>>> declaring class
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42) 
>>>
>>> at 
>>> 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28) 
>>>
>>> at java.lang.reflect.Method.invoke(Method.java:327)
>>> at 
>>> org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:988) 
>>>
>>> at 
>>> org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:904) 
>>>
>>> at 
>>> org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:932)
>>> at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:509)
>>> at 
>>> org.apache.struts.digester.SetPropertiesRule.begin(SetPropertiesRule.java:120) 
>>>
>>> at 
>>> org.apache.struts.digester.Digester.startElement(Digester.java:528)
>>> at 
>>> org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329) 
>>>
>>> at 
>>> org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
>>> at 
>>> 
>org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1214)
> 
>>>
>>> at 
>>> 
>org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806)
> 
>>>
>>> at 
>>> 
>org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)
> 
>>>
>>> at 
>>> 
>org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) 
>>>
>>> at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
>>> at 
>>> org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
>>> at javax.xml.parsers.SAXParser.parse(SAXParser.java:316)
>>> at javax.xml.parsers.SAXParser.parse(SAXParser.java:91)
>>> at org.apache.struts.digester.Digester.parse(Digester.java:755)
>>> at 
>>> org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331) 
>>>
>>> at 
>>> org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
>>> at javax.servlet.GenericServlet.init(GenericServlet.java)
>>> at 
>>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java)
>>> at 
>>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java) 
>>>
>>> at 
>>> org.apache.catalina.core.StandardContext.start(StandardContext.java)
>>> at 
>>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java)
>>> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java)
>>> at org.apache.catalina.core.StandardHost.install(StandardHost.java)
>>> at 
>>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java)
>>> at org.apache.catalina.startup.HostConfig.start(HostConfig.java)
>>> at 
>>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java)
>>> at 
>>> 
>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java) 
>>>
>>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java)
>>> at org.apache.catalina.core.StandardHost.start(StandardHost.java)
>>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java)
>>> at 
>>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java)
>>> at 
>>> org.apache.catalina.core.StandardService.start(StandardService.java)
>>> at 
>>> org.apache.catalina.core.StandardServer.start(StandardServer.java)
>>> at org.apache.catalina.startup.Catalina.start(Catalina.java)
>>> at org.apache.catalina.startup.Catalina.execute(Catalina.java)
>>> at org.apache.catalina.s

Re: struts-config.xml-Is there a tool to find errors in it?

2001-12-19 Thread antony

Yes I am using 1.4beta.  But an almost identical webapp works with 
1.4beta.  Strange I say.



Tuomo Syvänperä wrote:

> Hi Antony,
> Are you using Sun's JDK 1.4 beta.. I got the same 'object is not an 
> instance of declaring class' - error when I used JDK 1.4.
> Try switching to 1.3
> 
> /tuomo
> 
> [EMAIL PROTECTED] wrote:
> 
>> Here is the part of the debug log which shows the error
>>
>> ---start tomcat log--
>> [snip]
>> resolveEntity('-//Apache Software Foundation//DTD Struts Configuration 
>> 1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
>>  Resolving to alternate DTD 
>> 
>'jar:file:/var/tomcat4/webapps/sturdy/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'
> 
>>
>> New org.apache.struts.action.ActionFormBean
>> Set org.apache.struts.action.ActionFormBean properties
>> Begin event threw exception
>> java.lang.IllegalArgumentException: object is not an instance of 
>> declaring class
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42) 
>>
>> at 
>> 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28) 
>>
>> at java.lang.reflect.Method.invoke(Method.java:327)
>> at 
>> org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:988) 
>>
>> at 
>> org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:904) 
>>
>> at 
>> org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:932)
>> at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:509)
>> at 
>> org.apache.struts.digester.SetPropertiesRule.begin(SetPropertiesRule.java:120) 
>>
>> at 
>> org.apache.struts.digester.Digester.startElement(Digester.java:528)
>> at 
>> org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329) 
>>
>> at 
>> org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
>> at 
>> 
>org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1214)
> 
>>
>> at 
>> 
>org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806)
> 
>>
>> at 
>> 
>org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)
> 
>>
>> at 
>> 
>org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) 
>>
>> at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
>> at 
>> org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
>> at javax.xml.parsers.SAXParser.parse(SAXParser.java:316)
>> at javax.xml.parsers.SAXParser.parse(SAXParser.java:91)
>> at org.apache.struts.digester.Digester.parse(Digester.java:755)
>> at 
>> org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331) 
>>
>> at 
>> org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
>> at javax.servlet.GenericServlet.init(GenericServlet.java)
>> at 
>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java)
>> at 
>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java) 
>>
>> at 
>> org.apache.catalina.core.StandardContext.start(StandardContext.java)
>> at 
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java)
>> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java)
>> at org.apache.catalina.core.StandardHost.install(StandardHost.java)
>> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java)
>> at org.apache.catalina.startup.HostConfig.start(HostConfig.java)
>> at 
>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java)
>> at 
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java) 
>>
>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java)
>> at org.apache.catalina.core.StandardHost.start(StandardHost.java)
>> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java)
>> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java)
>> at 
>> org.apache.catalina.core.StandardService.start(StandardService.java)
>> at org.apache.catalina.core.StandardServer.start(StandardServer.java)
>> at org.apache.catalina.startup.Catalina.start(Catalina.java)
>> at org.apache.catalina.startup.Catalina.execute(Catalina.java)
>> at org.apache.catalina.startup.Catalina.process(Catalina.java)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42) 
>>
>> at 
>> 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28) 
>>
>> at java.lang.reflect.Method.invoke(Method.java:327)
>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java)
>>

Re: struts-config.xml-Is there a tool to find errors in it?

2001-12-19 Thread antony

Can I use this without using an IDE?

ejf wrote:

> try this link. it might help.
> 
> Struts Console version 1.2 is now available.
> 
> http://www.jamesholmes.com/struts/
> http://www.jamesholmes.com/struts/struts-console-1.2.zip
> 
> 
> 
> 
> 
> [EMAIL PROTECTED] wrote:
> 
>> Hi
>>
>> I have an error with my struts-config.xml file and I cannot find where 
>> the error is.  Is there a tool which will help me track down where the 
>> error is, the messages in the tomcat log files are not very helpful in 
>> tracking down the error.
>>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: struts-config.xml-Is there a tool to find errors in it?

2001-12-19 Thread Tuomo Syvänperä

Hi Antony,
Are you using Sun's JDK 1.4 beta.. I got the same 'object is not an 
instance of declaring class' - error when I used JDK 1.4.
Try switching to 1.3

/tuomo

[EMAIL PROTECTED] wrote:

> Here is the part of the debug log which shows the error
> 
> ---start tomcat log--
> [snip]
> resolveEntity('-//Apache Software Foundation//DTD Struts Configuration 
> 1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
>  Resolving to alternate DTD 
> 
>'jar:file:/var/tomcat4/webapps/sturdy/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'
> 
> 
> New org.apache.struts.action.ActionFormBean
> Set org.apache.struts.action.ActionFormBean properties
> Begin event threw exception
> java.lang.IllegalArgumentException: object is not an instance of 
> declaring class
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42) 
> 
> at 
> 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28) 
> 
> at java.lang.reflect.Method.invoke(Method.java:327)
> at 
> org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:988) 
> 
> at 
> org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:904) 
> 
> at 
> org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:932)
> at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:509)
> at 
> org.apache.struts.digester.SetPropertiesRule.begin(SetPropertiesRule.java:120) 
> 
> at org.apache.struts.digester.Digester.startElement(Digester.java:528)
> at 
> org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329) 
> 
> at 
> org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
> at 
> 
>org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1214)
> 
> 
> at 
> 
>org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806)
> 
> 
> at 
> 
>org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)
> 
> 
> at 
> 
>org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381) 
> 
> at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
> at 
> org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:316)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:91)
> at org.apache.struts.digester.Digester.parse(Digester.java:755)
> at 
> org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331)
> at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
> at javax.servlet.GenericServlet.init(GenericServlet.java)
> at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java)
> at 
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java) 
> 
> at org.apache.catalina.core.StandardContext.start(StandardContext.java)
> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java)
> at org.apache.catalina.core.StandardHost.install(StandardHost.java)
> at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java)
> at org.apache.catalina.startup.HostConfig.start(HostConfig.java)
> at 
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java)
> at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java) 
> 
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java)
> at org.apache.catalina.core.StandardHost.start(StandardHost.java)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java)
> at org.apache.catalina.core.StandardEngine.start(StandardEngine.java)
> at org.apache.catalina.core.StandardService.start(StandardService.java)
> at org.apache.catalina.core.StandardServer.start(StandardServer.java)
> at org.apache.catalina.startup.Catalina.start(Catalina.java)
> at org.apache.catalina.startup.Catalina.execute(Catalina.java)
> at org.apache.catalina.startup.Catalina.process(Catalina.java)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42) 
> 
> at 
> 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28) 
> 
> at java.lang.reflect.Method.invoke(Method.java:327)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java)
> Starting service Tomcat-Apache
> Apache Tomcat/4.0.1
> -end tomcat log--
> 
> 
> 
> 
> Jeff Martin wrote:
> 
>> What kind of error do you mean? Does it parse and validate against the 
>> provided DTD?
>>
>

Re: struts-config.xml-Is there a tool to find errors in it?

2001-12-19 Thread ejf

try this link. it might help.

Struts Console version 1.2 is now available.

http://www.jamesholmes.com/struts/
http://www.jamesholmes.com/struts/struts-console-1.2.zip





[EMAIL PROTECTED] wrote:

> Hi
>
> I have an error with my struts-config.xml file and I cannot find where 
> the error is.  Is there a tool which will help me track down where the 
> error is, the messages in the tomcat log files are not very helpful in 
> tracking down the error.
>
> Cheers
>
> Tony
>
>
>
> -- 
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
>
>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: struts-config.xml-Is there a tool to find errors in it?

2001-12-19 Thread antony

Here is the part of the debug log which shows the error

---start tomcat log--
[snip]
resolveEntity('-//Apache Software Foundation//DTD Struts Configuration 
1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
  Resolving to alternate DTD 
'jar:file:/var/tomcat4/webapps/sturdy/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'
New org.apache.struts.action.ActionFormBean
Set org.apache.struts.action.ActionFormBean properties
Begin event threw exception
java.lang.IllegalArgumentException: object is not an instance of 
declaring class
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
at java.lang.reflect.Method.invoke(Method.java:327)
at 
org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java:988)
at 
org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java:904)
at org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:932)
at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:509)
at 
org.apache.struts.digester.SetPropertiesRule.begin(SetPropertiesRule.java:120)
at org.apache.struts.digester.Digester.startElement(Digester.java:528)
at 
org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329)
at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
at 
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1214)
at 
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806)
at 
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)
at 
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:316)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:91)
at org.apache.struts.digester.Digester.parse(Digester.java:755)
at 
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
at javax.servlet.GenericServlet.init(GenericServlet.java)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java)
at org.apache.catalina.core.StandardContext.start(StandardContext.java)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java)
at org.apache.catalina.core.StandardHost.install(StandardHost.java)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java)
at org.apache.catalina.core.StandardHost.start(StandardHost.java)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java)
at org.apache.catalina.core.StandardService.start(StandardService.java)
at org.apache.catalina.core.StandardServer.start(StandardServer.java)
at org.apache.catalina.startup.Catalina.start(Catalina.java)
at org.apache.catalina.startup.Catalina.execute(Catalina.java)
at org.apache.catalina.startup.Catalina.process(Catalina.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
at java.lang.reflect.Method.invoke(Method.java:327)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java)
Starting service Tomcat-Apache
Apache Tomcat/4.0.1
-end tomcat log--




Jeff Martin wrote:

> What kind of error do you mean? Does it parse and validate against the provided DTD?
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 19, 2001 2:14 AM
> To: Struts Users Mailing List
> Subject: struts-config.xml-Is there a tool to find errors in it?
> 
> 
> Hi
> 
> I have an error with my strut

RE: struts-config.xml-Is there a tool to find errors in it?

2001-12-19 Thread Jeff Martin

What kind of error do you mean? Does it parse and validate against the provided DTD?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 2:14 AM
To: Struts Users Mailing List
Subject: struts-config.xml-Is there a tool to find errors in it?


Hi

I have an error with my struts-config.xml file and I cannot find where 
the error is.  Is there a tool which will help me track down where the 
error is, the messages in the tomcat log files are not very helpful in 
tracking down the error.

Cheers

Tony



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: