[jboss-user] [JNDI and Naming] - Re: lookup a session bean inside a servlet

stefano bertozzi do-not-reply at jboss.com
Thu May 5 05:25:41 EDT 2011


stefano bertozzi [http://community.jboss.org/people/bertoz84] created the discussion

"Re: lookup a session bean inside a servlet"

To view the discussion, visit: http://community.jboss.org/message/603626#603626

--------------------------------------------------------------
I will post the Server Console output during the deploy of my .war ( that contains my .jar ).

+10:48:34,137 INFO  [org.jboss.jpa.mcint.beans.metadata.plugins.PersistenceUnitValueMetaData] iDependOn persistence.unit:unitName=jboss-ejb3-timerservice-mk2.jar#timerdb+
+10:48:34,153 INFO  [org.jboss.jpa.deployment.PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=jboss-ejb3-timerservice-mk2.jar#timerdb+
+10:48:34,503 INFO  [org.hibernate.annotations.common.Version] Hibernate Commons Annotations 3.2.0.Final+
+10:48:34,521 INFO  [org.hibernate.cfg.Environment] Hibernate 3.6.0.Final+
+10:48:34,527 INFO  [org.hibernate.cfg.Environment] hibernate.properties not found+
+10:48:34,533 INFO  [org.hibernate.cfg.Environment] Bytecode provider name : javassist+
+10:48:34,542 INFO  [org.hibernate.cfg.Environment] using JDK 1.4 java.sql.Timestamp handling+
+10:48:34,730 INFO  [org.hibernate.ejb.Version] Hibernate EntityManager 3.6.0.Final+
+10:48:34,773 INFO  [org.hibernate.ejb.Ejb3Configuration] Processing PersistenceUnitInfo [+
+          name: timerdb+
+          ...]+
+10:48:34,824 WARN  [org.hibernate.ejb.Ejb3Configuration] Persistence provider caller does not implement the EJB3 spec correctly.PersistenceUnitInfo.getNewTempClassLoader() is null.+
+10:48:34,911 INFO  [org.hibernate.cfg.AnnotationBinder] Binding entity from annotated class: org.jboss.ejb3.timerservice.mk2.persistence.TimerEntity+
+10:48:34,994 INFO  [org.hibernate.cfg.annotations.EntityBinder] Bind entity org.jboss.ejb3.timerservice.mk2.persistence.TimerEntity on table timer+
+10:48:35,103 INFO  [org.hibernate.cfg.AnnotationBinder] Binding entity from annotated class: org.jboss.ejb3.timerservice.mk2.persistence.CalendarTimerEntity+
+10:48:35,107 INFO  [org.hibernate.cfg.annotations.EntityBinder] Bind entity org.jboss.ejb3.timerservice.mk2.persistence.CalendarTimerEntity on table calendar_timer+
+10:48:35,145 INFO  [org.hibernate.cfg.AnnotationBinder] Binding entity from annotated class: org.jboss.ejb3.timerservice.mk2.persistence.TimeoutMethod+
+10:48:35,155 INFO  [org.hibernate.cfg.annotations.EntityBinder] Bind entity org.jboss.ejb3.timerservice.mk2.persistence.TimeoutMethod on table timeout_method+
+10:48:35,247 INFO  [org.hibernate.validator.Version] Hibernate Validator 3.1.0.GA+
+10:48:35,324 INFO  [org.hibernate.validator.util.Version] Hibernate Validator 4.1.0.Final+
+10:48:35,344 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.+
+10:48:35,524 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.+
+10:48:35,530 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.+
+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.+
+10:48:35,558 INFO  [org.hibernate.connection.ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider+
+10:48:35,567 INFO  [org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider] Using provided datasource+
+10:48:35,574 INFO  [org.hibernate.cfg.SettingsFactory] Database ->+
+       name : HSQL Database Engine+
+    version : 1.8.0+
+      major : 1+
+      minor : 8+
+10:48:35,574 INFO  [org.hibernate.cfg.SettingsFactory] Driver ->+
+       name : HSQL Database Engine Driver+
+    version : 1.8.0+
+      major : 1+
+      minor : 8+
+10:48:35,620 INFO  [org.hibernate.dialect.Dialect] Using dialect: org.hibernate.dialect.HSQLDialect+
+10:48:35,646 INFO  [org.hibernate.engine.jdbc.JdbcSupportLoader] Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4+
+10:48:35,649 INFO  [org.hibernate.transaction.TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory+
+10:48:35,652 INFO  [org.hibernate.transaction.TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup+
+10:48:35,655 INFO  [org.hibernate.transaction.TransactionManagerLookupFactory] instantiated TransactionManagerLookup+
+10:48:35,656 INFO  [org.hibernate.cfg.SettingsFactory] Automatic flush during beforeCompletion(): disabled+
+10:48:35,656 INFO  [org.hibernate.cfg.SettingsFactory] Automatic session close at end of transaction: disabled+
+10:48:35,656 INFO  [org.hibernate.cfg.SettingsFactory] JDBC batch size: 15+
+10:48:35,656 INFO  [org.hibernate.cfg.SettingsFactory] JDBC batch updates for versioned data: disabled+
+10:48:35,657 INFO  [org.hibernate.cfg.SettingsFactory] Scrollable result sets: enabled+
+10:48:35,658 INFO  [org.hibernate.cfg.SettingsFactory] JDBC3 getGeneratedKeys(): disabled+
+10:48:35,658 INFO  [org.hibernate.cfg.SettingsFactory] Connection release mode: auto+
+10:48:35,659 INFO  [org.hibernate.cfg.SettingsFactory] Default batch fetch size: 1+
+10:48:35,659 INFO  [org.hibernate.cfg.SettingsFactory] Generate SQL with comments: disabled+
+10:48:35,660 INFO  [org.hibernate.cfg.SettingsFactory] Order SQL updates by primary key: disabled+
+10:48:35,660 INFO  [org.hibernate.cfg.SettingsFactory] Order SQL inserts for batching: disabled+
+10:48:35,660 INFO  [org.hibernate.cfg.SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory+
+10:48:35,665 INFO  [org.hibernate.hql.ast.ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory+
+10:48:35,665 INFO  [org.hibernate.cfg.SettingsFactory] Query language substitutions: {}+
+10:48:35,666 INFO  [org.hibernate.cfg.SettingsFactory] JPA-QL strict compliance: enabled+
+10:48:35,666 INFO  [org.hibernate.cfg.SettingsFactory] Second-level cache: enabled+
+10:48:35,666 INFO  [org.hibernate.cfg.SettingsFactory] Query cache: disabled+
+10:48:35,668 INFO  [org.hibernate.cfg.SettingsFactory] Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge+
+10:48:35,679 INFO  [org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge] Cache provider: org.hibernate.cache.HashtableCacheProvider+
+10:48:35,681 INFO  [org.hibernate.cfg.SettingsFactory] Optimize cache for minimal puts: disabled+
+10:48:35,681 INFO  [org.hibernate.cfg.SettingsFactory] Cache region prefix: persistence.unit:unitName=jboss-ejb3-timerservice-mk2.jar#timerdb+
+10:48:35,682 INFO  [org.hibernate.cfg.SettingsFactory] Structured second-level cache entries: disabled+
+10:48:35,692 INFO  [org.hibernate.cfg.SettingsFactory] Statistics: disabled+
+10:48:35,692 INFO  [org.hibernate.cfg.SettingsFactory] Deleted entity synthetic identifier rollback: disabled+
+10:48:35,693 INFO  [org.hibernate.cfg.SettingsFactory] Default entity-mode: pojo+
+10:48:35,693 INFO  [org.hibernate.cfg.SettingsFactory] Named query checking : enabled+
+10:48:35,693 INFO  [org.hibernate.cfg.SettingsFactory] Check Nullability in Core (should be disabled when Bean Validation is on): disabled+
+10:48:35,734 INFO  [org.hibernate.impl.SessionFactoryImpl] building session factory+
+10:48:36,085 INFO  [org.hibernate.impl.SessionFactoryObjectFactory] Factory name: persistence.unit:unitName=jboss-ejb3-timerservice-mk2.jar#timerdb+
+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}+
+10:48:36,092 INFO  [org.hibernate.impl.SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.unit:unitName=jboss-ejb3-timerservice-mk2.jar#timerdb+
+10:48:36,092 WARN  [org.hibernate.impl.SessionFactoryObjectFactory] InitialContext did not implement EventContext+
+10:48:36,102 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] Running hbm2ddl schema update+
+10:48:36,103 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] fetching database metadata+
+10:48:36,104 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] updating schema+
+10:48:36,107 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.+
+10:48:36,144 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] table found: PUBLIC.TIMEOUTMETHOD_METHODPARAMS+
+10:48:36,144 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] columns: [methodparams, timeoutmethod_id]+
+10:48:36,145 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] foreign keys: [fkf294c964b7de2d8a]+
+10:48:36,145 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] indexes: [sys_idx_55]+
+10:48:36,162 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] table found: PUBLIC.CALENDAR_TIMER+
+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]+
+10:48:36,162 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] foreign keys: [fk2b697f04b7de2d8a, fk2b697f04e6e6ef93]+
+10:48:36,162 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] indexes: [sys_idx_57, sys_idx_49, sys_idx_59]+
+10:48:36,180 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] table found: PUBLIC.TIMEOUT_METHOD+
+10:48:36,181 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] columns: [id, methodname, declaringclass]+
+10:48:36,181 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] foreign keys: []+
+10:48:36,181 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] indexes: [sys_idx_51]+
+10:48:36,204 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] table found: PUBLIC.TIMER+
+10:48:36,204 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] columns: [id, previousrun, initialdate, repeatinterval, timedobjectid, timerstate, nextdate, info]+
+10:48:36,204 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] foreign keys: []+
+10:48:36,205 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] indexes: [sys_idx_53]+
+10:48:36,207 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] schema update complete+
+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}+
+10:48:36,369 INFO  [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext at 1392382193{vfs:///C:/JBoss_releases/jboss-6.0.0.Final/server/default/deploy/WebShop.war}+
+10:48:36,370 INFO  [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext at 1392382193{vfs:///C:/JBoss_releases/jboss-6.0.0.Final/server/default/deploy/WebShop.war}+
+10:48:36,419 INFO  [org.jboss.ejb3.instantiator.deployer.BeanInstantiatorDeployerBase] Installed org.jboss.ejb3.instantiator.impl.Ejb31SpecBeanInstantiator at 77068fce into MC at org.jboss.ejb.bean.instantiator/WebShop/WebShop/OperazioniLibri+
+10:48:36,420 INFO  [org.jboss.ejb3.instantiator.deployer.BeanInstantiatorDeployerBase] Installed org.jboss.ejb3.instantiator.impl.Ejb31SpecBeanInstantiator at 77068fce into MC at org.jboss.ejb.bean.instantiator/WebShop/WebShop/AccessoUtente+
+10:48:36,420 INFO  [org.jboss.ejb3.instantiator.deployer.BeanInstantiatorDeployerBase] Installed org.jboss.ejb3.instantiator.impl.Ejb31SpecBeanInstantiator at 77068fce into MC at org.jboss.ejb.bean.instantiator/WebShop/WebShop/BookTestBean+
+10:48:36,421 INFO  [org.jboss.ejb3.instantiator.deployer.BeanInstantiatorDeployerBase] Installed org.jboss.ejb3.instantiator.impl.Ejb31SpecBeanInstantiator at 77068fce into MC at org.jboss.ejb.bean.instantiator/WebShop/WebShop/OperazioniUtenti+
+10:48:36,422 INFO  [org.jboss.ejb3.instantiator.deployer.BeanInstantiatorDeployerBase] Installed org.jboss.ejb3.instantiator.impl.Ejb31SpecBeanInstantiator at 77068fce into MC at org.jboss.ejb.bean.instantiator/WebShop/WebShop/Carrello+
+10:48:36,433 WARN  [org.jboss.ejb3.interceptor.InterceptorInfoRepository] EJBTHREE-1852: InterceptorInfoRepository is deprecated+
+10:48:37,430 INFO  [org.jboss.ejb3.deployers.JBossASKernel] Created KernelDeployment for: WebShop.war+
+10:48:37,433 INFO  [org.jboss.ejb3.deployers.JBossASKernel] installing bean: jboss.j2ee:jar=WebShop.war,name=OperazioniLibri,service=EJB3+
+10:48:37,434 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   with dependencies:+
+10:48:37,434 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and demands:+
+10:48:37,434 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss.ejb:service=EJBTimerService; Required: Described+
+10:48:37,434 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss-switchboard:appName=WebShop,module=WebShop; Required: Create+
+10:48:37,434 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss-injector:topLevelUnit=WebShop.war,unit=WebShop.war,bean=OperazioniLibri; Required: Described+
+10:48:37,434 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           persistence.unit:unitName=WebShop.war#Ejb3StrutsTutorial; Required: Described+
+10:48:37,435 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and supplies:+
+10:48:37,435 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:OperazioniLibri/local-bookshop.library.sessionbean.OperazioniLibriLocal+
+10:48:37,435 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:OperazioniLibri/local+
+10:48:37,435 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:OperazioniLibri+
+10:48:37,435 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           Class:bookshop.library.sessionbean.OperazioniLibriLocal+
+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+
+10:48:37,442 INFO  [org.jboss.ejb3.deployers.JBossASKernel] installing bean: jboss.j2ee:jar=WebShop.war,name=AccessoUtente,service=EJB3+
+10:48:37,442 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   with dependencies:+
+10:48:37,442 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and demands:+
+10:48:37,443 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss-injector:topLevelUnit=WebShop.war,unit=WebShop.war,bean=AccessoUtente; Required: Described+
+10:48:37,443 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss.ejb:service=EJBTimerService; Required: Described+
+10:48:37,443 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss-switchboard:appName=WebShop,module=WebShop; Required: Create+
+10:48:37,443 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           persistence.unit:unitName=WebShop.war#Ejb3StrutsTutorial; Required: Described+
+10:48:37,443 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and supplies:+
+10:48:37,444 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:AccessoUtente/local-bookshop.library.sessionbean.AccessoUtenteLocal+
+10:48:37,444 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:AccessoUtente+
+10:48:37,444 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           Class:bookshop.library.sessionbean.AccessoUtenteLocal+
+10:48:37,444 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:AccessoUtente/local+
+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+
+10:48:37,449 INFO  [org.jboss.ejb3.deployers.JBossASKernel] installing bean: jboss.j2ee:jar=WebShop.war,name=BookTestBean,service=EJB3+
+10:48:37,449 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   with dependencies:+
+10:48:37,450 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and demands:+
+10:48:37,450 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss.ejb:service=EJBTimerService; Required: Described+
+10:48:37,450 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss-switchboard:appName=WebShop,module=WebShop; Required: Create+
+10:48:37,450 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss-injector:topLevelUnit=WebShop.war,unit=WebShop.war,bean=BookTestBean; Required: Described+
+10:48:37,450 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           persistence.unit:unitName=WebShop.war#Ejb3StrutsTutorial; Required: Described+
+10:48:37,450 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and supplies:+
+10:48:37,450 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:BookTestBean/local-bookshop.test.BookTestBeanLocal+
+10:48:37,451 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:BookTestBean+
+10:48:37,451 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:BookTestBean/remote+
+10:48:37,451 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:BookTestBean/remote-bookshop.test.BookTestBeanRemote+
+10:48:37,451 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           Class:bookshop.test.BookTestBeanRemote+
+10:48:37,451 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           Class:bookshop.test.BookTestBeanLocal+
+10:48:37,451 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:BookTestBean/local+
+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+
+10:48:37,453 INFO  [org.jboss.ejb3.deployers.JBossASKernel] installing bean: jboss.j2ee:jar=WebShop.war,name=OperazioniUtenti,service=EJB3+
+10:48:37,453 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   with dependencies:+
+10:48:37,453 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and demands:+
+10:48:37,453 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss.ejb:service=EJBTimerService; Required: Described+
+10:48:37,453 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss-switchboard:appName=WebShop,module=WebShop; Required: Create+
+10:48:37,454 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss-injector:topLevelUnit=WebShop.war,unit=WebShop.war,bean=OperazioniUtenti; Required: Described+
+10:48:37,454 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           persistence.unit:unitName=WebShop.war#Ejb3StrutsTutorial; Required: Described+
+10:48:37,454 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and supplies:+
+10:48:37,455 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:OperazioniUtenti/local-bookshop.library.sessionbean.OperazioniUtentiLocal+
+10:48:37,455 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           Class:bookshop.library.sessionbean.OperazioniUtentiLocal+
+10:48:37,455 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:OperazioniUtenti+
+10:48:37,455 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:OperazioniUtenti/local+
+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+
+10:48:37,457 INFO  [org.jboss.ejb3.deployers.JBossASKernel] installing bean: jboss.j2ee:jar=WebShop.war,name=Carrello,service=EJB3+
+10:48:37,458 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   with dependencies:+
+10:48:37,458 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and demands:+
+10:48:37,458 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss.ejb:service=EJBTimerService; Required: Described+
+10:48:37,458 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss-switchboard:appName=WebShop,module=WebShop; Required: Create+
+10:48:37,459 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jboss-injector:topLevelUnit=WebShop.war,unit=WebShop.war,bean=Carrello; Required: Described+
+10:48:37,459 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           persistence.unit:unitName=WebShop.war#Ejb3StrutsTutorial; Required: Described+
+10:48:37,459 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and supplies:+
+10:48:37,459 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:Carrello/local-bookshop.library.sessionbean.CarrelloLocal+
+10:48:37,460 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           Class:bookshop.library.sessionbean.CarrelloLocal+
+10:48:37,460 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:Carrello+
+10:48:37,460 INFO  [org.jboss.ejb3.deployers.JBossASKernel]           jndi:Carrello/local+
+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+
+10:48:39,539 INFO  [org.jboss.jpa.deployment.PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=WebShop.war#Ejb3StrutsTutorial+
+10:48:39,541 INFO  [org.hibernate.ejb.Ejb3Configuration] Processing PersistenceUnitInfo [+
+          name: Ejb3StrutsTutorial+
+          ...]+
+10:48:39,543 WARN  [org.hibernate.ejb.Ejb3Configuration] Persistence provider caller does not implement the EJB3 spec correctly.PersistenceUnitInfo.getNewTempClassLoader() is null.+
+10:48:39,544 INFO  [org.hibernate.cfg.AnnotationBinder] Binding entity from annotated class: bookshop.library.entitybean.Book+
+10:48:39,544 INFO  [org.hibernate.cfg.annotations.EntityBinder] Bind entity bookshop.library.entitybean.Book on table book+
+10:48:39,551 INFO  [org.hibernate.cfg.AnnotationBinder] Binding entity from annotated class: bookshop.library.entitybean.Utenti+
+10:48:39,551 INFO  [org.hibernate.cfg.annotations.EntityBinder] Bind entity bookshop.library.entitybean.Utenti on table utente+
+10:48:39,558 INFO  [org.hibernate.cfg.annotations.CollectionBinder] Mapping collection: bookshop.library.entitybean.Utenti.books -> book+
+10:48:39,569 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.+
+10:48:39,579 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.+
+10:48:39,582 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.+
+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.+
+10:48:39,586 INFO  [org.hibernate.connection.ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider+
+10:48:39,587 INFO  [org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider] Using provided datasource+
+10:48:39,588 INFO  [org.hibernate.cfg.SettingsFactory] Database ->+
+       name : HSQL Database Engine+
+    version : 1.8.0+
+      major : 1+
+      minor : 8+
+10:48:39,588 INFO  [org.hibernate.cfg.SettingsFactory] Driver ->+
+       name : HSQL Database Engine Driver+
+    version : 1.8.0+
+      major : 1+
+      minor : 8+
+10:48:39,588 INFO  [org.hibernate.dialect.Dialect] Using dialect: org.hibernate.dialect.HSQLDialect+
+10:48:39,589 INFO  [org.hibernate.engine.jdbc.JdbcSupportLoader] Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4+
+10:48:39,590 INFO  [org.hibernate.transaction.TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory+
+10:48:39,590 INFO  [org.hibernate.transaction.TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup+
+10:48:39,591 INFO  [org.hibernate.transaction.TransactionManagerLookupFactory] instantiated TransactionManagerLookup+
+10:48:39,591 INFO  [org.hibernate.cfg.SettingsFactory] Automatic flush during beforeCompletion(): disabled+
+10:48:39,591 INFO  [org.hibernate.cfg.SettingsFactory] Automatic session close at end of transaction: disabled+
+10:48:39,591 INFO  [org.hibernate.cfg.SettingsFactory] JDBC batch size: 15+
+10:48:39,592 INFO  [org.hibernate.cfg.SettingsFactory] JDBC batch updates for versioned data: disabled+
+10:48:39,592 INFO  [org.hibernate.cfg.SettingsFactory] Scrollable result sets: enabled+
+10:48:39,592 INFO  [org.hibernate.cfg.SettingsFactory] JDBC3 getGeneratedKeys(): disabled+
+10:48:39,592 INFO  [org.hibernate.cfg.SettingsFactory] Connection release mode: auto+
+10:48:39,592 INFO  [org.hibernate.cfg.SettingsFactory] Default batch fetch size: 1+
+10:48:39,593 INFO  [org.hibernate.cfg.SettingsFactory] Generate SQL with comments: disabled+
+10:48:39,593 INFO  [org.hibernate.cfg.SettingsFactory] Order SQL updates by primary key: disabled+
+10:48:39,593 INFO  [org.hibernate.cfg.SettingsFactory] Order SQL inserts for batching: disabled+
+10:48:39,593 INFO  [org.hibernate.cfg.SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory+
+10:48:39,594 INFO  [org.hibernate.hql.ast.ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory+
+10:48:39,594 INFO  [org.hibernate.cfg.SettingsFactory] Query language substitutions: {}+
+10:48:39,594 INFO  [org.hibernate.cfg.SettingsFactory] JPA-QL strict compliance: enabled+
+10:48:39,595 INFO  [org.hibernate.cfg.SettingsFactory] Second-level cache: enabled+
+10:48:39,595 INFO  [org.hibernate.cfg.SettingsFactory] Query cache: disabled+
+10:48:39,595 INFO  [org.hibernate.cfg.SettingsFactory] Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge+
+10:48:39,595 INFO  [org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge] Cache provider: org.hibernate.cache.HashtableCacheProvider+
+10:48:39,596 INFO  [org.hibernate.cfg.SettingsFactory] Optimize cache for minimal puts: disabled+
+10:48:39,596 INFO  [org.hibernate.cfg.SettingsFactory] Cache region prefix: persistence.unit:unitName=WebShop.war#Ejb3StrutsTutorial+
+10:48:39,596 INFO  [org.hibernate.cfg.SettingsFactory] Structured second-level cache entries: disabled+
+10:48:39,597 INFO  [org.hibernate.cfg.SettingsFactory] Statistics: disabled+
+10:48:39,597 INFO  [org.hibernate.cfg.SettingsFactory] Deleted entity synthetic identifier rollback: disabled+
+10:48:39,597 INFO  [org.hibernate.cfg.SettingsFactory] Default entity-mode: pojo+
+10:48:39,597 INFO  [org.hibernate.cfg.SettingsFactory] Named query checking : enabled+
+10:48:39,598 INFO  [org.hibernate.cfg.SettingsFactory] Check Nullability in Core (should be disabled when Bean Validation is on): disabled+
+10:48:39,603 INFO  [org.hibernate.impl.SessionFactoryImpl] building session factory+
+10:48:39,646 INFO  [org.hibernate.impl.SessionFactoryObjectFactory] Factory name: persistence.unit:unitName=WebShop.war#Ejb3StrutsTutorial+
+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}+
+10:48:39,666 INFO  [org.hibernate.impl.SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.unit:unitName=WebShop.war#Ejb3StrutsTutorial+
+10:48:39,667 WARN  [org.hibernate.impl.SessionFactoryObjectFactory] InitialContext did not implement EventContext+
+10:48:39,673 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.+
+10:48:39,678 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.+
+10:48:39,682 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] Running hbm2ddl schema export+
+10:48:39,684 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] exporting generated schema to database+
+10:48:39,689 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] schema export complete+
+10:48:39,691 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.+
+10:48:39,696 INFO  [org.hibernate.validator.engine.resolver.DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.+
+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}+
+10:48:39,710 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] deploy, ctxPath=/WebShop+
+10:48:39,831 INFO  [org.jboss.ejb3.session.SessionSpecContainer] Starting jboss.j2ee:jar=WebShop.war,name=Carrello,service=EJB3+
+10:48:39,859 INFO  [org.jboss.ejb3.EJBContainer] STARTED EJB: bookshop.library.sessionbean.Carrello ejbName: Carrello+
+10:48:39,896 INFO  [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:+

+          Carrello/local - EJB3.x Default Local Business Interface+
+          Carrello/local-bookshop.library.sessionbean.CarrelloLocal - EJB3.x Local Business Interface+

+10:48:39,922 INFO  [org.jboss.ejb3.session.SessionSpecContainer] Starting jboss.j2ee:jar=WebShop.war,name=OperazioniUtenti,service=EJB3+
+10:48:39,923 INFO  [org.jboss.ejb3.EJBContainer] STARTED EJB: bookshop.library.sessionbean.OperazioniUtenti ejbName: OperazioniUtenti+
+10:48:39,935 INFO  [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:+

+          OperazioniUtenti/local - EJB3.x Default Local Business Interface+
+          OperazioniUtenti/local-bookshop.library.sessionbean.OperazioniUtentiLocal - EJB3.x Local Business Interface+

+10:48:39,938 WARN  [org.jboss.ejb3.TimerServiceContainer] EJBTHREE-2193: using deprecated TimerServiceFactory for restoring timers+
+10:48:40,465 INFO  [org.jboss.ejb3.session.SessionSpecContainer] Starting jboss.j2ee:jar=WebShop.war,name=OperazioniLibri,service=EJB3+
+10:48:40,466 INFO  [org.jboss.ejb3.EJBContainer] STARTED EJB: bookshop.library.sessionbean.OperazioniLibri ejbName: OperazioniLibri+
+10:48:40,470 INFO  [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:+

+          OperazioniLibri/local - EJB3.x Default Local Business Interface+
+          OperazioniLibri/local-bookshop.library.sessionbean.OperazioniLibriLocal - EJB3.x Local Business Interface+

+10:48:40,470 WARN  [org.jboss.ejb3.TimerServiceContainer] EJBTHREE-2193: using deprecated TimerServiceFactory for restoring timers+
+10:48:40,475 INFO  [org.jboss.ejb3.session.SessionSpecContainer] Starting jboss.j2ee:jar=WebShop.war,name=AccessoUtente,service=EJB3+
+10:48:40,476 INFO  [org.jboss.ejb3.EJBContainer] STARTED EJB: bookshop.library.sessionbean.AccessoUtente ejbName: AccessoUtente+
+10:48:40,480 INFO  [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:+

+          AccessoUtente/local - EJB3.x Default Local Business Interface+
+          AccessoUtente/local-bookshop.library.sessionbean.AccessoUtenteLocal - EJB3.x Local Business Interface+

+10:48:40,493 INFO  [org.jboss.ejb3.session.SessionSpecContainer] Starting jboss.j2ee:jar=WebShop.war,name=BookTestBean,service=EJB3+
+10:48:40,494 INFO  [org.jboss.ejb3.EJBContainer] STARTED EJB: bookshop.test.BookTestBean ejbName: BookTestBean+
+10:48:40,519 INFO  [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:+

+          BookTestBean/remote - EJB3.x Default Remote Business Interface+
+          BookTestBean/remote-bookshop.test.BookTestBeanRemote - EJB3.x Remote Business Interface+
+          BookTestBean/local - EJB3.x Default Local Business Interface+
+          BookTestBean/local-bookshop.test.BookTestBeanLocal - EJB3.x Local Business Interface+

+10:48:40,520 WARN  [org.jboss.ejb3.TimerServiceContainer] EJBTHREE-2193: using deprecated TimerServiceFactory for restoring timers+


Now executing the code, when i come to this point:
+     context = new InitialContext();+
+     System.out.println(OperazioniUtentiLocal.class.toString());+
+     opUser = (OperazioniUtenti) context.lookup("/BookShop/OperazioniUtenti/local");+
that's the output:


+10:54:45,080 INFO  [STDOUT] interface bookshop.library.sessionbean.OperazioniUtentiLocal+


+10:54:45,092 *ERROR [STDERR] javax.naming.NameNotFoundException: BookShop not bound*+


+10:54:45,092 ERROR [STDERR]           at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)+


+10:54:45,093 ERROR [STDERR]           at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)+


+10:54:45,093 ERROR [STDERR]           at org.jnp.server.NamingServer.getObject(NamingServer.java:785)+


+10:54:45,093 ERROR [STDERR]           at org.jnp.server.NamingServer.lookup(NamingServer.java:396)+


+10:54:45,094 ERROR [STDERR]           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)+


+10:54:45,094 ERROR [STDERR]           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)+


+10:54:45,094 ERROR [STDERR]           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)+


+10:54:45,094 ERROR [STDERR]           at java.lang.reflect.Method.invoke(Method.java:597)+


+10:54:45,095 ERROR [STDERR]           at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)+


+10:54:45,095 ERROR [STDERR]           at sun.rmi.transport.Transport$1.run(Transport.java:159)+


+10:54:45,095 ERROR [STDERR]           at java.security.AccessController.doPrivileged(Native Method)+


+10:54:45,095 ERROR [STDERR]           at sun.rmi.transport.Transport.serviceCall(Transport.java:155)+


+10:54:45,096 ERROR [STDERR]           at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)+


+10:54:45,096 ERROR [STDERR]           at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)+


+10:54:45,096 ERROR [STDERR]           at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)+


+10:54:45,097 ERROR [STDERR]           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)+


+10:54:45,097 ERROR [STDERR]           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)+


+10:54:45,097 ERROR [STDERR]           at java.lang.Thread.run(Thread.java:662)+


+10:54:45,097 ERROR [STDERR]           at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)+


+10:54:45,098 ERROR [STDERR]           at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)+


+10:54:45,098 ERROR [STDERR]           at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)+


+10:54:45,098 ERROR [STDERR]           at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)+


+10:54:45,099 ERROR [STDERR]           at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728)+


+10:54:45,099 ERROR [STDERR]           at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)+


+10:54:45,099 ERROR [STDERR]           at javax.naming.InitialContext.lookup(InitialContext.java:392)+


+10:54:45,099 ERROR [STDERR]           at webinterface.servlet.somethingServlet.doPost(somethingServlet.java:50)+


+10:54:45,099 ERROR [STDERR]           at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)+


+10:54:45,100 ERROR [STDERR]           at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)+


+10:54:45,100 ERROR [STDERR]           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)+


+10:54:45,100 ERROR [STDERR]           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)+


+10:54:45,100 ERROR [STDERR]           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)+


+10:54:45,101 ERROR [STDERR]           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)+


+10:54:45,101 ERROR [STDERR]           at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181)+


+10:54:45,101 ERROR [STDERR]           at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285)+


+10:54:45,101 ERROR [STDERR]           at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261)+


+10:54:45,101 ERROR [STDERR]           at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)+


+10:54:45,102 ERROR [STDERR]           at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)+


+10:54:45,102 ERROR [STDERR]           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)+


+10:54:45,102 ERROR [STDERR]           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)+


+10:54:45,102 ERROR [STDERR]           at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)+


+10:54:45,103 ERROR [STDERR]           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)+


+10:54:45,103 ERROR [STDERR]           at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)+


+10:54:45,103 ERROR [STDERR]           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)+


+10:54:45,103 ERROR [STDERR]           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)+


+10:54:45,104 ERROR [STDERR]           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654)+


+10:54:45,104 ERROR [STDERR]           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)+


+10:54:45,104 ERROR [STDERR]           at java.lang.Thread.run(Thread.java:662)+


Still it doesn't find my classes!!



The .jar has been deployed too automatically ( NICE!! ), but if i try to use my EJB through my Java Client like this:

+try+
+  {+
+  Context context = new InitialContext();+
+  book = (OperazioniLibriLocal) context.lookup(OperazioniLibri.LocalJNDIName);+
+  } catch (NamingException e)+
+  {+
+  System.out.println("nel catch - errore");+
+  e.printStackTrace();+
+  throw new RuntimeException(e);+
+  }+

+  System.out.println("");+
+  System.out.println("");+
+  System.out.println("***************** BOOK SESSION OPERATIONS *****************");+

+  book.insertnewBook( .....bla bla bla+

+
+
i got:

+11:06:23,564 INFO  [STDOUT] ***************** BOOK SESSION OPERATIONS *****************+

+11:06:23,665 WARN  [org.hibernate.util.JDBCExceptionReporter] SQL Error: -22, SQLState: S0002+
+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=?]+
+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 at 4fbd89c9: java.lang.Throwable: STACKTRACE+


Deploying the .jar alone without the .war works well, without this problem.



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.


My next step is to try to build and .ear and add there both .jar and .war ( this without include the .jar inside ). 
I really don't get how they can see eachother and work togheter.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/603626#603626]

Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110505/7188ce4b/attachment-0001.html 


More information about the jboss-user mailing list