struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Raquepo" <rraqu...@primeorion.com>
Subject Re: error in my struts config
Date Wed, 26 Mar 2003 01:42:07 GMT
I just seperated my config becuase it struts-config.xml is getting to large.
So i created seperate config so that i can
administer the config more easily.

I did try to put the all the config back to struts-config.xml
but still does not work. And here's my error now:

SEVERE: Begin event threw exception
java.lang.NoSuchMethodException: Bean has no property named loginRequired
        at
org.apache.commons.digester.SetPropertyRule.begin(SetPropertyRule.jav
a:193)
        at org.apache.commons.digester.Rule.begin7(Rule.java:200)
        at
org.apache.commons.digester.Digester.startElement(Digester.java:1268)

        at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXP
arser.java:459)
        at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Abst
ractXMLDocumentParser.java:221)
        at
org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNames
paceBinder.java:874)
        at
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBi
nder.java:591)
        at
org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidat
or.java:748)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(XMLDocumentFragmentScannerImpl.java:747)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
LDocumentFragmentScannerImpl.java:329)
        at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:525)
        at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:581)
        at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
        at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1175)
        at org.apache.commons.digester.Digester.parse(Digester.java:1543)
        at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
.java:944)
        at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
        at javax.servlet.GenericServlet.init(GenericServlet.java:256)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:934)
        at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:82
1)
        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:3420)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3
608)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:4
97)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:218
9)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Mar 26, 2003 9:39:42 AM org.apache.struts.action.ActionServlet
initModuleConfig
SEVERE: Parsing error processing resource path
java.lang.NoSuchMethodException: Bean has no property named loginRequired
        at
org.apache.commons.digester.Digester.createSAXException(Digester.java
:2383)
        at
org.apache.commons.digester.Digester.createSAXException(Digester.java
:2409)
        at
org.apache.commons.digester.Digester.startElement(Digester.java:1271)

        at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXP
arser.java:459)
        at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Abst
ractXMLDocumentParser.java:221)
        at
org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNames
paceBinder.java:874)
        at
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBi
nder.java:591)
        at
org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidat
or.java:748)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
t(XMLDocumentFragmentScannerImpl.java:747)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
LDocumentFragmentScannerImpl.java:329)
        at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:525)
        at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:581)
        at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
        at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
ava:1175)
        at org.apache.commons.digester.Digester.parse(Digester.java:1543)
        at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
.java:944)
        at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
        at javax.servlet.GenericServlet.init(GenericServlet.java:256)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:934)
        at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:82
1)
        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:3420)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3
608)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:4
97)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:218
9)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
================================
part of my struts-config.xml is
  <action path="/TmMainTaskList"
   type="com.fltic.crm.action.tm.TaskListAction"
   scope="request" >
   <set-property property="loginRequired" value="true"/>
   <forward name="success" path="/tm-main.jsp"/>
  </action>

it's work in resin but i dont know why i does not work in tomcat.

thanks
----- Original Message -----
From: "chuck cavaness" <chuckcavaness@yahoo.com>
To: "Richard Raquepo" <rraquepo@primeorion.com>
Sent: Wednesday, March 26, 2003 2:52 AM
Subject: Re: error in my struts config


> Sorry for the delay in responding, but I've been out
> of town for a week.
>
> As far as your error goes, make sure that you are
> using the same version of Struts and all associated
> files. Just one thing to check.
>
> The error seems to be when it's trying to do something
> with the initModuleConfig area. Are you using modules?
> What are these files:
>
> /WEB-INF/struts-config-tm.xml,/WEB-INF/struts-config-manager.xml
>
> Chuck
>
> --- Richard Raquepo <rraquepo@primeorion.com> wrote:
> >
> >
> > My web-app is working fine in resin but when i
> > switched to tomcat i got this
> > error.
> >
> > 2003-03-24 14:13:57 StandardContext[/]: Servlet /
> > threw load() exception
> > javax.servlet.UnavailableException: Parsing error
> > processing resource path
> >
> /WEB-INF/struts-config-tm.xml,/WEB-INF/struts-config-manager.xml
> >  at
> >
>
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
> > 52)
> >  at
> >
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:468)
> >  at
> >
> javax.servlet.GenericServlet.init(GenericServlet.java:256)
> >  at
> >
>
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
> > 4)
> >  at
> >
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821)
> >  at
> >
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
> > 3420)
> >  at
> >
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
> >  at
> >
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >  at
> >
> org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
> >  at
> >
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >  at
> >
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
> >  at
> >
> org.apache.catalina.core.StandardService.start(StandardService.java:497)
> >  at
> >
> org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
> >  at
> >
> org.apache.catalina.startup.Catalina.start(Catalina.java:512)
> >  at
> >
> org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
> >  at
> >
> org.apache.catalina.startup.Catalina.process(Catalina.java:180)
> >  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.Bootstrap.main(Bootstrap.java:203)
> >
> > ====
> > my web.xml looks like this
> > .....
> >     <init-param>
> >       <param-name>config</param-name>
> >       <param-value>
> >
> >
>
/WEB-INF/struts-config.xml,/WEB-INF/struts-config-tm.xml,/WEB-INF/struts-con
> > fig-manager.xml
> >        </param-value>
> >     </init-param>
> > ....
> > it works fine in resin but this seems not allowed in
> > tomcat...
> >
> > guys, what do you think is the error.
> >
> > thanks a lot...
> >
> >
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
> http://platinum.yahoo.com
>



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message