-
descubri cuando cambio el nombre del paquete o si muevo la clase a otro paquete, entonces me sales ese error,
pero igual si la vuelvo a ponerla en el mismo lugar igual me queda sin funcionar.
2009-11-09 18:11:47 UTC by hugomrj
-
Saludos.
Tengo una entidad de estudiantes más o menos así:
public class Estudiantes {
@Id @Hidden
@Column(name = "id", nullable = false)
@GeneratedValue(strategy=GenerationType.IDENTITY)
private Long id;
@Column(name = "nombre", nullable = false, length=20)
private String nombre;
@Column(name = "apellido"...
2009-11-09 17:11:43 UTC by anitag
-
OK, it was the ManyToOne mapping.
Despite the fact that Department has a primary key defined and the mapping column in Employees was defined, I hadd to add
@JoinColumn(name="department_id", referencedColumnName="department_id")
in order to make it work.
2009-11-09 17:09:14 UTC by tkellerer
-
Thanks for the answer, for some reaon it's working now. I fiddled around with several settings. But I think it was the property "persistenceProviderClass" in xava.properties
I'm now stuck at the next step. The list of employees is now displayed, but when I click on one of them I cannot display the details screen. In the log file I see the error:
09.11.2009 15:25:17...
2009-11-09 14:28:24 UTC by tkellerer
-
Hi,
I need to make an portlet having openxava quality (look&feel) portlet. I don't need JPA (code generation) because I need to use existing liferay services.
PS:
I can rephrase question :
How to make openxava application that will show list of liferay users? (I know liferay services well, but need help on openxava.)
2009-11-09 14:27:54 UTC by petarbanicevic
-
muchas gracias, ese esta?
Estado HTTP 500 -
type Informe de Excepción
mensaje
descripción El servidor encontró un error interno () que hizo que no pudiera rellenar este requerimiento.
excepción
org.apache.jasper.JasperException: Exception in JSP: /xava/module.jsp:32
29: manager.setSession(session);
30: manager.setApplicationName(request.getParameter("application"));...
2009-11-09 13:42:22 UTC by hugomrj
-
Hi Thomas,
I think that is not a problem with the class itself, but with the database connection. Revise the datasource, persistence.xml, etc. and if you do not find the problem put here the full stack trace.
2009-11-09 13:39:38 UTC by javierpaniza
-
Hola Diego,
ahora parece que es un problema con la base de datos. Puede que tenga que ver con los nombres de las tablas.
Asegurate que en el archivo properties/xava.properties de tu proyecto tengas:
javaLoggingLevel=FINEST
Reproduce otra vez el problema. En la traza de error deberías tener la sentencia SQL que se ejecuta. Cógela e intenta ejecutar directamente contra tu DB...
2009-11-09 13:28:06 UTC by javierpaniza
-
Hola Hugo,
posiblemente sea un problema con la conexión a la DB, aunque puede ser cualquier cosa.
Pon la traza completa y te podré dar más pistas.
----------
*Aprende OpenXava con ejemplos*: **[Consigue el libro][99]**
[99]: http://www.lulu.com/product/descargar-e-book/aprende-openxava-con-ejemplos---borrador-1/5644197.
2009-11-09 13:19:39 UTC by javierpaniza
-
Hola Jorge,
para crear un módulo solo has de escribir una nueva entidad, por ejemplo Producto, y llamarlo desde tu navegador con una URL como esta:
http://localhost:8080/Gestion/xava/module.jsp?application=Gestion&module=Producto
Es decir el último parámetro de la URL es el módulo, y cada entidad tiene un módulo por defecto, aunque no lo definas.
Si quieres puedes [definir módulos...
2009-11-09 13:09:22 UTC by javierpaniza