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?

4

2 回答 2

0

检查 java.library.path

样本 :

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");
    }
}

确保路径中有 jp_co_epson_upos_firm_FirmNativeAccess.dll。

如果您安装了 EPSON Java POS: 完全卸载并再次安装。

于 2015-12-28T12:18:37.443 回答
0

您需要确保库 (jar) 捆绑在 WEB-INF/lib 文件夹下的 WAR 文件中。

于 2015-12-28T11:37:56.690 回答