Monday, November 26, 2018

Node JS installation behind firewall with ntlm authentication.

Strangely enough the ntlmaps.exe didn't work well with Nodejs.  Downloading of the dependencies and javascripts fails.

Quick solution for this was using px-proxy pyhon based proxy.

You can Install it with:

pip install px-proxy

and run it with:

px --proxy=X.X.X.X:port 

where X.X.X.X is Ip address of your firewall and port is the port used.

The catch here was that to use pip ... i used ntlmaps.exe  (see one of my previous posts)

So, you need a ntlm proxy (ntlmaps.exe)  to download ntlm proxy (px-proxy) behind firewall ;-)

Thursday, November 15, 2018

Glassfish 4.1.1 Rest Missing Library

When trying to Implement Rest ApI using jersey on Glassfish 4.1.1 the following exception in

thrown:
 java.lang.ClassNotFoundException:        com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector
not found by com.fasterxml.jackson.jaxrs.jackson-jaxrs-json-provider


This is due to missing library jackson-module-jaxb-annotations-2.5.4.jar in

 C:\Program Files\glassfish-4.1.1\glassfish\modules

 Putting it there solves the problem.

 Thanks to this blog

 https://javaeeblog.wordpress.com/2016/06/21/jackson-glassfish-4-1-1/