Author Login
Post Reply
user Digest 16 Jun 2008 03:19:15 -0000 Issue 8090
Topics (messages 187614 through 187623):
Re: Some confusion trying to do ajax form submit
187614 by: Musachy Barroso
187615 by: Dave Newton
187622 by: Karr, David
Re: Can't stop console warnings
187616 by: jefetech
187617 by: Dave Newton
187618 by: Márcio Gurgel
187619 by: jefetech
187620 by: Márcio Gurgel
187621 by: jefetech
187623 by: jefetech
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)
----------------------------------------------------------------------

Attachment:
user_187614.ezm (zipped)Take a look at this (2.1 only):
http://struts.apache.org/2.0.11.1/docs/ajax-validation.html
musachy
On Sun, Jun 15, 2008 at 8:02 PM, Karr, David <david.karr@(protected):
> I have a simple page with validation that I got working with a
> conventional submit and action.
>
> I'm now trying to explore doing an Ajax form submit, and getting a JSON
> response. I'm using YUI on the client side. I'd like to see if I can
> get similar data in the JSON response that I would in a normal submit,
> for instance, with field errors.
>
> There are a couple points I could use some help with, not necessarily
> related to Ajax or JSON. Please don't hesitate to tell me if I'm doing
> something else wrong, or something I should be aware of.
>
> My first attempt actually did execute the Ajax request, and got the
> response, but it wasn't JSON. The responseText was just the HTML of my
> source JSP, which is also the value of my "input" result. I tried
> setting up the JSON action without an "input" result, but it seemed to
> complain if I didn't have that. I would have thought the "input"
> parameter wouldn't be relevant in a Ajax/JSON action. If I filled in
> all the required fields so it didn't result in any field errors, the
> response was JSON, and it was reasonable (although setting
> "wrapWithComments" didn't appear to have any effect). I guess there's
> no automatic provision for reporting field errors in a JSON response, so
> I guess I'll have to build something like that by hand?
>
> Note that I tried to enable the logging interceptor, but I didn't see
> any output from it.
>
> I have a single action that I was intending to use to handle both the
> ajax and non-ajax submit. I tried to make it use two different action
> names in the form, but it seemed to have trouble with that.
>
> I noticed in the generated HTML, I had this in the HTML for the form
> tag:
>
> onsubmit="return YAHOO.strutsform.submitform();; return true;"
>
> I'm not sure if that "return true;" will cause me trouble, as I'm trying
> to bypass the normal form submission. I think by returning false from
> "submitform", I achieved that, however.
>
> I'll include here the relevant files. Please comment where appropriate.
> Thanks for your input.
> ---form.jsp------------
> <%@(protected)"
> pageEncoding="UTF-8"%>
> <%@(protected)" %>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
> <title>Struts Form</title>
> <link rel="stylesheet"
> href="${pageContext.request.contextPath}/struts/css_xhtml/styles.css"
> type="text/css">
> <link rel="stylesheet" type="text/css"
> href="${pageContext.request.contextPath}/style/form.css">
> <!-- css -->
> <link rel="stylesheet" type="text/css"
> href="${pageContext.request.contextPath}/yui/reset-fonts-grids/reset-fon
> ts-grids.css">
> <link rel="stylesheet" type="text/css"
> href="${pageContext.request.contextPath}/yui/button/assets/skins/sam/but
> ton.css">
> <link rel="stylesheet" type="text/css"
> href="${pageContext.request.contextPath}/yui/logger/assets/skins/sam/log
> ger.css">
> <!-- js -->
> <script type="text/javascript"
> src="${pageContext.request.contextPath}/yui/utilities/utilities.js"></sc
> ript>
> <script type="text/javascript"
> src="${pageContext.request.contextPath}/yui/button/button-debug.js"></sc
> ript>
> <script type="text/javascript"
> src="${pageContext.request.contextPath}/yui/json/json-debug.js"></script
>>
> <script type="text/javascript"
> src="${pageContext.request.contextPath}/yui/logger/logger-debug.js"></sc
> ript>
> <script type="text/javascript"
> src="${pageContext.request.contextPath}/scripts/strutsform.js"></script>
> </head>
> <body class="yui-skin-sam">
> <h4>Enter your data</h4>
> <!-- onsubmit="return YAHOO.strutsform.submitform();" -->
> <s:form id="form" action="Form" onsubmit="return
> YAHOO.strutsform.submitform();">
> <s:textfield name="lastName" label="Last Name"/>
> <s:textfield name="firstName" label="First Name"/>
> <button id="formsubmit" type="submit">Submit</button>
> </s:form>
> <script type="text/javascript">
> YAHOO.util.Event.onDOMReady(YAHOO.strutsform.init);
> </script >
> </body>
> </html>
> ---------------
> ---struts.xml------------
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts
> Configuration 2.0//EN" "struts-2.0.dtd" >
> <struts>
> <constant name="struts.devMode" value="true" />
> <package extends="struts-default" name="main" namespace="/main">
> <action name="main">
> <result>/form.jsp</result>
> </action>
> <action name="Form" class="com.wamu.strutsform.FormAction">
> <result name="input">/form.jsp</result>
> <result>/form.jsp</result>
> </action>
> </package>
>
> <package extends="json-default" name="json" namespace="/json">
> <action name="Form" class="com.wamu.strutsform.FormAction"
> method="jsonSubmit">
> <interceptor-ref name="logger"></interceptor-ref>
> <interceptor-ref name="completeStack"></interceptor-ref>
> <result type="json">
> <param name="wrapWithComments">true</param>
> </result>
> <result name="input">/form.jsp</result>
> </action>
> </package>
> </struts>
> ---------------
> ---FormAction.java------------
> package com.wamu.strutsform;
> import
org.apache.commons.logging.Log;
> import
org.apache.commons.logging.LogFactory;
> import
com.opensymphony.xwork2.ActionSupport;
>
> public class FormAction extends ActionSupport
> {
> private static final Log logger =
> LogFactory.getLog(FormAction.class);
>
> private String lastName;
> private String firstName;
>
> public String getLastName() { return lastName; }
> public String getFirstName() { return firstName; }
>
> public void setLastName(String lastName)
> { this.lastName = lastName; }
> public void setFirstName(String firstName)
> { this.firstName = firstName; }
>
> public String execute()
> {
> logger.info("execute.");
> return SUCCESS;
> }
>
> public String jsonSubmit()
> {
> logger.info("jsonSubmit.");
> return SUCCESS;
> }
> }
> ---------------
> ---strutsform.js------------
> /**
> * @author u166705
> */
> YAHOO.namespace("strutsform");
>
> YAHOO.widget.Logger.enableBrowserConsole();
>
> var $E = YAHOO.util.Event;
> var $D = YAHOO.util.Dom;
>
> YAHOO.strutsform.init =
> function ()
> {
> $E.onContentReady("formsubmit", function()
> {
> var submitButton = new YAHOO.widget.Button("formsubmit");
> });
> };
>
> YAHOO.strutsform.submitform =
> function()
> {
> var callback =
> {
> success: function(obj)
> {
> YAHOO.log("obj.responsetext[" + obj.responseText + "]");
> },
> failure: function(obj)
> {
> YAHOO.log("obj.responseText[" + obj.responseText + "]");
> }
> };
> YAHOO.util.Connect.setForm(document.getElementById("form"));
> YAHOO.util.Connect.asyncRequest("POST",
> "/strutsform/json/Form.action",
> callback, null);
> return false;
> };
> ---------------
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_187615.ezm (zipped)--- On Sun, 6/15/08, Karr, David <david.karr@(protected):
> I'm now trying to explore doing an Ajax form submit,
> and getting a JSON response. I'm using YUI on the
> client side. I'd like to see if I can get similar
> data in the JSON response that I would in a normal
> submit, for instance, with field errors.
For S2.0's JSON result just add getters for the error methods and they'll be serialized along with the rest (oh, snap!) of the action. I'm not as familiar with the RESTful plugin's JSON serilization but would suspect/assume it's similar.
> I would have thought the "input" parameter wouldn't
> be relevant in a Ajax/JSON action.
Not sure how it would know the difference, since the JSON part is the result, not the action, but it might be different in S2.1 (I've tested the plugin to some extent but haven't used t in the real world yet.)
> I guess there's no automatic provision for reporting field
> errors in a JSON response, so I guess I'll have to build
> something like that by hand?
See the above.
> onsubmit="return YAHOO.strutsform.submitform();; return true;"
>
> I'm not sure if that "return true;" will cause me trouble,
> as I'm trying to bypass the normal form submission.
> I think by returning false from "submitform", I achieved
> that, however.
Unless your JavaScript implementation is very, horribly broken, the first return will act like a return.
Also note that once you're mucking about with Ajax requests you have to handle session expiration and exceptions in a more useful way; great fun, great fun.
Dave

Attachment:
user_187622.ezm (zipped)Ok, this looks promising. I changed the package in my struts.xml to the
following:
-------------
<package extends="json-default" name="json" namespace="/json">
<action name="Form" class="com.wamu.strutsform.FormAction"
method="jsonSubmit">
<interceptor-ref name="logger"></interceptor-ref>
<interceptor-ref
name="jsonValidationWorkflowStack"></interceptor-ref>
<result type="json">
<param name="wrapWithComments">true</param>
</result>
<result name="input">/form.jsp</result>
</action>
</package>
-------------
I then copied in updated jars from 2.1.2, being:
commons-fileupload-1.2.1.jar, xstream-1.2.2.jar, json-lib-2.1.jar,
struts2-core-2.1.2.jar, xwork-2.1.1.jar, freemarker-2.3.12.jar,
struts2-config-browser-plugin-2.1.2.jar
My results are a bit worse than before, however. Now, whether it passes
validation or not I see a long set of exceptions in the log. If it
passes validation, I still get a good JSON result. If it doesn't pass
validation, my responseText is the input JSP.
-----------------------
ognl.ExpressionSyntaxException: Malformed OGNL expression: [object
Object] [ognl.ParseException: Encountered "Object" at line 1, column 9.
Was expecting one of:
"," ...
"=" ...
"?" ...
...
/-- Encapsulated exception ------------\
ognl.ParseException: Encountered "Object" at line 1, column 9.
Was expecting one of:
"," ...
...
\--------------------------------------/
expr: [object Object] val: [Ljava.lang.String;@(protected):
ognl.OgnlContext@(protected),
com.opensymphony.xwork2.DefaultTextProvider@(protected):
[Ljava.lang.String;@(protected)
Jun 15, 2008 8:06:10 PM
com.opensymphony.xwork2.util.logging.commons.CommonsLogger error
SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception
caught setting '[object Object]' on 'class
com.wamu.strutsform.FormAction: Error setting expression '[object
Object]' with value '[Ljava.lang.String;@(protected)'
Jun 15, 2008 8:06:10 PM com.wamu.strutsform.FormAction jsonSubmit
-----------------------
> -----Original Message-----
> From: Musachy Barroso [mailto:musachy@(protected)]
> Sent: Sunday, June 15, 2008 5:09 PM
> To: Struts Users Mailing List
> Subject: Re: Some confusion trying to do ajax form submit
>
> Take a look at this (2.1 only):
>
> http://struts.apache.org/2.0.11.1/docs/ajax-validation.html
>
> musachy
>
> On Sun, Jun 15, 2008 at 8:02 PM, Karr, David
> <david.karr@(protected):
> > I have a simple page with validation that I got working with a
> > conventional submit and action.
> >
> > I'm now trying to explore doing an Ajax form submit, and getting a
> > JSON response. I'm using YUI on the client side. I'd like
> to see if
> > I can get similar data in the JSON response that I would in
> a normal
> > submit, for instance, with field errors.
> >
> > There are a couple points I could use some help with, not
> necessarily
> > related to Ajax or JSON. Please don't hesitate to tell me if I'm
> > doing something else wrong, or something I should be aware of.
> >
> > My first attempt actually did execute the Ajax request, and got the
> > response, but it wasn't JSON. The responseText was just
> the HTML of
> > my source JSP, which is also the value of my "input"
> result. I tried
> > setting up the JSON action without an "input" result, but
> it seemed to
> > complain if I didn't have that. I would have thought the "input"
> > parameter wouldn't be relevant in a Ajax/JSON action. If I
> filled in
> > all the required fields so it didn't result in any field
> errors, the
> > response was JSON, and it was reasonable (although setting
> > "wrapWithComments" didn't appear to have any effect). I
> guess there's
> > no automatic provision for reporting field errors in a JSON
> response,
> > so I guess I'll have to build something like that by hand?
> >
> > Note that I tried to enable the logging interceptor, but I
> didn't see
> > any output from it.
> >
> > I have a single action that I was intending to use to
> handle both the
> > ajax and non-ajax submit. I tried to make it use two
> different action
> > names in the form, but it seemed to have trouble with that.
> >
> > I noticed in the generated HTML, I had this in the HTML for the form
> > tag:
> >
> > onsubmit="return YAHOO.strutsform.submitform();;
> return true;"
> >
> > I'm not sure if that "return true;" will cause me trouble, as I'm
> > trying to bypass the normal form submission. I think by returning
> > false from "submitform", I achieved that, however.
> >
> > I'll include here the relevant files. Please comment where
> appropriate.
> > Thanks for your input.
> > ---form.jsp------------
> > <%@(protected)"
> > pageEncoding="UTF-8"%>
> > <%@(protected)
> > "-//W3C//DTD HTML 4.01 Transitional//EN"
> > "http://www.w3.org/TR/html4/loose.dtd">
> > <html>
> > <head>
> > <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
> > <title>Struts Form</title> <link rel="stylesheet"
> >
> href="${pageContext.request.contextPath}/struts/css_xhtml/styles.css"
> > type="text/css">
> > <link rel="stylesheet" type="text/css"
> > href="${pageContext.request.contextPath}/style/form.css">
> > <!-- css -->
> > <link rel="stylesheet" type="text/css"
> >
> href="${pageContext.request.contextPath}/yui/reset-fonts-grids/reset-f
> > on
> > ts-grids.css">
> > <link rel="stylesheet" type="text/css"
> >
> href="${pageContext.request.contextPath}/yui/button/assets/skins/sam/b
> > ut
> > ton.css">
> > <link rel="stylesheet" type="text/css"
> >
> href="${pageContext.request.contextPath}/yui/logger/assets/skins/sam/l
> > og
> > ger.css">
> > <!-- js -->
> > <script type="text/javascript"
> >
> src="${pageContext.request.contextPath}/yui/utilities/utilities.js"></
> > sc
> > ript>
> > <script type="text/javascript"
> >
> src="${pageContext.request.contextPath}/yui/button/button-debug.js"></
> > sc
> > ript>
> > <script type="text/javascript"
> >
> src="${pageContext.request.contextPath}/yui/json/json-debug.js"></scri
> > pt
> >>
> > <script type="text/javascript"
> >
> src="${pageContext.request.contextPath}/yui/logger/logger-debug.js"></
> > sc
> > ript>
> > <script type="text/javascript"
> >
> src="${pageContext.request.contextPath}/scripts/strutsform.js"></scrip
> > t>
> > </head>
> > <body class="yui-skin-sam">
> > <h4>Enter your data</h4>
> > <!-- onsubmit="return YAHOO.strutsform.submitform();" -->
> > <s:form id="form" action="Form" onsubmit="return
> > YAHOO.strutsform.submitform();">
> > <s:textfield name="lastName" label="Last Name"/>
> > <s:textfield name="firstName" label="First Name"/>
> > <button id="formsubmit" type="submit">Submit</button>
> > </s:form>
> > <script type="text/javascript">
> > YAHOO.util.Event.onDOMReady(YAHOO.strutsform.init);
> > </script >
> > </body>
> > </html>
> > ---------------
> > ---struts.xml------------
> > <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts PUBLIC
> > "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
> > "struts-2.0.dtd" > <struts>
> > <constant name="struts.devMode" value="true" />
> > <package extends="struts-default" name="main" namespace="/main">
> > <action name="main">
> > <result>/form.jsp</result>
> > </action>
> > <action name="Form" class="com.wamu.strutsform.FormAction">
> > <result name="input">/form.jsp</result>
> > <result>/form.jsp</result>
> > </action>
> > </package>
> >
> > <package extends="json-default" name="json" namespace="/json">
> > <action name="Form" class="com.wamu.strutsform.FormAction"
> > method="jsonSubmit">
> > <interceptor-ref name="logger"></interceptor-ref>
> > <interceptor-ref name="completeStack"></interceptor-ref>
> > <result type="json">
> > <param name="wrapWithComments">true</param>
> > </result>
> > <result name="input">/form.jsp</result>
> > </action>
> > </package>
> > </struts>
> > ---------------
> > ---FormAction.java------------
> > package com.wamu.strutsform;
> > import
org.apache.commons.logging.Log; import
> >
org.apache.commons.logging.LogFactory;
> > import
com.opensymphony.xwork2.ActionSupport;
> >
> > public class FormAction extends ActionSupport {
> > private static final Log logger =
> > LogFactory.getLog(FormAction.class);
> >
> > private String lastName;
> > private String firstName;
> >
> > public String getLastName() { return lastName; }
> > public String getFirstName() { return firstName; }
> >
> > public void setLastName(String lastName)
> > { this.lastName = lastName; }
> > public void setFirstName(String firstName)
> > { this.firstName = firstName; }
> >
> > public String execute()
> > {
> > logger.info("execute.");
> > return SUCCESS;
> > }
> >
> > public String jsonSubmit()
> > {
> > logger.info("jsonSubmit.");
> > return SUCCESS;
> > }
> > }
> > ---------------
> > ---strutsform.js------------
> > /**
> > * @author u166705
> > */
> > YAHOO.namespace("strutsform");
> >
> > YAHOO.widget.Logger.enableBrowserConsole();
> >
> > var $E = YAHOO.util.Event;
> > var $D = YAHOO.util.Dom;
> >
> > YAHOO.strutsform.init =
> > function ()
> > {
> > $E.onContentReady("formsubmit", function()
> > {
> > var submitButton = new
> YAHOO.widget.Button("formsubmit");
> > });
> > };
> >
> > YAHOO.strutsform.submitform =
> > function()
> > {
> > var callback =
> > {
> > success: function(obj)
> > {
> > YAHOO.log("obj.responsetext[" +
> obj.responseText + "]");
> > },
> > failure: function(obj)
> > {
> > YAHOO.log("obj.responseText[" +
> obj.responseText + "]");
> > }
> > };
> > YAHOO.util.Connect.setForm(document.getElementById("form"));
> > YAHOO.util.Connect.asyncRequest("POST",
> > "/strutsform/json/Form.action",
> > callback, null);
> > return false;
> > };
> > ---------------
> >
> >
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>

Attachment:
user_187616.ezm (zipped)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.JdkLoggerinfo
INFO: Parsing configuration file [struts-default.xml]
Jun 15, 2008 4:16:55 PM
com.opensymphony.xwork2.util.logging.jdk.JdkLoggerinfo
INFO: Parsing configuration file [struts-plugin.xml]
Jun 15, 2008 4:16:55 PM
com.opensymphony.xwork2.util.logging.jdk.JdkLoggerinfo
INFO: Parsing configuration file [struts.xml]
It seem to still think
com.opensymphony.xwork2.util.logging.jdk.JdkLoggershould 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-name>log4jConfigLocation</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: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_187617.ezm (zipped)Are you actually using Log4J?
--- On Sun, 6/15/08, jefetech <info@(protected):
> From: jefetech <info@(protected)>
> Subject: Re: Can't stop console warnings
> To: user@(protected)
> 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-name>log4jConfigLocation</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:
> user-unsubscribe@(protected)
> > For additional commands, e-mail:
> user-help@(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: user-unsubscribe@(protected)
> For additional commands, e-mail:
> user-help@(protected)

Attachment:
user_187618.ezm (zipped)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 <newton.dave@(protected)>:
> Are you actually using Log4J?
>
>
> --- On Sun, 6/15/08, jefetech <info@(protected):
>
> > From: jefetech <info@(protected)>
> > Subject: Re: Can't stop console warnings
> > To: user@(protected)
> > 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-name>log4jConfigLocation</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:
> > user-unsubscribe@(protected)
> > > For additional commands, e-mail:
> > user-help@(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: user-unsubscribe@(protected)
> > For additional commands, e-mail:
> > user-help@(protected)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_187619.ezm (zipped)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 <newton.dave@(protected)>:
>
>> Are you actually using Log4J?
>>
>>
>> --- On Sun, 6/15/08, jefetech <info@(protected):
>>
>> > From: jefetech <info@(protected)>
>> > Subject: Re: Can't stop console warnings
>> > To: user@(protected)
>> > 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-name>log4jConfigLocation</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:
>> > user-unsubscribe@(protected)
>> > > For additional commands, e-mail:
>> > user-help@(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: user-unsubscribe@(protected)
>> > For additional commands, e-mail:
>> > user-help@(protected)
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_187620.ezm (zipped)I'm also using struts 2.1 ...
Here are my log4j:
### direct log messages to stdout ###
log4j.appender.stdout=
org.apache.log4j.ConsoleAppenderlog4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=
org.apache.log4j.PatternLayoutlog4j.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 <info@(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 <newton.dave@(protected)>:
> >
> >> Are you actually using Log4J?
> >>
> >>
> >> --- On Sun, 6/15/08, jefetech <info@(protected):
> >>
> >> > From: jefetech <info@(protected)>
> >> > Subject: Re: Can't stop console warnings
> >> > To: user@(protected)
> >> > 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-name>log4jConfigLocation</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:
> >> > user-unsubscribe@(protected)
> >> > > For additional commands, e-mail:
> >> > user-help@(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: user-unsubscribe@(protected)
> >> > For additional commands, e-mail:
> >> > user-help@(protected)
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@(protected)
> >> For additional commands, e-mail: user-help@(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: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_187621.ezm (zipped)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.JdkLoggerwarn
WARNING: Could not find property [struts.valueStack]
Jun 15, 2008 4:59:42 PM
com.opensymphony.xwork2.util.logging.jdk.JdkLoggerwarn
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 <info@(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 <newton.dave@(protected)>:
>> >
>> >> Are you actually using Log4J?
>> >>
>> >>
>> >> --- On Sun, 6/15/08, jefetech <info@(protected):
>> >>
>> >> > From: jefetech <info@(protected)>
>> >> > Subject: Re: Can't stop console warnings
>> >> > To: user@(protected)
>> >> > 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-name>log4jConfigLocation</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:
>> >> > user-unsubscribe@(protected)
>> >> > > For additional commands, e-mail:
>> >> > user-help@(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: user-unsubscribe@(protected)
>> >> > For additional commands, e-mail:
>> >> > user-help@(protected)
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> >> For additional commands, e-mail: user-help@(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: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_187623.ezm (zipped)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 <info@(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 <newton.dave@(protected)>:
>>> >
>>> >> Are you actually using Log4J?
>>> >>
>>> >>
>>> >> --- On Sun, 6/15/08, jefetech <info@(protected):
>>> >>
>>> >> > From: jefetech <info@(protected)>
>>> >> > Subject: Re: Can't stop console warnings
>>> >> > To: user@(protected)
>>> >> > 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-name>log4jConfigLocation</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:
>>> >> > user-unsubscribe@(protected)
>>> >> > > For additional commands, e-mail:
>>> >> > user-help@(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: user-unsubscribe@(protected)
>>> >> > For additional commands, e-mail:
>>> >> > user-help@(protected)
>>> >>
>>> >> ---------------------------------------------------------------------
>>> >> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> >> For additional commands, e-mail: user-help@(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: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>
>>
>>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.