2 Replies Latest reply on Jul 31, 2013 3:16 AM by Alexander Hoffmann

    How to filter this specific jersey error?

    Alexander Hoffmann Newbie

      Hello again and I have another problem with logging filters which I can't solve.

      I'm working with JBoss 6.1 and logging module 1.2 (<subsystem xmlns="urn:jboss:domain:logging:1.2">).

       

      First, this is part of my log:

       

      14:04:53,298 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015893: Encountered invalid class name 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer' for service type 'org.xmlpull.v1.XmlPullParserFactory'
      14:04:53,497 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015893: Encountered invalid class name 'com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$App' for service type 'javax.ws.rs.ext.MessageBodyReader'
      14:04:53,521 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015893: Encountered invalid class name 'com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$Text' for service type 'javax.ws.rs.ext.MessageBodyReader'
      14:04:53,522 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015893: Encountered invalid class name 'com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General' for service type 'javax.ws.rs.ext.MessageBodyReader'
      14:04:53,523 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015893: Encountered invalid class name 'com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$App' for service type 'javax.ws.rs.ext.MessageBodyReader'
      14:04:53,523 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015893: Encountered invalid class name 'com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$Text' for service type 'javax.ws.rs.ext.MessageBodyReader'
      14:04:53,524 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015893: Encountered invalid class name 'com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General' for service type 'javax.ws.rs.ext.MessageBodyReader'
      14:04:53,525 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015893: Encountered invalid class name 'com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$App' for service type 'javax.ws.rs.ext.MessageBodyReader'
      

       

      As you can see, there is this JBAS015893 warning. I want to filter all JBAS015893 warnings that are connected to 'com.sun.jersey.core.*'. But I don't want to get rid of any JBAS015893 warnings that are connected to any other class!

       

      So here are some of my attempts in standalone-full.xml:

       

      <filter-spec value="not(match(&quot;JBAS015893.*&quot;))"/>
      

       

      This removes all JBAS015893s even those which don't have to do anything with com.sun.jersey.*.

       

      So I tried to be more specific but none of the following values did filter anything:

       

       

      Frist try (I assume the ' is the problem. But even if I replace the ' with a &amp; it doesn't filter anything)
      <filter-spec value="not(match(&quot;JBAS015893: Encountered invalid class name 'com.sun.jersey.*&quot;))"/>
      
      
      Second try:
      <filter-spec value="not(match(&quot;JBAS015893.*jersey.*&quot;))"/>
      

       

      "Match" is a regular-expression based filter so why doesn't it work with the second value? Is there a better way for filtering than this one? I am kind of stuck here.