Hej Jonas,

I'm using log4j and have the log4j.properties in WEB-INF/classes. In webwork.properties I specify: webwork.log4j.configfile=log4j.properties

See the log4j documentation on how to specify logger and levels in log4j.properties

In my log4j.propertis I have a section like:

log4j.appender.logfile=org.apache.log4j.FileAppender
log4j.appender.logfile.file=logs/your-app/logfile.log
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
log4j.appender.logfile.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n


### default, log everything with warn or above to logfile
log4j.rootLogger=warn, logfile

log4j.logger.xxx.your.app=debug
log4j.logger.com.opensymphony.webwork=debug
log4j.logger.com.opensymphony.xwork=warn

Cheers
Jonas

Larsson, Jonas wrote:
I forgot on thing. I have a question also for anyone who knows. When I run
the Skeleton application I have the standard console window log and I "tail"
the "localhost_log.'date'.txt" log in the logs directory. Is there some kind
of log configuration I have to do to in Tomcat to get further granularity
for the log on the Skeleton app since I have not seen any kind of errors
relating to the templates directory not being there... Infact, as I
explained in an earlier mail I don't get any kind of log enteries when
executing the Skeleton formtest action. Is this normal?

Regards

Jonas

-----Original Message-----
From: Hani Suleiman [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 5:14 PM
To: [EMAIL PROTECTED]
Subject: Re: [OS-webwork] WW1.4 and Tomcat 4.1.29 and Skeleton app problem s



It is documented, and if you run without it, you'll have error messages logged (very helpful ones in fact, like 'template directory does not exist'). The skeleton project ALSO includes the template directory. There really is no way to babysit users any further than that, if users choose to ignore the prepacked solution and start guessing at things (eg, unpacking webwork.jar and for some inexplicable reason expecting to find html files in there), then there's really not much we can do.


Larsson, Jonas wrote:


OK. It would be nice if this Is documented somewhere as a requirement. Why aren't these templates included in the webwork jar and accessed from it? Does anyone know?


-----Original Message----- From: Jason Carreira [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 4:00 PM To: [EMAIL PROTECTED] Subject: RE: [OS-webwork] WW1.4 and Tomcat 4.1.29 and Skeleton app problem

s



It needs the templates for rendering the UI tags... The UI tags include the templates to render the HTML for the form fields.




-----Original Message-----
From: Larsson, Jonas [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 8:44 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [OS-webwork] WW1.4 and Tomcat 4.1.29 and
Skeleton app problem s



I've solved it (after two days). I reinstalled everything and it seems that something in the "templates" directory absolutely need to be in the deployment dir (exactly what that is, I don't know). I can't find anything about this in any docs I have read. The install and config docs does not mention this. Or maybe I'm blind. So when I deployed the
templates dir with the application it worked. How I missed to do this before I don't know since the dir is there when you install it.


Strange that I could not find any error messages anywhere though...

Does anyone know how you activate logging for a specific application context in Tomcat so that you get all logging that belongs to the same app in one specific log?

Sorry for asking the basic questions guys...

And so I can begin CODING. Sweet jesus that feels good :)

/Jonas


-----Original Message----- From: Hani Suleiman [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 16, 2003 8:58 PM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] WW1.4 and Tomcat 4.1.29 and Skeleton app problem s


If you're seeing blanks, then the taglib is being recognised, but somethign else is going wrong. Did you poke around the logfiles to see
if it's logged anywhere? If the taglib is not recognised, then you'll see an error page, rather than the page without any of the taglibs.


What tags are you trying? I'd suggest starting off with somethign that
does not use any templates, for example:

<ww:property value="'test'" /> and see if that shows anything.

Larsson, Jonas wrote:



It certainly does. I've tried to figure out why, but

haven't found any



critical differences. The example app references the taglib

in exactly



the same way as the skeleton app. The only differences I

can see are



that the webwork.properties file for the example app defines an XML action file. The skeleton app does not and uses the

views.properties.



But that should not make a difference according to the

documentation.



That's pretty much it.

/Jonas


-----Original Message----- From: Hani Suleiman [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 16, 2003 5:33 PM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] WW1.4 and Tomcat 4.1.29 and Skeleton app

problems



Try the example app and see if that behaves any better?

Larsson, Jonas wrote:




Hi all,

I'm out of options right now and I'm getting really

frustrated with a



problem which is probably a "stupid user error" but I still

need some



pointers...

I've downloaded WW1.4 and tomcat 4.1.29. I've installed the

skeleton



app that comes with WW and read through all available configuration docs on the WW site but I still can't figure out why the

skeleton app



does not seem to recognize the WW taglib. The servlet seem

to work OK



and the action gets called but it only serves up plain HTML

from the

jsp. I get no errors though. Just a plain HTML page without the content the WW tags should have created.

I've tried it all. From configuring web.xml <taglib> directive to point to the ww jar to extracting the taglib from the ww jar and pointing web.xml directly to it. I've also tried to move it around (root of WEB-INF,
WEB-INF/libs) but no go.


If I don't get this working tomorrow (I've been at it on

and off for



like two working days) I'm gonna throw WW out the window

and just go



with plain servlets/jsp. I have to start coding business

code soon or



I'll have no life for the next two months...

How great to code all that validation code on hundreds of input fields...

Regards

Jonas, Frustrated Java developer

------------------------------------------------------------

----------



--------
This message is intended only for the personal and

confidential use of



the designated recipient(s) named above. If you are not

the intended



recipient of



this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly

prohibited. This



communication is for information purposes only and should not be regarded

as




an offer to sell or as a solicitation of an offer to buy

any financial



product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission

cannot be



guaranteed to

be




secure or error-free. Therefore, we do not represent that this

information is




complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for

IBM's Free



Linux Tutorials. Learn everything from the bash shell to

sys admin.



Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork





-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials. Become an
expert in LINUX or just sharpen your skills.  Sign up for

IBM's Free



Linux Tutorials. Learn everything from the bash shell to

sys admin.



Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Opensymphony-webwork mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork




----------------------------------------------------------------------



--------
This message is intended only for the personal and

confidential use of



the designated recipient(s) named above. If you are not

the intended recipient of


this message you are hereby notified that any review,

dissemination,



distribution or copying of this message is strictly

prohibited. This



communication is for information purposes only and should not be regarded

as



an offer to sell or as a solicitation of an offer to buy

any financial



product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission

cannot be



guaranteed to

be



secure or error-free. Therefore, we do not represent that this

information is



complete or accurate and it should not be relied upon as such. All information is subject to change without notice.



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials. Become an
expert in LINUX or just sharpen your skills.  Sign up for

IBM's Free



Linux Tutorials. Learn everything from the bash shell to

sys admin.



Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Opensymphony-webwork mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork





-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials. Become an
expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Opensymphony-webwork mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


--------------------------------------------------------------
----------------
This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the
intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited. This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers. Email transmission cannot be guaranteed to be
secure or error-free. Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such. All
information is subject to change without notice.




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials. Become an
expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork





-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click
_______________________________________________
Opensymphony-webwork mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork


----------------------------------------------------------------------
--------
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended

recipient of


this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded

as


an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to

be


secure or error-free. Therefore, we do not represent that this

information is


complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Opensymphony-webwork mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork






-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Opensymphony-webwork mailing list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

------------------------------------------------------------------------------
This message is intended only for the personal and confidential use of the
designated recipient(s) named above.  If you are not the intended recipient of
this message you are hereby notified that any review, dissemination,
distribution or copying of this message is strictly prohibited.  This
communication is for information purposes only and should not be regarded as
an offer to sell or as a solicitation of an offer to buy any financial
product, an official confirmation of any transaction, or as an official
statement of Lehman Brothers.  Email transmission cannot be guaranteed to be
secure or error-free.  Therefore, we do not represent that this information is
complete or accurate and it should not be relied upon as such.  All
information is subject to change without notice.



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork





-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to