Payara 5 191 missing jar files

250 views
Skip to first unread message

Chad Conway

unread,
Mar 15, 2019, 12:14:35 PM3/15/19
to Payara Forum
Hello,

I have just downloaded Payara 5 191 this morning to begin evaluation to determine if it would be beneficial to migrate from Weblogic 12.2.1.3 to Payara Server.

Setup is easy enough if you're used to Glassfish but I am wondering why the Payara installation is missing what I would consider critical jar files for working with JSF applications.

The following jar files were not in the glassfish/modules directory

javax.jsf-<version>.jar
javax.validation-<version>.jar

So far I have the JSF jar being found and those errors eliminated from the applicaiton but eveb after adding the javax.validation jar to the modules directory and clearing the cache javax.validation Annotations are still not working.

V/R,
Chad

Chad Conway

unread,
Mar 19, 2019, 11:01:11 AM3/19/19
to Payara Forum
I apologize. I am using 5.184.

Ondro Mihályi

unread,
Mar 20, 2019, 7:10:58 AM3/20/19
to Payara Forum
Hi Chad,

There are these JAR files in the Payara Server 5.184 modules directory:
  • validation-api.jar - contains only APIs for Java EE validation
  • hibernate-validator.jar - contains the bean validation module of Payara Server
  • javax.faces.jar - contains JSF APIs and also the Mojarra JSF module of Payara Server (both interfaces and implementation
The same functionality exists in GlassFish 5.1 but in different JAR files:
  • bean-validator.jar - contains both Java EE validation APIs and the implementation, equivalent of validation-api.jar and hibernate-validator.jar together in Payara Server
  • jakarta.faces.jar - JSF API and Mojarra module, equivalent of javax.faces.jar in Payara Server

You shouldn't need to add any JARs to teh modules directory Payara Server or to your application. If you're application is build against the javaee-api JAR artifact (https://search.maven.org/classic/#artifactdetails%7Cjavax%7Cjavaee-api%7C8.0%7Cjar), you can simply deploy the application to Payara Server.

What's your setup for building your application?
Do you use Netbeans for your project or some other IDE or GlassFish plugin?

All the best,
Ondro

Chad Conway

unread,
Mar 25, 2019, 10:41:13 AM3/25/19
to Payara Forum
Hi Ondro,

Thank you for the response and clarification on the jar files.

There are these JAR files in the Payara Server 5.184 modules directory:
  • validation-api.jar - contains only APIs for Java EE validation - The jar file is there but errors occurr in the application where javax.validation.contraints are being used.
  • hibernate-validator.jar - contains the bean validation module of Payara Server - The jar file is there but errors occurr in the application where javax.validation.contraints are being used.
  • javax.faces.jar - contains JSF APIs and also the Mojarra JSF module of Payara Server (both interfaces and implementation - This jar was not present in the modules directory after installation
Unfortunately the application was not initially created using the maven artifact it was initially created as an enterprise application through Netbeans without using Maven.
The application is ran locally on the developers machines using the developer edition of Weblogic Server version 12.2.1.2 and connects to an Oracles 12C database.

I was hoping that it would be relatively painless to migrate the application as it is from Weblogic to Payara but maybe not. As soon as I have a chance I will create a new project in Netbeans using the Maven artifact and move over all of the code into the new project. This will take me a bit of time as the application is quite large.

Thanks again for the feedback it was very helpful and gives me a new direction to take. 

V/R,
Chad

Steve Millidge

unread,
Mar 25, 2019, 11:23:13 AM3/25/19
to Payara Forum
If validation is failing I would check the contents of your ear/war file to make sure you don't have a different version of these jars embedded in your application that is conflicting with the provided ones.

One thing to note is WebLogic is Java EE 7 while Payara supports Java EE 8 applications. We can provide migration assistance as part of our M&P support. 

Steve

Chad Conway

unread,
Mar 25, 2019, 11:31:01 AM3/25/19
to Payara Forum
Hi Steve,

The reason for looking in to using Payara is because Weblogic only supports JEE7.

There are only jars such as primefaces and poi packaed into either the WAR or EAR.

V/R,
Chad
Reply all
Reply to author
Forward
0 new messages