glassfish

Glassfish unable to location javax.persistence.Persistence in module

半世苍凉 提交于 2019-12-25 18:29:48
问题 I'm facing the same problem as here. I can deploy my application without errors but when I try to view the index page I get the an error with the following root cause: [#|2014-06-02T16:53:37.524+0100|WARNING|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=18;_ThreadName=Thread-2;|StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception java.lang.ClassNotFoundException: javax.persistence.Persistence at java

JPA is'nt able to create ( persist ) an EJB

青春壹個敷衍的年華 提交于 2019-12-25 16:55:52
问题 Now two days trying to fix this problem. The problem seems to come from the DAO class. Caused by: projet.helpdesk.dao.DAOException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.6.1.v20150605-31e8258): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: java.sql.SQLSyntaxErrorException: ORA-02289: sequence does not exist Error Code: 2289 Call: SELECT SEQ_GEN_IDENTITY.NEXTVAL FROM DUAL Query: ValueReadQuery(sql="SELECT SEQ_GEN_IDENTITY.NEXTVAL FROM DUAL")

Setting V$SESSION.program property on Glassfish JDBC Connection Pool

血红的双手。 提交于 2019-12-25 14:05:16
问题 my Java EE App is deployed on Glassfish 3.0.1, and uses a JDBC Connection Pool to Connect to an Oracle 9i database. I am using JPA to read/write data to the database, which is working fine. However, to get better reporting regarding the load this app is putting on the database, I want to set the V$SESSION.program column for use by oracle. From various google searches (eg. http://forums.oracle.com/forums/thread.jspa?messageID=3271623) it looks like I should just be able to add this as a

Setting V$SESSION.program property on Glassfish JDBC Connection Pool

笑着哭i 提交于 2019-12-25 14:04:24
问题 my Java EE App is deployed on Glassfish 3.0.1, and uses a JDBC Connection Pool to Connect to an Oracle 9i database. I am using JPA to read/write data to the database, which is working fine. However, to get better reporting regarding the load this app is putting on the database, I want to set the V$SESSION.program column for use by oracle. From various google searches (eg. http://forums.oracle.com/forums/thread.jspa?messageID=3271623) it looks like I should just be able to add this as a

Inject EJB into JAX-RS 2.0 subresource when subresource is got via ResourceContext

断了今生、忘了曾经 提交于 2019-12-25 12:52:48
问题 I am using Jersey 2.8 with Glassfish 4.0. I have a resource locator class which looks like below @Path("/") @ManagedBean public class MyServiceLocator { @Context ResourceContext rc;//javax.ws.rs.container.ResourceContext @EJB private MyEJBHome myEJB; @Inject//javax.inject.Inject MySubService mss; @Path("/mysubservice") public MySubService getMySubService() { return rc.getResource(MySubService.class); //also tried return rc.initResource(new MySubService()); } } and a sub resource class which

Inject EJB into JAX-RS 2.0 subresource when subresource is got via ResourceContext

跟風遠走 提交于 2019-12-25 12:51:27
问题 I am using Jersey 2.8 with Glassfish 4.0. I have a resource locator class which looks like below @Path("/") @ManagedBean public class MyServiceLocator { @Context ResourceContext rc;//javax.ws.rs.container.ResourceContext @EJB private MyEJBHome myEJB; @Inject//javax.inject.Inject MySubService mss; @Path("/mysubservice") public MySubService getMySubService() { return rc.getResource(MySubService.class); //also tried return rc.initResource(new MySubService()); } } and a sub resource class which

parameter with <f:viewParam> and FacesConverter from CDI

ε祈祈猫儿з 提交于 2019-12-25 11:50:24
问题 It's not clear to me why I'm getting this particular exception, it's a red-herring I think. The underlying problem could be related to the last line of the exception: MessageConverter.getAsObject..0 which should actually be 1501 (the Message ID). So, why does MessageConverter.getAsObject have the wrong id? I think that this could be related to the Detail constructor, which is probably passing the wrong parameters to MessageConvert.getAsObject(), in particular the UIComponent object --

Primefaces 5.3 push fails on GlassFish 4.1

落花浮王杯 提交于 2019-12-25 11:35:17
问题 My web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"> <context-param> <param-name>javax.faces.PROJECT_STAGE</param-name> <param-value>Development</param-value> </context-param> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp

Primefaces 5.3 push fails on GlassFish 4.1

谁说我不能喝 提交于 2019-12-25 11:34:18
问题 My web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"> <context-param> <param-name>javax.faces.PROJECT_STAGE</param-name> <param-value>Development</param-value> </context-param> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp

Want to add a timer to GlassFish Server, don't know where to start

萝らか妹 提交于 2019-12-25 10:57:12
问题 I'm trying to implement Java EE websockets with a Glassfish server, and I've got the basics down already. As for my current project, I want to implement server "ticks" like in a game, that update the server every few milliseconds so that all sessions connected to the server see the same thing. However, I don't know where to start to make this work with Glassfish. I know that I create a server from scratch and implement a timer method, but I'd rather save myself some work here if possible.