core icon indicating copy to clipboard operation
core copied to clipboard

osgi-extra-generated.conf contains false entries when static plugins are deployed

Open jorith88 opened this issue 12 years ago • 6 comments

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,

jorith88 avatar Mar 27 '14 12:03 jorith88

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

jtesser avatar Mar 27 '14 12:03 jtesser

Hi Jason,

What do you mean with "if your plugin is clean"? Is there a way to prevent these entries from being created?

jorith88 avatar Mar 27 '14 12:03 jorith88

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

jtesser avatar Mar 27 '14 13:03 jtesser

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..

jorith88 avatar Mar 27 '14 14:03 jorith88

Might be cause in UNIX it works in this case.

jtesser avatar Mar 27 '14 20:03 jtesser

Fixed, Tested on Nightly Build 2014-04-28

bryanboza avatar Apr 29 '14 17:04 bryanboza