我正在尝试为Hazelcast 3.12配置一个全局序列化程序(我的应用程序运行在payara 5上,它与这个版本的Hazelcast捆绑在一起,所以我无法更新到4.x)
public class MyGlobalStreamSerializer implements StreamSerializer<Object> {
private static FSTConfiguration conf = FSTConfiguration.createDefaultConfiguration();
@Override
public int getTypeId()
我有以下实体:
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Recipe {
private String title;
private int preparationTime;
public Recipe() {
}
public Recipe(String title, int preparationTime) {
this.title = title;
this.preparationTime = preparationT
简单地说,我需要为schema.json读取一个org.everit.json.schema文件。在Eclipse中,我天真地进行测试,我这样做:
new String(Files.readAllBytes(Paths.get("./src/main/resources/schemas/Schema.json"))));
但是,当编译并部署到Payara时,我得到了一个找不到的java异常文件。
在哪里或者什么是在代码中引用服务器上的文件的最佳方法(似乎找不到有文档的方法)。
我为一个简单的jakartaEE/JavaEE restful JPA web应用程序编写一个坞-撰写文件而挣扎了几天。DB是PostgreSQL,应用服务器是payara。此应用程序向DB插入几个条目,并在每个rest调用响应中返回集合。当我在本地安装的payara和Postgres中部署相同的应用程序时,它工作得很好。但它失败了,与码头-撰写与错误:
An error occurred during deployment: Class
com.docker.java.petstore.service.PetstoreService has unsupported major