Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-579

Reduce WARN messages during startup

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.Beta1
    • 6.4.0.Final
    • optaplanner-wb
    • None

      The more logging during startup, the less likely you 'll see a new a warning that your local changes added.

      I don't think we 'll be able to fix all of these - some are upstream - but we should be able to reduce the number of warnings:

      09:31:02,870 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath.
      09:31:02,870 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/home/ge0ffrey/projects/jboss/just-wb/optaplanner-wb/optaplanner-wb-webapp/src/main/resources/logback.xml]
      09:31:02,870 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/home/ge0ffrey/projects/jboss/just-wb/optaplanner-wb/optaplanner-wb-webapp/src/main/webapp/WEB-INF/classes/logback.xml]
      ...
      
      
      WARN  [org.jboss.as.txn] JBAS010153: Node identifier property is set to the default value. Please make sure it is unique.
      ...
      
      
      WARN: can't find jboss-cli.xml. Using default configuration values.
      ...
      
      
      WARN  [org.jboss.as.server.deployment] JBAS015960: Class Path entry jaxb-api.jar in /home/ge0ffrey/.IntelliJIdea2016.1/system/gwt/just-wb.42facb19/optaplanner-wb-webapp.53a3a3f2/run/www/WEB-INF/lib/jaxb-core-2.2.11.jar  does not point to a valid jar for a Class-Path reference.
      WARN  [org.jboss.weld.deployer] JBAS016017: Found both WEB-INF/beans.xml and WEB-INF/classes/META-INF/beans.xml. It is not portable to use both locations at the same time. Weld is going to use the former location for this deployment.
      WARN  [org.jboss.as.dependency.private] JBAS018567: Deployment "deployment.ROOT.war" is using a private module ("org.jboss.as.domain-management:main") which may be changed or removed in future versions without notice.
      WARN  [org.jboss.as.dependency.private] JBAS018567: Deployment "deployment.ROOT.war" is using a private module ("org.jboss.as.domain-management:main") which may be changed or removed in future versions without notice.
      WARN  [org.jboss.as.dependency.private] JBAS018567: Deployment "deployment.ROOT.war" is using a private module ("org.jboss.as.naming:main") which may be changed or removed in future versions without notice.
      WARN  [org.jboss.as.dependency.private] JBAS018567: Deployment "deployment.jsp" is using a private module ("org.jboss.as.domain-management:main") which may be changed or removed in future versions without notice.
      WARN  [org.jboss.as.dependency.private] JBAS018567: Deployment "deployment.ROOT.war" is using a private module ("org.jboss.as.server:main") which may be changed or removed in future versions without notice.
      WARN  [org.jboss.as.dependency.private] JBAS018567: Deployment "deployment.jsp" is using a private module ("org.jboss.as.domain-management:main") which may be changed or removed in future versions without notice.
      WARN  [org.jboss.as.dependency.private] JBAS018567: Deployment "deployment.jsp" is using a private module ("org.jboss.as.naming:main") which may be changed or removed in future versions without notice.
      WARN  [org.jboss.as.dependency.private] JBAS018567: Deployment "deployment.jsp" is using a private module ("org.jboss.as.server:main") which may be changed or removed in future versions without notice.
      ...
      
      
      09:32:18,352 WARN  [org.jboss.errai.codegen.util.ClassChangeUtil] (MSC service thread 1-7) *** MULTIPLE VERSIONS OF org.jboss.errai.cdi.EventQualifierSerializerImpl FOUND IN CLASSPATH: Attempted to guess the newest one based on file dates. But you should clean your output directories.
      09:32:18,352 WARN  [org.jboss.errai.codegen.util.ClassChangeUtil] (MSC service thread 1-7)  Ambiguous version -> /home/ge0ffrey/projects/jboss/just-wb/drools-wb/drools-wb-screens/drools-wb-guided-dtable-editor/drools-wb-guided-dtable-editor-client/target/classes/org/jboss/errai/cdi/EventQualifierSerializerImpl.class
      09:32:18,352 WARN  [org.jboss.errai.codegen.util.ClassChangeUtil] (MSC service thread 1-7)  Ambiguous version -> /home/ge0ffrey/projects/jboss/just-wb/optaplanner-wb/optaplanner-wb-screens/optaplanner-wb-solver-editor/optaplanner-wb-solver-editor-client/target/classes/org/jboss/errai/cdi/EventQualifierSerializerImpl.class
      ...
      
      
      WARN  [org.jboss.weld.Event] WELD-000411: Observer method [BackedAnnotatedMethod] org.picketlink.extension.PicketLinkExtension.vetoIdentityImplementations(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
      WARN  [org.jboss.weld.Event] WELD-000411: Observer method [BackedAnnotatedMethod] org.kie.internal.runtime.cdi.ActivateExtension.processAnnotatedType(@Observes ProcessAnnotatedType<Object>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
      WARN  [org.jboss.weld.Event] WELD-000411: Observer method [BackedAnnotatedMethod] public org.jboss.errai.security.server.SecurityAnnotationExtension.addParameterLogger(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
      WARN  [org.jboss.weld.Event] WELD-000411: Observer method [BackedAnnotatedMethod] org.jbpm.executor.cdi.impl.ExcludeNonCDIImplExtension.processAnnotatedType(@Observes ProcessAnnotatedType<Object>, BeanManager) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
      WARN  [org.jboss.weld.Event] WELD-000411: Observer method [BackedAnnotatedMethod] org.uberfire.backend.server.cdi.SystemConfigProducer.processAnnotatedType(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
      WARN  [org.jboss.weld.Event] WELD-000411: Observer method [BackedAnnotatedMethod] public org.jboss.errai.cdi.server.CDIExtensionPoints.observeResources(@Observes ProcessAnnotatedType<Object>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
      ...
      
      
      09:32:23,352 WARN  [org.jboss.errai.cdi.server.CDIExtensionPoints] (MSC service thread 1-15) No @Service implementations found for org.guvnor.common.services.project.service.ProjectRepositoriesService
      09:32:23,363 WARN  [org.jboss.errai.cdi.server.CDIExtensionPoints] (MSC service thread 1-15) No @Service implementations found for org.guvnor.common.services.project.service.ProjectService
      09:32:23,368 WARN  [org.jboss.errai.cdi.server.CDIExtensionPoints] (MSC service thread 1-15) No @Service implementations found for org.guvnor.common.services.shared.metadata.MetadataService
      09:32:23,376 WARN  [org.jboss.errai.cdi.server.CDIExtensionPoints] (MSC service thread 1-15) No @Service implementations found for org.kie.workbench.common.screens.home.service.HomeService
      WARN  [org.jboss.weld.Validator] WELD-001473: javax.enterprise.inject.spi.Bean implementation org.uberfire.backend.server.cdi.SystemConfigProducer$2@3236ccbb declared a normal scope but does not implement javax.enterprise.inject.spi.PassivationCapable. It won't be possible to inject this bean into a bean with passivating scope (@SessionScoped, @ConversationScoped). This can be fixed by assigning the Bean implementation a unique id by implementing the PassivationCapable interface.
      WARN  [org.jboss.weld.Bean] WELD-000018: Executing producer field or method [BackedAnnotatedMethod] @Produces @Named public synchronized org.uberfire.backend.server.cluster.ClusterServiceFactoryProducer.clusterServiceFactory() on incomplete declaring bean Managed Bean [class org.uberfire.backend.server.cluster.ClusterServiceFactoryProducer] with qualifiers [@Any @Default] due to circular injection
      WARN  [org.jboss.weld.Bean] WELD-000018: Executing producer field or method [BackedAnnotatedMethod] @Produces @Named public org.optaplanner.workbench.backend.server.ApplicationScopedProducer.ioService() on incomplete declaring bean Managed Bean [class org.optaplanner.workbench.backend.server.ApplicationScopedProducer] with qualifiers [@Any @Default] due to circular injection
      WARN  [org.jboss.weld.Bean] WELD-000018: Executing producer field or method [BackedAnnotatedMethod] @Produces @Named public org.guvnor.structure.backend.repositories.RepositoryFactoryImpl.systemRepository() on incomplete declaring bean Managed Bean [class org.guvnor.structure.backend.repositories.RepositoryFactoryImpl] with qualifiers [@Any @Default] due to circular injection
      WARN  [org.jboss.weld.Bean] WELD-000018: Executing producer field or method [BackedAnnotatedMethod] @Produces @Named public org.optaplanner.workbench.backend.server.ApplicationScopedProducer.ioService() on incomplete declaring bean Managed Bean [class org.optaplanner.workbench.backend.server.ApplicationScopedProducer] with qualifiers [@Any @Default] due to circular injection
      WARN  [org.jboss.weld.Bean] WELD-000018: Executing producer field or method [BackedAnnotatedMethod] @Produces @RequestScoped public org.optaplanner.workbench.backend.server.ApplicationScopedProducer.getIdentity() on incomplete declaring bean Managed Bean [class org.optaplanner.workbench.backend.server.ApplicationScopedProducer] with qualifiers [@Any @Default] due to circular injection
      WARN  [org.jboss.weld.Bean] WELD-000018: Executing producer field or method [BackedAnnotatedMethod] @Produces @RequestScoped public org.optaplanner.workbench.backend.server.ApplicationScopedProducer.getIdentity() on incomplete declaring bean Managed Bean [class org.optaplanner.workbench.backend.server.ApplicationScopedProducer] with qualifiers [@Any @Default] due to circular injection
      WARN  [org.jboss.weld.Bean] WELD-000018: Executing producer field or method [BackedAnnotatedMethod] @Produces @RequestScoped public org.optaplanner.workbench.backend.server.ApplicationScopedProducer.getIdentity() on incomplete declaring bean Managed Bean [class org.optaplanner.workbench.backend.server.ApplicationScopedProducer] with qualifiers [@Any @Default] due to circular injection
      ...
      
      
                              [WARN] Line 63 column 30: encountered "=". Was expecting one of: "+" "-" "," "/" ")" <STRING> <IDENT> <NUMBER> <URL> <PERCENTAGE> <PT> <MM> <CM> <PC> <IN> <PX> <EMS> <EXS> <DEG> <RAD> <GRAD> <MS> <SECOND> <HZ> <KHZ> <DIMEN> <HASH> <UNICODERANGE> <FUNCTION> 
      ...
                        [WARN] Error writing out generated unit at '/tmp/gwt-codeserver-8789556599989652894.tmp/org.optaplanner.workbench.OptaPlannerWorkbench/compile-2/gen/org/jboss/errai/ioc/client/Type_factory__o_k_w_c_s_s_m_c_c_c_p_ContainerProcessConfigView__quals__j_e_i_Any_j_e_i_Default_org_kie_workbench_common_screens_server_management_client_container_config_process_ContainerProcessConfigViewTemplateResource_default_InlineClientBundleGenerator.java': java.io.FileNotFoundException: /tmp/gwt-codeserver-8789556599989652894.tmp/org.optaplanner.workbench.OptaPlannerWorkbench/compile-2/gen/org/jboss/errai/ioc/client/Type_factory__o_k_w_c_s_s_m_c_c_c_p_ContainerProcessConfigView__quals__j_e_i_Any_j_e_i_Default_org_kie_workbench_common_screens_server_management_client_container_config_process_ContainerProcessConfigViewTemplateResource_default_InlineClientBundleGenerator.java (File name too long)
               Computing all possible rebind results for 'org.drools.workbench.screens.guided.template.client.resources.GuidedTemplateEditorResources'
                  Rebinding org.drools.workbench.screens.guided.template.client.resources.GuidedTemplateEditorResources
      ...
                              [WARN] Charset declaration detected. A charset at-rule is not relevant inside a style element
               Computing all possible rebind results for 'org.kie.workbench.common.screens.social.hp.client.resources.ContainerResources'
                  Rebinding org.kie.workbench.common.screens.social.hp.client.resources.ContainerResources
      ...
                              [WARN] Line 85 column 27: encountered "^". Was expecting one of: "|=" "~=" "=" "]" 
               Computing all possible rebind results for 'org.drools.workbench.screens.guided.dtable.client.resources.GuidedDecisionTableResources'
                  Rebinding org.drools.workbench.screens.guided.dtable.client.resources.GuidedDecisionTableResources
      ...
                              [WARN] Charset declaration detected. A charset at-rule is not relevant inside a style element
      ...
               Computing all possible rebind results for 'org.uberfire.ext.widgets.common.client.resources.CommonResources'
                  Rebinding org.uberfire.ext.widgets.common.client.resources.CommonResources
      ...
                              [WARN] Line 208 column 25: encountered "=". Was expecting one of: "+" "-" "," "/" ")" <STRING> <IDENT> <NUMBER> <URL> <PERCENTAGE> <PT> <MM> <CM> <PC> <IN> <PX> <EMS> <EXS> <DEG> <RAD> <GRAD> <MS> <SECOND> <HZ> <KHZ> <DIMEN> <HASH> <UNICODERANGE> <FUNCTION> 
      

      Report the errai/uberfire ones in the UF jira so Eder & Paulo can take a look (or send a PR to fix them upstream). Fix the drools-wb ones with PR's. Any that are in GWT, the drag&drop lib or otherwise upstream need to have an upstream issue report.

      Feel free to split this up in multiple issues (which is always ok to do).

            mcimbora_jira Matej Čimbora (Inactive)
            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: