
Servicio RESTful en netbeans con glassfish e hibernate
Publicado por Christian (1 intervención) el 27/01/2016 17:21:21
Netbeans project.
1) creacion del proyecto: JAVA EE web application
caracteristicas del proyecto:
Server: GlassFish Server 4.1
java EE version: JAVA EE 7 Web
Context Path: /RestApp
hibernate 4.3.1
connection name: jdbc:postgresql://localhost:5432/prueba
2)se aplico ingenieria reversa:
hibernate.reveng.xml
3)hibernate mapping files and POJOs from Database with EJB3 annotations
4)RESTful Web Services from Entity classes
5)
cuando
quiero probar el servicio REST me aparece:
C:\NetBeansProjects\RestApp\nbproject\build-impl.xml:1049: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 1 minute 24 seconds)
linea 1049: <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
no entiendo porque alguien puede darme una mano?, muchas gracias de antemano
Bd:
codigo: http://www.mediafire.com/download/328eppe88vaab3m/RestApp.rar
1) creacion del proyecto: JAVA EE web application
caracteristicas del proyecto:
Server: GlassFish Server 4.1
java EE version: JAVA EE 7 Web
Context Path: /RestApp
hibernate 4.3.1
connection name: jdbc:postgresql://localhost:5432/prueba
2)se aplico ingenieria reversa:
hibernate.reveng.xml
1
2
3
4
5
6
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd">
<hibernate-reverse-engineering>
<schema-selection match-catalog="prueba" match-schema="public"/>
<table-filter match-name="pro_eje_estrategico"/>
</hibernate-reverse-engineering>
3)hibernate mapping files and POJOs from Database with EJB3 annotations
4)RESTful Web Services from Entity classes
1
2
3
4
5
6
7
Persistence Unit Name:RestAppPU
presistence provider: Hibernate (JPA 2.1)
Data source:
JNDI Name:jniprueba
database connection: jdbc:postgresql://localhost:5432/prueba
true:Use java transaction APIs
table generation strategy APIs:None
5)
cuando
quiero probar el servicio REST me aparece:
C:\NetBeansProjects\RestApp\nbproject\build-impl.xml:1049: The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 1 minute 24 seconds)
linea 1049: <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
no entiendo porque alguien puede darme una mano?, muchas gracias de antemano
Bd:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CREATE DATABASE prueba
WITH OWNER = postgres
ENCODING = 'UTF8'
TABLESPACE = pg_default;
CREATE TABLE public.pro_eje_estrategico (
id_eje_estrategico BIGSERIAL,
descripcion VARCHAR(250) NOT NULL,
usuario_bitacora VARCHAR(50) DEFAULT "current_user"() NOT NULL,
fecha_bitacora TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT now() NOT NULL,
registro_bitacora VARCHAR(50) DEFAULT inet_client_addr() NOT NULL,
CONSTRAINT pro_eje_estrategico_pkey PRIMARY KEY(id_eje_estrategico)
) WITHOUT OIDS;
COMMENT ON COLUMN public.pro_eje_estrategico.id_eje_estrategico
IS 'Identificador de la entidad';
COMMENT ON COLUMN public.pro_eje_estrategico.descripcion
IS 'Descripción del eje estratégico';
COMMENT ON COLUMN public.pro_eje_estrategico.usuario_bitacora
IS 'Da referencia al usuario de creación del control de auditoría en la base de datos.';
COMMENT ON COLUMN public.pro_eje_estrategico.fecha_bitacora
IS 'Identifica la fecha de creación de la auditoría en la base de datos.';
COMMENT ON COLUMN public.pro_eje_estrategico.registro_bitacora
IS 'Da referencia al ip de creación del control de auditoría en la base de datos.';
codigo: http://www.mediafire.com/download/328eppe88vaab3m/RestApp.rar
Valora esta pregunta


0