Where to put external libs in Glassfish

前端 未结 2 1607
轮回少年
轮回少年 2021-01-04 19:45

I have created a JSF2 project with Netbeans 7 and successfully deployed it on Glassfish 3.1. The ear file has grown quite big (6.5mb) though, most of it consists of externa

2条回答
  •  臣服心动
    2021-01-04 20:36

    I think I can answer the question myself now: domain1/lib seems to be the right place to put all those jar files. At least it works perfectly on the 2 Linux boxes I tried and on my Mac. I also found out why it didnt work the same on my Windows 7 laptop. The domain path is user specific if you use the Glassfish install that comes with Netbeans, that means you have to put the jar files under

    C:\Users\`username`\.netbeans\7.0\config\GF3\domain1\lib

    to work as expectd, jars under

    C:\Program Files\glassfish-3.1\glassfish\domain\domain1\lib

    on the other hand seem to be ignored by the classloader.

提交回复
热议问题