Re: log.debug not showing on console
On 10/30/2017 5:45 PM, ravirajmishr...@gmail.com wrote: > > > > > > I think this is the cause and you should rewrite like below additivity="true"> However, it is better to ask at log4j mailing lists such questions.
log.debug not showing on console
Hello, I have upgraded my log4j to log4j2. I have created a log4j2.xml file My system is working perfectly but i am not able see the log.debug(); written in my code on console. I am pasting my log4j2.xml file. Please help me to figure out the issue in it. thanks in advance - projectName ${catalina.home}/logs 500KB %d{MM/dd/ HH:mm:ss,SSS}- %c{10}: %m%n - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Disabling Struts warning messages in the console
Hi, It seems I will go with Lukasz's solution as I only want to suppress no action found kind of messages. Thanks a lot for all the answers. Murat -Original Message- From: Łukasz Lenart [mailto:lukasz.len...@gmail.com] Sent: Friday, February 19, 2016 3:38 AM To: Struts Users Mailing List Subject: Re: Disabling Struts warning messages in the console You can define such action or use and return custom 404.action (mobile) 17 lut 2016 21:46 "Murat Balkan" <murat.bal...@ericsson.com> napisał(a): > Hi, > I'd like to disable the warning messages in the console log > (catalina.out) like > > WARNING: Could not find action or result: /prepOrder.do?code=PNG There > is no Action mapped for namespace [/] and action name > > These visits are generated by the bots and they are trying to reach a > previous action that does not exist anymore. > > How can I do this? > > Thanks > Murat >
Re: Disabling Struts warning messages in the console
You can define such action or use and return custom 404.action (mobile) 17 lut 2016 21:46 "Murat Balkan" <murat.bal...@ericsson.com> napisał(a): > Hi, > I'd like to disable the warning messages in the console log (catalina.out) > like > > WARNING: Could not find action or result: /prepOrder.do?code=PNG > There is no Action mapped for namespace [/] and action name > > These visits are generated by the bots and they are trying to reach a > previous action that does not exist anymore. > > How can I do this? > > Thanks > Murat >
Re: Disabling Struts warning messages in the console
Hi, I thought also to the log4j. But , perhaps, Murat Balkan wants cancel only this one, and not all the other warnings ? Chris Le Jeudi 18 février 2016 9h05, Christoph Nenning <christoph.nenn...@lex-com.net> a écrit : > Hi, > I'd like to disable the warning messages in the console log > (catalina.out) like > > WARNING: Could not find action or result: /prepOrder.do?code=PNG > There is no Action mapped for namespace [/] and action name > > These visits are generated by the bots and they are trying to reach > a previous action that does not exist anymore. > > How can I do this? > > Thanks > Murat That log message is generated by class org.apache.struts2.dispatcher.Dispatcher (at least for struts 2.5, in older versions it may be different) You can configure your logging library to show only errors for that class, e.g. for log4j: You may want to have a look here: http://struts.apache.org/docs/logging.html Regards, Christoph This Email was scanned by Sophos Anti Virus
Re: Disabling Struts warning messages in the console
> Hi, > I'd like to disable the warning messages in the console log > (catalina.out) like > > WARNING: Could not find action or result: /prepOrder.do?code=PNG > There is no Action mapped for namespace [/] and action name > > These visits are generated by the bots and they are trying to reach > a previous action that does not exist anymore. > > How can I do this? > > Thanks > Murat That log message is generated by class org.apache.struts2.dispatcher.Dispatcher (at least for struts 2.5, in older versions it may be different) You can configure your logging library to show only errors for that class, e.g. for log4j: You may want to have a look here: http://struts.apache.org/docs/logging.html Regards, Christoph This Email was scanned by Sophos Anti Virus
Disabling Struts warning messages in the console
Hi, I'd like to disable the warning messages in the console log (catalina.out) like WARNING: Could not find action or result: /prepOrder.do?code=PNG There is no Action mapped for namespace [/] and action name These visits are generated by the bots and they are trying to reach a previous action that does not exist anymore. How can I do this? Thanks Murat
Re: getting configaration error on console. how to rectify?
Is there any solution for this? this is happening every time tomcat tries to reload the web app. *Thanks and Regards,* Muralidhar Yaragalla. * * On Fri, Sep 20, 2013 at 12:21 AM, Yaragalla Muralidhar yaragallamur...@gmail.com wrote: I am getting this error often on server console and the app gets stoped. how to rectify? 2013-09-20 00:18:29 ERROR Dispatcher:38 - Dispatcher initialization failed Unable to load configuration. - [unknown location] at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:429) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:473) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51) at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:107) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4656) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5309) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3926) at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:426) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1345) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519) at java.lang.Thread.run(Unknown Source) Caused by: Caught exception while loading file struts-default.xml - [unknown location] *Thanks and Regards,* Muralidhar Yaragalla. * *
getting configaration error on console. how to rectify?
I am getting this error often on server console and the app gets stoped. how to rectify? 2013-09-20 00:18:29 ERROR Dispatcher:38 - Dispatcher initialization failed Unable to load configuration. - [unknown location] at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:429) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:473) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51) at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262) at org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:107) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4656) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5309) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3926) at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:426) at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1345) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540) at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519) at java.lang.Thread.run(Unknown Source) Caused by: Caught exception while loading file struts-default.xml - [unknown location] *Thanks and Regards,* Muralidhar Yaragalla. * *
Re: [Struts 2] ?debug=console (devMode) not working
2010/1/21 Fernandes Celinio cfernan...@sopraconsulting.com: Yes, I did. I do not know why it is not working. Someone told me he had to create an interceptor to make it work. Sounds weird to me. Unless you have another idea, I am going to give up on that one. One thing more, please add Dojo plugin, console is based on Dojo JavaScript library Regards -- Lukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
[Struts 2] OGNL debug console not working
Hi, I am trying to run the debug console that is available in a popup when you append the URL with ?debug=console It is described here : http://struts.apache.org/2.0.14/docs/debugging.html Here is the URL i used : http://localhost:8085/myWebApp/doLogin.action?debug.console It complains that it cannot create a session after the response was sent. As a consequence, i believe, the console is read only, I cannot type anything. What did i do wrong or what am i missing ? Thanks for helping. Here is the stack trace i get : Struts Problem Report Struts has detected an unhandled exception: # Messages: Impossible de cr�er une sessionapr�s que la r�ponse ait �t� envoy�e File: org/apache/catalina/connector/Request.java Line number: 2 338 Stacktraces java.lang.IllegalStateException: Impossible de creer une session apres que la reponse ait ete envoyee org.apache.catalina.connector.Request.doGetSession(Request.java:2338) org.apache.catalina.connector.Request.getSession(Request.java:2094) org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833) javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216) org.apache.struts2.dispatcher.SessionMap.put(SessionMap.java:179) org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:272) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:165) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:179) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52) org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488) org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77) org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183) org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95) org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126) org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Unknown Source) You are seeing this page
[Struts 2] ?debug=console (devMode) not working
Hi, I am trying to run the debug console that is available in a popup when you append the URL with ?debug=console It is described here : http://struts.apache.org/2.0.14/docs/debugging.html Here is the URL i used : http://localhost:8085/myWebApp/doLogin.action?debug.console It complains that it cannot create a session after the response was sent. What did i do wrong or what am i missing ? Thanks for helping. Here is the stack trace i get : Struts Problem Report Struts has detected an unhandled exception: # Messages: Impossible de cr�er une sessionapr�s que la r�ponse ait �t� envoy�e File: org/apache/catalina/connector/Request.java Line number:2 338 Stacktraces java.lang.IllegalStateException: Impossible de creer une session apres que la reponse ait ete envoyee org.apache.catalina.connector.Request.doGetSession(Request.java:2338) org.apache.catalina.connector.Request.getSession(Request.java:2094) org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833) javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:216) org.apache.struts2.dispatcher.SessionMap.put(SessionMap.java:179) org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:272) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:126) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:165) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:179) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52) org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488) org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77) org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183) org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95) org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126) org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598) org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) java.lang.Thread.run(Unknown Source) You are seeing this page because development mode is enabled. Development mode, or devMode, enables extra
RE: [Struts 2] OGNL debug console not working
That would work only when you enable it in configuration Either in struts.properties or struts.xml Example: in struts.properties set devmode to true.. struts.devMode=true -Original Message- From: Celinio Fernandes [mailto:cel...@yahoo.com] Sent: Wednesday, January 20, 2010 7:41 PM To: Struts Users Mailing List Subject: [Struts 2] OGNL debug console not working Hi, I am trying to run the debug console that is available in a popup when you append the URL with ?debug=console It is described here : http://struts.apache.org/2.0.14/docs/debugging.html Here is the URL i used : http://localhost:8085/myWebApp/doLogin.action?debug.console It complains that it cannot create a session after the response was sent. As a consequence, i believe, the console is read only, I cannot type anything. What did i do wrong or what am i missing ? Thanks for helping. Here is the stack trace i get : Struts Problem Report Struts has detected an unhandled exception: # Messages: Impossible de cr�er une sessionapr�s que la r�ponse ait �t� envoy�e File: org/apache/catalina/connector/Request.java Line number: 2 338 Stacktraces java.lang.IllegalStateException: Impossible de creer une session apres que la reponse ait ete envoyee org.apache.catalina.connector.Request.doGetSession(Request.java:2338) org.apache.catalina.connector.Request.getSession(Request.java:2094) org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:83 3) javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWr apper.java:216) org.apache.struts2.dispatcher.SessionMap.put(SessionMap.java:179) org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(Debu ggingInterceptor.java:272) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati on.java:237) com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingIn terceptor.java:126) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati on.java:237) com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareIn terceptor.java:138) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Method FilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati on.java:237) com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nIntercepto r.java:165) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati on.java:237) org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletCon figInterceptor.java:164) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati on.java:237) com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasIntercep tor.java:179) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati on.java:237) com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(Ex ceptionMappingInterceptor.java:176) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati on.java:237) org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52) org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488) org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOper ations.java:77) org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilt er(StrutsPrepareAndExecuteFilter.java:91) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:206) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.ja va:96) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:235) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssoci ationValve.java:183) org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java: 95) org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(Secu rityContextEstablishmentValve.java:126) org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(Secur ityContextEstablishmentValve.java:70) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127 ) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102 ) org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnecti onValve.java:158) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :109
RE: [Struts 2] OGNL debug console not working
I have done that of course, else i would not see the console in the popup. The problem is elsewhere. Does anyone have an idea ? Thanks. --- On Wed, 1/20/10, Raghuveer raghuve...@infotechsw.com wrote: From: Raghuveer raghuve...@infotechsw.com Subject: RE: [Struts 2] OGNL debug console not working To: 'Celinio Fernandes' cel...@yahoo.com, 'Struts Users Mailing List' user@struts.apache.org Date: Wednesday, January 20, 2010, 8:07 PM That would work only when you enable it in configuration Either in struts.properties or struts.xml Example: in struts.properties set devmode to true.. struts.devMode=true -Original Message- From: Celinio Fernandes [mailto:cel...@yahoo.com] Sent: Wednesday, January 20, 2010 7:41 PM To: Struts Users Mailing List Subject: [Struts 2] OGNL debug console not working Hi, I am trying to run the debug console that is available in a popup when you append the URL with ?debug=console It is described here : http://struts.apache.org/2.0.14/docs/debugging.html Here is the URL i used : http://localhost:8085/myWebApp/doLogin.action?debug.console It complains that it cannot create a session after the response was sent. As a consequence, i believe, the console is read only, I cannot type anything. What did i do wrong or what am i missing ? Thanks for helping. Here is the stack trace i get : Struts Problem Report Struts has detected an unhandled exception: # Messages: Impossible de cr�er une sessionapr�s que la r�ponse ait �t� envoy�e File: org/apache/catalina/connector/Request.java Line number: 2 338 Stacktraces java.lang.IllegalStateException: Impossible de creer une session apres que la reponse ait ete envoyee org.apache.catalina.connector.Request.doGetSession(Request.java:2338) org.apache.catalina.connector.Request.getSession(Request.java:2094) org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:83 3) javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWr apper.java:216) org.apache.struts2.dispatcher.SessionMap.put(SessionMap.java:179) org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(Debu ggingInterceptor.java:272) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati on.java:237) com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingIn terceptor.java:126) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati on.java:237) com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareIn terceptor.java:138) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(Method FilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati on.java:237) com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nIntercepto r.java:165) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati on.java:237) org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletCon figInterceptor.java:164) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati on.java:237) com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasIntercep tor.java:179) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati on.java:237) com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(Ex ceptionMappingInterceptor.java:176) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocati on.java:237) org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52) org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488) org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOper ations.java:77) org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilt er(StrutsPrepareAndExecuteFilter.java:91) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:206) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.ja va:96) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:235) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:206) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:235) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssoci ationValve.java:183) org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java: 95) org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(Secu rityContextEstablishmentValve.java:126
Re: [Struts 2] ?debug=console (devMode) not working
2010/1/20 Fernandes Celinio cfernan...@sopraconsulting.com: Hi, I am trying to run the debug console that is available in a popup when you append the URL with ?debug=console It is described here : http://struts.apache.org/2.0.14/docs/debugging.html Here is the URL i used : http://localhost:8085/myWebApp/doLogin.action?debug.console It complains that it cannot create a session after the response was sent. What did i do wrong or what am i missing ? Try first time open that url directly without any params, then try to use ?debug=console param - session should be already created by first request. Regards -- Lukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
DebuggingInterceptor debug=console ?
I'd never tried to use this interceptor before today. I'm having difficulty getting debug=console mode to work, as it opens a pop-up window pointed at .../struts/webconsole.html which then results in an exception: There is no Action mapped for action name struts/webconsole I see that in the struts core jar there's a file named 'org/apache/struts2/interceptor/debugging/webconsole.html', which I assume should be returned by that request, but I am using the extension .html, so it makes sense for it to be looking for an action mapping instead. Is there a standard workaround for this issue? -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: DebuggingInterceptor debug=console ?
you could create an action mapping for it, it is less than ideal but it should work. musachy On Fri, Jul 24, 2009 at 4:49 PM, Dale Newfieldd...@newfield.org wrote: I'd never tried to use this interceptor before today. I'm having difficulty getting debug=console mode to work, as it opens a pop-up window pointed at .../struts/webconsole.html which then results in an exception: There is no Action mapped for action name struts/webconsole I see that in the struts core jar there's a file named 'org/apache/struts2/interceptor/debugging/webconsole.html', which I assume should be returned by that request, but I am using the extension .html, so it makes sense for it to be looking for an action mapping instead. Is there a standard workaround for this issue? -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: DebuggingInterceptor debug=console ?
I vaguely remember it working on some browsers and not on others ... I think it was IE that did not work. Try another browser. Chris **A Good Credit Score is 700 or Above. See yours in just 2 easy steps! (http://pr.atwola.com/promoclk/100126575x1222377105x1201454426/aol?redir=http://www.freecreditreport.com/pm/default.aspx?sc=668072hmpgID=115bcd =JulystepsfooterNO115)
Re: How to suppress server console message in struts1.3.10 + tiles
Raju, Check your log level. There are different levels to this as shown below: ALL DEBUG ERROR FATAL INFO OFF TRACE TRACE_INT WARN I'm assuming your log level is turned on for INFO. I provided the link below for your reference on each log level which describes what it does. http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html Rommel From: rajusaranga r_sara...@yahoo.com To: user@struts.apache.org Sent: Thursday, April 9, 2009 1:46:44 AM Subject: How to suppress server console message in struts1.3.10 + tiles We are developing application with Struts 1.3.10, tiles and log4j1.2.15 using RAD 6.0. I am receiving following message on server console for every “request” [4/8/09 14:53:38:959 PDT] 005f TilesPreProce I org.apache.struts.tiles.commands.TilesPreProcessor execute Tiles process complete; forward to /WEB-INF/jsp/myLayout.jsp Please let me know, if there is any solution to suppress this informational message? Reason: Since application is internet based and would like to filter above informational messages from the log files. Thank You Raju
How to suppress server console message in struts1.3.10 + tiles
We are developing application with Struts 1.3.10, tiles and log4j1.2.15 using RAD 6.0. I am receiving following message on server console for every “request” [4/8/09 14:53:38:959 PDT] 005f TilesPreProce I org.apache.struts.tiles.commands.TilesPreProcessor execute Tiles process complete; forward to /WEB-INF/jsp/myLayout.jsp Please let me know, if there is any solution to suppress this informational message? Reason: Since application is internet based and would like to filter above informational messages from the log files. Thank You Raju
Re: dojo is not defined error message in firefox console.
In your web.xml ensure you have a filter-mapping defined for the /struts/...js files. You need to make sure that a request to the Javascript and CSS files defined in the struts jar file go thru the Struts 2 filter. That is, make sure you have something like this on your web.xml: filter-mapping filter-namestruts2Filter/filter-name url-pattern/struts/*/url-pattern /filter-mapping If the request to your struts 2 dojo javascript files do not go thru the Struts 2 filter, you will get 404 error when the browser attempts to retrieve those files. Rubens. -- View this message in context: http://www.nabble.com/dojo-is-not-defined-error-message-in-firefox-console.-tp16353614p19850121.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't stop console warnings
I just converted from struts 1 to 2.1. I've got everything working, but I can't seem to stop this warning from being spit out in the console every time struts runs. Any help would be great. thank you. Jun 15, 2008 11:43:01 AM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn WARNING: Could not find property [struts.valueStack] Jun 15, 2008 11:43:01 AM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn WARNING: Could not find property [org.apache.catalina.jsp_file] -- View this message in context: http://www.nabble.com/Can%27t-stop-console-warnings-tp17854725p17854725.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't stop console warnings
Hi, add in your web.xml following snippet: context-param param-namelog4jConfigLocation/param-name param-value/WEB-INF/classes/log4j.properties/param-value /context-param And in the log4j.properties you add following line: log4j.category.com.opensymphony.xwork2.util.logging.jdk.JdkLogger=ERROR That should log only error-messages coming from this class. Joachim jefetech schrieb: I just converted from struts 1 to 2.1. I've got everything working, but I can't seem to stop this warning from being spit out in the console every time struts runs. Any help would be great. thank you. Jun 15, 2008 11:43:01 AM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn WARNING: Could not find property [struts.valueStack] Jun 15, 2008 11:43:01 AM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn WARNING: Could not find property [org.apache.catalina.jsp_file] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't stop console warnings
That makes sense, but unforunately did not do anything. Here's what my server spits out when starting up: 2008-06-15 16:16:54.855::INFO: Extract jar:file:/usr/local/jetty/webapps/struts2.war!/ to /usr/local/jetty/work/Jetty_0_0_0_0_80_struts2.war___struts2test_-f01z4v/webapp Jun 15, 2008 4:16:55 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts-default.xml] Jun 15, 2008 4:16:55 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts-plugin.xml] Jun 15, 2008 4:16:55 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts.xml] It seem to still think com.opensymphony.xwork2.util.logging.jdk.JdkLogger should log info even though my log4j.properties has this line: log4j.category.com.opensymphony.xwork2.util.logging.jdk.JdkLogger=error Is there something I have to add to the struts.xml file? Joachim Rohde wrote: Hi, add in your web.xml following snippet: context-param param-namelog4jConfigLocation/param-name param-value/WEB-INF/classes/log4j.properties/param-value /context-param And in the log4j.properties you add following line: log4j.category.com.opensymphony.xwork2.util.logging.jdk.JdkLogger=ERROR That should log only error-messages coming from this class. Joachim jefetech schrieb: I just converted from struts 1 to 2.1. I've got everything working, but I can't seem to stop this warning from being spit out in the console every time struts runs. Any help would be great. thank you. Jun 15, 2008 11:43:01 AM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn WARNING: Could not find property [struts.valueStack] Jun 15, 2008 11:43:01 AM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn WARNING: Could not find property [org.apache.catalina.jsp_file] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Can%27t-stop-console-warnings-tp17854725p17856624.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't stop console warnings
Are you actually using Log4J? --- On Sun, 6/15/08, jefetech [EMAIL PROTECTED] wrote: From: jefetech [EMAIL PROTECTED] Subject: Re: Can't stop console warnings To: user@struts.apache.org Date: Sunday, June 15, 2008, 9:45 PM That makes sense, but unforunately did not do anything. Here's what my server spits out when starting up: 2008-06-15 16:16:54.855::INFO: Extract jar:file:/usr/local/jetty/webapps/struts2.war!/ to /usr/local/jetty/work/Jetty_0_0_0_0_80_struts2.war___struts2test_-f01z4v/webapp Jun 15, 2008 4:16:55 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts-default.xml] Jun 15, 2008 4:16:55 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts-plugin.xml] Jun 15, 2008 4:16:55 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts.xml] It seem to still think com.opensymphony.xwork2.util.logging.jdk.JdkLogger should log info even though my log4j.properties has this line: log4j.category.com.opensymphony.xwork2.util.logging.jdk.JdkLogger=error Is there something I have to add to the struts.xml file? Joachim Rohde wrote: Hi, add in your web.xml following snippet: context-param param-namelog4jConfigLocation/param-name param-value/WEB-INF/classes/log4j.properties/param-value /context-param And in the log4j.properties you add following line: log4j.category.com.opensymphony.xwork2.util.logging.jdk.JdkLogger=ERROR That should log only error-messages coming from this class. Joachim jefetech schrieb: I just converted from struts 1 to 2.1. I've got everything working, but I can't seem to stop this warning from being spit out in the console every time struts runs. Any help would be great. thank you. Jun 15, 2008 11:43:01 AM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn WARNING: Could not find property [struts.valueStack] Jun 15, 2008 11:43:01 AM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn WARNING: Could not find property [org.apache.catalina.jsp_file] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Can%27t-stop-console-warnings-tp17854725p17856624.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't stop console warnings
Hi, I also had this problem, I solved setting this in my log4j.properties file: ### set log levels - for more verbose logging change 'info' to 'debug' stdout ### log4j.rootLogger=info 2008/6/15 Dave Newton [EMAIL PROTECTED]: Are you actually using Log4J? --- On Sun, 6/15/08, jefetech [EMAIL PROTECTED] wrote: From: jefetech [EMAIL PROTECTED] Subject: Re: Can't stop console warnings To: user@struts.apache.org Date: Sunday, June 15, 2008, 9:45 PM That makes sense, but unforunately did not do anything. Here's what my server spits out when starting up: 2008-06-15 16:16:54.855::INFO: Extract jar:file:/usr/local/jetty/webapps/struts2.war!/ to /usr/local/jetty/work/Jetty_0_0_0_0_80_struts2.war___struts2test_-f01z4v/webapp Jun 15, 2008 4:16:55 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts-default.xml] Jun 15, 2008 4:16:55 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts-plugin.xml] Jun 15, 2008 4:16:55 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts.xml] It seem to still think com.opensymphony.xwork2.util.logging.jdk.JdkLogger should log info even though my log4j.properties has this line: log4j.category.com.opensymphony.xwork2.util.logging.jdk.JdkLogger=error Is there something I have to add to the struts.xml file? Joachim Rohde wrote: Hi, add in your web.xml following snippet: context-param param-namelog4jConfigLocation/param-name param-value/WEB-INF/classes/log4j.properties/param-value /context-param And in the log4j.properties you add following line: log4j.category.com.opensymphony.xwork2.util.logging.jdk.JdkLogger=ERROR That should log only error-messages coming from this class. Joachim jefetech schrieb: I just converted from struts 1 to 2.1. I've got everything working, but I can't seem to stop this warning from being spit out in the console every time struts runs. Any help would be great. thank you. Jun 15, 2008 11:43:01 AM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn WARNING: Could not find property [struts.valueStack] Jun 15, 2008 11:43:01 AM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn WARNING: Could not find property [org.apache.catalina.jsp_file] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Can%27t-stop-console-warnings-tp17854725p17856624.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't stop console warnings
I've tried changing that, but it makes no difference with struts2.1. No matter what I do with log4j.properties, it just keeps on spitting out warning messages. Frustrating! Márcio Gurgel wrote: Hi, I also had this problem, I solved setting this in my log4j.properties file: ### set log levels - for more verbose logging change 'info' to 'debug' stdout ### log4j.rootLogger=info 2008/6/15 Dave Newton [EMAIL PROTECTED]: Are you actually using Log4J? --- On Sun, 6/15/08, jefetech [EMAIL PROTECTED] wrote: From: jefetech [EMAIL PROTECTED] Subject: Re: Can't stop console warnings To: user@struts.apache.org Date: Sunday, June 15, 2008, 9:45 PM That makes sense, but unforunately did not do anything. Here's what my server spits out when starting up: 2008-06-15 16:16:54.855::INFO: Extract jar:file:/usr/local/jetty/webapps/struts2.war!/ to /usr/local/jetty/work/Jetty_0_0_0_0_80_struts2.war___struts2test_-f01z4v/webapp Jun 15, 2008 4:16:55 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts-default.xml] Jun 15, 2008 4:16:55 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts-plugin.xml] Jun 15, 2008 4:16:55 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts.xml] It seem to still think com.opensymphony.xwork2.util.logging.jdk.JdkLogger should log info even though my log4j.properties has this line: log4j.category.com.opensymphony.xwork2.util.logging.jdk.JdkLogger=error Is there something I have to add to the struts.xml file? Joachim Rohde wrote: Hi, add in your web.xml following snippet: context-param param-namelog4jConfigLocation/param-name param-value/WEB-INF/classes/log4j.properties/param-value /context-param And in the log4j.properties you add following line: log4j.category.com.opensymphony.xwork2.util.logging.jdk.JdkLogger=ERROR That should log only error-messages coming from this class. Joachim jefetech schrieb: I just converted from struts 1 to 2.1. I've got everything working, but I can't seem to stop this warning from being spit out in the console every time struts runs. Any help would be great. thank you. Jun 15, 2008 11:43:01 AM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn WARNING: Could not find property [struts.valueStack] Jun 15, 2008 11:43:01 AM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn WARNING: Could not find property [org.apache.catalina.jsp_file] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Can%27t-stop-console-warnings-tp17854725p17856624.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Can%27t-stop-console-warnings-tp17854725p17856731.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't stop console warnings
I'm also using struts 2.1 ... Here are my log4j: ### direct log messages to stdout ### log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.Target=System.out log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n ### direct messages to file hibernate.log ### #log4j.appender.file=org.apache.log4j.FileAppender #log4j.appender.file.File=hibernate.log #log4j.appender.file.layout=org.apache.log4j.PatternLayout #log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n ### set log levels - for more verbose logging change 'info' to 'debug' stdout ### log4j.rootLogger=info #log4j.logger.org.hibernate=info log4j.logger.org.hibernate=info ### log HQL query parser activity #log4j.logger.org.hibernate.hql.ast.AST=debug ### log just the SQL #log4j.logger.org.hibernate.SQL=debug ### log JDBC bind parameters ### log4j.logger.org.hibernate.type=info #log4j.logger.org.hibernate.type=debug ### log schema export/update ### log4j.logger.org.hibernate.tool.hbm2ddl=debug ### log HQL parse trees #log4j.logger.org.hibernate.hql=debug ### log cache activity ### #log4j.logger.org.hibernate.cache=debug ### log transaction activity #log4j.logger.org.hibernate.transaction=debug ### log JDBC resource acquisition log4j.logger.org.hibernate.jdbc=debug ### enable the following line if you want to track down connection ### ### leakages when using DriverManagerConnectionProvider ### #log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=trace This's a big problem, I had to iterate list with 100 rolls each roll had two s:textfield / if this warnings the page was loading in slow motion mode.. If you need another configuration file just tell 2008/6/15 jefetech [EMAIL PROTECTED]: I've tried changing that, but it makes no difference with struts2.1. No matter what I do with log4j.properties, it just keeps on spitting out warning messages. Frustrating! Márcio Gurgel wrote: Hi, I also had this problem, I solved setting this in my log4j.properties file: ### set log levels - for more verbose logging change 'info' to 'debug' stdout ### log4j.rootLogger=info 2008/6/15 Dave Newton [EMAIL PROTECTED]: Are you actually using Log4J? --- On Sun, 6/15/08, jefetech [EMAIL PROTECTED] wrote: From: jefetech [EMAIL PROTECTED] Subject: Re: Can't stop console warnings To: user@struts.apache.org Date: Sunday, June 15, 2008, 9:45 PM That makes sense, but unforunately did not do anything. Here's what my server spits out when starting up: 2008-06-15 16:16:54.855::INFO: Extract jar:file:/usr/local/jetty/webapps/struts2.war!/ to /usr/local/jetty/work/Jetty_0_0_0_0_80_struts2.war___struts2test_-f01z4v/webapp Jun 15, 2008 4:16:55 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts-default.xml] Jun 15, 2008 4:16:55 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts-plugin.xml] Jun 15, 2008 4:16:55 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts.xml] It seem to still think com.opensymphony.xwork2.util.logging.jdk.JdkLogger should log info even though my log4j.properties has this line: log4j.category.com.opensymphony.xwork2.util.logging.jdk.JdkLogger=error Is there something I have to add to the struts.xml file? Joachim Rohde wrote: Hi, add in your web.xml following snippet: context-param param-namelog4jConfigLocation/param-name param-value/WEB-INF/classes/log4j.properties/param-value /context-param And in the log4j.properties you add following line: log4j.category.com.opensymphony.xwork2.util.logging.jdk.JdkLogger=ERROR That should log only error-messages coming from this class. Joachim jefetech schrieb: I just converted from struts 1 to 2.1. I've got everything working, but I can't seem to stop this warning from being spit out in the console every time struts runs. Any help would be great. thank you. Jun 15, 2008 11:43:01 AM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn WARNING: Could not find property [struts.valueStack] Jun 15, 2008 11:43:01 AM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn WARNING: Could not find property [org.apache.catalina.jsp_file] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Can%27t-stop-console-warnings-tp17854725p17856624.html Sent from the Struts - User mailing
Re: Can't stop console warnings
Ya that looks just like mine. Maybe struts2.1 has issues with Jetty. Does this error have anything to do with log4j though? Maybe I need to shut that off in another config file or something. Jun 15, 2008 4:59:42 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn WARNING: Could not find property [struts.valueStack] Jun 15, 2008 4:59:42 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn WARNING: Could not find property [org.apache.catalina.jsp_file] Márcio Gurgel wrote: I'm also using struts 2.1 ... Here are my log4j: ### direct log messages to stdout ### log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.Target=System.out log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n ### direct messages to file hibernate.log ### #log4j.appender.file=org.apache.log4j.FileAppender #log4j.appender.file.File=hibernate.log #log4j.appender.file.layout=org.apache.log4j.PatternLayout #log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n ### set log levels - for more verbose logging change 'info' to 'debug' stdout ### log4j.rootLogger=info #log4j.logger.org.hibernate=info log4j.logger.org.hibernate=info ### log HQL query parser activity #log4j.logger.org.hibernate.hql.ast.AST=debug ### log just the SQL #log4j.logger.org.hibernate.SQL=debug ### log JDBC bind parameters ### log4j.logger.org.hibernate.type=info #log4j.logger.org.hibernate.type=debug ### log schema export/update ### log4j.logger.org.hibernate.tool.hbm2ddl=debug ### log HQL parse trees #log4j.logger.org.hibernate.hql=debug ### log cache activity ### #log4j.logger.org.hibernate.cache=debug ### log transaction activity #log4j.logger.org.hibernate.transaction=debug ### log JDBC resource acquisition log4j.logger.org.hibernate.jdbc=debug ### enable the following line if you want to track down connection ### ### leakages when using DriverManagerConnectionProvider ### #log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=trace This's a big problem, I had to iterate list with 100 rolls each roll had two s:textfield / if this warnings the page was loading in slow motion mode.. If you need another configuration file just tell 2008/6/15 jefetech [EMAIL PROTECTED]: I've tried changing that, but it makes no difference with struts2.1. No matter what I do with log4j.properties, it just keeps on spitting out warning messages. Frustrating! Márcio Gurgel wrote: Hi, I also had this problem, I solved setting this in my log4j.properties file: ### set log levels - for more verbose logging change 'info' to 'debug' stdout ### log4j.rootLogger=info 2008/6/15 Dave Newton [EMAIL PROTECTED]: Are you actually using Log4J? --- On Sun, 6/15/08, jefetech [EMAIL PROTECTED] wrote: From: jefetech [EMAIL PROTECTED] Subject: Re: Can't stop console warnings To: user@struts.apache.org Date: Sunday, June 15, 2008, 9:45 PM That makes sense, but unforunately did not do anything. Here's what my server spits out when starting up: 2008-06-15 16:16:54.855::INFO: Extract jar:file:/usr/local/jetty/webapps/struts2.war!/ to /usr/local/jetty/work/Jetty_0_0_0_0_80_struts2.war___struts2test_-f01z4v/webapp Jun 15, 2008 4:16:55 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts-default.xml] Jun 15, 2008 4:16:55 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts-plugin.xml] Jun 15, 2008 4:16:55 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts.xml] It seem to still think com.opensymphony.xwork2.util.logging.jdk.JdkLogger should log info even though my log4j.properties has this line: log4j.category.com.opensymphony.xwork2.util.logging.jdk.JdkLogger=error Is there something I have to add to the struts.xml file? Joachim Rohde wrote: Hi, add in your web.xml following snippet: context-param param-namelog4jConfigLocation/param-name param-value/WEB-INF/classes/log4j.properties/param-value /context-param And in the log4j.properties you add following line: log4j.category.com.opensymphony.xwork2.util.logging.jdk.JdkLogger=ERROR That should log only error-messages coming from this class. Joachim jefetech schrieb: I just converted from struts 1 to 2.1. I've got everything working, but I can't seem to stop this warning from being spit out in the console every time struts runs. Any help would be great. thank you. Jun 15, 2008 11:43:01 AM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn WARNING: Could not find
Re: Can't stop console warnings
Thanks for the replies here everybody. I solved the issue. Stupid stupid error on my part, of course. Always is. I had the log4j.jar but forgot to copy over the commons-loggin.jar file. Works fine when the correct jars are included :) jefetech wrote: Ya that looks just like mine. Maybe struts2.1 has issues with Jetty. Does this error have anything to do with log4j though? Maybe I need to shut that off in another config file or something. Jun 15, 2008 4:59:42 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn WARNING: Could not find property [struts.valueStack] Jun 15, 2008 4:59:42 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn WARNING: Could not find property [org.apache.catalina.jsp_file] Márcio Gurgel wrote: I'm also using struts 2.1 ... Here are my log4j: ### direct log messages to stdout ### log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.Target=System.out log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n ### direct messages to file hibernate.log ### #log4j.appender.file=org.apache.log4j.FileAppender #log4j.appender.file.File=hibernate.log #log4j.appender.file.layout=org.apache.log4j.PatternLayout #log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n ### set log levels - for more verbose logging change 'info' to 'debug' stdout ### log4j.rootLogger=info #log4j.logger.org.hibernate=info log4j.logger.org.hibernate=info ### log HQL query parser activity #log4j.logger.org.hibernate.hql.ast.AST=debug ### log just the SQL #log4j.logger.org.hibernate.SQL=debug ### log JDBC bind parameters ### log4j.logger.org.hibernate.type=info #log4j.logger.org.hibernate.type=debug ### log schema export/update ### log4j.logger.org.hibernate.tool.hbm2ddl=debug ### log HQL parse trees #log4j.logger.org.hibernate.hql=debug ### log cache activity ### #log4j.logger.org.hibernate.cache=debug ### log transaction activity #log4j.logger.org.hibernate.transaction=debug ### log JDBC resource acquisition log4j.logger.org.hibernate.jdbc=debug ### enable the following line if you want to track down connection ### ### leakages when using DriverManagerConnectionProvider ### #log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=trace This's a big problem, I had to iterate list with 100 rolls each roll had two s:textfield / if this warnings the page was loading in slow motion mode.. If you need another configuration file just tell 2008/6/15 jefetech [EMAIL PROTECTED]: I've tried changing that, but it makes no difference with struts2.1. No matter what I do with log4j.properties, it just keeps on spitting out warning messages. Frustrating! Márcio Gurgel wrote: Hi, I also had this problem, I solved setting this in my log4j.properties file: ### set log levels - for more verbose logging change 'info' to 'debug' stdout ### log4j.rootLogger=info 2008/6/15 Dave Newton [EMAIL PROTECTED]: Are you actually using Log4J? --- On Sun, 6/15/08, jefetech [EMAIL PROTECTED] wrote: From: jefetech [EMAIL PROTECTED] Subject: Re: Can't stop console warnings To: user@struts.apache.org Date: Sunday, June 15, 2008, 9:45 PM That makes sense, but unforunately did not do anything. Here's what my server spits out when starting up: 2008-06-15 16:16:54.855::INFO: Extract jar:file:/usr/local/jetty/webapps/struts2.war!/ to /usr/local/jetty/work/Jetty_0_0_0_0_80_struts2.war___struts2test_-f01z4v/webapp Jun 15, 2008 4:16:55 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts-default.xml] Jun 15, 2008 4:16:55 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts-plugin.xml] Jun 15, 2008 4:16:55 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts.xml] It seem to still think com.opensymphony.xwork2.util.logging.jdk.JdkLogger should log info even though my log4j.properties has this line: log4j.category.com.opensymphony.xwork2.util.logging.jdk.JdkLogger=error Is there something I have to add to the struts.xml file? Joachim Rohde wrote: Hi, add in your web.xml following snippet: context-param param-namelog4jConfigLocation/param-name param-value/WEB-INF/classes/log4j.properties/param-value /context-param And in the log4j.properties you add following line: log4j.category.com.opensymphony.xwork2.util.logging.jdk.JdkLogger=ERROR That should log only error-messages coming from this class. Joachim jefetech schrieb: I just converted from struts 1 to 2.1. I've got everything
Re: Can't stop console warnings
Rsrs, it also aways happens to me. 2008/6/16 jefetech [EMAIL PROTECTED]: Thanks for the replies here everybody. I solved the issue. Stupid stupid error on my part, of course. Always is. I had the log4j.jar but forgot to copy over the commons-loggin.jar file. Works fine when the correct jars are included :) jefetech wrote: Ya that looks just like mine. Maybe struts2.1 has issues with Jetty. Does this error have anything to do with log4j though? Maybe I need to shut that off in another config file or something. Jun 15, 2008 4:59:42 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn WARNING: Could not find property [struts.valueStack] Jun 15, 2008 4:59:42 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger warn WARNING: Could not find property [org.apache.catalina.jsp_file] Márcio Gurgel wrote: I'm also using struts 2.1 ... Here are my log4j: ### direct log messages to stdout ### log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.Target=System.out log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n ### direct messages to file hibernate.log ### #log4j.appender.file=org.apache.log4j.FileAppender #log4j.appender.file.File=hibernate.log #log4j.appender.file.layout=org.apache.log4j.PatternLayout #log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n ### set log levels - for more verbose logging change 'info' to 'debug' stdout ### log4j.rootLogger=info #log4j.logger.org.hibernate=info log4j.logger.org.hibernate=info ### log HQL query parser activity #log4j.logger.org.hibernate.hql.ast.AST=debug ### log just the SQL #log4j.logger.org.hibernate.SQL=debug ### log JDBC bind parameters ### log4j.logger.org.hibernate.type=info #log4j.logger.org.hibernate.type=debug ### log schema export/update ### log4j.logger.org.hibernate.tool.hbm2ddl=debug ### log HQL parse trees #log4j.logger.org.hibernate.hql=debug ### log cache activity ### #log4j.logger.org.hibernate.cache=debug ### log transaction activity #log4j.logger.org.hibernate.transaction=debug ### log JDBC resource acquisition log4j.logger.org.hibernate.jdbc=debug ### enable the following line if you want to track down connection ### ### leakages when using DriverManagerConnectionProvider ### #log4j.logger.org.hibernate.connection.DriverManagerConnectionProvider=trace This's a big problem, I had to iterate list with 100 rolls each roll had two s:textfield / if this warnings the page was loading in slow motion mode.. If you need another configuration file just tell 2008/6/15 jefetech [EMAIL PROTECTED]: I've tried changing that, but it makes no difference with struts2.1. No matter what I do with log4j.properties, it just keeps on spitting out warning messages. Frustrating! Márcio Gurgel wrote: Hi, I also had this problem, I solved setting this in my log4j.properties file: ### set log levels - for more verbose logging change 'info' to 'debug' stdout ### log4j.rootLogger=info 2008/6/15 Dave Newton [EMAIL PROTECTED]: Are you actually using Log4J? --- On Sun, 6/15/08, jefetech [EMAIL PROTECTED] wrote: From: jefetech [EMAIL PROTECTED] Subject: Re: Can't stop console warnings To: user@struts.apache.org Date: Sunday, June 15, 2008, 9:45 PM That makes sense, but unforunately did not do anything. Here's what my server spits out when starting up: 2008-06-15 16:16:54.855::INFO: Extract jar:file:/usr/local/jetty/webapps/struts2.war!/ to /usr/local/jetty/work/Jetty_0_0_0_0_80_struts2.war___struts2test_-f01z4v/webapp Jun 15, 2008 4:16:55 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts-default.xml] Jun 15, 2008 4:16:55 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts-plugin.xml] Jun 15, 2008 4:16:55 PM com.opensymphony.xwork2.util.logging.jdk.JdkLogger info INFO: Parsing configuration file [struts.xml] It seem to still think com.opensymphony.xwork2.util.logging.jdk.JdkLogger should log info even though my log4j.properties has this line: log4j.category.com.opensymphony.xwork2.util.logging.jdk.JdkLogger=error Is there something I have to add to the struts.xml file? Joachim Rohde wrote: Hi, add in your web.xml following snippet: context-param param-namelog4jConfigLocation/param-name param-value/WEB-INF/classes/log4j.properties/param-value /context-param And in the log4j.properties you add following line
Re: dojo is not defined error message in firefox console.
Are you deliberately mixing Dojo 0.40 with Dojo 1.x? The s:head theme=ajax tag includes resources for Dojo 0.40. In addition to that you're referenced a local dojo installation that includes Digit (1.x) The dojo undefined message implies neither worked so there's a major error. Use FireBug to confirm that dojo.js is found. sharath karnati wrote: Hi All, I'm getting below error message for this acrion(http://localhost:7001/hibernate/events/Dojo.action). dojo is not defined dojo.require(dijit.form.Button); Please find my progrm: html head s:head theme=ajax debug=true/ titleTooltipDialog demo/title script type=text/javascript // Dojo configuration djConfig = { parseOnLoad: true, baseRelativePath: @s.url includeParams='none' value='/struts/dojo' includeParams='none' encode='false'/, isDebug: true, bindEncoding: ${parameters.encoding}, debugAtAllCosts: true // not needed, but allows the Venkman debugger to work with the includes }; /script script type=text/javascript src=@s.url includeParams='none' value='/pages/dojoroot/dojo/dojo.js' includeParams='none' encode='false'/ /script link href=s:url value='/pages/dojoroot/dojo/resources/dojo.css'/ rel='stylesheet' type='text/css' / link href=s:url value='/pages/dojoroot/dijit/themes/tundra/tundra.css'/ rel='stylesheet' type='text/css' / script type=text/javascript dojo.require(dijit.Dialog); dojo.require(dijit.form.Button); /script /head body class=tundra button dojoType=dijit.form.Button id=helloButton Hello World script type=dojo/method event=onClick console.log('you pressed the button'); alert(You pressed the button.); /script /button /body /html In struts.xml, I configured this program as below action name=Dojo result/pages/test1.jsp/result /action dojoroot directory is in WEB-INF/pages directory. I'm using 'struts2-core-2.0.11.jar' Please let me know what is wrong in this code and how to correct this problem. Thanks in advance. Regards, Sharath. - Looking for last minute shopping deals? Find them fast with Yahoo! Search. No virus found in this incoming message. Checked by AVG. Version: 7.5.519 / Virus Database: 269.22.1/1347 - Release Date: 27/03/2008 7:15 PM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dojo is not defined error message in firefox console.
Hi All, I'm getting below error message for this acrion(http://localhost:7001/hibernate/events/Dojo.action). dojo is not defined dojo.require(dijit.form.Button); Please find my progrm: html head s:head theme=ajax debug=true/ titleTooltipDialog demo/title script type=text/javascript // Dojo configuration djConfig = { parseOnLoad: true, baseRelativePath: @s.url includeParams='none' value='/struts/dojo' includeParams='none' encode='false'/, isDebug: true, bindEncoding: ${parameters.encoding}, debugAtAllCosts: true // not needed, but allows the Venkman debugger to work with the includes }; /script script type=text/javascript src=@s.url includeParams='none' value='/pages/dojoroot/dojo/dojo.js' includeParams='none' encode='false'/ /script link href=s:url value='/pages/dojoroot/dojo/resources/dojo.css'/ rel='stylesheet' type='text/css' / link href=s:url value='/pages/dojoroot/dijit/themes/tundra/tundra.css'/ rel='stylesheet' type='text/css' / script type=text/javascript dojo.require(dijit.Dialog); dojo.require(dijit.form.Button); /script /head body class=tundra button dojoType=dijit.form.Button id=helloButton Hello World script type=dojo/method event=onClick console.log('you pressed the button'); alert(You pressed the button.); /script /button /body /html In struts.xml, I configured this program as below action name=Dojo result/pages/test1.jsp/result /action dojoroot directory is in WEB-INF/pages directory. I'm using 'struts2-core-2.0.11.jar' Please let me know what is wrong in this code and how to correct this problem. Thanks in advance. Regards, Sharath. - Looking for last minute shopping deals? Find them fast with Yahoo! Search.
Re: Console error message for a working logic:iterate tag
Hi, I think u have to set the scope to session ...just try it... and let us know.. Regards, Mano Yes, for some reason, when I change the scope of the action mapping to session the message in the console goes away. I don't understand at all. Why it the JSP function correctly in both cases, but in one case display an erroneous error message only in the console? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Console error message for a working logic:iterate tag
I'm not too worried about this because it seems to be working, but here goes. I'm running Struts 1.2.9 on Apache Tomcat 5.5.x. One of my JSPs has the following section in it. ul logic:iterate name=accountInformationForm property=accounts id=accountSummaryView li html:link page=/getaccountdetail.do paramId=id paramName=accountSummaryView paramProperty=accountId bean:write name=accountSummaryView property=accountType/ /html:link /li /logic:iterate /ul I have verified that the action that loads this JSP has a form called accountInformationForm associated with it and the JSP actually renders fine, correctly iterating through the collection and printing out a link to each account. Strangely, I get the following error in my Tomcat console though: Nov 13, 2006 6:15:14 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet jsp threw exception javax.servlet.jsp.JspException: Cannot find bean: accountInformationForm in any scope at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:935) at org.apache.struts.taglib.logic.IterateTag.doStartTag (IterateTag.java:232) at org.apache.jsp.account_005finformation_jsp._jspService (account_005finformation_jsp.java:211) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:332) at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) When I comment out the section the console error goes away, so I'm sure that's where its coming from. I'm also sure that page is functioning 100% correctly. Any thoughts on why I might be getting this seemingly incorrect error message in the console and not in the application? Bradley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Console error message for a working logic:iterate tag
Hi Brad, Double check your Struts-config whether u have set the scope=session for this action. And also try using simple Bean writes before using html:link For link creations... Regards, Mano -Original Message- From: Bradley Wagner [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 14, 2006 5:06 AM To: user@struts.apache.org Subject: Console error message for a working logic:iterate tag I'm not too worried about this because it seems to be working, but here goes. I'm running Struts 1.2.9 on Apache Tomcat 5.5.x. One of my JSPs has the following section in it. ul logic:iterate name=accountInformationForm property=accounts id=accountSummaryView li html:link page=/getaccountdetail.do paramId=id paramName=accountSummaryView paramProperty=accountId bean:write name=accountSummaryView property=accountType/ /html:link /li /logic:iterate /ul I have verified that the action that loads this JSP has a form called accountInformationForm associated with it and the JSP actually renders fine, correctly iterating through the collection and printing out a link to each account. Strangely, I get the following error in my Tomcat console though: Nov 13, 2006 6:15:14 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet jsp threw exception javax.servlet.jsp.JspException: Cannot find bean: accountInformationForm in any scope at org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:935) at org.apache.struts.taglib.logic.IterateTag.doStartTag (IterateTag.java:232) at org.apache.jsp.account_005finformation_jsp._jspService (account_005finformation_jsp.java:211) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:332) at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) When I comment out the section the console error goes away, so I'm sure that's where its coming from. I'm also sure that page is functioning 100% correctly. Any thoughts on why I might be getting this seemingly incorrect error message in the console and not in the application? Bradley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Console error message for a working logic:iterate tag
Hi Brad, Double check your Struts-config whether u have set the scope=session for this action. And also try using simple Bean writes before using html:link For link creations... Regards, Mano The struts config file uses scope=request for this action. I tried adding a bean:write before the html:link and it worked fine, however, i'm still getting the error only in the console saying that it cannot find the bean in any scope. Do you think this something to do with the session using scope=request? Bradley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Console error message for a working logic:iterate tag
Do you think this something to do with the session using scope=request? Blah, I can't talk. Do you think this has anything to do with the action mapping using a scope=request? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Console error message for a working logic:iterate tag
Hi, I think u have to set the scope to session ...just try it... and let us know.. Regards, Mano -Original Message- From: Bradley Wagner [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 14, 2006 10:11 AM To: Struts Users Mailing List Subject: Re: Console error message for a working logic:iterate tag Do you think this something to do with the session using scope=request? Blah, I can't talk. Do you think this has anything to do with the action mapping using a scope=request? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Console error message for a working logic:iterate tag
Hi, U can enclose logic:present /logic:present tag before coming into iterate tag and test it.. Regards, Mano -Original Message- From: Mano Chinthaka Dasanayaka [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 14, 2006 11:55 AM To: 'Struts Users Mailing List' Subject: RE: Console error message for a working logic:iterate tag Hi, I think u have to set the scope to session ...just try it... and let us know.. Regards, Mano -Original Message- From: Bradley Wagner [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 14, 2006 10:11 AM To: Struts Users Mailing List Subject: Re: Console error message for a working logic:iterate tag Do you think this something to do with the session using scope=request? Blah, I can't talk. Do you think this has anything to do with the action mapping using a scope=request? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Console
Hi Abhimanyu, The problem you are encountering is probably happening because Struts Console stores the window size settings for the application in a configuration file. Somehow your window size has been reduced to a size that cannot be displayed. If you remove the Struts Console configuration file, the window will go back to the default size. The file you need to delete is: C:\Documents and Settings\James Holmes\StrutsConsole.cfg Of course, you will need to substitute James Holmes with your computer login. James -Original Message- From: Abhimanyu Koul [mailto:[EMAIL PROTECTED] Sent: Friday, June 02, 2006 5:40 AM To: Struts Mailing list Subject: Console hi! I have a problem in running struts console. The application just not starts up. i use windows 2000. it used to work fine till yesterday but from the last 10 hours it is not working. i tried to reboot, reinstall, reinstall jre but to no avail. the struts console window appears in the taskbar but it does not start up. please help me. i am in a fix. Abhimanyu Koul FinEng Solutions (P) Ltd. Dani Compound, 158, Vidyanagari Marg, Kalina, Santacruz (East), Mumbai - 400 098 Mobile : +91 9819510090 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Console
hi! I have a problem in running struts console. The application just not starts up. i use windows 2000. it used to work fine till yesterday but from the last 10 hours it is not working. i tried to reboot, reinstall, reinstall jre but to no avail. the struts console window appears in the taskbar but it does not start up. please help me. i am in a fix. Abhimanyu Koul FinEng Solutions (P) Ltd. Dani Compound, 158, Vidyanagari Marg, Kalina, Santacruz (East), Mumbai - 400 098 Mobile : +91 9819510090
RE: [ANNOUNCE] Struts Console v4.8 - GUI tool
Hi Joe, The arg0, arg1, etc. tags are supposed to simply be deprecated and should still work. If they are not working with Struts 1.2 for your application, you will have to move to the new arg position=0 style of doing things. I am working on updating Struts Console to support this new style and hope to have another release out soon. James -Original Message- From: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 4:12 PM To: 'Struts Users Mailing List' Subject: RE: [ANNOUNCE] Struts Console v4.8 - GUI tool James, thank you! I've been looking forward to this. Out of curiousity, it doesn't look like it handles the new and improved way of defining args in validator.xml files as mentioned at the end of http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29004 Do the arg0, arg1, arg2 attributes really just not work anymore or is it just me? If this is the case, Struts Console should show args's -Joe -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 3:55 PM To: 'Struts Users Mailing List' Subject: [ANNOUNCE] Struts Console v4.8 - GUI tool Struts Console version 4.8 is now available. http://www.jamesholmes.com/struts/ Download Now: http://www.jamesholmes.com/struts/struts-console-4.8.zip -- OR -- http://www.jamesholmes.com/struts/struts-console-4.8.tar.gz Struts Console is FREE software. Changes with Struts Console v4.8 *) Added support for Validator 1.1.3 configuration files. Thanks, -James [EMAIL PROTECTED] http://www.jamesholmes.com/struts/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANNOUNCE] Struts Console v4.8 - GUI tool
They had quit working in the examples. I would hope they had only been deprecated, but even that bug implied it had not been since the struts validator examples had to be modified to work again. I'll take another look. I was very surprised I was the only one this bothered. Tx again. Struts Console is downright indispensible. -Joe -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Friday, October 29, 2004 02:02 AM To: ''Struts Users Mailing List'' Subject: RE: [ANNOUNCE] Struts Console v4.8 - GUI tool Hi Joe, The arg0, arg1, etc. tags are supposed to simply be deprecated and should still work. If they are not working with Struts 1.2 for your application, you will have to move to the new arg position=0 style of doing things. I am working on updating Struts Console to support this new style and hope to have another release out soon. James -Original Message- From: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 4:12 PM To: 'Struts Users Mailing List' Subject: RE: [ANNOUNCE] Struts Console v4.8 - GUI tool James, thank you! I've been looking forward to this. Out of curiousity, it doesn't look like it handles the new and improved way of defining args in validator.xml files as mentioned at the end of http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29004 Do the arg0, arg1, arg2 attributes really just not work anymore or is it just me? If this is the case, Struts Console should show args's -Joe -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 3:55 PM To: 'Struts Users Mailing List' Subject: [ANNOUNCE] Struts Console v4.8 - GUI tool Struts Console version 4.8 is now available. http://www.jamesholmes.com/struts/ Download Now: http://www.jamesholmes.com/struts/struts-console-4.8.zip -- OR -- http://www.jamesholmes.com/struts/struts-console-4.8.tar.gz Struts Console is FREE software. Changes with Struts Console v4.8 *) Added support for Validator 1.1.3 configuration files. Thanks, -James [EMAIL PROTECTED] http://www.jamesholmes.com/struts/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANNOUNCE] Struts Console v4.8 - GUI tool
Struts Console version 4.8 is now available. http://www.jamesholmes.com/struts/ Download Now: http://www.jamesholmes.com/struts/struts-console-4.8.zip -- OR -- http://www.jamesholmes.com/struts/struts-console-4.8.tar.gz Struts Console is FREE software. Changes with Struts Console v4.8 *) Added support for Validator 1.1.3 configuration files. Thanks, -James [EMAIL PROTECTED] http://www.jamesholmes.com/struts/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ANNOUNCE] Struts Console v4.8 - GUI tool
James, thank you! I've been looking forward to this. Out of curiousity, it doesn't look like it handles the new and improved way of defining args in validator.xml files as mentioned at the end of http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29004 Do the arg0, arg1, arg2 attributes really just not work anymore or is it just me? If this is the case, Struts Console should show args's -Joe -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 3:55 PM To: 'Struts Users Mailing List' Subject: [ANNOUNCE] Struts Console v4.8 - GUI tool Struts Console version 4.8 is now available. http://www.jamesholmes.com/struts/ Download Now: http://www.jamesholmes.com/struts/struts-console-4.8.zip -- OR -- http://www.jamesholmes.com/struts/struts-console-4.8.tar.gz Struts Console is FREE software. Changes with Struts Console v4.8 *) Added support for Validator 1.1.3 configuration files. Thanks, -James [EMAIL PROTECTED] http://www.jamesholmes.com/struts/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ANNOUNCE] Struts Console v4.8 - GUI tool
James, thank you! I've been looking forward to this. Out of curiousity, it doesn't look like it handles the new and improved way of defining args in validator.xml files as mentioned at the end of http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29004 Do the arg0, arg1, arg2 attributes really just not work anymore or is it just me? If this is the case, Struts Console should show args's -Joe -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 3:55 PM To: 'Struts Users Mailing List' Subject: [ANNOUNCE] Struts Console v4.8 - GUI tool Struts Console version 4.8 is now available. http://www.jamesholmes.com/struts/ Download Now: http://www.jamesholmes.com/struts/struts-console-4.8.zip -- OR -- http://www.jamesholmes.com/struts/struts-console-4.8.tar.gz Struts Console is FREE software. Changes with Struts Console v4.8 *) Added support for Validator 1.1.3 configuration files. Thanks, -James [EMAIL PROTECTED] http://www.jamesholmes.com/struts/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to configure Tomcat/Struts ... error messages are sent to a file, not the console?
Please tell me how to configure Tomcat/Struts so that error messages are sent to a file, not the console? SERVER == I am using tomcat-5.0.27 BACKGROUND == I am using for logging error messages. The output of the code below goes to Eclipse console. What I want is for the output to go into a file. import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class CargoExceptionHandler extends ExceptionHandler { public ActionForward execute( Exception ex, ExceptionConfig exConfig, ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws ServletException{ Log log = LogFactory.getLog(CargoExceptionHandler.class); //Which Logger is being Used? System.out.println(The Log being used + log); //Create a dummy exception to depict exception logging Exception e = new Exception(A DUMMY EXCEPTION); //Log TRACE if enabled if (log.isTraceEnabled()) { log.trace(TRACE TEST); log.trace(TRACE TEST, e); } //Log DEBUG if enabled if (log.isDebugEnabled()) { log.debug(DEBUG TEST); log.debug(DEBUG TEST, e); } //Log INFO if enabled if (log.isInfoEnabled()) { log.info(INFO TEST); log.info(INFO TEST, e); } //Log WARN if enabled if (log.isWarnEnabled()) { log.warn(WARN TEST); log.warn(WARN TEST, e); } //Log ERROR if enabled if (log.isErrorEnabled()) { log.error(ERROR TEST); log.error(ERROR TEST, e); } //Log FATAL if enabled if (log.isFatalEnabled()) { log.fatal(FATAL TEST); log.fatal(FATAL TEST, e); } } Thank you. ___ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to configure Tomcat/Struts ... error messages are sent to a file, not the console?
Hi, O. Check the configuration of the log facility actually in use (commons-logging can use several). Most probably this is log4j. Then have a look at the log4j configuration, which can be done with a log4j.properties file. Changes in this file and restarting your application should be all you need. Please have a look at the commons-logging and log4j documentation to see how to configure your setup. Hiran - Hiran Chaudhuri SAG Systemhaus GmbH Elsenheimer Straße 11 80867 München Phone +49-89-54 74 21 34 Fax +49-89-54 74 21 99 -Original Message- From: O. Oke [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 6. Oktober 2004 13:11 To: Struts Users Mailing List Subject: How to configure Tomcat/Struts ... error messages are sent to a file, not the console? Please tell me how to configure Tomcat/Struts so that error messages are sent to a file, not the console? SERVER == I am using tomcat-5.0.27 BACKGROUND == I am using for logging error messages. The output of the code below goes to Eclipse console. What I want is for the output to go into a file. import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class CargoExceptionHandler extends ExceptionHandler { public ActionForward execute( Exception ex, ExceptionConfig exConfig, ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws ServletException{ Log log = LogFactory.getLog(CargoExceptionHandler.class); //Which Logger is being Used? System.out.println(The Log being used + log); //Create a dummy exception to depict exception logging Exception e = new Exception(A DUMMY EXCEPTION); //Log TRACE if enabled if (log.isTraceEnabled()) { log.trace(TRACE TEST); log.trace(TRACE TEST, e); } //Log DEBUG if enabled if (log.isDebugEnabled()) { log.debug(DEBUG TEST); log.debug(DEBUG TEST, e); } //Log INFO if enabled if (log.isInfoEnabled()) { log.info(INFO TEST); log.info(INFO TEST, e); } //Log WARN if enabled if (log.isWarnEnabled()) { log.warn(WARN TEST); log.warn(WARN TEST, e); } //Log ERROR if enabled if (log.isErrorEnabled()) { log.error(ERROR TEST); log.error(ERROR TEST, e); } //Log FATAL if enabled if (log.isFatalEnabled()) { log.fatal(FATAL TEST); log.fatal(FATAL TEST, e); } } Thank you. ___ALL -NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Re: How to configure Tomcat/Struts ... error messages are sent to a file, not the console?
Configure the proper appender: http://logging.apache.org/log4j/docs/manual.html Dennis O. Oke [EMAIL PROTECTED] 10/06/2004 08:10 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To Struts Users Mailing List [EMAIL PROTECTED] cc Subject How to configure Tomcat/Struts ... error messages are sent to a file, not the console? Please tell me how to configure Tomcat/Struts so that error messages are sent to a file, not the console? SERVER == I am using tomcat-5.0.27 BACKGROUND == I am using for logging error messages. The output of the code below goes to Eclipse console. What I want is for the output to go into a file. import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class CargoExceptionHandler extends ExceptionHandler { public ActionForward execute( Exception ex, ExceptionConfig exConfig, ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws ServletException{ Log log = LogFactory.getLog(CargoExceptionHandler.class); //Which Logger is being Used? System.out.println(The Log being used + log); //Create a dummy exception to depict exception logging Exception e = new Exception(A DUMMY EXCEPTION); //Log TRACE if enabled if (log.isTraceEnabled()) { log.trace(TRACE TEST); log.trace(TRACE TEST, e); } //Log DEBUG if enabled if (log.isDebugEnabled()) { log.debug(DEBUG TEST); log.debug(DEBUG TEST, e); } //Log INFO if enabled if (log.isInfoEnabled()) { log.info(INFO TEST); log.info(INFO TEST, e); } //Log WARN if enabled if (log.isWarnEnabled()) { log.warn(WARN TEST); log.warn(WARN TEST, e); } //Log ERROR if enabled if (log.isErrorEnabled()) { log.error(ERROR TEST); log.error(ERROR TEST, e); } //Log FATAL if enabled if (log.isFatalEnabled()) { log.fatal(FATAL TEST); log.fatal(FATAL TEST, e); } } Thank you. ___ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to configure Tomcat/Struts ... error messages are sent to a file, not the console?
Hi Hiran, Thanks for your response. I am using simplelog and it is already working. The only problem is that the output is going to the console. What I want is for the output to go into a file. There is nothing in the configuration information that states how to redirect output to a file. Please do you know how I can get the output to go into a file? Thank you. Ola --- [EMAIL PROTECTED] wrote: Hi, O. Check the configuration of the log facility actually in use (commons-logging can use several). Most probably this is log4j. Then have a look at the log4j configuration, which can be done with a log4j.properties file. Changes in this file and restarting your application should be all you need. Please have a look at the commons-logging and log4j documentation to see how to configure your setup. Hiran - Hiran Chaudhuri SAG Systemhaus GmbH Elsenheimer Straße 11 80867 München Phone +49-89-54 74 21 34 Fax +49-89-54 74 21 99 -Original Message- From: O. Oke [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 6. Oktober 2004 13:11 To: Struts Users Mailing List Subject: How to configure Tomcat/Struts ... error messages are sent to a file, not the console? Please tell me how to configure Tomcat/Struts so that error messages are sent to a file, not the console? SERVER == I am using tomcat-5.0.27 BACKGROUND == I am using for logging error messages. The output of the code below goes to Eclipse console. What I want is for the output to go into a file. import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class CargoExceptionHandler extends ExceptionHandler { public ActionForward execute( Exception ex, ExceptionConfig exConfig, ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws ServletException{ Log log = LogFactory.getLog(CargoExceptionHandler.class); //Which Logger is being Used? System.out.println(The Log being used + log); //Create a dummy exception to depict exception logging Exception e = new Exception(A DUMMY EXCEPTION); //Log TRACE if enabled if (log.isTraceEnabled()) { log.trace(TRACE TEST); log.trace(TRACE TEST, e); } //Log DEBUG if enabled if (log.isDebugEnabled()) { log.debug(DEBUG TEST); log.debug(DEBUG TEST, e); } //Log INFO if enabled if (log.isInfoEnabled()) { log.info(INFO TEST); log.info(INFO TEST, e); } //Log WARN if enabled if (log.isWarnEnabled()) { log.warn(WARN TEST); log.warn(WARN TEST, e); } //Log ERROR if enabled if (log.isErrorEnabled()) { log.error(ERROR TEST); log.error(ERROR TEST, e); } //Log FATAL if enabled if (log.isFatalEnabled()) { log.fatal(FATAL TEST); log.fatal(FATAL TEST, e); } } Thank you. ___ALL -NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to configure Tomcat/Struts ... error messages are sent to a file, not the console?
Your log4j configuration probably uses a consoleappender. Change this to be a fileappender instead, and you are done. This document describes the configuration of log4j in short: http://logging.apache.org/log4j/docs/manual.html To see what appenders are available in log4j, see http://logging.apache.org/log4j/docs/api/org/apache/log4j/Appender.html and all implementing classes, especially http://logging.apache.org/log4j/docs/api/org/apache/log4j/FileAppender.html Hiran - Hiran Chaudhuri SAG Systemhaus GmbH Elsenheimer Straße 11 80867 München Phone +49-89-54 74 21 34 Fax +49-89-54 74 21 99 -Original Message- From: O. Oke [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 6. Oktober 2004 14:09 To: Struts Users Mailing List Subject: RE: How to configure Tomcat/Struts ... error messages are sent to a file, not the console? Hi Hiran, Thanks for your response. I am using simplelog and it is already working. The only problem is that the output is going to the console. What I want is for the output to go into a file. There is nothing in the configuration information that states how to redirect output to a file. Please do you know how I can get the output to go into a file? Thank you. Ola --- [EMAIL PROTECTED] wrote: Hi, O. Check the configuration of the log facility actually in use (commons-logging can use several). Most probably this is log4j. Then have a look at the log4j configuration, which can be done with a log4j.properties file. Changes in this file and restarting your application should be all you need. Please have a look at the commons-logging and log4j documentation to see how to configure your setup. Hiran - Hiran Chaudhuri SAG Systemhaus GmbH Elsenheimer Straße 11 80867 München Phone +49-89-54 74 21 34 Fax +49-89-54 74 21 99 -Original Message- From: O. Oke [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 6. Oktober 2004 13:11 To: Struts Users Mailing List Subject: How to configure Tomcat/Struts ... error messages are sent to a file, not the console? Please tell me how to configure Tomcat/Struts so that error messages are sent to a file, not the console? SERVER == I am using tomcat-5.0.27 BACKGROUND == I am using for logging error messages. The output of the code below goes to Eclipse console. What I want is for the output to go into a file. import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class CargoExceptionHandler extends ExceptionHandler { public ActionForward execute( Exception ex, ExceptionConfig exConfig, ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws ServletException{ Log log = LogFactory.getLog(CargoExceptionHandler.class); //Which Logger is being Used? System.out.println(The Log being used + log); //Create a dummy exception to depict exception logging Exception e = new Exception(A DUMMY EXCEPTION); //Log TRACE if enabled if (log.isTraceEnabled()) { log.trace(TRACE TEST); log.trace(TRACE TEST, e); } //Log DEBUG if enabled if (log.isDebugEnabled()) { log.debug(DEBUG TEST); log.debug(DEBUG TEST, e); } //Log INFO if enabled if (log.isInfoEnabled()) { log.info(INFO TEST); log.info(INFO TEST, e); } //Log WARN if enabled if (log.isWarnEnabled()) { log.warn(WARN TEST); log.warn(WARN TEST, e); } //Log ERROR if enabled if (log.isErrorEnabled()) { log.error(ERROR TEST); log.error(ERROR TEST, e); } //Log FATAL if enabled if (log.isFatalEnabled()) { log.fatal(FATAL
RE: How to configure Tomcat/Struts ... error messages are sent to a file, not the console?
Thanks for your response. I am using simplelog, not log4j. Thank you. --- [EMAIL PROTECTED] wrote: Your log4j configuration probably uses a consoleappender. Change this to be a fileappender instead, and you are done. This document describes the configuration of log4j in short: http://logging.apache.org/log4j/docs/manual.html To see what appenders are available in log4j, see http://logging.apache.org/log4j/docs/api/org/apache/log4j/Appender.html and all implementing classes, especially http://logging.apache.org/log4j/docs/api/org/apache/log4j/FileAppender.html Hiran - Hiran Chaudhuri SAG Systemhaus GmbH Elsenheimer Straße 11 80867 München Phone +49-89-54 74 21 34 Fax +49-89-54 74 21 99 -Original Message- From: O. Oke [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 6. Oktober 2004 14:09 To: Struts Users Mailing List Subject: RE: How to configure Tomcat/Struts ... error messages are sent to a file, not the console? Hi Hiran, Thanks for your response. I am using simplelog and it is already working. The only problem is that the output is going to the console. What I want is for the output to go into a file. There is nothing in the configuration information that states how to redirect output to a file. Please do you know how I can get the output to go into a file? Thank you. Ola --- [EMAIL PROTECTED] wrote: Hi, O. Check the configuration of the log facility actually in use (commons-logging can use several). Most probably this is log4j. Then have a look at the log4j configuration, which can be done with a log4j.properties file. Changes in this file and restarting your application should be all you need. Please have a look at the commons-logging and log4j documentation to see how to configure your setup. Hiran - Hiran Chaudhuri SAG Systemhaus GmbH Elsenheimer Straße 11 80867 München Phone +49-89-54 74 21 34 Fax +49-89-54 74 21 99 -Original Message- From: O. Oke [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 6. Oktober 2004 13:11 To: Struts Users Mailing List Subject: How to configure Tomcat/Struts ... error messages are sent to a file, not the console? Please tell me how to configure Tomcat/Struts so that error messages are sent to a file, not the console? SERVER == I am using tomcat-5.0.27 BACKGROUND == I am using for logging error messages. The output of the code below goes to Eclipse console. What I want is for the output to go into a file. import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class CargoExceptionHandler extends ExceptionHandler { public ActionForward execute( Exception ex, ExceptionConfig exConfig, ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws ServletException{ Log log = LogFactory.getLog(CargoExceptionHandler.class); //Which Logger is being Used? System.out.println(The Log being used + log); //Create a dummy exception to depict exception logging Exception e = new Exception(A DUMMY EXCEPTION); //Log TRACE if enabled if (log.isTraceEnabled()) { log.trace(TRACE TEST); log.trace(TRACE TEST, e); } //Log DEBUG if enabled if (log.isDebugEnabled()) { log.debug(DEBUG TEST); log.debug(DEBUG TEST, e); } //Log INFO if enabled if (log.isInfoEnabled()) { log.info(INFO TEST); log.info(INFO TEST, e); } //Log WARN if enabled if (log.isWarnEnabled()) { log.warn(WARN TEST); log.warn(WARN TEST, e); } //Log ERROR if enabled if (log.isErrorEnabled()) { log.error(ERROR TEST
Re: Struts Console
You didn't get the text? It was: quote i just moved to struts 1.2.4 and I saw that in the examples the validator.xml file is using version 1.1.3. Is this the version of the dtd that i should use? If so, I also use struts console, and it only supports up to 1.1 Is there a way to upgrade the dtd's that struts console is using to support 1.1.3? Just trying to stay current -josh /quote On Mon, 27 Sep 2004 14:34:03 -0400, James Mitchell [EMAIL PROTECTED] wrote: Did I miss something? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: josh [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, September 27, 2004 2:25 PM Subject: Struts Console - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Console
Did I miss something? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: josh [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, September 27, 2004 2:25 PM Subject: Struts Console - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts Console
i just moved to struts 1.2.4 and I saw that in the examples the validator.xml file is using version 1.1.3. Is this the version of the dtd that i should use? If so, I also use struts console, and it only supports up to 1.1 Is there a way to upgrade the dtd's that struts console is using to support 1.1.3? Just trying to stay current -josh signature.asc Description: This is a digitally signed message part
[ANNOUNCE] Struts Console v4.7 - GUI tool
Struts Console version 4.7 is now available. http://www.jamesholmes.com/struts/ Download Now: http://www.jamesholmes.com/struts/struts-console-4.7.zip -- OR -- http://www.jamesholmes.com/struts/struts-console-4.7.tar.gz --- BIG ENHANCEMENT --- Updated the Eclipse plugins to support changing output options from the preferences dialog. --- BIG ENHANCEMENT --- Struts Console is FREE software. Changes with Struts Console v4.7 *) Added ability to turn off configuration file validation in Eclipse 3.0 plugin. *) Added ability to configure Pretty Output options from Eclipse plugins. Thanks, -James [EMAIL PROTECTED] http://www.jamesholmes.com/struts/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANNOUNCE] Struts Console v4.7 - GUI tool
James, Does the pretty printing option work in netbeans? Nathan On Jun 7, 2004, at 3:20 PM, James Holmes wrote: Struts Console version 4.7 is now available. http://www.jamesholmes.com/struts/ Download Now: http://www.jamesholmes.com/struts/struts-console-4.7.zip -- OR -- http://www.jamesholmes.com/struts/struts-console-4.7.tar.gz --- BIG ENHANCEMENT --- Updated the Eclipse plugins to support changing output options from the preferences dialog. --- BIG ENHANCEMENT --- Struts Console is FREE software. Changes with Struts Console v4.7 *) Added ability to turn off configuration file validation in Eclipse 3.0 plugin. *) Added ability to configure Pretty Output options from Eclipse plugins. Thanks, -James [EMAIL PROTECTED] http://www.jamesholmes.com/struts/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANNOUNCE] Struts Console v4.7 - GUI tool
Git r dun! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANNOUNCE] Struts Console v4.6 - GUI tool
Hi, I try to install the Struts-Console version 4.6 with JDeveloper 10g and i have the Struts Console option in my Extension Manager but when i select my struts-config.xml file i dont have Struts-Console Editor option. Why? I have only the standard the Edit Struts-config... option Thanks James Holmes wrote: Struts Console version 4.6 is now available. http://www.jamesholmes.com/struts/ Download Now: http://www.jamesholmes.com/struts/struts-console-4.6.zip -- OR -- http://www.jamesholmes.com/struts/struts-console-4.6.tar.gz --- BIG ENHANCEMENT --- The JBuilder and IDEA plugins now give you the option to use a class selection dialog to specify the values for several fields. This greatly simplifies entering values. --- BIG ENHANCEMENT --- Struts Console is FREE software. Changes with Struts Console v4.6 *) Updated IDEA plugin to have button for launching class selection dialog for any fields that take classes as values. *) Updated JBuilder plugin to have button for launching class selection dialog for any fields that take classes as values. *) Fixed JDeveloper 10g plugin to work properly. *) Fixed bug where some JSP Tag Library files (*.tld) weren't able to be loaded. Thanks, -James [EMAIL PROTECTED] http://www.jamesholmes.com/struts/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANNOUNCE] Struts Console v4.5 - GUI tool
Struts Console version 4.5 is now available. http://www.jamesholmes.com/struts/ Download Now: http://www.jamesholmes.com/struts/struts-console-4.5.zip -- OR -- http://www.jamesholmes.com/struts/struts-console-4.5.tar.gz --- BIG ENHANCEMENT --- The Eclipse and JDeveloper plugins now give you the option to use a class selection dialog to specify the values for several fields. This greatly simplifies entering values. --- BIG ENHANCEMENT --- Struts Console is FREE software. Changes with Struts Console v4.5 *) Updated Eclipse 3 plugin to have button for launching class selection dialog for any fields that take classes as values. *) Updated JDeveloper plugin to have button for launching class selection dialog for any fields that take classes as values. *) Updated JDeveloper plugin to support JDeveloper 10g. *) Fixed bug where global elements were unnecessarily being created for Validator config files. *) Fixed bug where Tiles config files were unnecessarily being marked as modified when they weren't. Thanks, -James [EMAIL PROTECTED] http://www.jamesholmes.com/struts/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]