Bug 1163164
Summary: | [F21] ovirt-engine-reports fails to build on Fedora 21 | |||
---|---|---|---|---|
Product: | [Retired] ovirt-engine-reports | Reporter: | Sandro Bonazzola <sbonazzo> | |
Component: | General | Assignee: | Shirly Radco <sradco> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Lukas Svaty <lsvaty> | |
Severity: | high | Docs Contact: | ||
Priority: | unspecified | |||
Version: | --- | CC: | bugs, didi, gklein, lsurette, lveyde, rbalakri, sradco, stirabos, yeylon, ykaul, ylavi | |
Target Milestone: | ovirt-3.6.0-rc | Flags: | rule-engine:
ovirt-3.6.0+
ylavi: planning_ack+ rule-engine: devel_ack+ pstehlik: testing_ack+ |
|
Target Release: | 3.6.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
URL: | http://jenkins.ovirt.org/view/Publishers/job/ovirt-reports_master_create-rpms-fc21-x86_64_merged/6/ | |||
Whiteboard: | integration | |||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1172045 (view as bug list) | Environment: | ||
Last Closed: | 2016-02-02 16:22:30 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | Integration | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1163062, 1172045 |
Description
Sandro Bonazzola
2014-11-12 12:55:52 UTC
ant -verbose shows: [javac] Compiling 2 source files to /root/ovirt-reports/ovirt-engine-reports/EngineAuthentication/target [javac] Using modern compiler [javac] Compilation arguments: [javac] '-d' [javac] '/root/ovirt-reports/ovirt-engine-reports/EngineAuthentication/target' [javac] '-classpath' [javac] '/root/ovirt-reports/ovirt-engine-reports/EngineAuthentication/target:/usr/share/jasperreports-server/buildomatic/conf_source/ieCe/lib/commons-logging-1.0.4.jar:/usr/share/jasperreports-server/buildomatic/conf_source/ieCe/lib/commons-logging-api-1.1.jar:/usr/share/jasperreports-server/buildomatic/conf_source/ieCe/lib/jasperserver-api-metadata-impl-5.5.0.jar:/usr/share/jasperreports-server/buildomatic/conf_source/ieCe/lib/servlet-api-2.4.jar:/usr/share/jasperreports-server/buildomatic/conf_source/ieCe/lib/spring-core-3.1.0.RELEASE.jar:/usr/share/jasperreports-server/buildomatic/conf_source/ieCe/lib/spring-context-3.1.0.RELEASE.jar:/usr/share/jasperreports-server/buildomatic/conf_source/ieCe/lib/spring-context-support-3.1.0.RELEASE.jar:/usr/share/jasperreports-server/buildomatic/conf_source/ieCe/lib/spring-beans-3.1.0.RELEASE.jar:/usr/share/jasperreports-server/buildomatic/conf_source/ieCe/lib/spring-security-core-2.0.7.RELEASE.jar' [javac] '-sourcepath' [javac] '/root/ovirt-reports/ovirt-engine-reports/EngineAuthentication/src' [javac] '-target' [javac] '1.7' [javac] '-encoding' [javac] 'utf-8' [javac] '-g:lines,vars,source' [javac] '-source' [javac] '1.7' [javac] [javac] The ' characters around the executable and arguments are [javac] not part of the command. [javac] Files to be compiled: [javac] /root/ovirt-reports/ovirt-engine-reports/EngineAuthentication/src/main/java/org/ovirt/authentication/EngineSimplePreAuthFilter.java [javac] /root/ovirt-reports/ovirt-engine-reports/EngineAuthentication/src/main/java/org/ovirt/authentication/EngineUserDetails.java [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7 [javac] /root/ovirt-reports/ovirt-engine-reports/EngineAuthentication/src/main/java/org/ovirt/authentication/EngineSimplePreAuthFilter.java:164: error: cannot access User [javac] UsernamePasswordAuthenticationToken originalAuthentication = (UsernamePasswordAuthenticationToken) metadataUserDetails.getOriginalAuthentication(); [javac] ^ [javac] class file for com.jaspersoft.jasperserver.api.metadata.user.domain.User not found [javac] 1 error [javac] 1 warning [ant] Exiting /root/ovirt-reports/ovirt-engine-reports/EngineAuthentication/build.xml. [antcall] Exiting /root/ovirt-reports/build.xml. and I see in /usr/share/jasperreports-server/buildomatic/conf_source/ieCe/applicationContext.xml <bean id="mappingResourceFactory" class="com.jaspersoft.jasperserver.api.metadata.common.service.impl.ResourceFactoryImpl"> <property name="objectFactory" ref="objectFactory"/> <property name="implementationClassMappings"> <map> ... <entry key="com.jaspersoft.jasperserver.api.metadata.user.domain.User" value="com.jaspersoft.jasperserver.api.metadata.user.domain.client.UserImpl"/> Are we missing something in the build.xml for correctly mapping com.jaspersoft.jasperserver.api.metadata.user.domain.User ? I don't know ant enough to fix it myself. This fixes the build on F21: diff --git a/ovirt-engine-reports/EngineAuthentication/build.xml b/ovirt-engine-reports/EngineAuthentication/build.xml index f45bf9d..6571009 100644 --- a/ovirt-engine-reports/EngineAuthentication/build.xml +++ b/ovirt-engine-reports/EngineAuthentication/build.xml @@ -5,6 +5,8 @@ <path id="local.classpath"> <fileset dir="${jasper.lib}"><filename name="commons-logging-*.jar"/></fileset> + <fileset dir="${jasper.lib}"><filename name="jasperserver-api-common-*.jar"/></fileset> + <fileset dir="${jasper.lib}"><filename name="jasperserver-api-metadata-*.jar"/></fileset> <fileset dir="${jasper.lib}"><filename name="jasperserver-api-metadata-impl-*.jar"/></fileset> <fileset dir="${jasper.lib}"><filename name="servlet-api-*.jar"/></fileset> <fileset dir="${jasper.lib}"><filename name="spring-core-*.jar"/></fileset> Pushed a fix to gerrit F21 is EOL since 2015-12-01, testing on F22/F23 new builds on F22/F23 successful: http://jenkins.ovirt.org/job/ovirt-reports_master_create-rpms-fc22-x86_64_created/ http://jenkins.ovirt.org/job/ovirt-reports_master_create-rpms-fc23-x86_64_created/ If this needs further verification on installation on F22/F23 pls move back to ON_QA |