This articles explains how to use MOXy with JAXB to avoid needless POJO creations.
You can read it here
web.xml, finally annotate the
resources, methods and models to complete the configurations. Our team
recently built a Java EE 7 application for a RESTful web service. The
goal of this article is to share our experiences of configuring Swagger
in Glassfish 4 without a web.xml. <build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>fully.qualified.MainClass</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
</plugins>
</build>
and you run it withmvn clean compile assembly:single
Compile goal should be added before assembly:single or otherwise the code on your own project is not included.
javax.net.ssl.SSLHandshakeException: sun.security.validator.
ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target.
We experienced this issue when a server changed their HTTPS SSL certificate, and our older version of
java did not recognize the root certificate authority (CA)../jdk1.6.0_24/jre/lib/security/cacerts
./jre1.6.0_24/lib/security/cacerts
Different versions of java can have different cacerts.javax.net.ssl.trustStore
javax.net.ssl.trustStorePassword
Once you have your keystore, dump its contents by using the list option.keytool -list -v -keystore /path/to/cacerts > java_cacerts.txt
Enter keystore password: changeit
In this example, /path/to/cacerts is the location of your cacerts file, and the output
of the command will be saved in java_cacerts.txt.keytool -import -alias example -keystore /path/to/cacerts -file example.der
You will be prompted for a password, use 'changeit'