0

I am new to Jersey and tomcat deployment.

I am trying to interface my webapp with an Epson TM82 printer.

However I am getting the First Error as shown

Fisrt error

when I try to access locally after deploying WAR file and upon refreshing I got another Second Error:

Second error

What is interesting is that when I run the deployment using Eclipse Java EE, the code runs and the printer is able to print.

I have checked

java -XshowSettings:properties

and library path and class path shows the correct location of the libraries and .so files.

May I know what is going on?

javapapo
  • 1,342
  • 14
  • 26

2 Answers2

0

You need to make sure the library (jar) is bundled in your WAR file under the WEB-INF/lib folder.

benjamin.d
  • 2,801
  • 3
  • 23
  • 35
0

Check java.library.path

Sample :

public class Test {

    public static void main(String[] args) {      
        System.out.println(System.getProperty("java.library.path"));
        System.loadLibrary("jp_co_epson_upos_firm_FirmNativeAccess");
    }
}

Make sure there is jp_co_ epson_upos_firm_FirmNativeAccess.dll in the path.

If you installed EPSON Java POS : Uninstall is completely and install is again.

Monty
  • 1,110
  • 7
  • 15