We have many Web site using OPS. Do we need to have for each virtual
host a OPS application server ? With Tomcat if I want to access my orbeon project I need to type this address : http://myproject.espacecourbe.com:8080/context_path/identifies_the_particular_page/ But I want to access directly, like : http://myproject.espacecourbe.com:8080/ Tomcat 5.0.28 Debian sarge OPS 3.0beta4 Is possible ? Thanks, Geoff -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Hi, I have some problems to see my debug statements of my custom processor in the "logging events" view in orbeon studio. Do I have to do some special settings settings for my custom processor? In the tomcat stdout file, I can see my logging statements. I can see also the debug statements, set in the pipes. Thanks for your help Sebastian Here the log4j.xml <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" xmlns="http://jakarta.apache.org/log4j/"> <!-- This is the standard log appender to the console (System.out) --> <appender name="ConsoleAppender" class="org.apache.log4j.ConsoleAppender"> <param name="Target" value="System.out"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d{ISO8601} %-5p %c %x - %m%n"/> </layout> <filter class="org.apache.log4j.varia.LevelRangeFilter"> <param name="LevelMin" value="INFO" /> </filter> </appender> <!-- This is the OPS Studio monitor --> <appender name="OPSMonitor" class="org.apache.log4j.net.SocketHubAppender"> <param name="Port" value="4467"/> <param name="LocationInfo" value="true"/> </appender> <logger name='org.umsys.oxf.processor.tools.TestProcessor' > <level value="info" /> </logger> <!-- This is the root logger --> <root> <priority value="info"/> <appender-ref ref="ConsoleAppender"/> <appender-ref ref="OPSMonitor"/> </root> </log4j:configuration> -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Sebastian, This
was discussed quite recently, check http://www.orbeon.com/ops/doc/home-faq#studio-empty-events
and see if that helps Ryan
Puddephatt Web Developer TFX Group Scotand EH54 7DP ( 01506 407 110 7 01506 407 108 From: Sebastian
Kraus/INPLUS/DE [mailto:[hidden email]]
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by Geoffroy-2
Geoffroy,
I believe this is a Apache configuration, I'm not sure, but I think you need to setup Apache to forward directly to a particular Web-App! Try looking at www.apache.org, or google it Ryan Puddephatt Web Developer TFX Group 1 Michaelson Square Livingston West Lothian Scotand EH54 7DP * [hidden email] ( 01506 407 110 7 01506 407 108 -----Original Message----- From: Geoffroy [mailto:[hidden email]] Sent: 19 December 2005 16:29 To: [hidden email] Subject: [ops-users] Multiple Web Sites and Virtual Host We have many Web site using OPS. Do we need to have for each virtual host a OPS application server ? With Tomcat if I want to access my orbeon project I need to type this address : http://myproject.espacecourbe.com:8080/context_path/identifies_the_particula r_page/ But I want to access directly, like : http://myproject.espacecourbe.com:8080/ Tomcat 5.0.28 Debian sarge OPS 3.0beta4 Is possible ? Thanks, Geoff -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Geoffroy-2
Geoff,
You can configure virtual servers with Tomcat, with the <Host> element in server.xml. You can also make it so that your context is empty, with <Context path="" ...>. With this kind of configuration, you would have to have one OPS WAR per virtual server. I refer you to the Tomcat 5.0 doc: http://tomcat.apache.org/tomcat-5.0-doc/config/host.html http://tomcat.apache.org/tomcat-5.0-doc/config/context.html As noted, you can also do this by using Apache Server in front of Tomcat. Alternatively, you can probably figure out a way of dispatching all your virtual hosts to the same OPS WAR. I see at least two ways of configuring this: o One Servlet per virtual host. You configure those in your web.xml. For this to work, you probably need Apache Server as front-end. It would dispatch different virtual hosts to different paths, eg. www.site1.com -> /site1/, www.site2.com -> /site2/, etc. Each OPS servlet can reference its own page-flow.xml. o A single servlet for all virtual hosts. By using oxf:pipeline as main processor for this servlet, you could switch on the virtual host with the Request generator, and dispatch to different page-flow.xml accordingly. -Erik Geoffroy wrote: > We have many Web site using OPS. Do we need to have for each virtual > host a OPS application server ? > > With Tomcat if I want to access my orbeon project I need to type this > address : > http://myproject.espacecourbe.com:8080/context_path/identifies_the_particular_page/ > > > But I want to access directly, like : > http://myproject.espacecourbe.com:8080/ > > Tomcat 5.0.28 > Debian sarge > OPS 3.0beta4 > > Is possible ? > > Thanks, > > Geoff -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by Ryan Puddephatt
Hi Ryan, Sorry, that my question wasn't very precice. I read this topic but that does not solve my problem. The point is, I see the debug statements in the "Logging events view" declared in an xpl. But not the statements, declared in a Java processor. Sebastian
Sebastian, This was discussed quite recently, check http://www.orbeon.com/ops/doc/home-faq#studio-empty-events and see if that helps Ryan Puddephatt Web Developer TFX Group 1 Michaelson Square Livingston West Lothian Scotand EH54 7DP * [hidden email] ( 01506 407 110 7 01506 407 108 From: Sebastian Kraus/INPLUS/DE [mailto:[hidden email]] Sent: 19 December 2005 17:22 To: [hidden email] Subject: [ops-users] Question: Debugging Java processors with log4J Hi, I have some problems to see my debug statements of my custom processor in the "logging events" view in orbeon studio. Do I have to do some special settings settings for my custom processor? In the tomcat stdout file, I can see my logging statements. I can see also the debug statements, set in the pipes. Thanks for your help Sebastian Here the log4j.xml <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" xmlns="http://jakarta.apache.org/log4j/"> <!-- This is the standard log appender to the console (System.out) --> <appender name="ConsoleAppender" class="org.apache.log4j.ConsoleAppender"> <param name="Target" value="System.out"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d{ISO8601} %-5p %c %x - %m%n"/> </layout> <filter class="org.apache.log4j.varia.LevelRangeFilter"> <param name="LevelMin" value="INFO" /> </filter> </appender> <!-- This is the OPS Studio monitor --> <appender name="OPSMonitor" class="org.apache.log4j.net.SocketHubAppender"> <param name="Port" value="4467"/> <param name="LocationInfo" value="true"/> </appender> <logger name='org.umsys.oxf.processor.tools.TestProcessor' > <level value="info" /> </logger> <!-- This is the root logger --> <root> <priority value="info"/> <appender-ref ref="ConsoleAppender"/> <appender-ref ref="OPSMonitor"/> </root> </log4j:configuration> -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
What are those statements? Please give a detailed example.
-Erik Sebastian Kraus/INPLUS/DE wrote: > > Hi Ryan, > > Sorry, that my question wasn't very precice. > I read this topic but that does not solve my problem. > The point is, I see the debug statements in the "Logging events view" > declared in an xpl. But not the statements, declared in a Java processor. > > Sebastian > > > > > *Ryan Puddephatt <[hidden email]>* > > 19.12.2005 19:30 > Please respond to > [hidden email] > > > > To > [hidden email] > cc > > Subject > RE: [ops-users] Question: Debugging Java processors with log4J > > > > > > > > > Sebastian, > This was discussed quite recently, check > _http://www.orbeon.com/ops/doc/home-faq#studio-empty-events_ and see if > that helps > > *Ryan Puddephatt* > Web Developer > TFX Group > 1 Michaelson Square > Livingston > West Lothian > Scotand > EH54 7DP > > * [hidden email] > ( 01506 407 110 > 7 01506 407 108 > > > ------------------------------------------------------------------------ > > *From:* Sebastian Kraus/INPLUS/DE [mailto:[hidden email]] * > Sent:* 19 December 2005 17:22* > To:* [hidden email]* > Subject:* [ops-users] Question: Debugging Java processors with log4J > > > Hi, > > I have some problems to see my debug statements of my custom processor > in the "logging events" view in orbeon studio. > Do I have to do some special settings settings for my custom processor? > In the tomcat stdout file, I can see my logging statements. > I can see also the debug statements, set in the pipes. > > Thanks for your help > > Sebastian > > Here the log4j.xml > > <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" > xmlns="http://jakarta.apache.org/log4j/"> > > <!-- This is the standard log appender to the console (System.out) --> > <appender name="ConsoleAppender" > class="org.apache.log4j.ConsoleAppender"> > <param name="Target" value="System.out"/> > <layout class="org.apache.log4j.PatternLayout"> > <param name="ConversionPattern" value="%d{ISO8601} %-5p %c %x > - %m%n"/> > </layout> > <filter class="org.apache.log4j.varia.LevelRangeFilter"> > <param name="LevelMin" value="INFO" /> > </filter> > </appender> > > <!-- This is the OPS Studio monitor --> > <appender name="OPSMonitor" > class="org.apache.log4j.net.SocketHubAppender"> > <param name="Port" value="4467"/> > <param name="LocationInfo" value="true"/> > </appender> > > <logger name='org.umsys.oxf.processor.tools.TestProcessor' > > <level value="info" /> > </logger> > <!-- This is the root logger --> > <root> > <priority value="info"/> > <appender-ref ref="ConsoleAppender"/> > > <appender-ref ref="OPSMonitor"/> > </root> > </log4j:configuration> -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Ok. For example I have an XPL with some processors like: <p:processor name="oxf:testProcessor"> <p:output name="data" id="test" debug="debug_test"/> </p:processor> <p:processor name="oxf:xml-converter" xmlns:p="http://www.orbeon.com/oxf/pipeline"> <p:input name="config"> <config> <content-type>application/xml</content-type> <encoding>utf-8</encoding> <version>1.0</version> </config> </p:input> <p:input name="data" href="#test"/> <p:output name="data" id="text-document" debug="debug_converter"/> </p:processor> The testProcessor is my working custom processor without inputs. In the loggin events view I can see the values für the 2 debug attributes. So far so good. Inside my custom processor I declared public static Logger logger = LoggerFactory.createLogger(TestProcessor.class); and in the generateData( ) method, TestProcessor.logger.info("Debug Test"); or just logger.info("Debug Test"); These logging messages i will find in tomcats stdout log file, but I can not see it in the loggin events view. Sebastian
What are those statements? Please give a detailed example. -Erik Sebastian Kraus/INPLUS/DE wrote: > > Hi Ryan, > > Sorry, that my question wasn't very precice. > I read this topic but that does not solve my problem. > The point is, I see the debug statements in the "Logging events view" > declared in an xpl. But not the statements, declared in a Java processor. > > Sebastian > > > > > *Ryan Puddephatt <[hidden email]>* > > 19.12.2005 19:30 > Please respond to > [hidden email] > > > > To > [hidden email] > cc > > Subject > RE: [ops-users] Question: Debugging Java processors with log4J > > > > > > > > > Sebastian, > This was discussed quite recently, check > _http://www.orbeon.com/ops/doc/home-faq#studio-empty-events_ and see if > that helps > > *Ryan Puddephatt* > Web Developer > TFX Group > 1 Michaelson Square > Livingston > West Lothian > Scotand > EH54 7DP > > * [hidden email] > ( 01506 407 110 > 7 01506 407 108 > > > ------------------------------------------------------------------------ > > *From:* Sebastian Kraus/INPLUS/DE [mailto:[hidden email]] * > Sent:* 19 December 2005 17:22* > To:* [hidden email]* > Subject:* [ops-users] Question: Debugging Java processors with log4J > > > Hi, > > I have some problems to see my debug statements of my custom processor > in the "logging events" view in orbeon studio. > Do I have to do some special settings settings for my custom processor? > In the tomcat stdout file, I can see my logging statements. > I can see also the debug statements, set in the pipes. > > Thanks for your help > > Sebastian > > Here the log4j.xml > > <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" > xmlns="http://jakarta.apache.org/log4j/"> > > <!-- This is the standard log appender to the console (System.out) --> > <appender name="ConsoleAppender" > class="org.apache.log4j.ConsoleAppender"> > <param name="Target" value="System.out"/> > <layout class="org.apache.log4j.PatternLayout"> > <param name="ConversionPattern" value="%d{ISO8601} %-5p %c %x > - %m%n"/> > </layout> > <filter class="org.apache.log4j.varia.LevelRangeFilter"> > <param name="LevelMin" value="INFO" /> > </filter> > </appender> > > <!-- This is the OPS Studio monitor --> > <appender name="OPSMonitor" > class="org.apache.log4j.net.SocketHubAppender"> > <param name="Port" value="4467"/> > <param name="LocationInfo" value="true"/> > </appender> > > <logger name='org.umsys.oxf.processor.tools.TestProcessor' > > <level value="info" /> > </logger> > <!-- This is the root logger --> > <root> > <priority value="info"/> > <appender-ref ref="ConsoleAppender"/> > > <appender-ref ref="OPSMonitor"/> > </root> > </log4j:configuration> -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by Sebastian Kraus/INPLUS/DE
This is the log4j.xml file for Orbeon yes?
If so, then presumably this... > <logger name='org.umsys.oxf.processor.tools.TestProcessor' > > <level value="info" /> > </logger> ...is supposed to be for catching the errors for your custom processor? I think instead you need something like this: <category name="org.umsys.oxf.processor.tools.TestProcessor"> <priority value="debug"/> <appender-ref ref="OPSMonitor"/> <!-- send to console as well --> <appender-ref ref="ConsoleAppender"/> </category> -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez Sent: 20 December 2005 11:32 To: [hidden email] Subject: Re: [ops-users] Question: Debugging Java processors with log4J What are those statements? Please give a detailed example. -Erik Sebastian Kraus/INPLUS/DE wrote: > > Hi Ryan, > > Sorry, that my question wasn't very precice. > I read this topic but that does not solve my problem. > The point is, I see the debug statements in the "Logging events view" > declared in an xpl. But not the statements, declared in a Java processor. > > Sebastian > > > > > *Ryan Puddephatt <[hidden email]>* > > 19.12.2005 19:30 > Please respond to > [hidden email] > > > > To > [hidden email] > cc > > Subject > RE: [ops-users] Question: Debugging Java processors with log4J > > > > > > > > > Sebastian, > This was discussed quite recently, check > _http://www.orbeon.com/ops/doc/home-faq#studio-empty-events_ and see > that helps > > *Ryan Puddephatt* > Web Developer > TFX Group > 1 Michaelson Square > Livingston > West Lothian > Scotand > EH54 7DP > > * [hidden email] > ( 01506 407 110 > 7 01506 407 108 > > > > > *From:* Sebastian Kraus/INPLUS/DE [mailto:[hidden email]] * > Sent:* 19 December 2005 17:22* > To:* [hidden email]* > Subject:* [ops-users] Question: Debugging Java processors with log4J > > > Hi, > > I have some problems to see my debug statements of my custom processor > in the "logging events" view in orbeon studio. > Do I have to do some special settings settings for my custom > In the tomcat stdout file, I can see my logging statements. > I can see also the debug statements, set in the pipes. > > Thanks for your help > > Sebastian > > Here the log4j.xml > > <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" > xmlns="http://jakarta.apache.org/log4j/"> > > <!-- This is the standard log appender to the console (System.out) > <appender name="ConsoleAppender" > class="org.apache.log4j.ConsoleAppender"> > <param name="Target" value="System.out"/> > <layout class="org.apache.log4j.PatternLayout"> > <param name="ConversionPattern" value="%d{ISO8601} %-5p %c > - %m%n"/> > </layout> > <filter class="org.apache.log4j.varia.LevelRangeFilter"> > <param name="LevelMin" value="INFO" /> > </filter> > </appender> > > <!-- This is the OPS Studio monitor --> > <appender name="OPSMonitor" > class="org.apache.log4j.net.SocketHubAppender"> > <param name="Port" value="4467"/> > <param name="LocationInfo" value="true"/> > </appender> > > <logger name='org.umsys.oxf.processor.tools.TestProcessor' > > <level value="info" /> > </logger> > <!-- This is the root logger --> > <root> > <priority value="info"/> > <appender-ref ref="ConsoleAppender"/> > > <appender-ref ref="OPSMonitor"/> > </root> > </log4j:configuration> -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Sorry Stephen, but that doesn't help. Th ebehaviour is the same. All debug.info items are wirtten in the stdout, but not in the loggin events. :-( Sebastian
This is the log4j.xml file for Orbeon yes? If so, then presumably this... > <logger name='org.umsys.oxf.processor.tools.TestProcessor' > > <level value="info" /> > </logger> ...is supposed to be for catching the errors for your custom processor? I think instead you need something like this: <category name="org.umsys.oxf.processor.tools.TestProcessor"> <priority value="debug"/> <appender-ref ref="OPSMonitor"/> <!-- send to console as well --> <appender-ref ref="ConsoleAppender"/> </category> -----Original Message----- From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez Sent: 20 December 2005 11:32 To: [hidden email] Subject: Re: [ops-users] Question: Debugging Java processors with log4J What are those statements? Please give a detailed example. -Erik Sebastian Kraus/INPLUS/DE wrote: > > Hi Ryan, > > Sorry, that my question wasn't very precice. > I read this topic but that does not solve my problem. > The point is, I see the debug statements in the "Logging events view" > declared in an xpl. But not the statements, declared in a Java processor. > > Sebastian > > > > > *Ryan Puddephatt <[hidden email]>* > > 19.12.2005 19:30 > Please respond to > [hidden email] > > > > To > [hidden email] > cc > > Subject > RE: [ops-users] Question: Debugging Java processors with log4J > > > > > > > > > Sebastian, > This was discussed quite recently, check > _http://www.orbeon.com/ops/doc/home-faq#studio-empty-events_ and see if > that helps > > *Ryan Puddephatt* > Web Developer > TFX Group > 1 Michaelson Square > Livingston > West Lothian > Scotand > EH54 7DP > > * [hidden email] > ( 01506 407 110 > 7 01506 407 108 > > > ------------------------------------------------------------------------ > > *From:* Sebastian Kraus/INPLUS/DE [mailto:[hidden email]] * > Sent:* 19 December 2005 17:22* > To:* [hidden email]* > Subject:* [ops-users] Question: Debugging Java processors with log4J > > > Hi, > > I have some problems to see my debug statements of my custom processor > in the "logging events" view in orbeon studio. > Do I have to do some special settings settings for my custom processor? > In the tomcat stdout file, I can see my logging statements. > I can see also the debug statements, set in the pipes. > > Thanks for your help > > Sebastian > > Here the log4j.xml > > <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" > xmlns="http://jakarta.apache.org/log4j/"> > > <!-- This is the standard log appender to the console (System.out) --> > <appender name="ConsoleAppender" > class="org.apache.log4j.ConsoleAppender"> > <param name="Target" value="System.out"/> > <layout class="org.apache.log4j.PatternLayout"> > <param name="ConversionPattern" value="%d{ISO8601} %-5p %c %x > - %m%n"/> > </layout> > <filter class="org.apache.log4j.varia.LevelRangeFilter"> > <param name="LevelMin" value="INFO" /> > </filter> > </appender> > > <!-- This is the OPS Studio monitor --> > <appender name="OPSMonitor" > class="org.apache.log4j.net.SocketHubAppender"> > <param name="Port" value="4467"/> > <param name="LocationInfo" value="true"/> > </appender> > > <logger name='org.umsys.oxf.processor.tools.TestProcessor' > > <level value="info" /> > </logger> > <!-- This is the root logger --> > <root> > <priority value="info"/> > <appender-ref ref="ConsoleAppender"/> > > <appender-ref ref="OPSMonitor"/> > </root> > </log4j:configuration> -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Stephen Bayliss
Just a category will probably do since he already has a root logger:
<category name="org.umsys.oxf.processor.tools.TestProcessor"> <priority value="info"/> </category> I am just wondering why, with a default of "info" in the root, the above is necessary. -Erik Stephen Bayliss wrote: > This is the log4j.xml file for Orbeon yes? > > If so, then presumably this... > > >> <logger name='org.umsys.oxf.processor.tools.TestProcessor' > >> <level value="info" /> >> </logger> > > > ...is supposed to be for catching the errors for your custom processor? > > I think instead you need something like this: > > <category name="org.umsys.oxf.processor.tools.TestProcessor"> > <priority value="debug"/> > <appender-ref ref="OPSMonitor"/> > <!-- send to console as well --> > <appender-ref ref="ConsoleAppender"/> > </category> > > > > > -----Original Message----- > From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez > Sent: 20 December 2005 11:32 > To: [hidden email] > Subject: Re: [ops-users] Question: Debugging Java processors with log4J > > What are those statements? Please give a detailed example. > > -Erik > > Sebastian Kraus/INPLUS/DE wrote: > >>Hi Ryan, >> >>Sorry, that my question wasn't very precice. >>I read this topic but that does not solve my problem. >>The point is, I see the debug statements in the "Logging events view" >>declared in an xpl. But not the statements, declared in a Java > > processor. > >>Sebastian >> >> >> >> >>*Ryan Puddephatt <[hidden email]>* >> >>19.12.2005 19:30 >>Please respond to >>[hidden email] >> >> >> >>To >> [hidden email] >>cc >> >>Subject >> RE: [ops-users] Question: Debugging Java processors with log4J >> >> >> >> >> >> >> >> >>Sebastian, >> This was discussed quite recently, check >>_http://www.orbeon.com/ops/doc/home-faq#studio-empty-events_ and see > > if > >>that helps >> >>*Ryan Puddephatt* >>Web Developer >>TFX Group >>1 Michaelson Square >>Livingston >>West Lothian >>Scotand >>EH54 7DP >> >>* [hidden email] >>( 01506 407 110 >>7 01506 407 108 >> >> >> > > ------------------------------------------------------------------------ > >>*From:* Sebastian Kraus/INPLUS/DE [mailto:[hidden email]] * >>Sent:* 19 December 2005 17:22* >>To:* [hidden email]* >>Subject:* [ops-users] Question: Debugging Java processors with log4J >> >> >>Hi, >> >>I have some problems to see my debug statements of my custom processor > > >>in the "logging events" view in orbeon studio. >>Do I have to do some special settings settings for my custom > > processor? > >>In the tomcat stdout file, I can see my logging statements. >>I can see also the debug statements, set in the pipes. >> >>Thanks for your help >> >>Sebastian >> >>Here the log4j.xml >> >><log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" >>xmlns="http://jakarta.apache.org/log4j/"> >> >> <!-- This is the standard log appender to the console (System.out) > > --> > >> <appender name="ConsoleAppender" >>class="org.apache.log4j.ConsoleAppender"> >> <param name="Target" value="System.out"/> >> <layout class="org.apache.log4j.PatternLayout"> >> <param name="ConversionPattern" value="%d{ISO8601} %-5p %c > > %x > >>- %m%n"/> >> </layout> >> <filter class="org.apache.log4j.varia.LevelRangeFilter"> >> <param name="LevelMin" value="INFO" /> >> </filter> >> </appender> >> >> <!-- This is the OPS Studio monitor --> >> <appender name="OPSMonitor" >>class="org.apache.log4j.net.SocketHubAppender"> >> <param name="Port" value="4467"/> >> <param name="LocationInfo" value="true"/> >> </appender> >> >> <logger name='org.umsys.oxf.processor.tools.TestProcessor' > >> <level value="info" /> >> </logger> >> <!-- This is the root logger --> >> <root> >> <priority value="info"/> >> <appender-ref ref="ConsoleAppender"/> >> >> <appender-ref ref="OPSMonitor"/> >> </root> >></log4j:configuration> > > > > > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Sebastian Kraus/INPLUS/DE
What if you comment out:
<appender-ref ref="ConsoleAppender"/> Do things go to the logging events? Also, check that you don't have any improper filter in place in the Logging Events view (click on the down arrow in the top right corner, select "Filters...", and check the settings there). -Erik Sebastian Kraus/INPLUS/DE wrote: > > Sorry Stephen, > > but that doesn't help. Th ebehaviour is the same. All debug.info items > are wirtten in the stdout, but not in the loggin events. > > :-( > Sebastian > > > *"Stephen Bayliss" <[hidden email]>* > > 20.12.2005 12:48 > Please respond to > [hidden email] > > > > To > <[hidden email]> > cc > > Subject > RE: [ops-users] Question: Debugging Java processors with log4J > > > > > > > > > This is the log4j.xml file for Orbeon yes? > > If so, then presumably this... > > > <logger name='org.umsys.oxf.processor.tools.TestProcessor' > > > <level value="info" /> > > </logger> > > ...is supposed to be for catching the errors for your custom processor? > > I think instead you need something like this: > > <category name="org.umsys.oxf.processor.tools.TestProcessor"> > <priority value="debug"/> > <appender-ref ref="OPSMonitor"/> > <!-- send to console as well --> > <appender-ref ref="ConsoleAppender"/> > </category> > > > > > -----Original Message----- > From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez > Sent: 20 December 2005 11:32 > To: [hidden email] > Subject: Re: [ops-users] Question: Debugging Java processors with log4J > > What are those statements? Please give a detailed example. > > -Erik > > Sebastian Kraus/INPLUS/DE wrote: > > > > Hi Ryan, > > > > Sorry, that my question wasn't very precice. > > I read this topic but that does not solve my problem. > > The point is, I see the debug statements in the "Logging events view" > > declared in an xpl. But not the statements, declared in a Java > processor. > > > > Sebastian > > > > > > > > > > *Ryan Puddephatt <[hidden email]>* > > > > 19.12.2005 19:30 > > Please respond to > > [hidden email] > > > > > > > > To > > [hidden email] > > cc > > > > Subject > > RE: [ops-users] Question: Debugging Java processors > with log4J > > > > > > > > > > > > > > > > > > Sebastian, > > This was discussed quite recently, check > > _http://www.orbeon.com/ops/doc/home-faq#studio-empty-events_ and see > if > > that helps > > > > *Ryan Puddephatt* > > Web Developer > > TFX Group > > 1 Michaelson Square > > Livingston > > West Lothian > > Scotand > > EH54 7DP > > > > * [hidden email] > > ( 01506 407 110 > > 7 01506 407 108 > > > > > > > ------------------------------------------------------------------------ > > > > *From:* Sebastian Kraus/INPLUS/DE [mailto:[hidden email]] * > > Sent:* 19 December 2005 17:22* > > To:* [hidden email]* > > Subject:* [ops-users] Question: Debugging Java processors with log4J > > > > > > Hi, > > > > I have some problems to see my debug statements of my custom processor > > > in the "logging events" view in orbeon studio. > > Do I have to do some special settings settings for my custom > processor? > > In the tomcat stdout file, I can see my logging statements. > > I can see also the debug statements, set in the pipes. > > > > Thanks for your help > > > > Sebastian > > > > Here the log4j.xml > > > > <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" > > xmlns="http://jakarta.apache.org/log4j/"> > > > > <!-- This is the standard log appender to the console (System.out)--> > > <appender name="ConsoleAppender" > > class="org.apache.log4j.ConsoleAppender"> > > <param name="Target" value="System.out"/> > > <layout class="org.apache.log4j.PatternLayout"> > > <param name="ConversionPattern" value="%d{ISO8601} %-5p %c > %x > > - %m%n"/> > > </layout> > > <filter class="org.apache.log4j.varia.LevelRangeFilter"> > > <param name="LevelMin" value="INFO" /> > > </filter> > > </appender> > > > > <!-- This is the OPS Studio monitor --> > > <appender name="OPSMonitor" > > class="org.apache.log4j.net.SocketHubAppender"> > > <param name="Port" value="4467"/> > > <param name="LocationInfo" value="true"/> > > </appender> > > > > <logger name='org.umsys.oxf.processor.tools.TestProcessor' > > > <level value="info" /> > > </logger> > > <!-- This is the root logger --> > > <root> > > <priority value="info"/> > > <appender-ref ref="ConsoleAppender"/> > > > > <appender-ref ref="OPSMonitor"/> > > </root> > > </log4j:configuration> > > > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Nope Eric! The only effect is, that the stdout has no logging content anymore. I checked the filters again, but no filter are set. Are you able to debug the java processors? What environment are you using. I use eclipse 3.0.1 with the studio plugin installed (version 1.2.2.x). But I dont think, this is the problem. Greetings Sebastian
What if you comment out: <appender-ref ref="ConsoleAppender"/> Do things go to the logging events? Also, check that you don't have any improper filter in place in the Logging Events view (click on the down arrow in the top right corner, select "Filters...", and check the settings there). -Erik Sebastian Kraus/INPLUS/DE wrote: > > Sorry Stephen, > > but that doesn't help. Th ebehaviour is the same. All debug.info items > are wirtten in the stdout, but not in the loggin events. > > :-( > Sebastian > > > *"Stephen Bayliss" <[hidden email]>* > > 20.12.2005 12:48 > Please respond to > [hidden email] > > > > To > <[hidden email]> > cc > > Subject > RE: [ops-users] Question: Debugging Java processors with log4J > > > > > > > > > This is the log4j.xml file for Orbeon yes? > > If so, then presumably this... > > > <logger name='org.umsys.oxf.processor.tools.TestProcessor' > > > <level value="info" /> > > </logger> > > ...is supposed to be for catching the errors for your custom processor? > > I think instead you need something like this: > > <category name="org.umsys.oxf.processor.tools.TestProcessor"> > <priority value="debug"/> > <appender-ref ref="OPSMonitor"/> > <!-- send to console as well --> > <appender-ref ref="ConsoleAppender"/> > </category> > > > > > -----Original Message----- > From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez > Sent: 20 December 2005 11:32 > To: [hidden email] > Subject: Re: [ops-users] Question: Debugging Java processors with log4J > > What are those statements? Please give a detailed example. > > -Erik > > Sebastian Kraus/INPLUS/DE wrote: > > > > Hi Ryan, > > > > Sorry, that my question wasn't very precice. > > I read this topic but that does not solve my problem. > > The point is, I see the debug statements in the "Logging events view" > > declared in an xpl. But not the statements, declared in a Java > processor. > > > > Sebastian > > > > > > > > > > *Ryan Puddephatt <[hidden email]>* > > > > 19.12.2005 19:30 > > Please respond to > > [hidden email] > > > > > > > > To > > [hidden email] > > cc > > > > Subject > > RE: [ops-users] Question: Debugging Java processors > with log4J > > > > > > > > > > > > > > > > > > Sebastian, > > This was discussed quite recently, check > > _http://www.orbeon.com/ops/doc/home-faq#studio-empty-events_ and see > if > > that helps > > > > *Ryan Puddephatt* > > Web Developer > > TFX Group > > 1 Michaelson Square > > Livingston > > West Lothian > > Scotand > > EH54 7DP > > > > * [hidden email] > > ( 01506 407 110 > > 7 01506 407 108 > > > > > > > ------------------------------------------------------------------------ > > > > *From:* Sebastian Kraus/INPLUS/DE [mailto:[hidden email]] * > > Sent:* 19 December 2005 17:22* > > To:* [hidden email]* > > Subject:* [ops-users] Question: Debugging Java processors with log4J > > > > > > Hi, > > > > I have some problems to see my debug statements of my custom processor > > > in the "logging events" view in orbeon studio. > > Do I have to do some special settings settings for my custom > processor? > > In the tomcat stdout file, I can see my logging statements. > > I can see also the debug statements, set in the pipes. > > > > Thanks for your help > > > > Sebastian > > > > Here the log4j.xml > > > > <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" > > xmlns="http://jakarta.apache.org/log4j/"> > > > > <!-- This is the standard log appender to the console (System.out)--> > > <appender name="ConsoleAppender" > > class="org.apache.log4j.ConsoleAppender"> > > <param name="Target" value="System.out"/> > > <layout class="org.apache.log4j.PatternLayout"> > > <param name="ConversionPattern" value="%d{ISO8601} %-5p %c > %x > > - %m%n"/> > > </layout> > > <filter class="org.apache.log4j.varia.LevelRangeFilter"> > > <param name="LevelMin" value="INFO" /> > > </filter> > > </appender> > > > > <!-- This is the OPS Studio monitor --> > > <appender name="OPSMonitor" > > class="org.apache.log4j.net.SocketHubAppender"> > > <param name="Port" value="4467"/> > > <param name="LocationInfo" value="true"/> > > </appender> > > > > <logger name='org.umsys.oxf.processor.tools.TestProcessor' > > > <level value="info" /> > > </logger> > > <!-- This is the root logger --> > > <root> > > <priority value="info"/> > > <appender-ref ref="ConsoleAppender"/> > > > > <appender-ref ref="OPSMonitor"/> > > </root> > > </log4j:configuration> > > > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Sebastian,
I found the reason: Studio only logs logs for classes under org.orbeon. This is why you see the output in the console but not in Studio. I entered a bug to track this, but cannot guarantee that it will be fixed soon: http://forge.objectweb.org/tracker/index.php?func=detail&aid=304417&group_id=168&atid=350207 As a workaround, you can either put your class under org.orbeon (not that great of a solution), or create a logger with another class, for example: private static Logger logger = Logger.getLogger(OPS.class); -Erik Sebastian Kraus/INPLUS/DE wrote: > > Nope Eric! > > The only effect is, that the stdout has no logging content anymore. > > I checked the filters again, but no filter are set. > > Are you able to debug the java processors? > What environment are you using. I use eclipse 3.0.1 with the studio > plugin installed (version 1.2.2.x). But I dont think, this is the problem. > > Greetings > > Sebastian > > > > > *Erik Bruchez <[hidden email]>* > Sent by: Erik Bruchez <[hidden email]> > > 20.12.2005 13:18 > Please respond to > [hidden email] > > > > To > [hidden email] > cc > > Subject > Re: [ops-users] Question: Debugging Java processors with log4J > > > > > > > > > What if you comment out: > > <appender-ref ref="ConsoleAppender"/> > > Do things go to the logging events? > > Also, check that you don't have any improper filter in place in the > Logging Events view (click on the down arrow in the top right corner, > select "Filters...", and check the settings there). > > -Erik > > Sebastian Kraus/INPLUS/DE wrote: > > > > Sorry Stephen, > > > > but that doesn't help. Th ebehaviour is the same. All debug.info items > > are wirtten in the stdout, but not in the loggin events. > > > > :-( > > Sebastian > > > > > > *"Stephen Bayliss" <[hidden email]>* > > > > 20.12.2005 12:48 > > Please respond to > > [hidden email] > > > > > > > > To > > <[hidden email]> > > cc > > > > Subject > > RE: [ops-users] Question: Debugging Java processors > with log4J > > > > > > > > > > > > > > > > > > This is the log4j.xml file for Orbeon yes? > > > > If so, then presumably this... > > > > > <logger name='org.umsys.oxf.processor.tools.TestProcessor' > > > > <level value="info" /> > > > </logger> > > > > ...is supposed to be for catching the errors for your custom processor? > > > > I think instead you need something like this: > > > > <category name="org.umsys.oxf.processor.tools.TestProcessor"> > > <priority value="debug"/> > > <appender-ref ref="OPSMonitor"/> > > <!-- send to console as well --> > > <appender-ref ref="ConsoleAppender"/> > > </category> > > > > > > > > > > -----Original Message----- > > From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez > > Sent: 20 December 2005 11:32 > > To: [hidden email] > > Subject: Re: [ops-users] Question: Debugging Java processors with log4J > > > > What are those statements? Please give a detailed example. > > > > -Erik > > > > Sebastian Kraus/INPLUS/DE wrote: > > > > > > Hi Ryan, > > > > > > Sorry, that my question wasn't very precice. > > > I read this topic but that does not solve my problem. > > > The point is, I see the debug statements in the "Logging events view" > > > declared in an xpl. But not the statements, declared in a Java > > processor. > > > > > > Sebastian > > > > > > > > > > > > > > > *Ryan Puddephatt <[hidden email]>* > > > > > > 19.12.2005 19:30 > > > Please respond to > > > [hidden email] > > > > > > > > > > > > To > > > [hidden email] > > > cc > > > > > > Subject > > > RE: [ops-users] Question: Debugging Java processors > > with log4J > > > > > > > > > > > > > > > > > > > > > > > > > > > Sebastian, > > > This was discussed quite recently, check > > > _http://www.orbeon.com/ops/doc/home-faq#studio-empty-events_ and see > > if > > > that helps > > > > > > *Ryan Puddephatt* > > > Web Developer > > > TFX Group > > > 1 Michaelson Square > > > Livingston > > > West Lothian > > > Scotand > > > EH54 7DP > > > > > > * [hidden email] > > > ( 01506 407 110 > > > 7 01506 407 108 > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > *From:* Sebastian Kraus/INPLUS/DE [mailto:[hidden email]] * > > > Sent:* 19 December 2005 17:22* > > > To:* [hidden email]* > > > Subject:* [ops-users] Question: Debugging Java processors with log4J > > > > > > > > > Hi, > > > > > > I have some problems to see my debug statements of my custom processor > > > > > in the "logging events" view in orbeon studio. > > > Do I have to do some special settings settings for my custom > > processor? > > > In the tomcat stdout file, I can see my logging statements. > > > I can see also the debug statements, set in the pipes. > > > > > > Thanks for your help > > > > > > Sebastian > > > > > > Here the log4j.xml > > > > > > <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" > > > xmlns="http://jakarta.apache.org/log4j/"> > > > > > > <!-- This is the standard log appender to the console > (System.out)--> > > > <appender name="ConsoleAppender" > > > class="org.apache.log4j.ConsoleAppender"> > > > <param name="Target" value="System.out"/> > > > <layout class="org.apache.log4j.PatternLayout"> > > > <param name="ConversionPattern" value="%d{ISO8601} %-5p %c > > %x > > > - %m%n"/> > > > </layout> > > > <filter class="org.apache.log4j.varia.LevelRangeFilter"> > > > <param name="LevelMin" value="INFO" /> > > > </filter> > > > </appender> > > > > > > <!-- This is the OPS Studio monitor --> > > > <appender name="OPSMonitor" > > > class="org.apache.log4j.net.SocketHubAppender"> > > > <param name="Port" value="4467"/> > > > <param name="LocationInfo" value="true"/> > > > </appender> > > > > > > <logger name='org.umsys.oxf.processor.tools.TestProcessor' > > > > <level value="info" /> > > > </logger> > > > <!-- This is the root logger --> > > > <root> > > > <priority value="info"/> > > > <appender-ref ref="ConsoleAppender"/> > > > > > > <appender-ref ref="OPSMonitor"/> > > > </root> > > > </log4j:configuration> > > > > > > > > > > -- > > You receive this message as a subscriber of the [hidden email] > > mailing list. > > To unsubscribe: mailto:[hidden email] > > For general help: mailto:[hidden email]?subject=help > > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > > > ------------------------------------------------------------------------ > > > > > > -- > > You receive this message as a subscriber of the > [hidden email] mailing list. > > To unsubscribe: mailto:[hidden email] > > For general help: mailto:[hidden email]?subject=help > > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > ------------------------------------------------------------------------ > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |