[JBoss Seam] - Architecture Problem (validation)
by Eethyo
Hi,
I have a problem with the Validation.
Validator:
package com.ccm30.validators;
|
| import java.util.List;
|
| import javax.persistence.NoResultException;
|
| import org.hibernate.mapping.Property;
| import org.hibernate.validator.PropertyConstraint;
| import org.hibernate.validator.Validator;
| import org.jboss.seam.Component;
| import org.jboss.seam.annotations.Name;
| import org.jboss.seam.framework.EntityController;
|
| import com.ccms30.entities.CcmsProductline;
| import com.ccms30.entities.CcmsProductlineController;
|
| @Name("myProductlineListValidator")
| public class MyProductlineListValidator extends EntityController implements
| Validator<MyProductlineList>, PropertyConstraint {
|
|
|
| // part of the Validator<Annotation> contract,
| // allows to get and use the annotation values
| public void initialize(MyProductlineList parameters) {
|
| }
|
| // part of the property constraint contract
| public boolean isValid(Object value) {
|
| if (value == null){
| System.out.println("Value is null");
| return true;
| }
|
| if (!(value instanceof String))
| {
| System.out.println("Value is not a string");
| return false;
| }
|
| String string = (String) value;
| String trimmed = string.trim();
|
| try{
| CcmsProductline cpl = (CcmsProductline) createQuery(
| "select cpl from CcmsProductline cpl where cpl.name=:name")
| .setParameter("name", trimmed).getSingleResult();
|
| System.out.println("Value is in List");
| return true;
| }catch(NoResultException e)
| {
| System.out.println("Value is not in List");
| return false;
| }
|
| }
|
| public void apply(Property arg0) {
|
| }
|
| }
|
Entity:
package com.ccms30.entities;
| // Generated 16.10.2007 13:32:22 by Hibernate Tools 3.2.0.b9
|
| import java.util.Date;
| import java.util.HashMap;
| import java.util.HashSet;
| import java.util.Set;
|
| import javax.persistence.CascadeType;
| import javax.persistence.Column;
| import javax.persistence.Entity;
| import javax.persistence.FetchType;
| import javax.persistence.GeneratedValue;
| import javax.persistence.GenerationType;
| import javax.persistence.Id;
| import javax.persistence.JoinColumn;
| import javax.persistence.JoinTable;
| import javax.persistence.ManyToMany;
| import javax.persistence.ManyToOne;
| import javax.persistence.OneToMany;
| import javax.persistence.SequenceGenerator;
| import javax.persistence.Table;
| import javax.persistence.Temporal;
| import javax.persistence.TemporalType;
| import javax.persistence.Transient;
|
| import org.hibernate.validator.Length;
| import org.hibernate.validator.NotNull;
| import org.richfaces.model.TreeNode;
|
| import com.ccm30.validators.MyProductlineList;
| import com.ccms30.treenodes.CcmsTree;
| /**
| * CcmsProductline generated by hbm2java
| */
| @Entity
| @Table(name = "CCMS_PRODUCTLINE", schema = "CCMSDB")
| public class CcmsProductline extends CcmsTree implements java.io.Serializable {
|
| private static final long serialVersionUID = 1L;
|
| private Integer id;
| private CcmsProductline ccmsProductline;
| private CcmsUser ccmsUser;
| private String name;
| private String description;
| private Date modified;
| private Set<CcmsProductline> ccmsProductlines = new HashSet<CcmsProductline>(
| 0);
| private Set<CcmsProduct> ccmsProducts = new HashSet<CcmsProduct>(0);
| private Set<CcmsPolicy> ccmsPolicies = new HashSet<CcmsPolicy>(0);
|
| @Transient
| private String ccmsParentProductlineName = initCcmsParentProductlineName();
|
| public CcmsProductline() {
| }
|
| public CcmsProductline(Integer id, String name) {
| this.id = id;
| this.name = name;
| }
| public CcmsProductline(Integer id, CcmsProductline ccmsProductline,
| CcmsUser ccmsUser, String name, String description, Date modified,
| Set<CcmsProductline> ccmsProductlines,
| Set<CcmsProduct> ccmsProducts, Set<CcmsPolicy> ccmsPolicies) {
| this.id = id;
| this.ccmsProductline = ccmsProductline;
| this.ccmsUser = ccmsUser;
| this.name = name;
| this.description = description;
| this.modified = modified;
| this.ccmsProductlines = ccmsProductlines;
| this.ccmsProducts = ccmsProducts;
| this.ccmsPolicies = ccmsPolicies;
| }
|
| @Id @SequenceGenerator(name = "generator", sequenceName = "ID_SEQUENCE") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "generator")
| @Column(name = "ID", unique = true, nullable = false, precision = 22, scale = 0)
| @NotNull
| public Integer getId() {
| return this.id;
| }
|
| public void setId(Integer id) {
| this.id = id;
| }
| @ManyToOne(fetch = FetchType.LAZY)
| @JoinColumn(name = "PARENT_PRODUCTLINE_ID")
| public CcmsProductline getCcmsProductline() {
| return this.ccmsProductline;
| }
|
| public void setCcmsProductline(CcmsProductline ccmsProductline) {
| this.ccmsProductline = ccmsProductline;
| }
| @ManyToOne(fetch = FetchType.LAZY)
| @JoinColumn(name = "CREATOR")
| public CcmsUser getCcmsUser() {
| return this.ccmsUser;
| }
|
| public void setCcmsUser(CcmsUser ccmsUser) {
| this.ccmsUser = ccmsUser;
| }
|
| @Column(name = "NAME", nullable = false, length = 200)
| @NotNull
| @Length(max = 200)
| public String getName() {
| return this.name;
| }
|
| public void setName(String name) {
| this.name = name;
| }
|
| @Column(name = "DESCRIPTION", length = 4000)
| @Length(max = 4000)
| public String getDescription() {
| return this.description;
| }
|
| public void setDescription(String description) {
| this.description = description;
| }
| @Temporal(TemporalType.DATE)
| @Column(name = "MODIFIED", length = 7)
| public Date getModified() {
| return this.modified;
| }
|
| public void setModified(Date modified) {
| this.modified = modified;
| }
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "ccmsProductline")
| public Set<CcmsProductline> getCcmsProductlines() {
| return this.ccmsProductlines;
| }
|
| public void setCcmsProductlines(Set<CcmsProductline> ccmsProductlines) {
| this.ccmsProductlines = ccmsProductlines;
| }
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "ccmsProductline")
| public Set<CcmsProduct> getCcmsProducts() {
| return this.ccmsProducts;
| }
|
| public void setCcmsProducts(Set<CcmsProduct> ccmsProducts) {
| this.ccmsProducts = ccmsProducts;
| }
| @ManyToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
| @JoinTable(name = "CCMS_POLICY_PRODUCTLINE_Z", joinColumns = @JoinColumn(name = "policy_id"), inverseJoinColumns = @JoinColumn(name = "productline_id"))
| public Set<CcmsPolicy> getCcmsPolicies() {
| return this.ccmsPolicies;
| }
|
| public void setCcmsPolicies(Set<CcmsPolicy> ccmsPolicies) {
| this.ccmsPolicies = ccmsPolicies;
| }
|
| public String initCcmsParentProductlineName()
| {
| if(ccmsProductline!=null)
| return ccmsProductline.getName();
| else
| return "";
| }
|
|
| @Transient
| @MyProductlineList
| public String getCcmsParentProductlineName() {
| System.out.println("operation called");
| return ccmsParentProductlineName;
| }
|
| @Transient
| public void setCcmsParentProductlineName(String ccmsParentProductlineName) {
| this.ccmsParentProductlineName = ccmsParentProductlineName;
| }
|
| @Override
| public String receiveType() {
| // TODO Auto-generated method stub
| return "CcmsProduct/CcmsProductline";
| }
|
| }
I always get a "Stackoverflow" Exception.
I think i know why, because my Productline i get wants to validate its value and so on. how to avoid this?
Where should I set my validator?
Can you help me?!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101843#4101843
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101843
18 years, 5 months
[EJB 3.0] - Re: NetBeans 5.5 + EJB3 + JBoss 4.2 == ejbLink: not used by
by LeandroSeverino
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /home/leandro/javaapps/jboss-4.2.1.GA
JAVA: /home/leandro/jdk1.6.0_03/bin/java
JAVA_OPTS: -Dprogram.name=run.sh -server -Dhttp.proxyHost=10.10.10.126 -Dhttp.proxyPort=3128 -Dhttp.nonProxyHosts="localhost|127.0.0.1|lstecnologia" -Dhttps.proxyHost=10.10.10.126 -Dhttps.proxyPort=3128 -classic -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n -Djava.net.preferIPv4Stack=true
CLASSPATH: /home/leandro/javaapps/jboss-4.2.1.GA/bin/run.jar:/home/leandro/jdk1.6.0_03/lib/tools.jar
=========================================================================
Listening for transport dt_socket at address: 8787
11:37:07,766 INFO [Server] Starting JBoss (MX MicroKernel)...
11:37:07,811 INFO [Server] Release ID: JBoss [Trinity] 4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)
11:37:07,813 INFO [Server] Home Dir: /home/leandro/javaapps/jboss-4.2.1.GA
11:37:07,814 INFO [Server] Home URL: file:/home/leandro/javaapps/jboss-4.2.1.GA/
11:37:07,815 INFO [Server] Patch URL: null
11:37:07,815 INFO [Server] Server Name: default
11:37:07,815 INFO [Server] Server Home Dir: /home/leandro/javaapps/jboss-4.2.1.GA/server/default
11:37:07,816 INFO [Server] Server Home URL: file:/home/leandro/javaapps/jboss-4.2.1.GA/server/default/
11:37:07,816 INFO [Server] Server Log Dir: /home/leandro/javaapps/jboss-4.2.1.GA/server/default/log
11:37:07,816 INFO [Server] Server Temp Dir: /home/leandro/javaapps/jboss-4.2.1.GA/server/default/tmp
11:37:07,838 INFO [Server] Root Deployment Filename: jboss-service.xml
11:37:09,089 INFO [ServerInfo] Java version: 1.6.0_03,Sun Microsystems Inc.
11:37:09,089 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 1.6.0_03-b05,Sun Microsystems Inc.
11:37:09,089 INFO [ServerInfo] OS-System: Linux 2.6.20-16-generic,amd64
11:37:10,287 INFO [Server] Core system initialized
11:37:14,791 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
11:37:14,794 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
11:37:16,014 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
11:37:16,015 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
11:37:16,418 INFO [TransactionManagerService] Starting recovery manager
11:37:17,016 INFO [TransactionManagerService] Recovery manager started
11:37:17,017 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
11:37:25,076 INFO [EJB3Deployer] Starting java:comp multiplexer
11:37:29,492 INFO [ServiceEndpointManager] jbossws-1.2.1.GA (build=200704151756)
11:37:35,528 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /home/leandro/jdk1.6.0_03/jre/lib/amd64/server:/home/leandro/jdk1.6.0_03/jre/lib/amd64:/home/leandro/jdk1.6.0_03/jre/../lib/amd64:/usr/java/packages/lib/amd64:/lib:/usr/lib
11:37:35,763 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
11:37:35,764 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
11:37:35,766 INFO [Catalina] Initialization processed in 1036 ms
11:37:35,766 INFO [StandardService] Starting service jboss.web
11:37:35,769 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.0.GA
11:37:35,842 INFO [Catalina] Server startup in 76 ms
11:37:37,048 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
11:37:42,352 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
11:37:42,927 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp51jbossws-context-exp.war/
11:37:43,334 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
11:37:45,746 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
11:37:48,680 INFO [MailService] Mail Service bound to java:/Mail
11:37:49,414 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
11:37:49,559 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
11:37:49,703 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
11:37:49,840 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
11:37:50,013 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
11:37:50,109 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
11:37:50,176 INFO [QuartzResourceAdapter] start quartz!!!
11:37:50,409 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
11:37:50,507 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
11:37:50,510 INFO [RAMJobStore] RAMJobStore initialized.
11:37:50,510 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
11:37:50,511 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
11:37:50,511 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
11:37:53,852 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
11:37:55,259 INFO [A] Bound to JNDI name: queue/A
11:37:55,262 INFO [B] Bound to JNDI name: queue/B
11:37:55,265 INFO [C] Bound to JNDI name: queue/C
11:37:55,268 INFO [D] Bound to JNDI name: queue/D
11:37:55,270 INFO [ex] Bound to JNDI name: queue/ex
11:37:55,327 INFO [testTopic] Bound to JNDI name: topic/testTopic
11:37:55,330 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
11:37:55,333 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
11:37:55,342 INFO [testQueue] Bound to JNDI name: queue/testQueue
11:37:55,736 INFO [UILServerILService] JBossMQ UIL service available at : /127.0.0.1:8093
11:37:55,885 INFO [DLQ] Bound to JNDI name: queue/DLQ
11:37:56,223 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=maragato' to JNDI name 'java:maragato'
11:37:56,239 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=dtm' to JNDI name 'java:dtm'
11:37:56,249 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=dms' to JNDI name 'java:dms'
11:37:56,606 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
11:37:56,813 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
11:37:57,876 INFO [EARDeployer] Init J2EE application: file:/home/leandro/javaapps/jboss-4.2.1.GA/server/default/deploy/MaragatoWeb.ear
11:37:59,846 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment
11:37:59,904 INFO [JmxKernelAbstraction] installing MBean: persistence.units:ear=MaragatoWeb.ear,jar=DMS-DAO.jar,unitName=PU with dependencies:
11:37:59,904 INFO [JmxKernelAbstraction] jboss.jca:name=maragato,service=DataSourceBinding
11:37:59,917 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.units:ear=MaragatoWeb.ear,jar=DMS-DAO.jar,unitName=PU
11:38:00,036 INFO [Version] Hibernate EntityManager 3.2.1.GA
11:38:00,158 INFO [Version] Hibernate Annotations 3.2.1.GA
11:38:00,172 INFO [Environment] Hibernate 3.2.4.sp1
11:38:00,194 INFO [Environment] hibernate.properties not found
11:38:00,198 INFO [Environment] Bytecode provider name : javassist
11:38:00,220 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
11:38:00,632 INFO [Ejb3Configuration] found EJB3 Entity bean: com.digitel.model.ElementoGerenciado
11:38:00,637 INFO [Ejb3Configuration] found EJB3 Entity bean: com.digitel.model.Imagem
11:38:00,646 INFO [Ejb3Configuration] found EJB3 Entity bean: com.digitel.model.Mapa
11:38:00,661 INFO [Ejb3Configuration] found EJB3 Entity bean: com.digitel.model.Usuario
11:38:00,924 INFO [Configuration] Reading mappings from resource : META-INF/orm.xml
11:38:00,975 INFO [Ejb3Configuration] [PersistenceUnit: PU] no META-INF/orm.xml found
11:38:01,840 INFO [AnnotationBinder] Binding entity from annotated class: com.digitel.model.ElementoGerenciado
11:38:01,969 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findById => SELECT e FROM ElementoGerenciado e WHERE e.id = :id
11:38:01,969 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByIp => SELECT e FROM ElementoGerenciado e WHERE e.ip = :ip
11:38:01,969 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByComunidadeLeitura => SELECT e FROM ElementoGerenciado e WHERE e.comunidadeLeitura = :comunidadeLeitura
11:38:01,969 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByComunidadeEscrita => SELECT e FROM ElementoGerenciado e WHERE e.comunidadeEscrita = :comunidadeEscrita
11:38:01,970 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByPorta => SELECT e FROM ElementoGerenciado e WHERE e.porta = :porta
11:38:01,970 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByPosicaox => SELECT e FROM ElementoGerenciado e WHERE e.posicaox = :posicaox
11:38:01,970 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByPosicaoy => SELECT e FROM ElementoGerenciado e WHERE e.posicaoy = :posicaoy
11:38:01,970 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findBySysObjectid => SELECT e FROM ElementoGerenciado e WHERE e.sysObjectid = :sysObjectid
11:38:01,970 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByEstacao => SELECT e FROM ElementoGerenciado e WHERE e.estacao = :estacao
11:38:01,970 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findBySysContact => SELECT e FROM ElementoGerenciado e WHERE e.sysContact = :sysContact
11:38:01,970 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findBySysDesc => SELECT e FROM ElementoGerenciado e WHERE e.sysDesc = :sysDesc
11:38:01,970 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findBySysLocation => SELECT e FROM ElementoGerenciado e WHERE e.sysLocation = :sysLocation
11:38:01,971 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findBySysName => SELECT e FROM ElementoGerenciado e WHERE e.sysName = :sysName
11:38:01,971 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByTimeout => SELECT e FROM ElementoGerenciado e WHERE e.timeout = :timeout
11:38:01,971 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByStatus => SELECT e FROM ElementoGerenciado e WHERE e.status = :status
11:38:02,546 INFO [EntityBinder] Bind entity com.digitel.model.ElementoGerenciado on table elemento_gerenciado
11:38:03,578 INFO [AnnotationBinder] Binding entity from annotated class: com.digitel.model.Imagem
11:38:03,578 INFO [QueryBinder] Binding Named query: Imagem.findById => SELECT i FROM Imagem i WHERE i.id = :id
11:38:03,578 INFO [QueryBinder] Binding Named query: Imagem.findByTipo => SELECT i FROM Imagem i WHERE i.tipo = :tipo
11:38:03,578 INFO [QueryBinder] Binding Named query: Imagem.findByTitulo => SELECT i FROM Imagem i WHERE i.titulo = :titulo
11:38:03,579 INFO [EntityBinder] Bind entity com.digitel.model.Imagem on table imagem
11:38:03,735 INFO [AnnotationBinder] Binding entity from annotated class: com.digitel.model.Mapa
11:38:03,735 INFO [QueryBinder] Binding Named query: Mapa.findById => SELECT m FROM Mapa m WHERE m.id = :id
11:38:03,735 INFO [QueryBinder] Binding Named query: Mapa.findByNome => SELECT m FROM Mapa m WHERE m.nome = :nome
11:38:03,735 INFO [QueryBinder] Binding Named query: Mapa.findByDescricao => SELECT m FROM Mapa m WHERE m.descricao = :descricao
11:38:03,735 INFO [QueryBinder] Binding Named query: Mapa.findBySeveridade => SELECT m FROM Mapa m WHERE m.severidade = :severidade
11:38:03,735 INFO [QueryBinder] Binding Named query: Mapa.findByColorr => SELECT m FROM Mapa m WHERE m.colorr = :colorr
11:38:03,735 INFO [QueryBinder] Binding Named query: Mapa.findByColorg => SELECT m FROM Mapa m WHERE m.colorg = :colorg
11:38:03,735 INFO [QueryBinder] Binding Named query: Mapa.findByColorb => SELECT m FROM Mapa m WHERE m.colorb = :colorb
11:38:03,736 INFO [QueryBinder] Binding Named query: Mapa.findByPosx => SELECT m FROM Mapa m WHERE m.posx = :posx
11:38:03,736 INFO [QueryBinder] Binding Named query: Mapa.findByPosy => SELECT m FROM Mapa m WHERE m.posy = :posy
11:38:03,736 INFO [QueryBinder] Binding Named query: Mapa.findByTipoLayout => SELECT m FROM Mapa m WHERE m.tipoLayout = :tipoLayout
11:38:03,736 INFO [EntityBinder] Bind entity com.digitel.model.Mapa on table mapa
11:38:03,760 INFO [AnnotationBinder] Binding entity from annotated class: com.digitel.model.Usuario
11:38:03,760 INFO [QueryBinder] Binding Named query: Usuario.findById => SELECT u FROM Usuario u WHERE u.id = :id
11:38:03,760 INFO [QueryBinder] Binding Named query: Usuario.findByNome => SELECT u FROM Usuario u WHERE u.nome = :nome
11:38:03,760 INFO [QueryBinder] Binding Named query: Usuario.findByDescricao => SELECT u FROM Usuario u WHERE u.descricao = :descricao
11:38:03,760 INFO [QueryBinder] Binding Named query: Usuario.findByNomeCompleto => SELECT u FROM Usuario u WHERE u.nomeCompleto = :nomeCompleto
11:38:03,760 INFO [QueryBinder] Binding Named query: Usuario.findBySenhaDigest => SELECT u FROM Usuario u WHERE u.senhaDigest = :senhaDigest
11:38:03,761 INFO [EntityBinder] Bind entity com.digitel.model.Usuario on table usuario
11:38:04,473 INFO [CollectionBinder] Mapping collection: com.digitel.model.ElementoGerenciado.elementoGerenciadoCollection -> elemento_gerenciado
11:38:04,478 INFO [CollectionBinder] Mapping collection: com.digitel.model.Imagem.mapaCollection -> mapa
11:38:04,478 INFO [CollectionBinder] Mapping collection: com.digitel.model.Imagem.mapaCollection1 -> mapa
11:38:04,479 INFO [CollectionBinder] Mapping collection: com.digitel.model.Mapa.elementoGerenciadoCollection -> elemento_gerenciado
11:38:04,479 INFO [CollectionBinder] Mapping collection: com.digitel.model.Mapa.mapaCollection -> mapa
11:38:04,480 INFO [CollectionBinder] Mapping collection: com.digitel.model.Usuario.elementoGerenciadoCollection -> elemento_gerenciado
11:38:04,713 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
11:38:04,719 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
11:38:05,394 INFO [SettingsFactory] RDBMS: PostgreSQL, version: 8.1.4
11:38:05,396 INFO [SettingsFactory] JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 8.0 JDBC3 with SSL (build 312)
11:38:05,520 INFO [Dialect] Using dialect: org.hibernate.dialect.PostgreSQLDialect
11:38:05,535 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
11:38:05,539 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
11:38:05,546 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
11:38:05,546 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
11:38:05,546 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
11:38:05,546 INFO [SettingsFactory] JDBC batch size: 15
11:38:05,547 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
11:38:05,548 INFO [SettingsFactory] Scrollable result sets: enabled
11:38:05,548 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
11:38:05,548 INFO [SettingsFactory] Connection release mode: auto
11:38:05,551 INFO [SettingsFactory] Default batch fetch size: 1
11:38:05,551 INFO [SettingsFactory] Generate SQL with comments: disabled
11:38:05,551 INFO [SettingsFactory] Order SQL updates by primary key: disabled
11:38:05,551 INFO [SettingsFactory] Order SQL inserts for batching: disabled
11:38:05,551 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
11:38:05,662 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
11:38:05,662 INFO [SettingsFactory] Query language substitutions: {}
11:38:05,662 INFO [SettingsFactory] JPA-QL strict compliance: enabled
11:38:05,662 INFO [SettingsFactory] Second-level cache: enabled
11:38:05,662 INFO [SettingsFactory] Query cache: disabled
11:38:05,663 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
11:38:05,681 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
11:38:05,681 INFO [SettingsFactory] Cache region prefix: MaragatoWeb_ear,DMS-DAO_jar,PU
11:38:05,681 INFO [SettingsFactory] Structured second-level cache entries: disabled
11:38:05,693 INFO [SettingsFactory] Statistics: disabled
11:38:05,693 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
11:38:05,695 INFO [SettingsFactory] Default entity-mode: pojo
11:38:05,695 INFO [SettingsFactory] Named query checking : enabled
11:38:05,940 INFO [SessionFactoryImpl] building session factory
11:38:08,556 INFO [SessionFactoryObjectFactory] Factory name: persistence.units:ear=MaragatoWeb.ear,jar=DMS-DAO.jar,unitName=PU
11:38:08,558 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
11:38:08,561 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.units:ear=MaragatoWeb.ear,jar=DMS-DAO.jar,unitName=PU
11:38:08,708 WARN [SessionFactoryObjectFactory] InitialContext did not implement EventContext
11:38:08,709 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
11:38:12,842 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
11:38:12,921 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=MaragatoWeb.ear,jar=DMS-DAO.jar,name=DAOFactory,service=EJB3 with dependencies:
11:38:12,921 INFO [JmxKernelAbstraction] persistence.units:ear=MaragatoWeb.ear,jar=DMS-DAO.jar,unitName=PU
11:38:14,465 INFO [EJBContainer] STARTED EJB: com.digitel.ejb.DAOFactory ejbName: DAOFactory
11:38:14,689 INFO [EJB3Deployer] Deployed: file:/home/leandro/javaapps/jboss-4.2.1.GA/server/default/tmp/deploy/tmp81MaragatoWeb.ear-contents/DMS-DAO.jar
11:38:14,695 WARN [EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.digitel.ejb.DAOFactory in ejb-jar.xml of ElementoGerenciadoFacadenot used by any EJBs
11:38:14,698 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
11:38:14,698 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=MaragatoWeb.ear,jar=DMS-Facade.jar,name=ElementoGerenciadoFacade,service=EJB3 with dependencies:
11:38:14,713 INFO [EJBContainer] STOPPED EJB: com.digitel.facade.ElementoGerenciadoFacade ejbName: ElementoGerenciadoFacade
11:38:14,719 WARN [ServiceController] Problem starting service jboss.j2ee:ear=MaragatoWeb.ear,jar=DMS-Facade.jar,name=ElementoGerenciadoFacade,service=EJB3
java.lang.RuntimeException: could not resolve global JNDI name for @EJB for container ElementoGerenciadoFacade: reference class: com.digitel.ejb.DAOFactory ejbLink: not used by any EJBs
at org.jboss.injection.EjbEncInjector.inject(EjbEncInjector.java:88)
at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:563)
at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:125)
at org.jboss.ejb3.stateless.StatelessContainer.start(StatelessContainer.java:94)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy64.start(Unknown Source)
at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)
at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:301)
at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:362)
at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy33.start(Unknown Source)
at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy34.start(Unknown Source)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:619)
11:38:14,723 INFO [EJB3Deployer] Deployed: file:/home/leandro/javaapps/jboss-4.2.1.GA/server/default/tmp/deploy/tmp81MaragatoWeb.ear-contents/DMS-Facade.jar
11:38:14,819 INFO [TomcatDeployer] deploy, ctxPath=/DMS-Reports, warUrl=.../tmp/deploy/tmp81MaragatoWeb.ear-contents/DMS-Reports-exp.war/
11:38:15,570 INFO [EARDeployer] Started J2EE application: file:/home/leandro/javaapps/jboss-4.2.1.GA/server/default/deploy/MaragatoWeb.ear
11:38:15,573 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- MBeans waiting for other MBeans ---
ObjectName: jboss.j2ee:ear=MaragatoWeb.ear,jar=DMS-Facade.jar,name=ElementoGerenciadoFacade,service=EJB3
State: FAILED
Reason: java.lang.RuntimeException: could not resolve global JNDI name for @EJB for container ElementoGerenciadoFacade: reference class: com.digitel.ejb.DAOFactory ejbLink: not used by any EJBs
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.j2ee:ear=MaragatoWeb.ear,jar=DMS-Facade.jar,name=ElementoGerenciadoFacade,service=EJB3
State: FAILED
Reason: java.lang.RuntimeException: could not resolve global JNDI name for @EJB for container ElementoGerenciadoFacade: reference class: com.digitel.ejb.DAOFactory ejbLink: not used by any EJBs
11:38:16,260 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
11:38:16,475 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
11:38:16,500 INFO [Server] JBoss (MX MicroKernel) [4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)] Started in 1m:8s:659ms
11:38:25,831 INFO [TomcatDeployer] undeploy, ctxPath=/DMS-Reports, warUrl=.../tmp/deploy/tmp81MaragatoWeb.ear-contents/DMS-Reports-exp.war/
11:38:26,109 WARN [JmxKernelAbstraction] jboss.j2ee:ear=MaragatoWeb.ear,jar=DMS-Facade.jar,name=ElementoGerenciadoFacade,service=EJB3 is not registered
11:38:26,120 INFO [EJBContainer] STOPPED EJB: com.digitel.ejb.DAOFactory ejbName: DAOFactory
11:38:26,122 WARN [JmxKernelAbstraction] jboss.j2ee:ear=MaragatoWeb.ear,jar=DMS-DAO.jar,name=DAOFactory,service=EJB3 is not registered
11:38:26,122 INFO [PersistenceUnitDeployment] Stopping persistence unit persistence.units:ear=MaragatoWeb.ear,jar=DMS-DAO.jar,unitName=PU
11:38:26,122 INFO [SessionFactoryImpl] closing
11:38:26,123 INFO [SessionFactoryObjectFactory] Unbinding factory from JNDI name: persistence.units:ear=MaragatoWeb.ear,jar=DMS-DAO.jar,unitName=PU
11:38:26,123 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
11:38:26,123 INFO [SessionFactoryObjectFactory] Unbound factory from JNDI name: persistence.units:ear=MaragatoWeb.ear,jar=DMS-DAO.jar,unitName=PU
11:38:26,125 WARN [JmxKernelAbstraction] persistence.units:ear=MaragatoWeb.ear,jar=DMS-DAO.jar,unitName=PU is not registered
11:38:26,172 INFO [EARDeployer] Undeploying J2EE application, destroy step: file:/home/leandro/javaapps/jboss-4.2.1.GA/server/default/deploy/MaragatoWeb.ear
11:38:26,174 INFO [EARDeployer] Undeployed J2EE application: file:/home/leandro/javaapps/jboss-4.2.1.GA/server/default/deploy/MaragatoWeb.ear
11:38:26,211 INFO [EARDeployer] Init J2EE application: file:/home/leandro/javaapps/jboss-4.2.1.GA/server/default/deploy/MaragatoWeb.ear
11:38:26,646 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment
11:38:26,646 INFO [JmxKernelAbstraction] installing MBean: persistence.units:ear=MaragatoWeb.ear,jar=DMS-DAO.jar,unitName=PU with dependencies:
11:38:26,646 INFO [JmxKernelAbstraction] jboss.jca:name=maragato,service=DataSourceBinding
11:38:26,649 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.units:ear=MaragatoWeb.ear,jar=DMS-DAO.jar,unitName=PU
11:38:26,668 INFO [Ejb3Configuration] found EJB3 Entity bean: com.digitel.model.ElementoGerenciado
11:38:26,672 INFO [Ejb3Configuration] found EJB3 Entity bean: com.digitel.model.Imagem
11:38:26,679 INFO [Ejb3Configuration] found EJB3 Entity bean: com.digitel.model.Mapa
11:38:26,683 INFO [Ejb3Configuration] found EJB3 Entity bean: com.digitel.model.Usuario
11:38:26,689 INFO [Configuration] Reading mappings from resource : META-INF/orm.xml
11:38:26,690 INFO [Ejb3Configuration] [PersistenceUnit: PU] no META-INF/orm.xml found
11:38:26,697 INFO [AnnotationBinder] Binding entity from annotated class: com.digitel.model.ElementoGerenciado
11:38:26,697 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findById => SELECT e FROM ElementoGerenciado e WHERE e.id = :id
11:38:26,697 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByIp => SELECT e FROM ElementoGerenciado e WHERE e.ip = :ip
11:38:26,697 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByComunidadeLeitura => SELECT e FROM ElementoGerenciado e WHERE e.comunidadeLeitura = :comunidadeLeitura
11:38:26,697 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByComunidadeEscrita => SELECT e FROM ElementoGerenciado e WHERE e.comunidadeEscrita = :comunidadeEscrita
11:38:26,698 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByPorta => SELECT e FROM ElementoGerenciado e WHERE e.porta = :porta
11:38:26,698 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByPosicaox => SELECT e FROM ElementoGerenciado e WHERE e.posicaox = :posicaox
11:38:26,698 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByPosicaoy => SELECT e FROM ElementoGerenciado e WHERE e.posicaoy = :posicaoy
11:38:26,698 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findBySysObjectid => SELECT e FROM ElementoGerenciado e WHERE e.sysObjectid = :sysObjectid
11:38:26,698 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByEstacao => SELECT e FROM ElementoGerenciado e WHERE e.estacao = :estacao
11:38:26,698 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findBySysContact => SELECT e FROM ElementoGerenciado e WHERE e.sysContact = :sysContact
11:38:26,698 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findBySysDesc => SELECT e FROM ElementoGerenciado e WHERE e.sysDesc = :sysDesc
11:38:26,698 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findBySysLocation => SELECT e FROM ElementoGerenciado e WHERE e.sysLocation = :sysLocation
11:38:26,698 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findBySysName => SELECT e FROM ElementoGerenciado e WHERE e.sysName = :sysName
11:38:26,698 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByTimeout => SELECT e FROM ElementoGerenciado e WHERE e.timeout = :timeout
11:38:26,699 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByStatus => SELECT e FROM ElementoGerenciado e WHERE e.status = :status
11:38:26,699 INFO [EntityBinder] Bind entity com.digitel.model.ElementoGerenciado on table elemento_gerenciado
11:38:26,714 INFO [AnnotationBinder] Binding entity from annotated class: com.digitel.model.Imagem
11:38:26,715 INFO [QueryBinder] Binding Named query: Imagem.findById => SELECT i FROM Imagem i WHERE i.id = :id
11:38:26,715 INFO [QueryBinder] Binding Named query: Imagem.findByTipo => SELECT i FROM Imagem i WHERE i.tipo = :tipo
11:38:26,715 INFO [QueryBinder] Binding Named query: Imagem.findByTitulo => SELECT i FROM Imagem i WHERE i.titulo = :titulo
11:38:26,715 INFO [EntityBinder] Bind entity com.digitel.model.Imagem on table imagem
11:38:26,722 INFO [AnnotationBinder] Binding entity from annotated class: com.digitel.model.Mapa
11:38:26,722 INFO [QueryBinder] Binding Named query: Mapa.findById => SELECT m FROM Mapa m WHERE m.id = :id
11:38:26,722 INFO [QueryBinder] Binding Named query: Mapa.findByNome => SELECT m FROM Mapa m WHERE m.nome = :nome
11:38:26,723 INFO [QueryBinder] Binding Named query: Mapa.findByDescricao => SELECT m FROM Mapa m WHERE m.descricao = :descricao
11:38:26,723 INFO [QueryBinder] Binding Named query: Mapa.findBySeveridade => SELECT m FROM Mapa m WHERE m.severidade = :severidade
11:38:26,723 INFO [QueryBinder] Binding Named query: Mapa.findByColorr => SELECT m FROM Mapa m WHERE m.colorr = :colorr
11:38:26,723 INFO [QueryBinder] Binding Named query: Mapa.findByColorg => SELECT m FROM Mapa m WHERE m.colorg = :colorg
11:38:26,723 INFO [QueryBinder] Binding Named query: Mapa.findByColorb => SELECT m FROM Mapa m WHERE m.colorb = :colorb
11:38:26,723 INFO [QueryBinder] Binding Named query: Mapa.findByPosx => SELECT m FROM Mapa m WHERE m.posx = :posx
11:38:26,723 INFO [QueryBinder] Binding Named query: Mapa.findByPosy => SELECT m FROM Mapa m WHERE m.posy = :posy
11:38:26,723 INFO [QueryBinder] Binding Named query: Mapa.findByTipoLayout => SELECT m FROM Mapa m WHERE m.tipoLayout = :tipoLayout
11:38:26,724 INFO [EntityBinder] Bind entity com.digitel.model.Mapa on table mapa
11:38:26,737 INFO [AnnotationBinder] Binding entity from annotated class: com.digitel.model.Usuario
11:38:26,737 INFO [QueryBinder] Binding Named query: Usuario.findById => SELECT u FROM Usuario u WHERE u.id = :id
11:38:26,737 INFO [QueryBinder] Binding Named query: Usuario.findByNome => SELECT u FROM Usuario u WHERE u.nome = :nome
11:38:26,737 INFO [QueryBinder] Binding Named query: Usuario.findByDescricao => SELECT u FROM Usuario u WHERE u.descricao = :descricao
11:38:26,737 INFO [QueryBinder] Binding Named query: Usuario.findByNomeCompleto => SELECT u FROM Usuario u WHERE u.nomeCompleto = :nomeCompleto
11:38:26,737 INFO [QueryBinder] Binding Named query: Usuario.findBySenhaDigest => SELECT u FROM Usuario u WHERE u.senhaDigest = :senhaDigest
11:38:26,738 INFO [EntityBinder] Bind entity com.digitel.model.Usuario on table usuario
11:38:26,746 INFO [CollectionBinder] Mapping collection: com.digitel.model.ElementoGerenciado.elementoGerenciadoCollection -> elemento_gerenciado
11:38:26,746 INFO [CollectionBinder] Mapping collection: com.digitel.model.Imagem.mapaCollection -> mapa
11:38:26,747 INFO [CollectionBinder] Mapping collection: com.digitel.model.Imagem.mapaCollection1 -> mapa
11:38:26,747 INFO [CollectionBinder] Mapping collection: com.digitel.model.Mapa.elementoGerenciadoCollection -> elemento_gerenciado
11:38:26,748 INFO [CollectionBinder] Mapping collection: com.digitel.model.Mapa.mapaCollection -> mapa
11:38:26,748 INFO [CollectionBinder] Mapping collection: com.digitel.model.Usuario.elementoGerenciadoCollection -> elemento_gerenciado
11:38:26,785 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
11:38:26,789 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
11:38:26,790 INFO [SettingsFactory] RDBMS: PostgreSQL, version: 8.1.4
11:38:26,790 INFO [SettingsFactory] JDBC driver: PostgreSQL Native Driver, version: PostgreSQL 8.0 JDBC3 with SSL (build 312)
11:38:26,790 INFO [Dialect] Using dialect: org.hibernate.dialect.PostgreSQLDialect
11:38:26,790 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
11:38:26,791 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
11:38:26,791 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
11:38:26,791 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
11:38:26,791 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
11:38:26,791 INFO [SettingsFactory] JDBC batch size: 15
11:38:26,791 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
11:38:26,791 INFO [SettingsFactory] Scrollable result sets: enabled
11:38:26,791 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
11:38:26,791 INFO [SettingsFactory] Connection release mode: auto
11:38:26,791 INFO [SettingsFactory] Default batch fetch size: 1
11:38:26,791 INFO [SettingsFactory] Generate SQL with comments: disabled
11:38:26,791 INFO [SettingsFactory] Order SQL updates by primary key: disabled
11:38:26,792 INFO [SettingsFactory] Order SQL inserts for batching: disabled
11:38:26,792 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
11:38:26,792 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
11:38:26,792 INFO [SettingsFactory] Query language substitutions: {}
11:38:26,792 INFO [SettingsFactory] JPA-QL strict compliance: enabled
11:38:26,792 INFO [SettingsFactory] Second-level cache: enabled
11:38:26,792 INFO [SettingsFactory] Query cache: disabled
11:38:26,792 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
11:38:26,792 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
11:38:26,792 INFO [SettingsFactory] Cache region prefix: MaragatoWeb_ear,DMS-DAO_jar,PU
11:38:26,792 INFO [SettingsFactory] Structured second-level cache entries: disabled
11:38:26,792 INFO [SettingsFactory] Statistics: disabled
11:38:26,792 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
11:38:26,793 INFO [SettingsFactory] Default entity-mode: pojo
11:38:26,793 INFO [SettingsFactory] Named query checking : enabled
11:38:26,809 INFO [SessionFactoryImpl] building session factory
11:38:26,925 INFO [SessionFactoryObjectFactory] Factory name: persistence.units:ear=MaragatoWeb.ear,jar=DMS-DAO.jar,unitName=PU
11:38:26,926 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
11:38:26,928 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.units:ear=MaragatoWeb.ear,jar=DMS-DAO.jar,unitName=PU
11:38:26,929 WARN [SessionFactoryObjectFactory] InitialContext did not implement EventContext
11:38:26,929 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
11:38:27,229 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
11:38:27,230 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=MaragatoWeb.ear,jar=DMS-DAO.jar,name=DAOFactory,service=EJB3 with dependencies:
11:38:27,230 INFO [JmxKernelAbstraction] persistence.units:ear=MaragatoWeb.ear,jar=DMS-DAO.jar,unitName=PU
11:38:27,429 INFO [EJBContainer] STARTED EJB: com.digitel.ejb.DAOFactory ejbName: DAOFactory
11:38:27,577 INFO [EJB3Deployer] Deployed: file:/home/leandro/javaapps/jboss-4.2.1.GA/server/default/tmp/deploy/tmp82MaragatoWeb.ear-contents/DMS-DAO.jar
11:38:27,580 WARN [EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only com.digitel.ejb.DAOFactory in ejb-jar.xml of ElementoGerenciadoFacadenot used by any EJBs
11:38:27,581 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
11:38:27,581 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=MaragatoWeb.ear,jar=DMS-Facade.jar,name=ElementoGerenciadoFacade,service=EJB3 with dependencies:
11:38:27,669 INFO [EJBContainer] STOPPED EJB: com.digitel.facade.ElementoGerenciadoFacade ejbName: ElementoGerenciadoFacade
11:38:27,671 WARN [ServiceController] Problem starting service jboss.j2ee:ear=MaragatoWeb.ear,jar=DMS-Facade.jar,name=ElementoGerenciadoFacade,service=EJB3
java.lang.RuntimeException: could not resolve global JNDI name for @EJB for container ElementoGerenciadoFacade: reference class: com.digitel.ejb.DAOFactory ejbLink: not used by any EJBs
at org.jboss.injection.EjbEncInjector.inject(EjbEncInjector.java:88)
at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:563)
at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:125)
at org.jboss.ejb3.stateless.StatelessContainer.start(StatelessContainer.java:94)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.Delegatgoogle.com.br/ig?hl=pt-BRingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy85.start(Unknown Source)
at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)
at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:301)
at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:362)
at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy33.start(Unknown Source)
at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy34.start(Unknown Source)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
11:38:27,674 INFO [EJB3Deployer] Deployed: file:/home/leandro/javaapps/jboss-4.2.1.GA/server/default/tmp/deploy/tmp82MaragatoWeb.ear-contents/DMS-Facade.jar
11:38:27,713 INFO [TomcatDeployer] deploy, ctxPath=/DMS-Reports, warUrl=.../tmp/deploy/tmp82MaragatoWeb.ear-contents/DMS-Reports-exp.war/
11:38:28,194 INFO [EARDeployer] Started J2EE application: file:/home/leandro/javaapps/jboss-4.2.1.GA/server/default/deploy/MaragatoWeb.ear
11:38:28,215 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- MBeans waiting for other MBeans ---
ObjectName: jboss.j2ee:ear=MaragatoWeb.ear,jar=DMS-Facade.jar,name=ElementoGerenciadoFacade,service=EJB3
State: FAILED
Reason: java.lang.RuntimeException: could not resolve global JNDI name for @EJB for container ElementoGerenciadoFacade: reference class: com.digitel.ejb.DAOFactory ejbLink: not used by any EJBs
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.j2ee:ear=MaragatoWeb.ear,jar=DMS-Facade.jar,name=ElementoGerenciadoFacade,service=EJB3
State: FAILED
Reason: java.lang.RuntimeException: could not resolve global JNDI name for @EJB for container ElementoGerenciadoFacade: reference class: com.digitel.ejb.DAOFactory ejbLink: not used by any EJBs
google.com.br/ig?hl=pt-BR
11:39:41,941 INFO [TomcatDeployer] undeploy, ctxPath=/DMS-Reports, warUrl=.../tmp/deploy/tmp82MaragatoWeb.ear-contents/DMS-Reports-exp.war/
11:39:41,982 WARN [JmxKernelAbstraction] jboss.j2ee:ear=MaragatoWeb.ear,jar=DMS-Facade.jar,name=ElementoGerenciadoFacade,service=EJB3 is not registered
11:39:41,989 INFO [EJBContainer] STOPPED EJB: com.digitel.ejb.DAOFactory ejbName: DAOFactory
11:39:41,991 WARN [JmxKernelAbstraction] jboss.j2ee:ear=MaragatoWeb.ear,jar=DMS-DAO.jar,name=DAOFactory,service=EJB3 is not registered
11:39:41,991 INFO [PersistenceUnitDeployment] Stopping persistence unit persistence.units:ear=MaragatoWeb.ear,jar=DMS-DAO.jar,unitName=PU
11:39:41,991 INFO [SessionFactoryImpl] closing
11:39:41,991 INFO [SessionFactoryObjectFactory] Unbinding factory from JNDI name: persistence.units:ear=MaragatoWeb.ear,jar=DMS-DAO.jar,unitName=PU
11:39:41,991 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
11:39:41,992 INFO [SessionFactoryObjectFactory] Unbound factory from JNDI name: persistence.units:ear=MaragatoWeb.ear,jar=DMS-DAO.jar,unitName=PU
11:39:41,993 WARN [JmxKernelAbstraction] persistence.units:ear=MaragatoWeb.ear,jar=DMS-DAO.jar,unitName=PU is not registered
11:39:42,116 INFO [EARDeployer] Undeploying J2EE application, destroy step: file:/home/leandro/javaapps/jboss-4.2.1.GA/server/default/deploy/MaragatoWeb.ear
11:39:42,117 INFO [EARDeployer] Undeployed J2EE application: file:/home/leandro/javaapps/jboss-4.2.1.GA/server/default/deploy/MaragatoWeb.ear
11:39:42,158 INFO [EARDeployer] Init J2EE application: file:/home/leandro/javaapps/jboss-4.2.1.GA/server/default/deploy/MaragatoWeb.ear
11:39:42,661 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment
11:39:42,662 INFO [JmxKernelAbstraction] installing MBean: persistence.units:ear=MaragatoWeb.ear,jar=DMS-DAO.jar,unitName=PU with dependencies:
11:39:42,662 INFO [JmxKernelAbstraction] jboss.jca:name=maragato,service=DataSourceBinding
11:39:42,665 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.units:ear=MaragatoWeb.ear,jar=DMS-DAO.jar,unitName=PU
11:39:42,685 INFO [Ejb3Configuration] found EJB3 Entity bean: com.digitel.model.ElementoGerenciado
11:39:42,689 INFO [Ejb3Configuration] found EJB3 Entity bean: com.digitel.model.Imagem
11:39:42,695 INFO [Ejb3Configuration] found EJB3 Entity bean: com.digitel.model.Mapa
11:39:42,699 INFO [Ejb3Configuration] found EJB3 Entity bean: com.digitel.model.Usuario
11:39:42,705 INFO [Configuration] Reading mappings from resource : META-INF/orm.xml
11:39:42,706 INFO [Ejb3Configuration] [PersistenceUnit: PU] no META-INF/orm.xml found
11:39:42,711 INFO [AnnotationBinder] Binding entity from annotated class: com.digitel.model.ElementoGerenciado
11:39:42,711 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findById => SELECT e FROM ElementoGerenciado e WHERE e.id = :id
11:39:42,711 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByIp => SELECT e FROM ElementoGerenciado e WHERE e.ip = :ip
11:39:42,711 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByComunidadeLeitura => SELECT e FROM ElementoGerenciado e WHERE e.comunidadeLeitura = :comunidadeLeitura
11:39:42,711 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByComunidadeEscrita => SELECT e FROM ElementoGerenciado e WHERE e.comunidadeEscrita = :comunidadeEscrita
11:39:42,711 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByPorta => SELECT e FROM ElementoGerenciado e WHERE e.porta = :porta
11:39:42,712 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByPosicaox => SELECT e FROM ElementoGerenciado e WHERE e.posicaox = :posicaox
11:39:42,712 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByPosicaoy => SELECT e FROM ElementoGerenciado e WHERE e.posicaoy = :posicaoy
11:39:42,712 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findBySysObjectid => SELECT e FROM ElementoGerenciado e WHERE e.sysObjectid = :sysObjectid
11:39:42,712 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByEstacao => SELECT e FROM ElementoGerenciado e WHERE e.estacao = :estacao
11:39:42,712 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findBySysContact => SELECT e FROM ElementoGerenciado e WHERE e.sysContact = :sysContact
11:39:42,712 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findBySysDesc => SELECT e FROM ElementoGerenciado e WHERE e.sysDesc = :sysDesc
11:39:42,712 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findBySysLocation => SELECT e FROM ElementoGerenciado e WHERE e.sysLocation = :sysLocation
11:39:42,712 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findBySysName => SELECT e FROM ElementoGerenciado e WHERE e.sysName = :sysName
11:39:42,712 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByTimeout => SELECT e FROM ElementoGerenciado e WHERE e.timeout = :timeout
11:39:42,712 INFO [QueryBinder] Binding Named query: ElementoGerenciado.findByStatus => SELECT e FROM ElementoGerenciado e WHERE e.status = :status
11:39:42,713 INFO [EntityBinder] Bind entity com.digitel.model.ElementoGerenciado on table elemento_gerenciado
11:39:42,728 INFO [AnnotationBinder] Binding entity from annotated class: com.digitel.model.Imagem
11:39:42,728 INFO [QueryBinder] Binding Named query: Imagem.findById => SELECT i FROM Imagem i WHERE i.id = :id
11:39:42,728 INFO [QueryBinder] Binding Named query: Imagem.findByTipo => SELECT i FROM Imagem i WHERE i.tipo = :tipo
11:39:42,728 INFO [QueryBinder] Binding Named query: Imagem.findByTitulo => SELECT i FROM Imagem i WHERE i.titulo = :titulo
11:39:42,728 INFO [EntityBinder] Bind entity com.digitel.model.Imagem on table imagem
11:39:42,735 INFO [AnnotationBinder] Binding entity from annotated class: com.digitel.model.Mapa
11:39:42,736 INFO [QueryBinder] Binding Named query: Mapa.findById => SELECT m FROM Mapa m WHERE m.id = :id
11:39:42,736 INFO [QueryBinder] Binding Named query: Mapa.findByNome => SELECT m FROM Mapa m WHERE m.nome = :nome
11:39:42,736 INFO [QueryBinder] Binding Named query: Mapa.findByDescricao => SELECT m FROM Mapa m WHERE m.descricao = :descricao
11:39:42,736 INFO [QueryBinder] Binding Named query: Mapa.findBySeveridade => SELECT m FROM Mapa m WHERE m.severidade = :severidade
11:39:42,736 INFO [QueryBinder] Binding Named query: Mapa.findByColorr => SELECT m FROM Mapa m WHERE m.colorr = :colorr
11:39:42,736 INFO [QueryBinder] Binding Named query: Mapa.findByColorg => SELECT m FROM Mapa m WHERE m.colorg = :colorg
11:39:42,736 INFO [QueryBinder] Binding Named query: Mapa.findByColorb => SELECT m FROM Mapa m WHERE m.colorb = :colorb
11:39:42,736 INFO [QueryBinder] Binding Named query: Mapa.findByPosx => SELECT m FROM Mapa m WHERE m.posx = :posx
11:39:42,736 INFO [QueryBinder] Binding Named query: Mapa.findByPosy => SELECT m FROM Mapa m WHERE m.posy = :posy
11:39:42,736 INFO [QueryBinder] Binding Named query: Mapa.findByTipoLayout => SELECT m FROM Mapa m WHERE m.tipoLayout = :tipoLayout
11:39:42,737 INFO [EntityBinder] Bind entity com.digitel.model.Mapa on table mapa
11:39:42,753 INFO [AnnotationBinder] Binding entity from annotated class: com.digitel.model.Usuario
11:39:42,753 INFO [QueryBinder] Binding Named query: Usuario.findById => SELECT u FROM Usuario u WHERE u.id = :id
11:39:42,753 INFO [QueryBinder] Binding Named query: Usuario.findByNome => SELECT u FROM Usuario u WHERE u.nome = :nome
11:39:42,753 INFO [QueryBinder] Binding Named query: Usuario.findByDescricao => SELECT u FROM Usuario u WHERE u.descricao = :descricao
11:39:42,753 INFO [QueryBinder] Binding Named query: Usuario.findByNomeCompleto => SELECT u FROM Usuario u WHERE u.nomeCompleto = :nomeCompleto
11:39:42,753 INFO [QueryBinder] Binding Named query: Usuario.findBySenhaDigest => SELECT u FROM Usuario u WHERE u.senhaDigest = :senhaDigest
11:39:42,753 INFO [EntityBinder] Bind entity com.digitel.model.Usuario on table usuario
11:39:42,760 INFO [CollectionBinder]
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101842#4101842
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101842
18 years, 5 months
[JBoss Seam] - Re: TestNG and EJB3 interceptors
by fbenvegna
SeamInterceptor doesn't work
| @Target(ElementType.TYPE)
| @Retention(RetentionPolicy.RUNTIME)
| @Interceptors(DomainValidator.class)
| public @interface Validated {
|
| }
|
| @Stateless
| @Validated
| @Interceptors(SeamInterceptor.class)
| @Name("groupManager")
| @TransactionAttribute(TransactionAttributeType.SUPPORTS)
| public class GroupManager extends AbstractManager implements IGroupManager {
| ...
| ...
| }
|
| @Interceptor
| public class DomainValidator {
|
| @AroundInvoke
| public Object validate(InvocationContext invocationContext) throws Exception {
| Method method = invocationContext.getMethod();
| Object[] parameters = invocationContext.getParameters();
|
| Object instance = invocationContext.getTarget();
|
| System.out.println("========================================>");
|
| return invocationContext.proceed();
| }
| }
|
Please, help me
Have you any idea ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101837#4101837
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101837
18 years, 5 months
[EJB 3.0] - EJB 2.x CMP and EJB 3.0 JPA Coexistence
by Christopher_P
Hi there,
I'm a current user of EJB 2.x running on JBoss 4.0.4. My organisation are starting to upgrade to JBoss 4.2.x and we're looking to move our application to EJB 3.0.
I've already done considerable research on EJB 3.0, and in particular migration strategies from 2.x. I'm satisfied that we will be able to migrate our session beans gradually by preserving our [Local]Home interfaces so that 2.x clients can continue to use the 3.0 beans.
However, one thing that I've not been able to find a definite answer to is how well EJB 2.x and EJB 3.0 entities coexist. In particular: if I have an EJB 2.x CMP "Customer" entity, and I perform operations on it to manipulate the underlying Customer table, what happens if I concurrently use the JPA EntityManager to also manipulate the Customer table? Do CMP and JPA use the same transaction service (JTA?) and operate as if I was simply using two CMPs, or two EntityManagers? Or do the two opposing persistence mechanisms conflict with each other in some way?
Your advice, or any resources you can point me to, would be much appreciated.
Cheers,
Chris Paton
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101834#4101834
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101834
18 years, 5 months