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

Wildfly/JBoss Java Discussion :

Appel d'EJB à partir d'une JSP


Sujet :

Wildfly/JBoss Java

  1. #1
    Membre du Club
    Profil pro
    Inscrit en
    Avril 2003
    Messages
    114
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2003
    Messages : 114
    Points : 67
    Points
    67
    Par défaut Appel d'EJB à partir d'une JSP
    Bonjour,

    Débutant je souhaite tester l'appel d'EJB à partir d'une JSP.
    Mon EJB :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
     
    package ejb;
    import javax.ejb.Stateless;
    import org.jboss.ejb3.annotation.Clustered;
    @Stateless
    @Clustered
    public class CompteurEJB implements CompteurEJBRemote {
        @Override
        public void affiche(int msg) {
            System.out.println(msg);
        }
    }


    Mon EJB façade :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
     
    package ejb;
    import javax.ejb.Remote;
    @Remote
    public interface CompteurEJBRemote {
        public void affiche(int msg);
    }

    Mon package ejb se trouve dans ejbSLSBCluster.jar.



    Mon client (JSP) :
    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
     
    <?xml version="1.0" encoding="UTF-8" ?>
    <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
    <%@ page import= "ejb.CompteurEJBRemote"%>
    <%@ page import= "javax.naming.*"%>
    <%@ page import= "java.text.*"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>JSP de stress</title>
    </head>
    <body>
        <table>
            <%!
                public void jspInit () {
                    try {
                        InitialContext ctx = new InitialContext();
                        CompteurEJBRemote s = (CompteurEJBRemote) ctx.lookup("CompteurEJB/remote");
                        for (int i = 0; i < 300; i++) {
                            %><tr><td>test<%!
                            s.affiche(i);
                            %></td></tr><%!
                         }
                    }
                    catch (Exception e)  { e.printStackTrace (); }
                }
            %>
        </table>
    </body>
    </html>

    Mon JSP est dans .war ou j'ai mis :
    ejbSLSBCluster.jar dans WEB-INF/lib
    jndi.properties dans WEB-INF :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
    java.naming.provider.url=jnp://127.0.0.1:1099
    java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

    Mon 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
    19
    20
    21
    22
    23
    24
    25
    26
     
     <?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_2_5.xsd"
        id="WebApp_ID" version="2.5">
        <display-name>clientcompteurweb</display-name>
        <servlet>
            <description>Point d'entree de l'application</description>
            <display-name>Controlpea</display-name>
            <servlet-name>Controlpea</servlet-name>
            <servlet-class>com.saintquentin.pea.Controlpea</servlet-class>
        </servlet>
     
        <servlet-mapping>
            <servlet-name>Controlpea</servlet-name>
            <url-pattern>/Controlpea</url-pattern>
        </servlet-mapping>
     
        <resource-env-ref>
            <description>Bind de mon bean</description>
            <resource-env-ref-name>CompteurEJB/remote</resource-env-ref-name>
            <resource-env-ref-type>ejb.CompteurEJB</resource-env-ref-type>
            <mapped-name>java:CompteurEJB/remote</mapped-name>
        </resource-env-ref>
    </web-app>

    Mais quand j'exécute ma servlet lance bien ma JSP mais j'ai cette erreur :
    17:06:27,649 ERROR [STDERR] javax.naming.NameNotFoundException: CompteurEJB not bound

    Je pense que je dois oublier des morceaux. Si quelqu'un a une idée. Je joins mon .war.

    Merci par avance pour votre aide
    Couse1
    Fichiers attachés Fichiers attachés

  2. #2
    Membre chevronné
    Profil pro
    Inscrit en
    Octobre 2005
    Messages
    940
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : France

    Informations forums :
    Inscription : Octobre 2005
    Messages : 940
    Points : 1 817
    Points
    1 817
    Par défaut
    Votre classe s'appelle CompteurEJBRemote, peut-être devriez vous essayer
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    ctx.lookup("CompteurEJBRemote/remote");
    Pouvez vous copier le journal de lancement de JBoss? On pourrait y voir si l'EJB est bel et bien lancé.

  3. #3
    Membre du Club
    Profil pro
    Inscrit en
    Avril 2003
    Messages
    114
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2003
    Messages : 114
    Points : 67
    Points
    67
    Par défaut
    Le journal de lancement (JBOSS 5.1) est le suivant :
    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
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
     
    10:41:27,347 INFO  [ServerImpl] Starting JBoss (Microcontainer)...
    10:41:27,349 INFO  [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)
    10:41:27,350 INFO  [ServerImpl] Bootstrap URL: null
    10:41:27,350 INFO  [ServerImpl] Home Dir: C:\Serveur\jboss
    10:41:27,350 INFO  [ServerImpl] Home URL: file:/C:/Serveur/jboss/
    10:41:27,350 INFO  [ServerImpl] Library URL: file:/C:/Serveur/jboss/lib/
    10:41:27,351 INFO  [ServerImpl] Patch URL: null
    10:41:27,351 INFO  [ServerImpl] Common Base URL: file:/C:/Serveur/jboss/common/
    10:41:27,351 INFO  [ServerImpl] Common Library URL: file:/C:/Serveur/jboss/common/lib/
    10:41:27,351 INFO  [ServerImpl] Server Name: peadef
    10:41:27,352 INFO  [ServerImpl] Server Base Dir: C:\Serveur\jboss\server
    10:41:27,352 INFO  [ServerImpl] Server Base URL: file:/C:/Serveur/jboss/server/
    10:41:27,352 INFO  [ServerImpl] Server Config URL: file:/C:/Serveur/jboss/server/peadef/conf/
    10:41:27,352 INFO  [ServerImpl] Server Home Dir: C:\Serveur\jboss\server\peadef
    10:41:27,352 INFO  [ServerImpl] Server Home URL: file:/C:/Serveur/jboss/server/peadef/
    10:41:27,352 INFO  [ServerImpl] Server Data Dir: C:\Serveur\jboss\server\peadef\data
    10:41:27,353 INFO  [ServerImpl] Server Library URL: file:/C:/Serveur/jboss/server/peadef/lib/
    10:41:27,353 INFO  [ServerImpl] Server Log Dir: C:\Serveur\jboss\server\peadef\log
    10:41:27,353 INFO  [ServerImpl] Server Native Dir: C:\Serveur\jboss\server\peadef\tmp\native
    10:41:27,353 INFO  [ServerImpl] Server Temp Dir: C:\Serveur\jboss\server\peadef\tmp
    10:41:27,353 INFO  [ServerImpl] Server Temp Deploy Dir: C:\Serveur\jboss\server\peadef\tmp\deploy
    10:41:27,910 INFO  [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/Serveur/jboss/server/peadef/conf/bootstrap.xml
    10:41:28,508 INFO  [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
    10:41:28,511 INFO  [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
    10:41:28,737 INFO  [CopyMechanism] VFS temp dir: C:\Serveur\jboss\server\peadef\tmp
    10:41:28,843 INFO  [ZipEntryContext] VFS force nested jars copy-mode is enabled.
    10:41:29,834 INFO  [ServerInfo] Java version: 1.6.0_24,Sun Microsystems Inc.
    10:41:29,834 INFO  [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
    10:41:29,834 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Client VM 19.1-b02,Sun Microsystems Inc.
    10:41:29,835 INFO  [ServerInfo] OS-System: Windows 7 6.1,x86
    10:41:29,836 INFO  [ServerInfo] VM arguments: -Dprogram.name=run.bat -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dfile.encoding=Cp1252 
    10:41:29,863 INFO  [JMXKernel] Legacy JMX core initialized
    10:41:31,100 INFO  [ProfileServiceBootstrap] Loading profile: ProfileKey@6c08b2[domain=default, server=default, name=peadef]
    10:41:32,369 INFO  [WebService] Using RMI server codebase: http://127.0.0.1:8083/
    10:41:37,315 INFO  [NativeServerConfig] JBoss Web Services - Stack Native Core
    10:41:37,315 INFO  [NativeServerConfig] 3.1.2.GA
    10:41:37,803 INFO  [AttributeCallbackItem] Owner callback not implemented.
    10:41:38,884 INFO  [LogNotificationListener] Adding notification listener for logging mbean "jboss.system:service=Logging,type=Log4jService" to server org.jboss.mx.server.MBeanServerImpl@1b5c22f[ defaultDomain='jboss' ]
    10:41:48,243 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@23440903{vfsfile:/C:/Serveur/jboss/server/peadef/deploy/profileservice-secured.jar/}
    10:41:48,244 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@23440903{vfsfile:/C:/Serveur/jboss/server/peadef/deploy/profileservice-secured.jar/}
    10:41:48,244 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@23440903{vfsfile:/C:/Serveur/jboss/server/peadef/deploy/profileservice-secured.jar/}
    10:41:48,244 INFO  [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@23440903{vfsfile:/C:/Serveur/jboss/server/peadef/deploy/profileservice-secured.jar/}
    10:41:51,962 INFO  [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
    10:41:52,120 INFO  [MailService] Mail Service bound to java:/Mail
    10:41:54,678 WARN  [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.
    10:41:54,695 WARN  [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
    10:41:54,798 WARN  [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
    10:41:54,899 INFO  [TransactionManagerService] JBossTS Transaction Service (JTA version - tag:JBOSSTS_4_6_1_GA) - JBoss Inc.
    10:41:54,899 INFO  [TransactionManagerService] Setting up property manager MBean and JMX layer
    10:41:55,131 INFO  [TransactionManagerService] Initializing recovery manager
    10:41:55,252 INFO  [TransactionManagerService] Recovery manager configured
    10:41:55,252 INFO  [TransactionManagerService] Binding TransactionManager JNDI Reference
    10:41:55,281 INFO  [TransactionManagerService] Starting transaction recovery manager
    10:41:56,417 INFO  [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\app\R20190\product\11.2.0\dbhome_4\bin;C:\app\R20190\product\11.2.0\dbhome_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Common Files\Lenovo;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Lenovo\Access Connections\;C:\Program Files\Lenovo\Client Security Solution;C:\Users\R20190\Desktop\Data\XSL\fop-0.94;C:\Serveur\mysql\bin;C:\Serveur\Apache2.2\bin;C:\Serveur\jboss\bin
    10:41:56,482 INFO  [Http11Protocol] Initialisation de Coyote HTTP/1.1 sur http-127.0.0.1-8080
    10:41:56,490 INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
    10:41:56,510 INFO  [StandardService] D�marrage du service jboss.web
    10:41:56,512 INFO  [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.3.GA
    10:41:56,554 INFO  [Catalina] Server startup in 64 ms
    10:41:56,572 INFO  [TomcatDeployment] deploy, ctxPath=/web-console
    10:41:57,436 INFO  [TomcatDeployment] deploy, ctxPath=/jbossws
    10:41:57,471 INFO  [TomcatDeployment] deploy, ctxPath=/invoker
    10:41:57,594 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/Serveur/jboss/server/peadef/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
    10:41:57,607 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/Serveur/jboss/server/peadef/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
    10:41:57,626 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/Serveur/jboss/server/peadef/deploy/jms-ra.rar/META-INF/ra.xml
    10:41:57,642 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/Serveur/jboss/server/peadef/deploy/mail-ra.rar/META-INF/ra.xml
    10:41:57,736 INFO  [RARDeployment] Required license terms exist, view vfszip:/C:/Serveur/jboss/server/peadef/deploy/quartz-ra.rar/META-INF/ra.xml
    10:41:57,836 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: main
    10:41:57,865 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
    10:41:57,867 INFO  [RAMJobStore] RAMJobStore initialized.
    10:41:57,868 INFO  [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
    10:41:57,868 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2
    10:41:57,868 INFO  [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
    10:41:58,992 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
    10:41:59,387 INFO  [ServerPeer] JBoss Messaging 1.4.3.GA server [0] started
    10:41:59,456 INFO  [ConnectionFactoryJNDIMapper] supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support failover
    10:41:59,456 INFO  [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support load balancing
    10:41:59,511 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
    10:41:59,511 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@7fd33a started
    10:41:59,513 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
    10:41:59,513 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@eaa79c started
    10:41:59,526 INFO  [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
    10:41:59,526 INFO  [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
    10:41:59,526 INFO  [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@1ffdf0d started
    10:41:59,527 INFO  [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000
    10:41:59,618 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
    10:42:00,100 INFO  [JBossASKernel] Created KernelDeployment for: profileservice-secured.jar
    10:42:00,106 INFO  [JBossASKernel] installing bean: jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3
    10:42:00,106 INFO  [JBossASKernel]   with dependencies:
    10:42:00,106 INFO  [JBossASKernel]   and demands:
    10:42:00,106 INFO  [JBossASKernel] 	jndi:SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView
    10:42:00,106 INFO  [JBossASKernel] 	jboss.ejb:service=EJBTimerService
    10:42:00,106 INFO  [JBossASKernel]   and supplies:
    10:42:00,106 INFO  [JBossASKernel] 	Class:org.jboss.profileservice.spi.ProfileService
    10:42:00,107 INFO  [JBossASKernel] 	jndi:SecureProfileService/remote
    10:42:00,107 INFO  [JBossASKernel] 	jndi:SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService
    10:42:00,107 INFO  [JBossASKernel] Added bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3) to KernelDeployment of: profileservice-secured.jar
    10:42:00,108 INFO  [JBossASKernel] installing bean: jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3
    10:42:00,108 INFO  [JBossASKernel]   with dependencies:
    10:42:00,108 INFO  [JBossASKernel]   and demands:
    10:42:00,108 INFO  [JBossASKernel] 	jboss.ejb:service=EJBTimerService
    10:42:00,108 INFO  [JBossASKernel]   and supplies:
    10:42:00,108 INFO  [JBossASKernel] 	jndi:SecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy.DeploymentManager
    10:42:00,108 INFO  [JBossASKernel] 	Class:org.jboss.deployers.spi.management.deploy.DeploymentManager
    10:42:00,108 INFO  [JBossASKernel] 	jndi:SecureDeploymentManager/remote
    10:42:00,108 INFO  [JBossASKernel] Added bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3) to KernelDeployment of: profileservice-secured.jar
    10:42:00,109 INFO  [JBossASKernel] installing bean: jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3
    10:42:00,109 INFO  [JBossASKernel]   with dependencies:
    10:42:00,109 INFO  [JBossASKernel]   and demands:
    10:42:00,109 INFO  [JBossASKernel] 	jboss.ejb:service=EJBTimerService
    10:42:00,109 INFO  [JBossASKernel]   and supplies:
    10:42:00,110 INFO  [JBossASKernel] 	jndi:SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView
    10:42:00,110 INFO  [JBossASKernel] 	Class:org.jboss.deployers.spi.management.ManagementView
    10:42:00,110 INFO  [JBossASKernel] 	jndi:SecureManagementView/remote
    10:42:00,110 INFO  [JBossASKernel] Added bean(jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3) to KernelDeployment of: profileservice-secured.jar
    10:42:00,116 INFO  [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@10e68bc{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true}
    10:42:00,117 INFO  [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@101799f{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true}
    10:42:00,117 INFO  [EJB3EndpointDeployer] Deploy AbstractBeanMetaData@1764a78{name=jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3_endpoint bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container] constructor=null autowireCandidate=true}
    10:42:00,196 INFO  [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureDeploymentManager,service=EJB3
    10:42:00,205 INFO  [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureDeploymentManager ejbName: SecureDeploymentManager
    10:42:00,873 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
     
    	SecureDeploymentManager/remote - EJB3.x Default Remote Business Interface
    	SecureDeploymentManager/remote-org.jboss.deployers.spi.management.deploy.DeploymentManager - EJB3.x Remote Business Interface
     
    10:42:00,957 INFO  [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureManagementView,service=EJB3
    10:42:00,958 INFO  [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureManagementView ejbName: SecureManagementView
    10:42:00,969 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
     
    	SecureManagementView/remote - EJB3.x Default Remote Business Interface
    	SecureManagementView/remote-org.jboss.deployers.spi.management.ManagementView - EJB3.x Remote Business Interface
     
    10:42:01,015 INFO  [SessionSpecContainer] Starting jboss.j2ee:jar=profileservice-secured.jar,name=SecureProfileService,service=EJB3
    10:42:01,016 INFO  [EJBContainer] STARTED EJB: org.jboss.profileservice.ejb.SecureProfileServiceBean ejbName: SecureProfileService
    10:42:01,027 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
     
    	SecureProfileService/remote - EJB3.x Default Remote Business Interface
    	SecureProfileService/remote-org.jboss.profileservice.spi.ProfileService - EJB3.x Remote Business Interface
     
    10:42:01,245 INFO  [TomcatDeployment] deploy, ctxPath=/admin-console
    10:42:01,382 INFO  [config] Initializing Mojarra (1.2_12-b01-FCS) for context '/admin-console'
    10:42:04,490 INFO  [TomcatDeployment] deploy, ctxPath=/
    10:42:04,557 INFO  [TomcatDeployment] deploy, ctxPath=/clientcompteurweb
    10:42:04,678 INFO  [TomcatDeployment] deploy, ctxPath=/jmx-console
    10:42:04,754 INFO  [Http11Protocol] D�marrage de Coyote HTTP/1.1 sur http-127.0.0.1-8080
    10:42:04,799 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
    10:42:04,805 INFO  [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)] Started in 37s:449ms
    Apparemment il déploie bien l'application mais je ne sais pas comment faire pour voir si l'EJB est bien lancé.

    J'ai toujours ce message, après modification :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    CompteurEJBRemote not bound
    Merci pour votre aide
    Couse1

  4. #4
    Membre chevronné
    Profil pro
    Inscrit en
    Octobre 2005
    Messages
    940
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : France

    Informations forums :
    Inscription : Octobre 2005
    Messages : 940
    Points : 1 817
    Points
    1 817
    Par défaut
    Je ne vois aucune mention de CompteurEJB dans le log. Comment le déployez vous sur le serveur?

  5. #5
    Membre du Club
    Profil pro
    Inscrit en
    Avril 2003
    Messages
    114
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2003
    Messages : 114
    Points : 67
    Points
    67
    Par défaut
    Merci bugfactory tes commentaires m'ont éclairés!

    En fait j'ai déployé directement le .jar dans le repertoire deploy et ça marche.
    Auparavant je passais via eclipse à l'aide d'une dépendance entre les 2 projets (java EE module dependencies) et je pensais que cela suffisait.

    Cordialement
    Couse1

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Appel d'un EJB à partir d'une Action Struts
    Par amira dans le forum Glassfish et Payara
    Réponses: 6
    Dernier message: 09/08/2013, 11h40
  2. Appeler une JSP à partir d'une JSP
    Par fessebleu dans le forum Servlets/JSP
    Réponses: 5
    Dernier message: 23/02/2011, 01h07
  3. [EJB3] Appel à partir d'une JSP
    Par ForHuman dans le forum Java EE
    Réponses: 1
    Dernier message: 12/12/2008, 05h44
  4. appel d'une servlet a partir d'une jsp
    Par developpeur_débutant dans le forum Servlets/JSP
    Réponses: 1
    Dernier message: 29/04/2008, 16h08
  5. [CR 10] Afficher un rapport à partir d'une JSP
    Par Crazyblinkgirl dans le forum SAP Crystal Reports
    Réponses: 1
    Dernier message: 07/09/2004, 09h00

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