glassfish

@WebServlet fails in GlassFish 5 + JDK 13 with java.lang.RuntimeException: com.example.NewServlet.<init>(NewServlet.java:1), always at line 1

纵饮孤独 提交于 2021-01-13 09:10:16
问题 JSPs and html files are served by my Glassfish server in NetBeans, but not servlets. Latest NetBeans is configured to use JDK latest 13, and Glassfish is using Java EE 1.8 Error reported in the browser: HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: Error instantiating servlet class com.example.NewServlet

Lazy loading of @ManyToOne relation fails with GlassFish 4 / EclipseLink

 ̄綄美尐妖づ 提交于 2020-08-27 21:44:44
问题 GlassFish 4 (actually its JPA implementation, i.e. EclipseLink) fails to lazy load a @ManyToOne JPA relation from our Java EE 7 application. Default/eager loading is ok, but not lazy loading. The relation in the 'Student' entity is: @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "addr_id") private Address address; The (simplified) persistence.xml looks like: <persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi

Lazy loading of @ManyToOne relation fails with GlassFish 4 / EclipseLink

♀尐吖头ヾ 提交于 2020-08-27 21:43:11
问题 GlassFish 4 (actually its JPA implementation, i.e. EclipseLink) fails to lazy load a @ManyToOne JPA relation from our Java EE 7 application. Default/eager loading is ok, but not lazy loading. The relation in the 'Student' entity is: @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "addr_id") private Address address; The (simplified) persistence.xml looks like: <persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi

Glassfish 4.1 CDI WELD-001409: Ambiguous dependencies

不打扰是莪最后的温柔 提交于 2020-07-07 12:58:28
问题 I'm working in a project deployed in Glassfish 4.1 . Dependency injection is made using CDI and I'm having an issue when trying to deploy the application. The error I'm getting is the following (usually I "translate" the name of my classes in the code so the whole post is in the same language, I`ll not do that now so I can copy/paste and avoid some translate typing mistakes): Server log org.glassfish.deployment.common.DeploymentException: CDI deployment failure:Exception List with 3

Glassfish: Error in linking security policy for

 ̄綄美尐妖づ 提交于 2020-06-28 02:00:57
问题 I got an error while restarting or re-deploying an app to Glassfish and I get the exception below: com.sun.enterprise.admin.cli.CommandException: remote failure: Exception while loading the app : org.glassfish.deployment.common.DeploymentException: Error in linking security policy for appname -- Inconsistent Module State What should i do to solve this issue? 回答1: After googling for a couple of hours I found some replies and only this one worked for me: Remove the application folder which is