Hi, I started trying to package Spago BI ( http://spagobi.com/ ) for Fedora.
An initial spec file I created mostly to understand what's being built is here: https://gerrit.ovirt.org/#/c/52375/1/specs/spagobi/spagobi.spec.in
The output of maven install is a set of war files which includes libraries and javascript libraries from external sources / projects (maven central mostly).
During the build, several jar files are created and not installed by mvn install.
I've searched for a packaging guidelines wiki page about packaging wildfly webapps and in IRC I've been pointed to thermostat package as example. I'm not realy sure to have understood what's expected from the package: - is it ok to just have the final war file in the package? - is it ok to have libraries (jar and js) from other packages included in the war file? (I know, I'm using mvn and not maven-local since I don't have packaged dependencies yet, but supposing they're in fedora, is it allowed to have them in the war file?
Help with the packaging effort is welcome :-)
hi now seem landed @ https://github.com/SpagoBILabs/SpagoBI
Il 19/01/2016 12:16, Sandro Bonazzola ha scritto:
Hi, I started trying to package Spago BI ( http://spagobi.com/ ) for Fedora.
An initial spec file I created mostly to understand what's being built is here: https://gerrit.ovirt.org/#/c/52375/1/specs/spagobi/spagobi.spec.in
The output of maven install is a set of war files which includes libraries and javascript libraries from external sources / projects (maven central mostly).
war format is not supported (ask to mizdebsk)
During the build, several jar files are created and not installed by mvn install.
can you post somewhere a build.log?
I've searched for a packaging guidelines wiki page about packaging wildfly webapps and in IRC I've been pointed to thermostat package as example. I'm not realy sure to have understood what's expected from the package:
- is it ok to just have the final war file in the package?
- is it ok to have libraries (jar and js) from other packages included
in the war file? (I know, I'm using mvn and not maven-local since I don't have packaged dependencies yet, but supposing they're in fedora, is it allowed to have them in the war file?
wildfly, if it is not already happened, it should be retired (ask to mgoldman)
Help with the packaging effort is welcome :-)
regards .g
-- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com http://redhat.com
-- java-devel mailing list java-devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/java-devel
On Tue, Jan 19, 2016 at 6:55 PM, gil puntogil@libero.it wrote:
hi now seem landed @ https://github.com/SpagoBILabs/SpagoBI
They're using github only as backup for now, github is not updated very often. I'm working with upstream for getting them moving to github as primary repository.
Il 19/01/2016 12:16, Sandro Bonazzola ha scritto:
Hi, I started trying to package Spago BI ( http://spagobi.com/ http://spagobi.com/ ) for Fedora.
An initial spec file I created mostly to understand what's being built is here: https://gerrit.ovirt.org/#/c/52375/1/specs/spagobi/spagobi.spec.in
The output of maven install is a set of war files which includes libraries and javascript libraries from external sources / projects (maven central mostly).
war format is not supported (ask to mizdebsk)
Added to the discussion. Any wiki page about this?
During the build, several jar files are created and not installed by mvn install.
can you post somewhere a build.log?
state.log: http://ur1.ca/ofkbe root.log: http://ur1.ca/ofkbk build.log: http://resources.ovirt.org/repos/testing/build.log
I've searched for a packaging guidelines wiki page about packaging wildfly webapps and in IRC I've been pointed to thermostat package as example. I'm not realy sure to have understood what's expected from the package:
- is it ok to just have the final war file in the package?
- is it ok to have libraries (jar and js) from other packages included in
the war file? (I know, I'm using mvn and not maven-local since I don't have packaged dependencies yet, but supposing they're in fedora, is it allowed to have them in the war file?
wildfly, if it is not already happened, it should be retired (ask to mgoldman)
Marek, Vaclav, aren't you going to package Wildfly 10 for Fedora? o_O SpagoBI can run with tomcat as well but being oVirt 4.0 on Wildfly 10 we'd like to get it running on the same application server.
Help with the packaging effort is welcome :-)
regards .g
-- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com
-- java-devel mailing listjava-devel@lists.fedoraproject.orghttps://admin.fedoraproject.org/mailman/listinfo/java-devel
-- java-devel mailing list java-devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/java-devel
On Wed, 2016-01-20 at 11:01 +0100, Sandro Bonazzola wrote:
I've searched for a packaging guidelines wiki page about packaging wildfly webapps and in IRC I've been pointed to thermostat package as example. I'm not realy sure to have understood what's expected from the package:
- is it ok to just have the final war file in the package?
- is it ok to have libraries (jar and js) from other packages
included in the war file? (I know, I'm using mvn and not maven- local since I don't have packaged dependencies yet, but supposing they're in fedora, is it allowed to have them in the war file?
wildfly, if it is not already happened, it should be retired (ask to mgoldman)
Marek, Vaclav, aren't you going to package Wildfly 10 for Fedora? o_O
See: https://lists.fedoraproject.org/pipermail/java-devel/2015-August/005660.html https://copr.fedoraproject.org/coprs/goldmann/wildfly/
SpagoBI can run with tomcat as well but being oVirt 4.0 on Wildfly 10 we'd like to get it running on the same application server.
Cheers, Severin
The output of maven install is a set of war files which includes libraries and javascript libraries from external sources / projects (maven central mostly).
war format is not supported (ask to mizdebsk)
Added to the discussion. Any wiki page about this?
XMvn does support installing various file types, but it doesn't automatically install WAR files because they are not standardized in Fedora - there is no consensus where and how they should be installed.
Once consensus is reached, adding WAR support should be trivial and it only requires adding an entry in global javapackages config file, like the following one, which tells XMvn that all HPI files (Jenkins/Hudson plugins) should be installed into /usr/share/jenkins/plugins:
https://github.com/mizdebsk/javapackages/blob/f272f89/configs/configuration....
On Wed, Jan 20, 2016 at 11:15 AM, Mikolaj Izdebski mizdebsk@redhat.com wrote:
The output of maven install is a set of war files which includes
libraries
and javascript libraries from external sources / projects (maven central mostly).
war format is not supported (ask to mizdebsk)
Added to the discussion. Any wiki page about this?
XMvn does support installing various file types, but it doesn't automatically install WAR files because they are not standardized in Fedora - there is no consensus where and how they should be installed.
has anybody already started the discussion in order to reach a consensus?
Once consensus is reached, adding WAR support should be trivial and it only requires adding an entry in global javapackages config file, like the following one, which tells XMvn that all HPI files (Jenkins/Hudson plugins) should be installed into /usr/share/jenkins/plugins:
https://github.com/mizdebsk/javapackages/blob/f272f89/configs/configuration....
-- Mikolaj Izdebski Software Engineer, Red Hat IRC: mizdebsk
On 01/20/2016 11:23 AM, Sandro Bonazzola wrote:
XMvn does support installing various file types, but it doesn't automatically install WAR files because they are not standardized in Fedora - there is no consensus where and how they should be installed.
has anybody already started the discussion in order to reach a consensus?
This has been discussed several times on java-devel (you can browse list archives) and there are some proposal (rejected or inactive).
https://fedoraproject.org/wiki/PackagingDrafts/JavaWebApps http://dep.debian.net/deps/dep7/ https://lists.fedoraproject.org/pipermail/java-devel/2013-July/004835.html https://lists.fedoraproject.org/pipermail/java-devel/2011-September/004260.h...
On Wed, Jan 20, 2016 at 11:34 AM, Mikolaj Izdebski mizdebsk@redhat.com wrote:
On 01/20/2016 11:23 AM, Sandro Bonazzola wrote:
XMvn does support installing various file types, but it doesn't automatically install WAR files because they are not standardized in Fedora - there is no consensus where and how they should be installed.
has anybody already started the discussion in order to reach a consensus?
This has been discussed several times on java-devel (you can browse list archives) and there are some proposal (rejected or inactive).
https://fedoraproject.org/wiki/PackagingDrafts/JavaWebApps http://dep.debian.net/deps/dep7/ https://lists.fedoraproject.org/pipermail/java-devel/2013-July/004835.html
https://lists.fedoraproject.org/pipermail/java-devel/2011-September/004260.h...
Thanks for the pointers, will read them.
-- Mikolaj Izdebski Software Engineer, Red Hat IRC: mizdebsk
Hi Sandro et al,
Marek is now swamped by other work as far as what he told me and doesn't have the capacity currently to continue with Wildfy packaging in Fedora - we would welcome volunteers to help with this.
See: https://lists.fedoraproject.org/pipermail/java-devel/2015-August/005660.html
Currently Fedora uses different way of packaging that what we use for the products, so it's difficult for us to port this back to the old buildArch RPM way of doing stuff.
The decision how to proceed is still open, I will inform our team of your request and we will see how to tackle this.
Vaclav
On 01/20/2016 10:01 AM, Sandro Bonazzola wrote:
On Tue, Jan 19, 2016 at 6:55 PM, gil puntogil@libero.it wrote:
hi now seem landed @ https://github.com/SpagoBILabs/SpagoBI
They're using github only as backup for now, github is not updated very often. I'm working with upstream for getting them moving to github as primary repository.
Il 19/01/2016 12:16, Sandro Bonazzola ha scritto:
Hi, I started trying to package Spago BI ( http://spagobi.com/ http://spagobi.com/ ) for Fedora.
An initial spec file I created mostly to understand what's being built is here: https://gerrit.ovirt.org/#/c/52375/1/specs/spagobi/spagobi.spec.in
The output of maven install is a set of war files which includes libraries and javascript libraries from external sources / projects (maven central mostly).
war format is not supported (ask to mizdebsk)
Added to the discussion. Any wiki page about this?
During the build, several jar files are created and not installed by mvn install.
can you post somewhere a build.log?
state.log: http://ur1.ca/ofkbe root.log: http://ur1.ca/ofkbk build.log: http://resources.ovirt.org/repos/testing/build.log
I've searched for a packaging guidelines wiki page about packaging wildfly webapps and in IRC I've been pointed to thermostat package as example. I'm not realy sure to have understood what's expected from the package:
- is it ok to just have the final war file in the package?
- is it ok to have libraries (jar and js) from other packages included in
the war file? (I know, I'm using mvn and not maven-local since I don't have packaged dependencies yet, but supposing they're in fedora, is it allowed to have them in the war file?
wildfly, if it is not already happened, it should be retired (ask to mgoldman)
Marek, Vaclav, aren't you going to package Wildfly 10 for Fedora? o_O SpagoBI can run with tomcat as well but being oVirt 4.0 on Wildfly 10 we'd like to get it running on the same application server.
Help with the packaging effort is welcome :-)
regards .g
-- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com
-- java-devel mailing listjava-devel@lists.fedoraproject.orghttps://admin.fedoraproject.org/mailman/listinfo/java-devel
-- java-devel mailing list java-devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/java-devel
On Tue, Jan 19, 2016 at 6:55 PM, gil puntogil@libero.it wrote:
hi now seem landed @ https://github.com/SpagoBILabs/SpagoBI
Il 19/01/2016 12:16, Sandro Bonazzola ha scritto:
Hi, I started trying to package Spago BI ( http://spagobi.com/ http://spagobi.com/ ) for Fedora.
An initial spec file I created mostly to understand what's being built is here: https://gerrit.ovirt.org/#/c/52375/1/specs/spagobi/spagobi.spec.in
The output of maven install is a set of war files which includes libraries and javascript libraries from external sources / projects (maven central mostly).
war format is not supported (ask to mizdebsk)
During the build, several jar files are created and not installed by mvn install.
can you post somewhere a build.log?
Started splitting up some things: spagobi-parent : https://gerrit.ovirt.org/#/c/52461/4/specs/spagobi-parent/spagobi-parent.spe... spagobi-utils-json : https://gerrit.ovirt.org/#/c/52500/1/specs/spagobi-utils-json/spagobi-utils-...
now following the build sequence, I should build spagobi-utils but just running "xmvn -o package" in the source tree I have:
[ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/tools/dataset/bo/CustomDataSet.java:[26,24] cannot find symbol symbol: class LogMF location: package org.apache.log4j [ERROR] /NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/tools/dataset/persist/temporarytable/DatasetTemporaryTableUtils.java:[20,24] cannot find symbol symbol: class LogMF location: package org.apache.log4j [ERROR] /NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/commons/bo/CustomJDBCAppender.java:[11,29] package org.apache.log4j.jdbc does not exist [ERROR] /NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/commons/bo/CustomJDBCAppender.java:[21,41] cannot find symbol symbol: class JDBCAppender [ERROR] /NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/tools/dataset/bo/AbstractCustomDataSet.java:[30,24] cannot find symbol symbol: class LogMF location: package org.apache.log4j [ERROR] /NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/tools/dataset/ckan/CKANClient.java:[53,48] cannot find symbol symbol: class ApacheHttpClientExecutor location: package org.jboss.resteasy.client.core.executors [ERROR] /NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/tools/dataset/ckan/CKANClient.java:[70,17] cannot find symbol symbol: class ApacheHttpClientExecutor location: class it.eng.spagobi.tools.dataset.ckan.CKANClient [ERROR] /NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/security/oauth2/OAuth2Client.java:[19,24] cannot find symbol symbol: class LogMF location: package org.apache.log4j [INFO] 8 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.124 s [INFO] Finished at: 2016-01-20T14:28:25+01:00 [INFO] Final Memory: 31M/286M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project SpagoBIUtils: Compilation failure: Compilation failure: [ERROR] /NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/tools/dataset/bo/CustomDataSet.java:[26,24] cannot find symbol [ERROR] symbol: class LogMF [ERROR] location: package org.apache.log4j [ERROR] /NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/tools/dataset/persist/temporarytable/DatasetTemporaryTableUtils.java:[20,24] cannot find symbol [ERROR] symbol: class LogMF [ERROR] location: package org.apache.log4j [ERROR] /NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/commons/bo/CustomJDBCAppender.java:[11,29] package org.apache.log4j.jdbc does not exist [ERROR] /NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/commons/bo/CustomJDBCAppender.java:[21,41] cannot find symbol [ERROR] symbol: class JDBCAppender [ERROR] /NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/tools/dataset/bo/AbstractCustomDataSet.java:[30,24] cannot find symbol [ERROR] symbol: class LogMF [ERROR] location: package org.apache.log4j [ERROR] /NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/tools/dataset/ckan/CKANClient.java:[53,48] cannot find symbol [ERROR] symbol: class ApacheHttpClientExecutor [ERROR] location: package org.jboss.resteasy.client.core.executors [ERROR] /NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/tools/dataset/ckan/CKANClient.java:[70,17] cannot find symbol [ERROR] symbol: class ApacheHttpClientExecutor [ERROR] location: class it.eng.spagobi.tools.dataset.ckan.CKANClient [ERROR] /NotBackedUp/sbonazzo/upstream/spagobi-5.2.0/SpagoBIUtils/src/main/java/it/eng/spagobi/security/oauth2/OAuth2Client.java:[19,24] cannot find symbol [ERROR] symbol: class LogMF [ERROR] location: package org.apache.log4j [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
I suspect something related to log4j API changes, any hint?
I've searched for a packaging guidelines wiki page about packaging wildfly webapps and in IRC I've been pointed to thermostat package as example. I'm not realy sure to have understood what's expected from the package:
- is it ok to just have the final war file in the package?
- is it ok to have libraries (jar and js) from other packages included in
the war file? (I know, I'm using mvn and not maven-local since I don't have packaged dependencies yet, but supposing they're in fedora, is it allowed to have them in the war file?
wildfly, if it is not already happened, it should be retired (ask to mgoldman)
Help with the packaging effort is welcome :-)
regards .g
-- Sandro Bonazzola Better technology. Faster innovation. Powered by community collaboration. See how it works at redhat.com
-- java-devel mailing listjava-devel@lists.fedoraproject.orghttps://admin.fedoraproject.org/mailman/listinfo/java-devel
-- java-devel mailing list java-devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/java-devel
Il 20/01/2016 14:29, Sandro Bonazzola ha scritto:
cannot find symbol symbol: class LogMF location: package org.apache.log4j
this error is cause by unavailable log4j12 in classpath try with %pom_change_dep :log4j ::1.2.17 SpagoBIUtils
cannot find symbol symbol: class ApacheHttpClientExecutor location: package org.jboss.resteasy.client.core.executors this error is related to our resteasy version. now resteasy, provides support for apache httpcomponents (4) instead of commons-httpclient, see http://grepcode.com/file/repository.jboss.org$nexus$content$repositories$rel...
i see other problem related to some not upgradable libraries (for now):
com.jayway.jsonpath:json-path:2.0.0 net.minidev:json-smart:2.1.1
used by springframework stuff ...
some packaged libraries: https://gil.fedorapeople.org/cassandra/super-csv-2.3.1-1.fc22.src.rpm https://gil.fedorapeople.org/cometd-3.0.3-1.fc20.src.rpm
regards .g
On Wed, Jan 20, 2016 at 6:51 PM, gil puntogil@libero.it wrote:
Il 20/01/2016 14:29, Sandro Bonazzola ha scritto:
cannot find symbol symbol: class LogMF location: package org.apache.log4j
this error is cause by unavailable log4j12 in classpath try with %pom_change_dep :log4j ::1.2.17 SpagoBIUtils
thanks, this worked
cannot find symbol symbol: class ApacheHttpClientExecutor location: package org.jboss.resteasy.client.core.executors this error is related to our resteasy version. now resteasy, provides support for apache httpcomponents (4) instead of commons-httpclient, see
http://grepcode.com/file/repository.jboss.org$nexus$content$repositories$rel...
i see other problem related to some not upgradable libraries (for now):
com.jayway.jsonpath:json-path:2.0.0 net.minidev:json-smart:2.1.1
used by springframework stuff ...
I asked spagobi upstream to take a look as well
some packaged libraries: https://gil.fedorapeople.org/cassandra/super-csv-2.3.1-1.fc22.src.rpm
this worked as well.
this need some love, 3.0.9 is out and failing on jetty API
regards .g
java-devel@lists.fedoraproject.org