As Ron stated you'll still get the "warnings" about the class not being
available. You could consult
https://docs.jboss.org/author/display/AS71/Logging+Configuration#LoggingConfiguration-LoggingSubsystemDescriptions
to change the logging (as others in the list have done) though you may be
missing other logging messages which really are important.


On Wed, Jun 4, 2014 at 8:59 AM, Ron Smeral <[email protected]> wrote:

> Hi Thomas,
>
> the weld:exclude feature works, but it only prevents classes from being
> treated as CDI beans, not from being loaded by the classloader.
>
> Regards,
> Ron
>
>
> On 4.6.2014 16:42, Stemmer Thomas wrote:
>
>> Hi Thomas & Gerhard,
>>
>> thanks for your quick reply. You're right - the problem occurs when weld
>> loads the classes. So I thought about excluding the classes from
>> weld-scanning in beans.xml. Unfortunately that doesn't work - has anyone
>> tried this before? Otherwise I'll ask at JBoss.
>>
>> I found the description of the weld feature here:
>> https://access.redhat.com/site/documentation/en-US/
>> JBoss_Enterprise_Application_Platform/6/html/Development_
>> Guide/Exclude_Beans_From_the_Scanning_Process.html
>>
>> Sample beans.xml for excluding:
>> <beans xmlns="http://java.sun.com/xml/ns/javaee"; xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance";
>>          xmlns:weld="http://jboss.org/schema/weld/beans";
>>          xsi:schemaLocation="
>>            http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/
>> javaee/beans_1_0.xsd
>>            http://jboss.org/schema/weld/beans
>> http://jboss.org/schema/weld/beans_1_1.xsd";>
>>          <weld:scan>
>>                  <weld:exclude
>>                          name="org.apache.deltaspike.
>> jsf.impl.scope.window.ClientWindowAdapter" />
>>                  <weld:exclude
>>                          name="org.apache.deltaspike.
>> jsf.impl.scope.window.DefaultClientWindow" />
>>                  <weld:exclude
>>                          name="org.apache.deltaspike.
>> jsf.impl.listener.request.JsfClientWindowAwareLifecycleWrapper" />
>>          </weld:scan>
>> </beans>
>>
>> Regards,
>> Thomas
>>
>>
>>
>> ________________________________________
>> Von: Gerhard Petracek <[email protected]>
>> Gesendet: Mittwoch, 04. Juni 2014 15:37
>> An: [email protected]
>> Betreff: Re: Disable JSF 2.2 Features in Deltaspike
>>
>> @thomas a.:
>> no - the server produces that log-output way earlier.
>>
>> @thomas s.:
>> if there is no way to influence the server-output, you can file a ticket
>> for as7.
>>
>> regards,
>> gerhard
>>
>>
>>
>> 2014-06-04 15:31 GMT+02:00 Thomas Andraschko <[email protected]
>> >:
>>
>>  Hi,
>>>
>>> it may be possible if we provide a Extension to veto our JSF 2.2
>>> artifacts
>>> if JSF2.2 is not available.
>>>
>>> WDYT Gerhard?
>>>
>>> Regards,
>>> Thomas
>>>
>>>
>>> 2014-06-04 15:25 GMT+02:00 Stemmer Thomas <[email protected]>:
>>>
>>>  Hi,
>>>>
>>>> I'm running on JBoss 7.x with JSF 2.1. With Deltaspike 0.6+ I get a lot
>>>>
>>> of
>>>
>>>> info/warn messages from jboss classloading (like
>>>>
>>>>  http://mail-archives.apache.org/mod_mbox/deltaspike-users/
>>> 201403.mbox/%3CCAFYChVq__LBr0einU_iFkxar+TMqCSNnyQtFEqMxK5THuy5iHw@
>>> mail.gmail.com%3E
>>>
>>>> )
>>>>
>>>> Is there any chance to disable the 2.2 Features?
>>>>
>>>> For DefaultClientWindow I tried the following, but that doesn't help as
>>>> the classloader still tries to load the JSF 2.2 classes.
>>>> @Specializes
>>>> public class ClientWindow extends DefaultClientWindow {
>>>>      @Override
>>>>      public boolean isClientWindowRenderModeEnabled(FacesContext
>>>> facesContext) {
>>>>          return false;
>>>>      }
>>>> }
>>>>
>>>>
>>>>
>>>> Thanks,
>>>> regards Thomas
>>>>
>>>>
> --
> Ron Smeral
> JBoss Quality Engineer
> Brno
>
>


-- 
Jason Porter
http://en.gravatar.com/lightguardjp

Reply via email to