<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Re: lookup a session bean inside a servlet
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/bertoz84">stefano bertozzi</a> in <i>JNDI and Naming</i> - <a href="http://community.jboss.org/message/603626#603626">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>I will post the Server Console output during the deploy of my .war ( that contains my .jar ).</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:48:34,137 INFO  [org.jboss.jpa.mcint.beans.metadata.plugins.PersistenceUnitValueMetaData] iDependOn persistence.unit:unitName=jboss-ejb3-timerservice-mk2.jar#timerdb</em></p><p><em>10:48:34,153 INFO  [org.jboss.jpa.deployment.PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=jboss-ejb3-timerservice-mk2.jar#timerdb</em></p><p><em>10:48:34,503 INFO  [org.hibernate.annotations.common.Version] Hibernate Commons Annotations 3.2.0.Final</em></p><p><em>10:48:34,521 INFO  [org.hibernate.cfg.Environment] Hibernate 3.6.0.Final</em></p><p><em>10:48:34,527 INFO  [org.hibernate.cfg.Environment] hibernate.properties not found</em></p><p><em>10:48:34,533 INFO  [org.hibernate.cfg.Environment] Bytecode provider name : javassist</em></p><p><em>10:48:34,542 INFO  [org.hibernate.cfg.Environment] using JDK 1.4 java.sql.Timestamp handling</em></p><p><em>10:48:34,730 INFO  [org.hibernate.ejb.Version] Hibernate EntityManager 3.6.0.Final</em></p><p><em>10:48:34,773 INFO  [org.hibernate.ejb.Ejb3Configuration] Processing PersistenceUnitInfo [</em></p><p><em>          name: timerdb</em></p><p><em>          ...]</em></p><p><em>10:48:34,824 WARN  [org.hibernate.ejb.Ejb3Configuration] Persistence provider caller does not implement the EJB3 spec correctly.PersistenceUnitInfo.getNewTempClassLoader() is null.</em></p><p><em>10:48:34,911 INFO  [org.hibernate.cfg.AnnotationBinder] Binding entity from annotated class: org.jboss.ejb3.timerservice.mk2.persistence.TimerEntity</em></p><p><em>10:48:34,994 INFO  [org.hibernate.cfg.annotations.EntityBinder] Bind entity org.jboss.ejb3.timerservice.mk2.persistence.TimerEntity on table timer</em></p><p><em>10:48:35,103 INFO  [org.hibernate.cfg.AnnotationBinder] Binding entity from annotated class: org.jboss.ejb3.timerservice.mk2.persistence.CalendarTimerEntity</em></p><p><em>10:48:35,107 INFO  [org.hibernate.cfg.annotations.EntityBinder] Bind entity org.jboss.ejb3.timerservice.mk2.persistence.CalendarTimerEntity on table calendar_timer</em></p><p><em>10:48:35,145 INFO  [org.hibernate.cfg.AnnotationBinder] Binding entity from annotated class: org.jboss.ejb3.timerservice.mk2.persistence.TimeoutMethod</em></p><p><em>10:48:35,155 INFO  [org.hibernate.cfg.annotations.EntityBinder] Bind entity org.jboss.ejb3.timerservice.mk2.persistence.TimeoutMethod on table timeout_method</em></p><p><em>10:48:35,247 INFO  [org.hibernate.validator.Version] Hibernate Validator 3.1.0.GA</em></p><p><em>10:48:35,324 INFO  [org.hibernate.validator.util.Version] Hibernate Validator 4.1.0.Final</em></p><p><em>10:48:35,344 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.</em></p><p><em>10:48:35,524 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.</em></p><p><em>10:48:35,530 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.</em></p><p><em>10:48:35,541 INFO  [org.hibernate.cfg.search.HibernateSearchEventListenerRegister] Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.</em></p><p><em>10:48:35,558 INFO  [org.hibernate.connection.ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider</em></p><p><em>10:48:35,567 INFO  [org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider] Using provided datasource</em></p><p><em>10:48:35,574 INFO  [org.hibernate.cfg.SettingsFactory] Database -></em></p><p><em>       name : HSQL Database Engine</em></p><p><em>    version : 1.8.0</em></p><p><em>      major : 1</em></p><p><em>      minor : 8</em></p><p><em>10:48:35,574 INFO  [org.hibernate.cfg.SettingsFactory] Driver -></em></p><p><em>       name : HSQL Database Engine Driver</em></p><p><em>    version : 1.8.0</em></p><p><em>      major : 1</em></p><p><em>      minor : 8</em></p><p><em>10:48:35,620 INFO  [org.hibernate.dialect.Dialect] Using dialect: org.hibernate.dialect.HSQLDialect</em></p><p><em>10:48:35,646 INFO  [org.hibernate.engine.jdbc.JdbcSupportLoader] Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4</em></p><p><em>10:48:35,649 INFO  [org.hibernate.transaction.TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory</em></p><p><em>10:48:35,652 INFO  [org.hibernate.transaction.TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup</em></p><p><em>10:48:35,655 INFO  [org.hibernate.transaction.TransactionManagerLookupFactory] instantiated TransactionManagerLookup</em></p><p><em>10:48:35,656 INFO  [org.hibernate.cfg.SettingsFactory] Automatic flush during beforeCompletion(): disabled</em></p><p><em>10:48:35,656 INFO  [org.hibernate.cfg.SettingsFactory] Automatic session close at end of transaction: disabled</em></p><p><em>10:48:35,656 INFO  [org.hibernate.cfg.SettingsFactory] JDBC batch size: 15</em></p><p><em>10:48:35,656 INFO  [org.hibernate.cfg.SettingsFactory] JDBC batch updates for versioned data: disabled</em></p><p><em>10:48:35,657 INFO  [org.hibernate.cfg.SettingsFactory] Scrollable result sets: enabled</em></p><p><em>10:48:35,658 INFO  [org.hibernate.cfg.SettingsFactory] JDBC3 getGeneratedKeys(): disabled</em></p><p><em>10:48:35,658 INFO  [org.hibernate.cfg.SettingsFactory] Connection release mode: auto</em></p><p><em>10:48:35,659 INFO  [org.hibernate.cfg.SettingsFactory] Default batch fetch size: 1</em></p><p><em>10:48:35,659 INFO  [org.hibernate.cfg.SettingsFactory] Generate SQL with comments: disabled</em></p><p><em>10:48:35,660 INFO  [org.hibernate.cfg.SettingsFactory] Order SQL updates by primary key: disabled</em></p><p><em>10:48:35,660 INFO  [org.hibernate.cfg.SettingsFactory] Order SQL inserts for batching: disabled</em></p><p><em>10:48:35,660 INFO  [org.hibernate.cfg.SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory</em></p><p><em>10:48:35,665 INFO  [org.hibernate.hql.ast.ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory</em></p><p><em>10:48:35,665 INFO  [org.hibernate.cfg.SettingsFactory] Query language substitutions: {}</em></p><p><em>10:48:35,666 INFO  [org.hibernate.cfg.SettingsFactory] JPA-QL strict compliance: enabled</em></p><p><em>10:48:35,666 INFO  [org.hibernate.cfg.SettingsFactory] Second-level cache: enabled</em></p><p><em>10:48:35,666 INFO  [org.hibernate.cfg.SettingsFactory] Query cache: disabled</em></p><p><em>10:48:35,668 INFO  [org.hibernate.cfg.SettingsFactory] Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge</em></p><p><em>10:48:35,679 INFO  [org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge] Cache provider: org.hibernate.cache.HashtableCacheProvider</em></p><p><em>10:48:35,681 INFO  [org.hibernate.cfg.SettingsFactory] Optimize cache for minimal puts: disabled</em></p><p><em>10:48:35,681 INFO  [org.hibernate.cfg.SettingsFactory] Cache region prefix: persistence.unit:unitName=jboss-ejb3-timerservice-mk2.jar#timerdb</em></p><p><em>10:48:35,682 INFO  [org.hibernate.cfg.SettingsFactory] Structured second-level cache entries: disabled</em></p><p><em>10:48:35,692 INFO  [org.hibernate.cfg.SettingsFactory] Statistics: disabled</em></p><p><em>10:48:35,692 INFO  [org.hibernate.cfg.SettingsFactory] Deleted entity synthetic identifier rollback: disabled</em></p><p><em>10:48:35,693 INFO  [org.hibernate.cfg.SettingsFactory] Default entity-mode: pojo</em></p><p><em>10:48:35,693 INFO  [org.hibernate.cfg.SettingsFactory] Named query checking : enabled</em></p><p><em>10:48:35,693 INFO  [org.hibernate.cfg.SettingsFactory] Check Nullability in Core (should be disabled when Bean Validation is on): disabled</em></p><p><em>10:48:35,734 INFO  [org.hibernate.impl.SessionFactoryImpl] building session factory</em></p><p><em>10:48:36,085 INFO  [org.hibernate.impl.SessionFactoryObjectFactory] Factory name: persistence.unit:unitName=jboss-ejb3-timerservice-mk2.jar#timerdb</em></p><p><em>10:48:36,087 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}</em></p><p><em>10:48:36,092 INFO  [org.hibernate.impl.SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.unit:unitName=jboss-ejb3-timerservice-mk2.jar#timerdb</em></p><p><em>10:48:36,092 WARN  [org.hibernate.impl.SessionFactoryObjectFactory] InitialContext did not implement EventContext</em></p><p><em>10:48:36,102 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] Running hbm2ddl schema update</em></p><p><em>10:48:36,103 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] fetching database metadata</em></p><p><em>10:48:36,104 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] updating schema</em></p><p><em>10:48:36,107 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.</em></p><p><em>10:48:36,144 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] table found: PUBLIC.TIMEOUTMETHOD_METHODPARAMS</em></p><p><em>10:48:36,144 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] columns: [methodparams, timeoutmethod_id]</em></p><p><em>10:48:36,145 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] foreign keys: [fkf294c964b7de2d8a]</em></p><p><em>10:48:36,145 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] indexes: [sys_idx_55]</em></p><p><em>10:48:36,162 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] table found: PUBLIC.CALENDAR_TIMER</em></p><p><em>10:48:36,162 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] columns: [scheduleexprtimezone, scheduleexprsecond, autotimer, scheduleexprstartdate, scheduleexprminute, scheduleexprhour, timeoutmethod_id, id, scheduleexprdayofmonth, scheduleexprenddate, scheduleexprmonth, scheduleexprdayofweek, scheduleexpryear]</em></p><p><em>10:48:36,162 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] foreign keys: [fk2b697f04b7de2d8a, fk2b697f04e6e6ef93]</em></p><p><em>10:48:36,162 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] indexes: [sys_idx_57, sys_idx_49, sys_idx_59]</em></p><p><em>10:48:36,180 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] table found: PUBLIC.TIMEOUT_METHOD</em></p><p><em>10:48:36,181 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] columns: [id, methodname, declaringclass]</em></p><p><em>10:48:36,181 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] foreign keys: []</em></p><p><em>10:48:36,181 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] indexes: [sys_idx_51]</em></p><p><em>10:48:36,204 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] table found: PUBLIC.TIMER</em></p><p><em>10:48:36,204 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] columns: [id, previousrun, initialdate, repeatinterval, timedobjectid, timerstate, nextdate, info]</em></p><p><em>10:48:36,204 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] foreign keys: []</em></p><p><em>10:48:36,205 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] indexes: [sys_idx_53]</em></p><p><em>10:48:36,207 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] schema update complete</em></p><p><em>10:48:36,213 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}</em></p><p><em>10:48:36,369 INFO  [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@1392382193{vfs:///C:/JBoss_releases/jboss-6.0.0.Final/server/default/deploy/WebShop.war}</em></p><p><em>10:48:36,370 INFO  [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@1392382193{vfs:///C:/JBoss_releases/jboss-6.0.0.Final/server/default/deploy/WebShop.war}</em></p><p><em>10:48:36,419 INFO  [org.jboss.ejb3.instantiator.deployer.BeanInstantiatorDeployerBase] Installed org.jboss.ejb3.instantiator.impl.Ejb31SpecBeanInstantiator@77068fce into MC at org.jboss.ejb.bean.instantiator/WebShop/WebShop/OperazioniLibri</em></p><p><em>10:48:36,420 INFO  [org.jboss.ejb3.instantiator.deployer.BeanInstantiatorDeployerBase] Installed org.jboss.ejb3.instantiator.impl.Ejb31SpecBeanInstantiator@77068fce into MC at org.jboss.ejb.bean.instantiator/WebShop/WebShop/AccessoUtente</em></p><p><em>10:48:36,420 INFO  [org.jboss.ejb3.instantiator.deployer.BeanInstantiatorDeployerBase] Installed org.jboss.ejb3.instantiator.impl.Ejb31SpecBeanInstantiator@77068fce into MC at org.jboss.ejb.bean.instantiator/WebShop/WebShop/BookTestBean</em></p><p><em>10:48:36,421 INFO  [org.jboss.ejb3.instantiator.deployer.BeanInstantiatorDeployerBase] Installed org.jboss.ejb3.instantiator.impl.Ejb31SpecBeanInstantiator@77068fce into MC at org.jboss.ejb.bean.instantiator/WebShop/WebShop/OperazioniUtenti</em></p><p><em>10:48:36,422 INFO  [org.jboss.ejb3.instantiator.deployer.BeanInstantiatorDeployerBase] Installed org.jboss.ejb3.instantiator.impl.Ejb31SpecBeanInstantiator@77068fce into MC at org.jboss.ejb.bean.instantiator/WebShop/WebShop/Carrello</em></p><p><em>10:48:36,433 WARN  [org.jboss.ejb3.interceptor.InterceptorInfoRepository] EJBTHREE-1852: InterceptorInfoRepository is deprecated</em></p><p><em>10:48:37,430 INFO  [org.jboss.ejb3.deployers.JBossASKernel] Created KernelDeployment for: WebShop.war</em></p><p><em>10:48:37,433 INFO  [org.jboss.ejb3.deployers.JBossASKernel] installing bean: jboss.j2ee:jar=WebShop.war,name=OperazioniLibri,service=EJB3</em></p><p><em>10:48:37,434 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   with dependencies:</em></p><p><em>10:48:37,434 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and demands:</em></p><p><em>10:48:37,434 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss.ejb:service=EJBTimerService; Required: Described</em></p><p><em>10:48:37,434 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss-switchboard:appName=WebShop,module=WebShop; Required: Create</em></p><p><em>10:48:37,434 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss-injector:topLevelUnit=WebShop.war,unit=WebShop.war,bean=OperazioniLibri; Required: Described</em></p><p><em>10:48:37,434 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           persistence.unit:unitName=WebShop.war#Ejb3StrutsTutorial; Required: Described</em></p><p><em>10:48:37,435 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and supplies:</em></p><p><em>10:48:37,435 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:OperazioniLibri/local-bookshop.library.sessionbean.OperazioniLibriLocal</em></p><p><em>10:48:37,435 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:OperazioniLibri/local</em></p><p><em>10:48:37,435 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:OperazioniLibri</em></p><p><em>10:48:37,435 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           Class:bookshop.library.sessionbean.OperazioniLibriLocal</em></p><p><em>10:48:37,440 INFO  [org.jboss.ejb3.deployers.JBossASKernel] Added bean(jboss.j2ee:jar=WebShop.war,name=OperazioniLibri,service=EJB3) to KernelDeployment of: WebShop.war</em></p><p><em>10:48:37,442 INFO  [org.jboss.ejb3.deployers.JBossASKernel] installing bean: jboss.j2ee:jar=WebShop.war,name=AccessoUtente,service=EJB3</em></p><p><em>10:48:37,442 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   with dependencies:</em></p><p><em>10:48:37,442 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and demands:</em></p><p><em>10:48:37,443 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss-injector:topLevelUnit=WebShop.war,unit=WebShop.war,bean=AccessoUtente; Required: Described</em></p><p><em>10:48:37,443 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss.ejb:service=EJBTimerService; Required: Described</em></p><p><em>10:48:37,443 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss-switchboard:appName=WebShop,module=WebShop; Required: Create</em></p><p><em>10:48:37,443 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           persistence.unit:unitName=WebShop.war#Ejb3StrutsTutorial; Required: Described</em></p><p><em>10:48:37,443 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and supplies:</em></p><p><em>10:48:37,444 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:AccessoUtente/local-bookshop.library.sessionbean.AccessoUtenteLocal</em></p><p><em>10:48:37,444 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:AccessoUtente</em></p><p><em>10:48:37,444 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           Class:bookshop.library.sessionbean.AccessoUtenteLocal</em></p><p><em>10:48:37,444 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:AccessoUtente/local</em></p><p><em>10:48:37,448 INFO  [org.jboss.ejb3.deployers.JBossASKernel] Added bean(jboss.j2ee:jar=WebShop.war,name=AccessoUtente,service=EJB3) to KernelDeployment of: WebShop.war</em></p><p><em>10:48:37,449 INFO  [org.jboss.ejb3.deployers.JBossASKernel] installing bean: jboss.j2ee:jar=WebShop.war,name=BookTestBean,service=EJB3</em></p><p><em>10:48:37,449 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   with dependencies:</em></p><p><em>10:48:37,450 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and demands:</em></p><p><em>10:48:37,450 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss.ejb:service=EJBTimerService; Required: Described</em></p><p><em>10:48:37,450 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss-switchboard:appName=WebShop,module=WebShop; Required: Create</em></p><p><em>10:48:37,450 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss-injector:topLevelUnit=WebShop.war,unit=WebShop.war,bean=BookTestBean; Required: Described</em></p><p><em>10:48:37,450 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           persistence.unit:unitName=WebShop.war#Ejb3StrutsTutorial; Required: Described</em></p><p><em>10:48:37,450 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and supplies:</em></p><p><em>10:48:37,450 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:BookTestBean/local-bookshop.test.BookTestBeanLocal</em></p><p><em>10:48:37,451 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:BookTestBean</em></p><p><em>10:48:37,451 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:BookTestBean/remote</em></p><p><em>10:48:37,451 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:BookTestBean/remote-bookshop.test.BookTestBeanRemote</em></p><p><em>10:48:37,451 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           Class:bookshop.test.BookTestBeanRemote</em></p><p><em>10:48:37,451 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           Class:bookshop.test.BookTestBeanLocal</em></p><p><em>10:48:37,451 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:BookTestBean/local</em></p><p><em>10:48:37,452 INFO  [org.jboss.ejb3.deployers.JBossASKernel] Added bean(jboss.j2ee:jar=WebShop.war,name=BookTestBean,service=EJB3) to KernelDeployment of: WebShop.war</em></p><p><em>10:48:37,453 INFO  [org.jboss.ejb3.deployers.JBossASKernel] installing bean: jboss.j2ee:jar=WebShop.war,name=OperazioniUtenti,service=EJB3</em></p><p><em>10:48:37,453 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   with dependencies:</em></p><p><em>10:48:37,453 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and demands:</em></p><p><em>10:48:37,453 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss.ejb:service=EJBTimerService; Required: Described</em></p><p><em>10:48:37,453 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss-switchboard:appName=WebShop,module=WebShop; Required: Create</em></p><p><em>10:48:37,454 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss-injector:topLevelUnit=WebShop.war,unit=WebShop.war,bean=OperazioniUtenti; Required: Described</em></p><p><em>10:48:37,454 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           persistence.unit:unitName=WebShop.war#Ejb3StrutsTutorial; Required: Described</em></p><p><em>10:48:37,454 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and supplies:</em></p><p><em>10:48:37,455 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:OperazioniUtenti/local-bookshop.library.sessionbean.OperazioniUtentiLocal</em></p><p><em>10:48:37,455 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           Class:bookshop.library.sessionbean.OperazioniUtentiLocal</em></p><p><em>10:48:37,455 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:OperazioniUtenti</em></p><p><em>10:48:37,455 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:OperazioniUtenti/local</em></p><p><em>10:48:37,456 INFO  [org.jboss.ejb3.deployers.JBossASKernel] Added bean(jboss.j2ee:jar=WebShop.war,name=OperazioniUtenti,service=EJB3) to KernelDeployment of: WebShop.war</em></p><p><em>10:48:37,457 INFO  [org.jboss.ejb3.deployers.JBossASKernel] installing bean: jboss.j2ee:jar=WebShop.war,name=Carrello,service=EJB3</em></p><p><em>10:48:37,458 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   with dependencies:</em></p><p><em>10:48:37,458 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and demands:</em></p><p><em>10:48:37,458 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss.ejb:service=EJBTimerService; Required: Described</em></p><p><em>10:48:37,458 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss-switchboard:appName=WebShop,module=WebShop; Required: Create</em></p><p><em>10:48:37,459 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss-injector:topLevelUnit=WebShop.war,unit=WebShop.war,bean=Carrello; Required: Described</em></p><p><em>10:48:37,459 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           persistence.unit:unitName=WebShop.war#Ejb3StrutsTutorial; Required: Described</em></p><p><em>10:48:37,459 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and supplies:</em></p><p><em>10:48:37,459 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:Carrello/local-bookshop.library.sessionbean.CarrelloLocal</em></p><p><em>10:48:37,460 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           Class:bookshop.library.sessionbean.CarrelloLocal</em></p><p><em>10:48:37,460 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:Carrello</em></p><p><em>10:48:37,460 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:Carrello/local</em></p><p><em>10:48:37,461 INFO  [org.jboss.ejb3.deployers.JBossASKernel] Added bean(jboss.j2ee:jar=WebShop.war,name=Carrello,service=EJB3) to KernelDeployment of: WebShop.war</em></p><p><em>10:48:39,539 INFO  [org.jboss.jpa.deployment.PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=WebShop.war#Ejb3StrutsTutorial</em></p><p><em>10:48:39,541 INFO  [org.hibernate.ejb.Ejb3Configuration] Processing PersistenceUnitInfo [</em></p><p><em>          name: Ejb3StrutsTutorial</em></p><p><em>          ...]</em></p><p><em>10:48:39,543 WARN  [org.hibernate.ejb.Ejb3Configuration] Persistence provider caller does not implement the EJB3 spec correctly.PersistenceUnitInfo.getNewTempClassLoader() is null.</em></p><p><em>10:48:39,544 INFO  [org.hibernate.cfg.AnnotationBinder] Binding entity from annotated class: bookshop.library.entitybean.Book</em></p><p><em>10:48:39,544 INFO  [org.hibernate.cfg.annotations.EntityBinder] Bind entity bookshop.library.entitybean.Book on table book</em></p><p><em>10:48:39,551 INFO  [org.hibernate.cfg.AnnotationBinder] Binding entity from annotated class: bookshop.library.entitybean.Utenti</em></p><p><em>10:48:39,551 INFO  [org.hibernate.cfg.annotations.EntityBinder] Bind entity bookshop.library.entitybean.Utenti on table utente</em></p><p><em>10:48:39,558 INFO  [org.hibernate.cfg.annotations.CollectionBinder] Mapping collection: bookshop.library.entitybean.Utenti.books -> book</em></p><p><em>10:48:39,569 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.</em></p><p><em>10:48:39,579 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.</em></p><p><em>10:48:39,582 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.</em></p><p><em>10:48:39,585 INFO  [org.hibernate.cfg.search.HibernateSearchEventListenerRegister] Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.</em></p><p><em>10:48:39,586 INFO  [org.hibernate.connection.ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider</em></p><p><em>10:48:39,587 INFO  [org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider] Using provided datasource</em></p><p><em>10:48:39,588 INFO  [org.hibernate.cfg.SettingsFactory] Database -></em></p><p><em>       name : HSQL Database Engine</em></p><p><em>    version : 1.8.0</em></p><p><em>      major : 1</em></p><p><em>      minor : 8</em></p><p><em>10:48:39,588 INFO  [org.hibernate.cfg.SettingsFactory] Driver -></em></p><p><em>       name : HSQL Database Engine Driver</em></p><p><em>    version : 1.8.0</em></p><p><em>      major : 1</em></p><p><em>      minor : 8</em></p><p><em>10:48:39,588 INFO  [org.hibernate.dialect.Dialect] Using dialect: org.hibernate.dialect.HSQLDialect</em></p><p><em>10:48:39,589 INFO  [org.hibernate.engine.jdbc.JdbcSupportLoader] Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4</em></p><p><em>10:48:39,590 INFO  [org.hibernate.transaction.TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory</em></p><p><em>10:48:39,590 INFO  [org.hibernate.transaction.TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup</em></p><p><em>10:48:39,591 INFO  [org.hibernate.transaction.TransactionManagerLookupFactory] instantiated TransactionManagerLookup</em></p><p><em>10:48:39,591 INFO  [org.hibernate.cfg.SettingsFactory] Automatic flush during beforeCompletion(): disabled</em></p><p><em>10:48:39,591 INFO  [org.hibernate.cfg.SettingsFactory] Automatic session close at end of transaction: disabled</em></p><p><em>10:48:39,591 INFO  [org.hibernate.cfg.SettingsFactory] JDBC batch size: 15</em></p><p><em>10:48:39,592 INFO  [org.hibernate.cfg.SettingsFactory] JDBC batch updates for versioned data: disabled</em></p><p><em>10:48:39,592 INFO  [org.hibernate.cfg.SettingsFactory] Scrollable result sets: enabled</em></p><p><em>10:48:39,592 INFO  [org.hibernate.cfg.SettingsFactory] JDBC3 getGeneratedKeys(): disabled</em></p><p><em>10:48:39,592 INFO  [org.hibernate.cfg.SettingsFactory] Connection release mode: auto</em></p><p><em>10:48:39,592 INFO  [org.hibernate.cfg.SettingsFactory] Default batch fetch size: 1</em></p><p><em>10:48:39,593 INFO  [org.hibernate.cfg.SettingsFactory] Generate SQL with comments: disabled</em></p><p><em>10:48:39,593 INFO  [org.hibernate.cfg.SettingsFactory] Order SQL updates by primary key: disabled</em></p><p><em>10:48:39,593 INFO  [org.hibernate.cfg.SettingsFactory] Order SQL inserts for batching: disabled</em></p><p><em>10:48:39,593 INFO  [org.hibernate.cfg.SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory</em></p><p><em>10:48:39,594 INFO  [org.hibernate.hql.ast.ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory</em></p><p><em>10:48:39,594 INFO  [org.hibernate.cfg.SettingsFactory] Query language substitutions: {}</em></p><p><em>10:48:39,594 INFO  [org.hibernate.cfg.SettingsFactory] JPA-QL strict compliance: enabled</em></p><p><em>10:48:39,595 INFO  [org.hibernate.cfg.SettingsFactory] Second-level cache: enabled</em></p><p><em>10:48:39,595 INFO  [org.hibernate.cfg.SettingsFactory] Query cache: disabled</em></p><p><em>10:48:39,595 INFO  [org.hibernate.cfg.SettingsFactory] Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge</em></p><p><em>10:48:39,595 INFO  [org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge] Cache provider: org.hibernate.cache.HashtableCacheProvider</em></p><p><em>10:48:39,596 INFO  [org.hibernate.cfg.SettingsFactory] Optimize cache for minimal puts: disabled</em></p><p><em>10:48:39,596 INFO  [org.hibernate.cfg.SettingsFactory] Cache region prefix: persistence.unit:unitName=WebShop.war#Ejb3StrutsTutorial</em></p><p><em>10:48:39,596 INFO  [org.hibernate.cfg.SettingsFactory] Structured second-level cache entries: disabled</em></p><p><em>10:48:39,597 INFO  [org.hibernate.cfg.SettingsFactory] Statistics: disabled</em></p><p><em>10:48:39,597 INFO  [org.hibernate.cfg.SettingsFactory] Deleted entity synthetic identifier rollback: disabled</em></p><p><em>10:48:39,597 INFO  [org.hibernate.cfg.SettingsFactory] Default entity-mode: pojo</em></p><p><em>10:48:39,597 INFO  [org.hibernate.cfg.SettingsFactory] Named query checking : enabled</em></p><p><em>10:48:39,598 INFO  [org.hibernate.cfg.SettingsFactory] Check Nullability in Core (should be disabled when Bean Validation is on): disabled</em></p><p><em>10:48:39,603 INFO  [org.hibernate.impl.SessionFactoryImpl] building session factory</em></p><p><em>10:48:39,646 INFO  [org.hibernate.impl.SessionFactoryObjectFactory] Factory name: persistence.unit:unitName=WebShop.war#Ejb3StrutsTutorial</em></p><p><em>10:48:39,646 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}</em></p><p><em>10:48:39,666 INFO  [org.hibernate.impl.SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.unit:unitName=WebShop.war#Ejb3StrutsTutorial</em></p><p><em>10:48:39,667 WARN  [org.hibernate.impl.SessionFactoryObjectFactory] InitialContext did not implement EventContext</em></p><p><em>10:48:39,673 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.</em></p><p><em>10:48:39,678 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.</em></p><p><em>10:48:39,682 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] Running hbm2ddl schema export</em></p><p><em>10:48:39,684 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] exporting generated schema to database</em></p><p><em>10:48:39,689 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] schema export complete</em></p><p><em>10:48:39,691 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.</em></p><p><em>10:48:39,696 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.</em></p><p><em>10:48:39,699 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}</em></p><p><em>10:48:39,710 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] deploy, ctxPath=/WebShop</em></p><p><em>10:48:39,831 INFO  [org.jboss.ejb3.session.SessionSpecContainer] Starting jboss.j2ee:jar=WebShop.war,name=Carrello,service=EJB3</em></p><p><em>10:48:39,859 INFO  [org.jboss.ejb3.EJBContainer] STARTED EJB: bookshop.library.sessionbean.Carrello ejbName: Carrello</em></p><p><em>10:48:39,896 INFO  [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>          Carrello/local - EJB3.x Default Local Business Interface</em></p><p><em>          Carrello/local-bookshop.library.sessionbean.CarrelloLocal - EJB3.x Local Business Interface</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:48:39,922 INFO  [org.jboss.ejb3.session.SessionSpecContainer] Starting jboss.j2ee:jar=WebShop.war,name=OperazioniUtenti,service=EJB3</em></p><p><em>10:48:39,923 INFO  [org.jboss.ejb3.EJBContainer] STARTED EJB: bookshop.library.sessionbean.OperazioniUtenti ejbName: OperazioniUtenti</em></p><p><em>10:48:39,935 INFO  [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>          OperazioniUtenti/local - EJB3.x Default Local Business Interface</em></p><p><em>          OperazioniUtenti/local-bookshop.library.sessionbean.OperazioniUtentiLocal - EJB3.x Local Business Interface</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:48:39,938 WARN  [org.jboss.ejb3.TimerServiceContainer] EJBTHREE-2193: using deprecated TimerServiceFactory for restoring timers</em></p><p><em>10:48:40,465 INFO  [org.jboss.ejb3.session.SessionSpecContainer] Starting jboss.j2ee:jar=WebShop.war,name=OperazioniLibri,service=EJB3</em></p><p><em>10:48:40,466 INFO  [org.jboss.ejb3.EJBContainer] STARTED EJB: bookshop.library.sessionbean.OperazioniLibri ejbName: OperazioniLibri</em></p><p><em>10:48:40,470 INFO  [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>          OperazioniLibri/local - EJB3.x Default Local Business Interface</em></p><p><em>          OperazioniLibri/local-bookshop.library.sessionbean.OperazioniLibriLocal - EJB3.x Local Business Interface</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:48:40,470 WARN  [org.jboss.ejb3.TimerServiceContainer] EJBTHREE-2193: using deprecated TimerServiceFactory for restoring timers</em></p><p><em>10:48:40,475 INFO  [org.jboss.ejb3.session.SessionSpecContainer] Starting jboss.j2ee:jar=WebShop.war,name=AccessoUtente,service=EJB3</em></p><p><em>10:48:40,476 INFO  [org.jboss.ejb3.EJBContainer] STARTED EJB: bookshop.library.sessionbean.AccessoUtente ejbName: AccessoUtente</em></p><p><em>10:48:40,480 INFO  [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>          AccessoUtente/local - EJB3.x Default Local Business Interface</em></p><p><em>          AccessoUtente/local-bookshop.library.sessionbean.AccessoUtenteLocal - EJB3.x Local Business Interface</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:48:40,493 INFO  [org.jboss.ejb3.session.SessionSpecContainer] Starting jboss.j2ee:jar=WebShop.war,name=BookTestBean,service=EJB3</em></p><p><em>10:48:40,494 INFO  [org.jboss.ejb3.EJBContainer] STARTED EJB: bookshop.test.BookTestBean ejbName: BookTestBean</em></p><p><em>10:48:40,519 INFO  [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>          BookTestBean/remote - EJB3.x Default Remote Business Interface</em></p><p><em>          BookTestBean/remote-bookshop.test.BookTestBeanRemote - EJB3.x Remote Business Interface</em></p><p><em>          BookTestBean/local - EJB3.x Default Local Business Interface</em></p><p><em>          BookTestBean/local-bookshop.test.BookTestBeanLocal - EJB3.x Local Business Interface</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:48:40,520 WARN  [org.jboss.ejb3.TimerServiceContainer] EJBTHREE-2193: using deprecated TimerServiceFactory for restoring timers</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Now executing the code, when i come to this point:</p><p><em>     context = new InitialContext();</em></p><p><em>     System.out.println(OperazioniUtentiLocal.class.toString());</em></p><p><em>     opUser = (OperazioniUtenti) context.lookup("/BookShop/OperazioniUtenti/local");</em></p><p>that's the output:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,080 INFO  [STDOUT] interface bookshop.library.sessionbean.OperazioniUtentiLocal</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,092 <strong>ERROR [STDERR] javax.naming.NameNotFoundException: BookShop not bound</strong></em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,092 ERROR [STDERR]           at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,093 ERROR [STDERR]           at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,093 ERROR [STDERR]           at org.jnp.server.NamingServer.getObject(NamingServer.java:785)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,093 ERROR [STDERR]           at org.jnp.server.NamingServer.lookup(NamingServer.java:396)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,094 ERROR [STDERR]           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,094 ERROR [STDERR]           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,094 ERROR [STDERR]           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,094 ERROR [STDERR]           at java.lang.reflect.Method.invoke(Method.java:597)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,095 ERROR [STDERR]           at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,095 ERROR [STDERR]           at sun.rmi.transport.Transport$1.run(Transport.java:159)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,095 ERROR [STDERR]           at java.security.AccessController.doPrivileged(Native Method)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,095 ERROR [STDERR]           at sun.rmi.transport.Transport.serviceCall(Transport.java:155)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,096 ERROR [STDERR]           at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,096 ERROR [STDERR]           at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,096 ERROR [STDERR]           at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,097 ERROR [STDERR]           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,097 ERROR [STDERR]           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,097 ERROR [STDERR]           at java.lang.Thread.run(Thread.java:662)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,097 ERROR [STDERR]           at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,098 ERROR [STDERR]           at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,098 ERROR [STDERR]           at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,098 ERROR [STDERR]           at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,099 ERROR [STDERR]           at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,099 ERROR [STDERR]           at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,099 ERROR [STDERR]           at javax.naming.InitialContext.lookup(InitialContext.java:392)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,099 ERROR [STDERR]           at webinterface.servlet.somethingServlet.doPost(somethingServlet.java:50)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,099 ERROR [STDERR]           at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,100 ERROR [STDERR]           at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,100 ERROR [STDERR]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,100 ERROR [STDERR]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,100 ERROR [STDERR]           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,101 ERROR [STDERR]           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,101 ERROR [STDERR]           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,101 ERROR [STDERR]           at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,101 ERROR [STDERR]           at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,101 ERROR [STDERR]           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,102 ERROR [STDERR]           at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,102 ERROR [STDERR]           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,102 ERROR [STDERR]           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,102 ERROR [STDERR]           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,103 ERROR [STDERR]           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,103 ERROR [STDERR]           at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,103 ERROR [STDERR]           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,103 ERROR [STDERR]           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,104 ERROR [STDERR]           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,104 ERROR [STDERR]           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>10:54:45,104 ERROR [STDERR]           at java.lang.Thread.run(Thread.java:662)</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Still it doesn't find my classes!!</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>The .jar has been deployed too automatically ( NICE!! ), but if i try to use my EJB through my Java Client like this:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>try</em></p><p><em>  {</em></p><p><em>  Context context = new InitialContext();</em></p><p><em>  book = (OperazioniLibriLocal) context.lookup(OperazioniLibri.LocalJNDIName);</em></p><p><em>  } catch (NamingException e)</em></p><p><em>  {</em></p><p><em>  System.out.println("nel catch - errore");</em></p><p><em>  e.printStackTrace();</em></p><p><em>  throw new RuntimeException(e);</em></p><p><em>  }</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>  System.out.println("");</em></p><p><em>  System.out.println("");</em></p><p><em>  System.out.println("***************** BOOK SESSION OPERATIONS *****************");</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>  book.insertnewBook( .....bla bla bla</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em><br/></em></p><p>i got:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>11:06:23,564 INFO  [STDOUT] ***************** BOOK SESSION OPERATIONS *****************</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><em>11:06:23,665 WARN  [org.hibernate.util.JDBCExceptionReporter] SQL Error: -22, SQLState: S0002</em></p><p><em>11:06:23,665 ERROR [org.hibernate.util.JDBCExceptionReporter] Tabella non trovata in statement [select book0_.id as id12_, book0_.ISBN as ISBN12_, book0_.anno as anno12_, book0_.autore as autore12_, book0_.editore as editore12_, book0_.genere as genere12_, book0_.prezzo as prezzo12_, book0_.quantità as quantità12_, book0_.titolo as titolo12_, book0_.utente_id as utente10_12_ from book book0_ where book0_.ISBN=?]</em></p><p><em>11:06:23,669 INFO  [org.jboss.resource.connectionmanager.CachedConnectionManager] Closing a connection for you.  Please close them yourself: org.jboss.resource.adapter.jdbc.jdk6.WrappedConnectionJDK6@4fbd89c9: java.lang.Throwable: STACKTRACE</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Deploying the .jar alone without the .war works well, without this problem.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Do i need to set something in a .xml file inside my Web project? I got a build.xml under /ant ( i do not know ant at all )! The only file i modified is web.xml to add my servlet naming and props.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>My next step is to try to build and .ear and add there both .jar and .war ( this without include the .jar inside ). </p><p>I really don't get how they can see eachother and work togheter.</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/603626#603626">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JNDI and Naming at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>