osgi-extra-generated.conf contains false entries when static plugins are deployed
How to reproduce:
- deploy one or more static plugins into Dotcms
- shut down Dotcms
- remove dotCMS/WEB-INF/felix/osgi-extra-generated.conf
- start Dotcms
Dotcms has now created a new osgi-extra-generated.conf file containing all packages, but it also contains some package names containing a full path. This breaks the exported packages functionality.
See the snippets below:
Linux:
org.apache.hadoop.metrics.ganglia,
org.gagravarr.flac,
org.springframework.expression,
.app.dotcms.dotserver.dotCMS.WEB-INF.classes.nl.isaac.dotcms.isaac.viewtool,
org.apache.chemistry.opencmis.commons.enums,
org.codehaus.cargo.container.geronimo.internal,
ucar.nc2.ft.point.standard.plug,
org.apache.hadoop.io.compress.bzip2,
org.apache.chemistry.cmissql,
Windows:
com.ibm.icu.math,
org.apache.tika.parser.dwg,
org.apache.hadoop.hdfs.server.common,
org.bouncycastle.crypto.encodings,
org.apache.pdfbox.util.operator.pagedrawer,
ucar.nc2.iosp.netcdf3,
E:.Java.dotcms.dotserver.dotCMS.WEB-INF.classes.nl.isaac.dotcms.plugin.configuration.viewtool,
org.junit.internal,
org.apache.log4j.or,
net.sourceforge.squirrel_sql.plugins.mssql.tokenizer,
org.apache.bsf.engines.xslt,
org.apache.commons.digester.parser,
org.apache.bsf.engines.jython,
It depends on what you are deploying. It should still work and is just generated noise. But if your plugin is clean this should not happen
Hi Jason,
What do you mean with "if your plugin is clean"? Is there a way to prevent these entries from being created?
well I think there in a file in your plugin that generates this entry. But again it is no harm. The static plugins will place some different files in the jar
Actually, it does break things.
We discovered this on a Windows server of one of our customers. Several exported packages could not be found. After removing all of the entries starting with 'E:' the issues were solved.
Maybe it's the colon on Windows machines that's causing the issues..
Might be cause in UNIX it works in this case.
Fixed, Tested on Nightly Build 2014-04-28