我们在项目的其他组件中使用复合组件.在JBoss 7.1.0上一切正常,但在JBoss 7.1.1上,我们得到如下错误:
No handlers found for exception javax.faces.view.facelets.TagException:
/resources/components/my/bigComponent.xhtml @21,47 <my:nestedComponent>
Tag Library supports namespace: http://java.sun.com/jsf/composite/components/my,
but no tag was defined for name: nestedComponent
Run Code Online (Sandbox Code Playgroud)
我们尝试了这个JBoss社区线程中提出的解决方案,但它没有改变我们的问题(在这种情况下接缝我们不是唯一的,并且解决方案可能不起作用,因为我们也在ui:define模板文件的标签中) .
这是我们的两个组成部
嵌套:
<!DOCTYPE html PUBLIC ...>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:cc="http://java.sun.com/jsf/composite"
xmlns:my="http://java.sun.com/jsf/composite/components/my" >
<cc:interface componentType="...">
<h:panelGroup>
<cc:attribute name="someAttribute" />
</h:panelGroup>
</cc:interface>
<cc:implementation>
<my:nestedComponent content="a text" />
</cc:implementation>
</html>
Run Code Online (Sandbox Code Playgroud)
嵌套:
<!DOCTYPE html PUBLIC ...>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:cc="http://java.sun.com/jsf/composite">
<cc:interface>
<cc:attribute name="content" />
</cc:interface>
<cc:implementation>
<h:outputText …Run Code Online (Sandbox Code Playgroud) 我们在Eclipse Indigo下编写了一个Java6项目,目前我们在Eclipse下的开发环境和与Jenkins的集成环境之间存在一些编译差异.
事实是我们只在Jenkins上获得了一些编译错误,例如:
both define … but with unrelated return types 当一个接口继承自两个声明相同方法的接口时(具有不同但兼容的类型)no unique maximal instance exists for type variable B with upper bounds I,…对于某些返回原始类型B而不是更具体的方法B<C>.这里的问题不是解决这个问题; 在我们的源代码中进行了一些更改后,我们成功地编译了Jenkins.
问题是:为什么Jenkins以不同于Eclipse的方式编译?是否有一些神奇的参数给编译器或JVM可以产生如此大的差异?
我们有一个 WildFly 18,具有以下日志记录策略:
<server xmlns="urn:jboss:domain:10.0">
...
<profile>
...
<subsystem xmlns="urn:jboss:domain:logging:8.0">
...
<periodic-size-rotating-file-handler name="FILE" autoflush="true">
<formatter>
<named-formatter name="PATTERN"/>
</formatter>
<file relative-to="jboss.server.log.dir" path="server.log"/>
<rotate-size value="100M"/>
<max-backup-index value="10"/>
<suffix value=".yyyy-MM-dd"/>
<append value="true"/>
</periodic-size-rotating-file-handler>
Run Code Online (Sandbox Code Playgroud)
即使我们periodic-size-rotating-file-handler用 a 指定 a max-backup-index,所有server.log文件都会保留并且永远不会被删除:
我们在这里做错了什么?
我们有一个使用 Spring Boot 和 Flyway 的项目。
当我们运行失败的迁移且日志级别全部设置为 DEBUG 时,我们只收到以下消息:
[DEBUG] org.flywaydb.core.internal.command.DbValidate - Validating migrations ...
[DEBUG] org.flywaydb.core.internal.scanner.Scanner - Filtering out resource: db/migration/V1/V1_202103081030__account.sql (filename: V1_202103081030__account.sql)
[DEBUG] org.flywaydb.core.internal.scanner.Scanner - Filtering out resource: db/migration/V1/V1_202103081040__place.sql (filename: V1_202103081040__place.sql)
[DEBUG] org.flywaydb.core.internal.scanner.Scanner - Filtering out resource: db/migration/V1/V1_202103151608__document.sql (filename: V1_202103151608__document.sql)
[DEBUG] org.flywaydb.core.Flyway - Memory usage: 147 of 254M
[ERROR] org.springframework.boot.web.embedded.tomcat.TomcatStarter - Error starting Tomcat context. Exception: org.springframework.beans.factory.UnsatisfiedDependencyException. Message: Error creating bean with name 'webSecurityConfig': Unsatisfied dependency expressed through method 'setContentNegotationStrategy' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating …Run Code Online (Sandbox Code Playgroud) compilation ×1
eclipse ×1
flyway ×1
java ×1
jboss7.x ×1
jenkins ×1
jsf-2 ×1
jvm ×1
logging ×1
spring ×1
spring-boot ×1
wildfly ×1
wildfly-18 ×1