<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Java Logging Appenders: Why am I getting error &amp;quot;Could not create an Appender of type [com.splunk.logging.TcpAppender]&amp;quot;? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Java-Logging-Appenders-Why-am-I-getting-error-quot-Could-not/m-p/164319#M15482</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;Caused by: java.lang.ClassNotFoundException: com.splunk.logging.TcpAppender
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Clearly you do not have the necessary SplunkJavaLogging classes on your classpath&lt;/P&gt;</description>
    <pubDate>Thu, 05 Mar 2015 05:47:41 GMT</pubDate>
    <dc:creator>Damien_Dallimor</dc:creator>
    <dc:date>2015-03-05T05:47:41Z</dc:date>
    <item>
      <title>Java Logging Appenders: Why am I getting error "Could not create an Appender of type [com.splunk.logging.TcpAppender]"?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Java-Logging-Appenders-Why-am-I-getting-error-quot-Could-not/m-p/164318#M15481</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;

&lt;P&gt;configuring "SplunkJavaLogging(with backlog)" on a server tomcat7, when I restart it I get the following java error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;16:29:20,152 |-ERROR in ch.qos.logback.core.joran.action.AppenderAction - Could not create an Appender of type [com.splunk.logging.TcpAppender]. ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type com.splunk.logging.TcpAppender
at ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type com.splunk.logging.TcpAppender
at      at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:73)
at      at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:48)
at      at ch.qos.logback.core.util.OptionHelper.instantiateByClassName(OptionHelper.java:35)
at      at ch.qos.logback.core.joran.action.AppenderAction.begin(AppenderAction.java:54)
at      at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:275)
at      at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:147)
at      at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:129)
at      at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50)
at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149)
at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135)
at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99)
at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:76)
at      at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:68)
at      at ch.qos.logback.access.tomcat.LogbackValve.startInternal(LogbackValve.java:138)
at      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at      at org.apache.catalina.core.StandardPipeline.startInternal(StandardPipeline.java:185)
at      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at      at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1137)
at      at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:816)
at      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
at      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
at      at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at      at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: com.splunk.logging.TcpAppender
at      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at      at java.security.AccessController.doPrivileged(Native Method)
at      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at      at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at      at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:60)
at      ... 25 common frames omitted
16:29:20,152 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@7:64 - ActionException in Action for tag [appender] ch.qos.logback.core.joran.spi.ActionException: ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type com.splunk.logging.TcpAppender
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is my conf:&lt;/P&gt;

&lt;P&gt;logback-access.xml&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        &amp;lt;RemoteHost&amp;gt;splunkServer&amp;lt;/RemoteHost&amp;gt;
        &amp;lt;Port&amp;gt;5150&amp;lt;/Port&amp;gt;
        &amp;lt;layout class="ch.qos.logback.classic.PatternLayout"&amp;gt;
        &amp;lt;pattern&amp;gt;%date{ISO8601} [%thread] %level: %msg%n&amp;lt;/pattern&amp;gt;
        &amp;lt;/layout&amp;gt;
    &amp;lt;/appender&amp;gt;

    &amp;lt;logger name="splunk.logger" additivity="false" level="INFO"&amp;gt;
        &amp;lt;appender-ref ref="socket"/&amp;gt;
    &amp;lt;/logger&amp;gt;

    &amp;lt;root level="INFO"&amp;gt;
        &amp;lt;appender-ref ref="socket"/&amp;gt;
    &amp;lt;/root&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;server.xml&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Valve className="ch.qos.logback.access.tomcat.LogbackValve"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;LIB:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;-rw-r--r-- 1 simoneant simoneant   93525 Apr  2  2014 logback-access-1.1.2.jar
-rw-r--r-- 1 simoneant simoneant  270747 Apr  2  2014 logback-classic-1.1.2.jar
-rw-r--r-- 1 simoneant simoneant  427729 Apr  2  2014 logback-core-1.1.2.jar
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;P&gt;Please help me to figure out...&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Simone&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2015 00:46:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Java-Logging-Appenders-Why-am-I-getting-error-quot-Could-not/m-p/164318#M15481</guid>
      <dc:creator>simone84</dc:creator>
      <dc:date>2015-03-05T00:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Java Logging Appenders: Why am I getting error "Could not create an Appender of type [com.splunk.logging.TcpAppender]"?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Java-Logging-Appenders-Why-am-I-getting-error-quot-Could-not/m-p/164319#M15482</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;Caused by: java.lang.ClassNotFoundException: com.splunk.logging.TcpAppender
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Clearly you do not have the necessary SplunkJavaLogging classes on your classpath&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2015 05:47:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Java-Logging-Appenders-Why-am-I-getting-error-quot-Could-not/m-p/164319#M15482</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2015-03-05T05:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Java Logging Appenders: Why am I getting error "Could not create an Appender of type [com.splunk.logging.TcpAppender]"?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Java-Logging-Appenders-Why-am-I-getting-error-quot-Could-not/m-p/164320#M15483</link>
      <description>&lt;P&gt;Hi Darmien,&lt;/P&gt;

&lt;P&gt;Thanks to helping me to figure out the issue with the logback.&lt;BR /&gt;
Now during the restart I get these error messages on the console.out:&lt;/P&gt;

&lt;P&gt;INFO: Starting Servlet Engine: Apache Tomcat/7.0.59&lt;BR /&gt;
15:22:37,252 |-INFO in ch.qos.logback.access.tomcat.LogbackValve[localhost] - filename property not set. Assuming [/tomcat7/apache-tomcat-7.0.59/conf/logback-access.xml]&lt;BR /&gt;
15:22:37,293 |-INFO in ch.qos.logback.access.joran.action.ConfigurationAction - debug attribute not set&lt;BR /&gt;
15:22:37,295 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [com.splunk.logging.logback.appender.SplunkRestAppender]&lt;BR /&gt;
15:22:37,310 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [splunkrawtcp]&lt;BR /&gt;
15:22:37,600 |-ERROR in com.splunk.logging.logback.appender.SplunkRestAppender[splunkrawtcp] - Couldn't establish REST service for SplunkRestAppender named "splunkrawtcp".&lt;BR /&gt;
15:22:37,606 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@31:64 - no applicable action for [logger], current ElementPath  is [[configuration][logger]]&lt;BR /&gt;
15:22:37,606 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@32:40 - no applicable action for [appender-ref], current ElementPath  is [[configuration][logger][appender-ref]]&lt;BR /&gt;
15:22:37,606 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@36:22 - no applicable action for [root], current ElementPath  is [[configuration][root]]&lt;BR /&gt;
15:22:37,606 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@37:33 - no applicable action for [appender-ref], current ElementPath  is [[configuration][root][appender-ref]]&lt;BR /&gt;
15:22:37,606 |-INFO in ch.qos.logback.access.joran.action.ConfigurationAction - End of configuration.&lt;/P&gt;

&lt;P&gt;this is my web.xml. webapps/application/WEB-INF/web.xml&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/255i3639F3E11A93F765/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;How to generate events to figure out if Splunk logging is really working?&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Simone&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2015 23:35:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Java-Logging-Appenders-Why-am-I-getting-error-quot-Could-not/m-p/164320#M15483</guid>
      <dc:creator>simone84</dc:creator>
      <dc:date>2015-03-06T23:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Java Logging Appenders: Why am I getting error "Could not create an Appender of type [com.splunk.logging.TcpAppender]"?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Java-Logging-Appenders-Why-am-I-getting-error-quot-Could-not/m-p/164321#M15484</link>
      <description>&lt;P&gt;Hi @simone84&lt;/P&gt;

&lt;P&gt;Please be sure that when responding to someone's answer, click on "Add comment" directly below their answer or, if responding to someone's comment, type in the "Add your comment..." box directly below their comment. You typed your response in the "Enter your answer here..." box at the very bottom of the page which, instead, posts a brand new answer when it was really meant as a comment. This will help with a clean continuous flow of the conversation. &lt;/P&gt;

&lt;P&gt;Your "answer" can no longer be converted to a comment since it is beyond the character limit. If you have a long response and are hitting a character limit when leaving a comment, just break it up into multiple comments. Just something to keep in mind from here on out. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2015 01:41:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Java-Logging-Appenders-Why-am-I-getting-error-quot-Could-not/m-p/164321#M15484</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2015-03-11T01:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Java Logging Appenders: Why am I getting error "Could not create an Appender of type [com.splunk.logging.TcpAppender]"?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Java-Logging-Appenders-Why-am-I-getting-error-quot-Could-not/m-p/164322#M15485</link>
      <description>&lt;P&gt;Hi Darmien,&lt;BR /&gt;
Now during the restart I get these error messages on the console.out:&lt;BR /&gt;
15:22:37,293 |-INFO in ch.qos.logback.access.joran.action.ConfigurationAction - debug attribute not set&lt;BR /&gt;
15:22:37,295 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [com.splunk.logging.logback.appender.SplunkRestAppender]&lt;BR /&gt;
15:22:37,310 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [splunkrawtcp]&lt;BR /&gt;
15:22:37,600 |-ERROR in com.splunk.logging.logback.appender.SplunkRestAppender[splunkrawtcp] - Couldn't establish REST service for SplunkRestAppender named "splunkrawtcp".&lt;BR /&gt;
15:22:37,606 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@31:64 - no applicable action for [logger], current ElementPath is [[configuration][logger]]&lt;BR /&gt;
15:22:37,606 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@32:40 - no applicable action for [appender-ref], current ElementPath is [[configuration][logger][appender-ref]]&lt;BR /&gt;
15:22:37,606 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@36:22 - no applicable action for [root], current ElementPath is [[configuration][root]]&lt;BR /&gt;
15:22:37,606 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@37:33 - no applicable action for [appender-ref], current ElementPath is [[configuration][root][appender-ref]]&lt;BR /&gt;
15:22:37,606 |-INFO in ch.qos.logback.access.joran.action.ConfigurationAction - End of configuration.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;How to generate events to figure out if Splunk logging is really working?&lt;/STRONG&gt;&lt;BR /&gt;
Thanks 1000&lt;BR /&gt;
Simone&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2015 15:17:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Java-Logging-Appenders-Why-am-I-getting-error-quot-Could-not/m-p/164322#M15485</guid>
      <dc:creator>simone84</dc:creator>
      <dc:date>2015-03-11T15:17:31Z</dc:date>
    </item>
  </channel>
</rss>

