Skip to main content

Error when deploying simple app Eclipse + Hiberante + Glassfish, Module type not recognized

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
ryukk88
Offline
Joined: 2013-06-01
Points: 0

Hi all, im currently investingating the use of Glassfish as the app server for a personal project, for testing the integration i generate a very simple JPA project with one entity and add the jpa project to a EAR.I need to test that the app creates the tables (for development reasons) but for some reason the deploy is giving me an error and i cannot make the tables autogenerate.
the error is:
[#|2013-05-30T21:56:38.800-0300|WARNING|glassfish3.0.1|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=20;_ThreadName=Thread-1;|Error scan jar entrylib/capaLogica.jarC:\smapit\glassfishv3\glassfish\domains\domain1\eclipseApps\smapitEAR\lib\capaLogica.jar (Access is denied)|#]

[#|2013-05-30T21:56:38.812-0300|SEVERE|glassfish3.0.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=20;_ThreadName=Thread-1;|Module type not recognized|#]

[#|2013-05-30T21:56:38.824-0300|SEVERE|glassfish3.0.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=20;_ThreadName=Thread-1;|There is no installed container capable of handling this application com.sun.enterprise.deploy.shared.FileArchive@1eac6995|#]

The conection pool and jdbc resource are properly set in Glassfish and the persistence xml is :
<?xml version="1.0" encoding="UTF-8"?>

http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> MySQLDataSource
entities.Candidato

and the entity i try to generate:
package entities;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity
public class Candidato {

private String primerNombre;

@Id
@GeneratedValue (strategy = GenerationType.AUTO)
private Integer Id;

public String getPrimerNombre() {
return primerNombre;
}

public void setPrimerNombre(String primerNombre) {
this.primerNombre = primerNombre;
}

public Integer getId() {
return Id;
}

public void setId(Integer id) {
Id = id;
}
}