Which version of EAP6 are you using ?
Can you please check if you have the following entry added to your "$JBOSS_HOME/modules/sun/jdk/main/module.xml"
<path name="sun/print"/> <path name="sun/print/resources"/>
Also find the "$JAVA_HOME/jre/lib/resources.jar" and from this jar extract the files "META-INF/services/javax.print.PrintServiceLookup" and "META-INF/services/javax.print.StreamPrintServiceFactory" and place them inside the "$JBOSS_HOME/modules/sun/jdk/main/service-loader-resources/META-INF/services/" directory and then try again.
Thanks for your response,
I'm using EAP6.4 and the module.xml is correct.
But, let's me explain again my problem.
We used to work with JBoss Community 7.1.1 on Windows
To make our applications discover printers, we had to put the two files "javax.print.PrintServiceLookup" and "javax.print.StreamPrintServiceFactory" and it's worked well.
Now, we migrated our applications on JBoss EAP6.4 on Red Hat
During the migration we forgot to place these two files ... and our applications work nevertheless !
I don't need these files to make it works.
I point out we use CUPS since we are on Linux.
So, these two files are not useful on JBoss EAP6.4 (Red Hat).
I would like to know why ?
These two files define the implementations to use. Are these implementations native configured in EAP6.4 ?