2 Replies Latest reply on Dec 3, 2015 10:28 PM by ERWANN LEROY

    Native configuration for PrintServiceLookup in EAP ?

    ERWANN LEROY Newbie

      Hi,

       

      We recently migrated from JBoss Community on Windows to EAP on Linux.

       

      In the Windows installation of JBoss, we configured the file javax.print.PrintServiceLookup in modules\sun\jdk\main\service-loader-resources\META-INF\services like this :

      # Provider for Java Print Service

      sun.print.Win32PrintServiceLookup

       

      In the Linux Installation (EAP), I thought it was necessary to configure like this :

      # Provider for Java Print Service

      sun.print.UnixPrintServiceLookup

       

      But, it was not useful ...

       

      Is it native-configured in JBoss EAP (and not in community) ?

       

      Regards,

       

      Erwann

        • 1. Re: Native configuration for PrintServiceLookup in EAP ?
          Jay SenSharma Master

          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.

          • 2. Re: Native configuration for PrintServiceLookup in EAP ?
            ERWANN LEROY Newbie

            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 ?

             

            Regards