Unable to access sun.print package
The current felix configuration declares the following Sun' packages that are accessible from the bundles.
sun-extra-packages sun.misc;
sun.net.www.http;
sun.reflect;
sun.rmi.registry;
sun.rmi.server;
sun.rmi.transport;
sun.security.util;
sun.security.provider;
sun.util.calendar
When accessing to the printer, the following exception is thrown
Caused by: sun.misc.ServiceConfigurationError: javax.print.PrintServiceLookup: Provider sun.print.UnixPrintServiceLookup not found at sun.misc.Service.fail(Service.java:129) at sun.misc.Service.access000(Service.java:111) at sun.misc.ServiceLazyIterator.next(Service.java:273) at javax.print.PrintServiceLookup$1.run(PrintServiceLookup.java:328)
It is solved by adding the 'sun.print' packages in the $JONAS_BASE/conf/osgi/gateway.properties
org.osgi.framework.bootdelegation ${bootdelegation-packages},
sun.print,
sun.print.*
It would be easier for the user if 'sun.print' package was declared by default.