glassfish-4.1

Cannot deploy EJB to Glassfish when using netbeans 11

匆匆过客 提交于 2019-12-11 14:32:13
问题 My question is similar to this one: https://apple.stackexchange.com/questions/64182/can-we-simply-rename-an-app-if-they-are-different-versions-and-keep-them-both When I attempt to deploy my EJB to Glassfish I see this: Exception while deploying the app [EntAppEJB-ejb] : Specified library jar javaee-api-8.0.jar does not exist: /Applications/NetBeans/Apache%20NetBeans%2011.1.app/Contents/Resources/NetBeans/enterprise/modules/ext/javaee-api-8.0.jar|#] Initializing Mojarra 2.3.9 for context ''|#]

java.lang.NullPointerException at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:272) while accessing JAX-WS services

喜你入骨 提交于 2019-12-10 06:46:45
问题 I'm getting the following exception while implementing JAX-WS services in a Java EE 7 application. Warning: Internal Server error: /Test-war/Test.xhtml java.lang.NullPointerException at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:272) at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167) at org.glassfish.grizzly.http.server

Glassfish error Exception during lifecycle processing java.nio.BufferUnderflowException

好久不见. 提交于 2019-12-08 14:20:13
问题 Why do i get the below error Exception during lifecycle processing java.nio.BufferUnderflowException at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:151) ..... Before the error i get multiple Unknow type constant pool 0 at position65 The pool Number and Position Number changes. When i deploy the ear file it works fine, the error come only after i restart the server (either system or glassfish). Some help/tips on where to look for the problem will be very usefull. Update Please find more

EclipseLink deserializes an empty entity object on remote EJB call

﹥>﹥吖頭↗ 提交于 2019-12-08 04:14:20
问题 I am using the current release of GlassFish 4.1 with EclipseLink version 2.5.2 included. At this GlassFish, I have an enterprise application and a web application deployed. If an EJB that returns a loaded entity, is called from outside the GlassFish (like an external JavaFX application), the entity is returned properly. But if the same EJB is called from the web application, the entity is not returned properly due to this bug GLASSFISH-17432. The workaround I already found here Calling Remote

Jersey Inject Weld managed bean into ConstraintValidator

 ̄綄美尐妖づ 提交于 2019-12-07 14:11:43
问题 I've been searching for hours to find a solution for my problem but I can't get it to work. I want to inject my Weld-managed service into a ConstraintValidator that is used to validate a User-Object that is posted to my JAX-RS Rest-Service. Everything is deployed to a glassfish 4.1 server. I have a Service like this @ApplicationScoped public class UserService { } and I want to inject it into a ConstraintValidator like this public class UniqueUserNameValidator implements ConstraintValidator

com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector not found — while using Swagger

。_饼干妹妹 提交于 2019-12-07 09:16:25
问题 my first post on SO and expecting good stuff in return :-) I have developed a small java restful services app and integrated with Swagger. I have @Controller -> @Service -> @Repository architecture. I have deployed on Glassfish (4.1.1), when I use Chrome's 'Advanced Rest Client', I am able to perfectly send and receive rest calls (GET/POST etc), but when I use Swagger, it throws the following exception 'after Controller returns the correct response'. I have been struggling with this by

Jersey Inject Weld managed bean into ConstraintValidator

二次信任 提交于 2019-12-05 21:33:12
I've been searching for hours to find a solution for my problem but I can't get it to work. I want to inject my Weld-managed service into a ConstraintValidator that is used to validate a User-Object that is posted to my JAX-RS Rest-Service. Everything is deployed to a glassfish 4.1 server. I have a Service like this @ApplicationScoped public class UserService { } and I want to inject it into a ConstraintValidator like this public class UniqueUserNameValidator implements ConstraintValidator<UniqueUserName, ApiUser> { @Inject private UserService service; @Override public void initialize

java.lang.NullPointerException at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:272) while accessing JAX-WS services

╄→гoц情女王★ 提交于 2019-12-05 14:51:05
I'm getting the following exception while implementing JAX-WS services in a Java EE 7 application. Warning: Internal Server error: /Test-war/Test.xhtml java.lang.NullPointerException at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:272) at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:459) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:167) at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:201) at org.glassfish.grizzly.http.server.HttpHandler.doHandle

com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector not found — while using Swagger

筅森魡賤 提交于 2019-12-05 14:48:49
my first post on SO and expecting good stuff in return :-) I have developed a small java restful services app and integrated with Swagger. I have @Controller -> @Service -> @Repository architecture. I have deployed on Glassfish (4.1.1), when I use Chrome's 'Advanced Rest Client', I am able to perfectly send and receive rest calls (GET/POST etc), but when I use Swagger, it throws the following exception 'after Controller returns the correct response'. I have been struggling with this by changing the maven entry versions, changing the moxy jar, delting felix as suggested in some forums etc, none

Pages being processed are merely left blank half way through on errors/exceptions instead of forwarding to the error page specified in web.xml

£可爱£侵袭症+ 提交于 2019-12-05 04:33:22
In web.xml, I have the following configurations for a global error page. <error-page> <error-code>401</error-code> <location>/WEB-INF/error_pages/GeneralError.xhtml</location> </error-page> <error-page> <error-code>403</error-code> <location>/WEB-INF/error_pages/GeneralError.xhtml</location> </error-page> <error-page> <error-code>404</error-code> <location>/WEB-INF/error_pages/GeneralError.xhtml</location> </error-page> <error-page> <error-code>500</error-code> <location>/WEB-INF/error_pages/GeneralError.xhtml</location> </error-page> <error-page> <error-code>503</error-code> <location>/WEB