Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
356 | minor | always | 08-18-05 00:00 | 11-30-05 14:42 | |
|
|||||
Reporter: | sergek | Platform: | |||
Assigned To: | OS: | ||||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.0.14 | ||
Product Build: | 3.0.14 | Resolution: | fixed | ||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.0.15 | ||
|
|||||
Summary: | 0000356: Bean init and XML validation on access-log bugs | ||||
Description: |
RSN-400 The docs on http://www.caucho.com/resin-3.0/config/log.xtp#access-log [^] for a custom resin-type accesslog are rather incorrect. First, path and path-format are required according to the XML validation. The example provided and the custom access log type I wrote do not use these parameters, so this is superfluous setting. Those settings should probably be moved from AbstractAccessLog to AccessLog. Second, the table of attributes for access-log says that resin-type needs to specify a class that extends com.caucho.server.log.AccessLog. Later on you say com.caucho.server.log.AbstractAccessLog. Third, the sample is just really broken XML, but that's pretty easy to sort out. Aside from syntactically not XML, you offer a href attribute, which is not allowed by the XML validation. Fourth, and really the only reason I really care that much, is that the <init> block does not work. When you try to use bean-style initialization, you get 'init' is an unknown property of 'com.prestosports.resin.ExecAccessLog'. Sample conf: <access-log path="" resin:type="com.prestosports.resin.ExecAccessLog"> <init> <command>cat</command> <format>%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i" "%{Host}i"</format> </init> </access-log> I need Resin to be able to support a custom access log to remove Apache in front of Resin, which would be fantastic. Please fix these hopefully minor configuration issues. Once that's workable, I'll submit a patch for my custom access log to pipe access logs to a command line exec. |
||||
Steps To Reproduce: | |||||
Additional Information: | Fedora core 3, JDK 1.5.0_02 | ||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|