IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Frameworks Web Java Discussion :

Projet EJB / JPA / JSF


Sujet :

Frameworks Web Java

  1. #1
    Nouveau membre du Club
    Inscrit en
    Novembre 2009
    Messages
    25
    Détails du profil
    Informations forums :
    Inscription : Novembre 2009
    Messages : 25
    Points : 25
    Points
    25
    Par défaut Projet EJB / JPA / JSF
    Bonjour,
    J'ai deux projet un .war (avec primefaces) et l'autre ejb3.
    Ces deux projets sont inclus dans un projet EAR .
    Le problème est le suivant:
    Quand j'exécute une page.xhtml elle apparait normalemnt mais dés que j'ajoute la classe du managed bean et celle de session bean le serveur jboss6.0as ne répond plus méme il n'affiche aucun erreur c à dire pas de réaction.
    J'utilise Eclipse indigo et jbossAS6.0.Qu'est ce que je peux faire ??
    Merci.

  2. #2
    Membre actif Avatar de fahdijbeli
    Homme Profil pro
    Étudiant
    Inscrit en
    Juin 2012
    Messages
    281
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Juin 2012
    Messages : 281
    Points : 240
    Points
    240
    Par défaut
    Bonjour,
    Montre comment t'as fait l’instanciation des ces beans.

  3. #3
    Nouveau membre du Club
    Inscrit en
    Novembre 2009
    Messages
    25
    Détails du profil
    Informations forums :
    Inscription : Novembre 2009
    Messages : 25
    Points : 25
    Points
    25
    Par défaut
    Voici la page xhtml
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    <p:panel style=" height:235px;width:730px;text-align:Center;" >
            <h:form prependId="false">  
     
               <p:dataTable id="dataTable" var="item" value="#{clientManagedBean.allClient()}"  paginator="true" rows="7" paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"  
                          style="font-size: 13px">
               <f:facet name="header"> Liste des clients </f:facet>  
               <p:column headerText="Code" style="width:60px">  
                  <h:outputText value="#{item.code}" style="width:60px" /> 
               </p:column> 
               <p:column headerText="Caption" style="width:60px">  
                  <h:outputText  value="#{item.caption}" style="width:60px"/>  
               </p:column> 
               <p:column headerText="Adresse" style="width:60px">
                  <h:outputText value="#{item.adresse}" style="width:60px">  
     
                  </h:outputText>
               </p:column>
                <p:column headerText="Qualité" style="width:60px">
                   <h:outputText value="#{item.qualite}" style="width:60px">  
     
                   </h:outputText>
               </p:column>
               <p:column headerText="EMail" style="width:60px">
                  <h:outputText value="#{item.eMail}" style="width:60px"/>  
               </p:column>
     
             </p:dataTable>
    </h:form>  
    </p:panel>
    Le managedBean:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    package managedBean.Tiers;
     
    import entities.*;
    import java.io.Serializable;
    import java.util.List;
     
    import javax.ejb.EJB;
    import javax.enterprise.context.RequestScoped;
    import javax.inject.Named;
     
    import session.tiers.ClientSessionBean;
     
    @Named(value = "clientManagedBean")
    @RequestScoped
     
    public class ClientManagedBean implements Serializable  {
     
        private static final long serialVersionUID = 1L;
        @EJB(beanName="clientSB")
        private ClientSessionBean clientSB;
     
        public ClientManagedBean(){}
     
        public List<DboMmTier> allClient() {return clientSB.toutClient();}
    }
    Le sessionBean
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    package session.tiers;
     
    import java.util.List;
     
    import javax.ejb.LocalBean;
    import javax.ejb.Stateless;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    import javax.persistence.Query;
     
    import entities.DboMmTier;
     
    /**
     * Session Bean implementation class ClientSessionBean
     */
    @Stateless(name = "clientSB")
    @LocalBean
    public class ClientSessionBean {
        @PersistenceContext(unitName = "EjbCommerciale")
        private EntityManager em;
     
        /**
         * Default constructor. 
         */
        public ClientSessionBean() {
            // TODO Auto-generated constructor stub
        }
     
     
        public void persist(Object object) {
            em.persist(object);
        }
     
        public List<DboMmTier> toutClient(){
            Query query=em.createQuery("select r from DboMmTier r where r.type=1");
     
            return query.getResultList();
        }  
    }
    le face-config:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    package session.tiers;
     
    import java.util.List;
     
    import javax.ejb.LocalBean;
    import javax.ejb.Stateless;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    import javax.persistence.Query;
     
    import entities.DboMmTier;
     
    /**
     * Session Bean implementation class ClientSessionBean
     */
    @Stateless(name = "clientSB")
    @LocalBean
    public class ClientSessionBean {
        @PersistenceContext(unitName = "EjbCommerciale")
        private EntityManager em;
     
        /**
         * Default constructor. 
         */
        public ClientSessionBean() {
            // TODO Auto-generated constructor stub
        }
     
     
        public void persist(Object object) {
            em.persist(object);
        }
     
        public List<DboMmTier> toutClient(){
            Query query=em.createQuery("select r from DboMmTier r where r.type=1");
     
            return query.getResultList();
        }  
    }
    Le web.xml:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">
      <display-name>GestionCommercialeWeb</display-name>
      <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
      </servlet>
       <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>*.xhtml</url-pattern>
        </servlet-mapping>
     
         <context-param>  
                <param-name>primefaces.THEME</param-name>  
                <param-value>start</param-value>  
         </context-param>
    </web-app>

  4. #4
    Membre actif Avatar de fahdijbeli
    Homme Profil pro
    Étudiant
    Inscrit en
    Juin 2012
    Messages
    281
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Juin 2012
    Messages : 281
    Points : 240
    Points
    240
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    value="#{clientManagedBean.allClient()}"
    éliminer les parenthéses devient :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    value="#{clientManagedBean.allClient}"
    fait de :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    @ManagedBean(name = "clientManagedBean")
    au lieu de :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    @Named(value = "clientManagedBean")

  5. #5
    Nouveau membre du Club
    Inscrit en
    Novembre 2009
    Messages
    25
    Détails du profil
    Informations forums :
    Inscription : Novembre 2009
    Messages : 25
    Points : 25
    Points
    25
    Par défaut
    J'ai changé comme vous avez dit mais ça reste le même problème et voici le console de mon serveur qui ne réagit pas:
    15:48:53,572 INFO [AbstractJBossASServerBase] Server Configuration:

    JBOSS_HOME URL: file:/C:/Projetentretien/jboss-as-distribution-6.1.0.Final/jboss-6.1.0.Final/
    Bootstrap: $JBOSS_HOME\server/default/conf/bootstrap.xml
    Common Base: $JBOSS_HOME\common/
    Common Library: $JBOSS_HOME\common/lib/
    Server Name: default
    Server Base: $JBOSS_HOME\server/
    Server Library: $JBOSS_HOME\server/default/lib/
    Server Config: $JBOSS_HOME\server/default/conf/
    Server Home: $JBOSS_HOME\server/default/
    Server Data: $JBOSS_HOME\server/default/data/
    Server Log: $JBOSS_HOME\server/default/log/
    Server Temp: $JBOSS_HOME\server/default/tmp/

    15:48:53,588 INFO [AbstractServer] Starting: JBossAS [6.1.0.Final "Neo"]
    15:48:57,356 INFO [ServerInfo] Java version: 1.7.0-ea,Oracle Corporation
    15:48:57,356 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.7.0-ea-b119)
    15:48:57,357 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 20.0-b03,Oracle Corporation
    15:48:57,357 INFO [ServerInfo] OS-System: Windows 7 6.1,x86
    15:48:57,357 INFO [ServerInfo] VM arguments: -Dprogram.name=JBossTools: JBoss 6.x Runtime -Xms256m -Xmx768m -XX:MaxPermSize=256m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.endorsed.dirs=C:\Projetentretien\jboss-as-distribution-6.1.0.Final\jboss-6.1.0.Final\lib\endorsed -Djava.library.path=C:/Projetentretien/jboss-as-distribution-6.1.0.Final/jboss-6.1.0.Final/bin/native -Dlogging.configuration=file:C:/Projetentretien/jboss-as-distribution-6.1.0.Final/jboss-6.1.0.Final/bin/logging.properties -Dfile.encoding=Cp1252
    15:48:57,450 INFO [JMXKernel] Legacy JMX core initialized
    15:49:09,242 INFO [AbstractServerConfig] JBoss Web Services - Stack CXF Server 3.4.1.GA
    15:49:10,408 INFO [JSFImplManagementDeployer] Initialized 3 JSF configurations: [Mojarra-1.2, MyFaces-2.0, Mojarra-2.0]
    15:49:22,063 ATTENTION [FileConfigurationParser] AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
    15:49:22,354 INFO [JMXConnector] starting JMXConnector on host localhost:1090
    15:49:22,607 INFO [MailService] Mail Service bound to java:/Mail
    15:49:24,038 INFO [HornetQServerImpl] live server is starting with configuration HornetQ Configuration (clustered=false,backup=false,sharedStore=true,journalDirectory=C:\Projetentretien\jboss-as-distribution-6.1.0.Final\jboss-6.1.0.Final\server\default\data/hornetq/journal,bindingsDirectory=C:\Projetentretien\jboss-as-distribution-6.1.0.Final\jboss-6.1.0.Final\server\default\data/hornetq/bindings,largeMessagesDirectory=C:\Projetentretien\jboss-as-distribution-6.1.0.Final\jboss-6.1.0.Final\server\default\data/hornetq/largemessages,pagingDirectory=C:\Projetentretien\jboss-as-distribution-6.1.0.Final\jboss-6.1.0.Final\server\default\data/hornetq/paging)
    15:49:24,039 INFO [HornetQServerImpl] Waiting to obtain live lock
    15:49:24,612 INFO [JournalStorageManager] Using NIO Journal
    15:49:24,682 ATTENTION [HornetQServerImpl] Security risk! It has been detected that the cluster admin user and password have not been changed from the installation default. Please see the HornetQ user guide, cluster chapter, for instructions on how to do this.
    15:49:25,043 INFO [FileLockNodeManager] Waiting to obtain live lock
    15:49:25,044 INFO [FileLockNodeManager] Live Server Obtained live lock
    15:49:26,375 INFO [NettyAcceptor] Started Netty Acceptor version 3.2.3.Final-r${buildNumber} localhost:5445 for CORE protocol
    15:49:26,377 INFO [NettyAcceptor] Started Netty Acceptor version 3.2.3.Final-r${buildNumber} localhost:5455 for CORE protocol
    15:49:26,380 INFO [HornetQServerImpl] Server is now live
    15:49:26,380 INFO [HornetQServerImpl] HornetQ Server version 2.2.5.Final (HQ_2_2_5_FINAL_AS7, 121) [35510767-9c9c-11e2-abe4-ec55f98b261b] started
    15:49:26,426 INFO [WebService] Using RMI server codebase: http://localhost:8083/
    15:49:26,794 INFO [jbossatx] ARJUNA-32010 JBossTS Recovery Service (tag: JBOSSTS_4_14_0_Final) - JBoss Inc.
    15:49:26,802 INFO [arjuna] ARJUNA-12324 Start RecoveryActivators
    15:49:26,847 INFO [arjuna] ARJUNA-12296 ExpiredEntryMonitor running at jeu., 11 avr. 2013 15:49:26
    15:49:26,926 INFO [arjuna] ARJUNA-12310 Recovery manager listening on endpoint 127.0.0.1:4712
    15:49:26,926 INFO [arjuna] ARJUNA-12344 RecoveryManagerImple is ready on port 4712
    15:49:26,927 INFO [jbossatx] ARJUNA-32013 Starting transaction recovery manager
    15:49:26,934 INFO [arjuna] ARJUNA-12163 Starting service com.arjuna.ats.arjuna.recovery.ActionStatusService on port 4713
    15:49:26,935 INFO [arjuna] ARJUNA-12337 TransactionStatusManagerItem host: 127.0.0.1 port: 4713
    15:49:26,975 INFO [arjuna] ARJUNA-12170 TransactionStatusManager started on port 4713 and host 127.0.0.1 with service com.arjuna.ats.arjuna.recovery.ActionStatusService
    15:49:27,019 INFO [jbossatx] ARJUNA-32017 JBossTS Transaction Service (JTA version - tag: JBOSSTS_4_14_0_Final) - JBoss Inc.
    15:49:27,091 INFO [arjuna] ARJUNA-12202 registering bean jboss.jta:type=ObjectStore.
    15:49:27,617 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:/Projetentretien/jboss-as-distribution-6.1.0.Final/jboss-6.1.0.Final/bin/native
    15:49:27,860 INFO [TomcatDeployment] deploy, ctxPath=/invoker
    15:49:29,130 INFO [ModClusterService] Initializing mod_cluster 1.1.0.Final
    15:49:29,184 INFO [RARDeployment] Required license terms exist, view vfs:/C:/Projetentretien/jboss-as-distribution-6.1.0.Final/jboss-6.1.0.Final/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
    15:49:29,204 INFO [RARDeployment] Required license terms exist, view vfs:/C:/Projetentretien/jboss-as-distribution-6.1.0.Final/jboss-6.1.0.Final/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
    15:49:29,211 INFO [RARDeployment] Required license terms exist, view vfs:/C:/Projetentretien/jboss-as-distribution-6.1.0.Final/jboss-6.1.0.Final/server/default/deploy/jms-ra.rar/META-INF/ra.xml
    15:49:29,224 INFO [HornetQResourceAdapter] HornetQ resource adaptor started
    15:49:29,230 INFO [RARDeployment] Required license terms exist, view vfs:/C:/Projetentretien/jboss-as-distribution-6.1.0.Final/jboss-6.1.0.Final/server/default/deploy/mail-ra.rar/META-INF/ra.xml
    15:49:29,283 INFO [RARDeployment] Required license terms exist, view vfs:/C:/Projetentretien/jboss-as-distribution-6.1.0.Final/jboss-6.1.0.Final/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
    15:49:29,426 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: Thread-2
    15:49:29,464 INFO [SchedulerSignalerImpl] Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
    15:49:29,464 INFO [QuartzScheduler] Quartz Scheduler v.1.8.3 created.
    15:49:29,467 INFO [RAMJobStore] RAMJobStore initialized.
    15:49:29,469 INFO [QuartzScheduler] Scheduler meta-data: Quartz Scheduler (v1.8.3) 'JBossQuartzScheduler' with instanceId 'NON_CLUSTERED'
    Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
    NOT STARTED.
    Currently in standby mode.
    Number of jobs executed: 0
    Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
    Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

    15:49:29,469 INFO [StdSchedulerFactory] Quartz scheduler 'JBossQuartzScheduler' initialized from an externally opened InputStream.
    15:49:29,469 INFO [StdSchedulerFactory] Quartz scheduler version: 1.8.3
    15:49:29,469 INFO [QuartzScheduler] Scheduler JBossQuartzScheduler_$_NON_CLUSTERED started.
    15:49:30,064 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'javaefaultDS'
    15:49:30,913 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
    15:49:31,121 INFO [xnio] XNIO Version 2.1.0.CR2
    15:49:31,130 INFO [nio] XNIO NIO Implementation Version 2.1.0.CR2
    15:49:31,956 INFO [remoting] JBoss Remoting version 3.1.0.Beta2
    15:49:32,114 INFO [TomcatDeployment] deploy, ctxPath=/
    15:49:32,226 INFO [HornetQServerImpl] trying to deploy queue jms.queue.ExpiryQueue
    15:49:32,260 INFO [HornetQServerImpl] trying to deploy queue jms.queue.DLQ
    15:49:32,284 INFO [service] Removing bootstrap log handlers
    15:49:32,356 INFO [org.apache.coyote.http11.Http11Protocol] Démarrage de Coyote HTTP/1.1 sur http-localhost%2F127.0.0.1-8080
    15:49:32,370 INFO [org.apache.coyote.ajp.AjpProtocol] Starting Coyote AJP/1.3 on ajp-localhost%2F127.0.0.1-8009
    15:49:32,370 INFO [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS [6.1.0.Final "Neo"] Started in 38s:752ms
    15:49:39,358 INFO [org.jboss.jpa.mcint.beans.metadata.plugins.PersistenceUnitValueMetaData] iDependOn persistence.unit:unitName=jboss-ejb3-timerservice-mk2.jar#timerdb
    15:49:39,365 INFO [org.jboss.jpa.deployment.PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=jboss-ejb3-timerservice-mk2.jar#timerdb
    15:49:39,918 INFO [org.hibernate.annotations.common.Version] Hibernate Commons Annotations 3.2.0.Final
    15:49:39,944 INFO [org.hibernate.cfg.Environment] Hibernate 3.6.6.Final
    15:49:39,948 INFO [org.hibernate.cfg.Environment] hibernate.properties not found
    15:49:39,954 INFO [org.hibernate.cfg.Environment] Bytecode provider name : javassist
    15:49:39,962 INFO [org.hibernate.cfg.Environment] using JDK 1.4 java.sql.Timestamp handling
    15:49:40,153 INFO [org.hibernate.ejb.Version] Hibernate EntityManager 3.6.6.Final
    15:49:40,224 INFO [org.hibernate.ejb.Ejb3Configuration] Processing PersistenceUnitInfo [
    name: timerdb
    ...]
    15:49:40,259 WARN [org.hibernate.ejb.Ejb3Configuration] Persistence provider caller does not implement the EJB3 spec correctly.PersistenceUnitInfo.getNewTempClassLoader() is null.
    15:49:40,410 INFO [org.hibernate.cfg.AnnotationBinder] Binding entity from annotated class: org.jboss.ejb3.timerservice.mk2.persistence.TimerEntity
    15:49:40,478 INFO [org.hibernate.cfg.annotations.EntityBinder] Bind entity org.jboss.ejb3.timerservice.mk2.persistence.TimerEntity on table timer
    15:49:40,570 INFO [org.hibernate.cfg.AnnotationBinder] Binding entity from annotated class: org.jboss.ejb3.timerservice.mk2.persistence.TimeoutMethod
    15:49:40,577 INFO [org.hibernate.cfg.annotations.EntityBinder] Bind entity org.jboss.ejb3.timerservice.mk2.persistence.TimeoutMethod on table timeout_method
    15:49:40,636 INFO [org.hibernate.cfg.AnnotationBinder] Binding entity from annotated class: org.jboss.ejb3.timerservice.mk2.persistence.CalendarTimerEntity
    15:49:40,638 INFO [org.hibernate.cfg.annotations.EntityBinder] Bind entity org.jboss.ejb3.timerservice.mk2.persistence.CalendarTimerEntity on table calendar_timer
    15:49:40,740 INFO [org.hibernate.validator.Version] Hibernate Validator 3.1.0.GA
    15:49:40,806 INFO [org.hibernate.validator.util.Version] Hibernate Validator 4.1.0.Final
    15:49:40,824 INFO [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
    15:49:41,025 INFO [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
    15:49:41,039 INFO [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
    15:49:41,048 INFO [org.hibernate.cfg.search.HibernateSearchEventListenerRegister] Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
    15:49:41,069 INFO [org.hibernate.connection.ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
    15:49:41,074 INFO [org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider] Using provided datasource
    15:49:41,148 INFO [org.hibernate.dialect.Dialect] Using dialect: org.hibernate.dialect.HSQLDialect
    15:49:41,182 INFO [org.hibernate.engine.jdbc.JdbcSupportLoader] Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4
    15:49:41,182 INFO [org.hibernate.cfg.SettingsFactory] Database ->
    name : HSQL Database Engine
    version : 1.8.0
    major : 1
    minor : 8
    15:49:41,182 INFO [org.hibernate.cfg.SettingsFactory] Driver ->
    name : HSQL Database Engine Driver
    version : 1.8.0
    major : 1
    minor : 8
    15:49:41,185 INFO [org.hibernate.transaction.TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
    15:49:41,188 INFO [org.hibernate.transaction.TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
    15:49:41,193 INFO [org.hibernate.transaction.TransactionManagerLookupFactory] instantiated TransactionManagerLookup
    15:49:41,193 INFO [org.hibernate.cfg.SettingsFactory] Automatic flush during beforeCompletion(): disabled
    15:49:41,193 INFO [org.hibernate.cfg.SettingsFactory] Automatic session close at end of transaction: disabled
    15:49:41,194 INFO [org.hibernate.cfg.SettingsFactory] JDBC batch size: 15
    15:49:41,194 INFO [org.hibernate.cfg.SettingsFactory] JDBC batch updates for versioned data: disabled
    15:49:41,201 INFO [org.hibernate.cfg.SettingsFactory] Scrollable result sets: enabled
    15:49:41,201 INFO [org.hibernate.cfg.SettingsFactory] JDBC3 getGeneratedKeys(): disabled
    15:49:41,201 INFO [org.hibernate.cfg.SettingsFactory] Connection release mode: auto
    15:49:41,734 INFO [org.hibernate.cfg.SettingsFactory] Default batch fetch size: 1
    15:49:41,734 INFO [org.hibernate.cfg.SettingsFactory] Generate SQL with comments: disabled
    15:49:41,734 INFO [org.hibernate.cfg.SettingsFactory] Order SQL updates by primary key: disabled
    15:49:41,734 INFO [org.hibernate.cfg.SettingsFactory] Order SQL inserts for batching: disabled
    15:49:41,734 INFO [org.hibernate.cfg.SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
    15:49:41,807 INFO [org.hibernate.hql.ast.ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
    15:49:41,808 INFO [org.hibernate.cfg.SettingsFactory] Query language substitutions: {}
    15:49:41,808 INFO [org.hibernate.cfg.SettingsFactory] JPA-QL strict compliance: enabled
    15:49:41,808 INFO [org.hibernate.cfg.SettingsFactory] Second-level cache: enabled
    15:49:41,808 INFO [org.hibernate.cfg.SettingsFactory] Query cache: disabled
    15:49:41,812 INFO [org.hibernate.cfg.SettingsFactory] Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge
    15:49:41,830 INFO [org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge] Cache provider: org.hibernate.cache.HashtableCacheProvider
    15:49:41,836 INFO [org.hibernate.cfg.SettingsFactory] Optimize cache for minimal puts: disabled
    15:49:41,836 INFO [org.hibernate.cfg.SettingsFactory] Cache region prefix: persistence.unit:unitName=jboss-ejb3-timerservice-mk2.jar#timerdb
    15:49:41,836 INFO [org.hibernate.cfg.SettingsFactory] Structured second-level cache entries: disabled
    15:49:41,853 INFO [org.hibernate.cfg.SettingsFactory] Statistics: disabled
    15:49:41,853 INFO [org.hibernate.cfg.SettingsFactory] Deleted entity synthetic identifier rollback: disabled
    15:49:41,854 INFO [org.hibernate.cfg.SettingsFactory] Default entity-mode: pojo
    15:49:41,854 INFO [org.hibernate.cfg.SettingsFactory] Named query checking : enabled
    15:49:41,854 INFO [org.hibernate.cfg.SettingsFactory] Check Nullability in Core (should be disabled when Bean Validation is on): disabled
    15:49:41,906 INFO [org.hibernate.impl.SessionFactoryImpl] building session factory
    15:49:41,922 INFO [org.hibernate.type.BasicTypeRegistry] Type registration [blob] overrides previous : org.hibernate.type.BlobType@16775bd
    15:49:41,922 INFO [org.hibernate.type.BasicTypeRegistry] Type registration [java.sql.Blob] overrides previous : org.hibernate.type.BlobType@16775bd
    15:49:41,922 INFO [org.hibernate.type.BasicTypeRegistry] Type registration [characters_clob] overrides previous : org.hibernate.type.PrimitiveCharacterArrayClobType@162f2fe
    15:49:41,922 INFO [org.hibernate.type.BasicTypeRegistry] Type registration [wrapper_materialized_blob] overrides previous : org.hibernate.type.WrappedMaterializedBlobType@13f2442
    15:49:41,922 INFO [org.hibernate.type.BasicTypeRegistry] Type registration [clob] overrides previous : org.hibernate.type.ClobType@6573f3
    15:49:41,922 INFO [org.hibernate.type.BasicTypeRegistry] Type registration [java.sql.Clob] overrides previous : org.hibernate.type.ClobType@6573f3
    15:49:41,922 INFO [org.hibernate.type.BasicTypeRegistry] Type registration [materialized_blob] overrides previous : org.hibernate.type.MaterializedBlobType@9f8a03
    15:49:41,922 INFO [org.hibernate.type.BasicTypeRegistry] Type registration [wrapper_characters_clob] overrides previous : org.hibernate.type.CharacterArrayClobType@1dec1a
    15:49:41,923 INFO [org.hibernate.type.BasicTypeRegistry] Type registration [materialized_clob] overrides previous : org.hibernate.type.MaterializedClobType@77b490
    15:49:42,324 INFO [org.hibernate.impl.SessionFactoryObjectFactory] Factory name: persistence.unit:unitName=jboss-ejb3-timerservice-mk2.jar#timerdb
    15:49:42,326 INFO [org.hibernate.util.NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
    15:49:42,331 INFO [org.hibernate.impl.SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.unit:unitName=jboss-ejb3-timerservice-mk2.jar#timerdb
    15:49:42,341 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] Running hbm2ddl schema update
    15:49:42,341 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] fetching database metadata
    15:49:42,342 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] updating schema
    15:49:42,345 INFO [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
    15:49:42,366 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] table found: PUBLIC.TIMEOUTMETHOD_METHODPARAMS
    15:49:42,366 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] columns: [methodparams, timeoutmethod_id]
    15:49:42,366 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] foreign keys: [fkf294c964b7de2d8a]
    15:49:42,367 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] indexes: [sys_idx_55]
    15:49:42,373 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] table found: PUBLIC.CALENDAR_TIMER
    15:49:42,373 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] columns: [scheduleexprtimezone, scheduleexprsecond, autotimer, scheduleexprstartdate, scheduleexprminute, scheduleexprhour, timeoutmethod_id, id, scheduleexprdayofmonth, scheduleexprenddate, scheduleexprmonth, scheduleexprdayofweek, scheduleexpryear]
    15:49:42,373 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] foreign keys: [fk2b697f04b7de2d8a, fk2b697f04e6e6ef93]
    15:49:42,373 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] indexes: [sys_idx_57, sys_idx_49, sys_idx_59]
    15:49:42,379 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] table found: PUBLIC.TIMEOUT_METHOD
    15:49:42,379 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] columns: [id, methodname, declaringclass]
    15:49:42,379 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] foreign keys: []
    15:49:42,379 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] indexes: [sys_idx_51]
    15:49:42,389 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] table found: PUBLIC.TIMER
    15:49:42,389 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] columns: [id, previousrun, initialdate, repeatinterval, timedobjectid, timerstate, nextdate, info]
    15:49:42,389 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] foreign keys: []
    15:49:42,389 INFO [org.hibernate.tool.hbm2ddl.TableMetadata] indexes: [sys_idx_53]
    15:49:42,391 INFO [org.hibernate.tool.hbm2ddl.SchemaUpdate] schema update complete
    15:49:42,396 INFO [org.hibernate.util.NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
    15:49:42,693 WARN [org.jboss.ejb3.interceptor.InterceptorInfoRepository] EJBTHREE-1852: InterceptorInfoRepository is deprecated
    15:49:43,842 INFO [org.jboss.ejb3.deployers.JBossASKernel] Created KernelDeployment for: GestionCommercialeWeb.war
    15:49:43,846 INFO [org.jboss.ejb3.deployers.JBossASKernel] installing bean: jboss.j2ee:ear=GestionCommerciale.ear,jar=GestionCommercialeWeb.war,name=clientSB,service=EJB3
    15:49:43,846 INFO [org.jboss.ejb3.deployers.JBossASKernel] with dependencies:
    15:49:43,846 INFO [org.jboss.ejb3.deployers.JBossASKernel] and demands:
    15:49:43,847 INFO [org.jboss.ejb3.deployers.JBossASKernel] jboss-injector:topLevelUnit=GestionCommerciale.ear,unit=GestionCommercialeWeb.war,bean=clientSB; Required: Described
    15:49:43,847 INFO [org.jboss.ejb3.deployers.JBossASKernel] jboss.ejb:service=EJBTimerService; Required: Described
    INFO [org.jboss.ejb3.deployers.JBossASKernel] persistence.unit:unitName=GestionCommerciale.ear/GestionCommercialeWeb.war#EjbCommerciale; Required: Described
    INFO [org.jboss.ejb3.deployers.JBossASKernel] jboss-switchboard:appName=GestionCommerciale,module=GestionCommercialeWeb; Required: Create
    INFO [org.jboss.ejb3.deployers.JBossASKernel] and supplies:
    INFO [org.jboss.ejb3.deployers.JBossASKernel] jndi:clientSB
    INFO [org.jboss.ejb3.deployers.JBossASKernel] Added bean(jboss.j2ee:ear=GestionCommerciale.ear,jar=GestionCommercialeWeb.war,name=clientSB,service=EJB3) to KernelDeployment of: GestionCommercialeWeb.war

  6. #6
    Membre actif Avatar de fahdijbeli
    Homme Profil pro
    Étudiant
    Inscrit en
    Juin 2012
    Messages
    281
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Juin 2012
    Messages : 281
    Points : 240
    Points
    240
    Par défaut
    Je ne vois rien de grave dans ce qui est affiché par JBoss, tous va bien mais je n'ai pas bien compris, lorsque tu ajoutes les beans la page ne s'affiche pas ?

Discussions similaires

  1. Import d'un projet JPA dans un projet EJB
    Par jecomprendsrien dans le forum Maven
    Réponses: 0
    Dernier message: 10/10/2011, 20h27
  2. Réponses: 0
    Dernier message: 31/05/2011, 17h05
  3. Réponses: 8
    Dernier message: 25/03/2011, 23h37
  4. [EJB3] Erreur de lancement d'application EJB, JPA, JSF
    Par steave dans le forum Java EE
    Réponses: 5
    Dernier message: 14/10/2009, 23h18
  5. Réponses: 4
    Dernier message: 02/08/2008, 19h56

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo