glassfish

How do I configure Glassfish 5 to use Moxy as the default Provider?

不问归期 提交于 2021-02-20 02:20:19
问题 I’m migrating our web application from Glassfish 3 to Glassfish 5, and during the migration I ran across this error for a request. [2019-09-17T15:57:30.732-0600] [glassfish 5.0] [WARNING] [] [javax.enterprise.web] [tid: _ThreadID=241 _ThreadName=http-listener-2(27)] [timeMillis: 1568757450732] [levelValue: 900] [[ StandardWrapperValve[ClientControllers]: Servlet.service() for servlet ClientControllers threw exception java.lang.ClassCastException: [Z cannot be cast to [Ljava.lang.Object; at

How do I configure Glassfish 5 to use Moxy as the default Provider?

不想你离开。 提交于 2021-02-20 02:20:06
问题 I’m migrating our web application from Glassfish 3 to Glassfish 5, and during the migration I ran across this error for a request. [2019-09-17T15:57:30.732-0600] [glassfish 5.0] [WARNING] [] [javax.enterprise.web] [tid: _ThreadID=241 _ThreadName=http-listener-2(27)] [timeMillis: 1568757450732] [levelValue: 900] [[ StandardWrapperValve[ClientControllers]: Servlet.service() for servlet ClientControllers threw exception java.lang.ClassCastException: [Z cannot be cast to [Ljava.lang.Object; at

JavaWeb java.lang.NoClassDefFoundError: sun/security/ssl/HelloExtension

筅森魡賤 提交于 2021-02-17 05:59:51
问题 I'm getting an error when trying to use a JavaWeb project using Glassfish 5.0. Everytime it tries to bring data from my SQL Database it gives me this error. StandardWrapperValve[ListadoPersonas]: Servlet.service() for servlet ListadoPersonas threw exception java.lang.NoClassDefFoundError: sun/security/ssl/HelloExtension Here is the servlet ListadoEstadosCiviles where I call the function which brings the data back from my database GestorPersonas g = new GestorPersonas(); ArrayList<EstadoCivil>

Exception using Eclipse, GlassFish and Apache CXF

六月ゝ 毕业季﹏ 提交于 2021-02-10 08:14:27
问题 I am using Eclipse Juno v4.2 R2, an eclipse-internal GlassFish 3.1.2 (had the same problem with 3.1.2.2 before) and Apache CXF 2.7.1, trying to implement RESTful web services via JAX-RS. While the GlassFish server was starting up and deployment of the application was successful, the application cannot be deployed anymore since I restarted the IDE. When Eclipse tried to publish the application on GlassFish, I keep getting this error: Severe: wsdl file classpath:/org/apache/cxf/ws/discovery

Exception using Eclipse, GlassFish and Apache CXF

眉间皱痕 提交于 2021-02-10 08:13:22
问题 I am using Eclipse Juno v4.2 R2, an eclipse-internal GlassFish 3.1.2 (had the same problem with 3.1.2.2 before) and Apache CXF 2.7.1, trying to implement RESTful web services via JAX-RS. While the GlassFish server was starting up and deployment of the application was successful, the application cannot be deployed anymore since I restarted the IDE. When Eclipse tried to publish the application on GlassFish, I keep getting this error: Severe: wsdl file classpath:/org/apache/cxf/ws/discovery

Exception using Eclipse, GlassFish and Apache CXF

坚强是说给别人听的谎言 提交于 2021-02-10 08:11:37
问题 I am using Eclipse Juno v4.2 R2, an eclipse-internal GlassFish 3.1.2 (had the same problem with 3.1.2.2 before) and Apache CXF 2.7.1, trying to implement RESTful web services via JAX-RS. While the GlassFish server was starting up and deployment of the application was successful, the application cannot be deployed anymore since I restarted the IDE. When Eclipse tried to publish the application on GlassFish, I keep getting this error: Severe: wsdl file classpath:/org/apache/cxf/ws/discovery

localhost refuses to connect - ERR_CONNECTION_REFUSED

删除回忆录丶 提交于 2021-02-09 11:13:46
问题 I have a simple MVC web application where javascript code sends ajax requests to the controller and the controller sends back responses. I built the app 2 years ago and everything used to work fine. Now I tried to run the app again locally and met with the following problem: whenever an Ajax request is sent from the frontend to the controller (running on localhost), the localhost refuses to connect and I get an ERR_CONNECTION_REFUSED message in (chrome's) javascript-console. (In Safari's

How can we make logging sql statements in hibernate 5 and payara 5 [glassfish] work

隐身守侯 提交于 2021-02-08 10:23:21
问题 Iam forced to apply this question because everything else documented is not working. Goal: To log SQL statements as they are executed in the DB along with their bounded variables. Environment: Payara 5.182, Hibernate 5.3.2, SLF4j with Logback. It seems that the official approach is NOT to touch the persistence.xml to enable hibernate logging but to properly configure the logging framework. pom.xml <!-- Logging --> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic<

How can we make logging sql statements in hibernate 5 and payara 5 [glassfish] work

廉价感情. 提交于 2021-02-08 10:19:41
问题 Iam forced to apply this question because everything else documented is not working. Goal: To log SQL statements as they are executed in the DB along with their bounded variables. Environment: Payara 5.182, Hibernate 5.3.2, SLF4j with Logback. It seems that the official approach is NOT to touch the persistence.xml to enable hibernate logging but to properly configure the logging framework. pom.xml <!-- Logging --> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic<

Eclipse Glassfish, not publishing changes to required projects

↘锁芯ラ 提交于 2021-02-05 07:47:47
问题 My setup is as follows: I am using Eclipse Version: Juno Service Release 2 Build id: 20130225-0426 and Glassfish 3.1.2. The glassfish adapter is version 5.0.1.201201241920 I have war maven project that is set up to require a jar maven project. I've configured the war Deployment assembly to include the jar project. I've turned off automatic publishing to glassfish (but turning it on does not solve the problem) The problem: If I make a change to a class in the jar project, the server will