Dinesh Nadeera [
http://community.jboss.org/people/mthalis] replied to the discussion
"How to Change DefaultDS in jndi-name"
To view the discussion, visit:
http://community.jboss.org/message/555307#555307
--------------------------------------------------------------
Thank for reply. I changed persistence.xml and run application I got below error
21:13:16,150 INFO [Ejb3DependenciesDeployer] Encountered deployment
AbstractVFSDeploymentContext@9777223{vfszip:/home/dinesh/jboss-5.1.0.GA/server/default/deploy/JbossEJB3.ear/JbossEJB3-ejb.jar/}
21:13:16,183 INFO [Ejb3DependenciesDeployer] Encountered deployment
AbstractVFSDeploymentContext@9777223{vfszip:/home/dinesh/jboss-5.1.0.GA/server/default/deploy/JbossEJB3.ear/JbossEJB3-ejb.jar/}
21:13:16,183 INFO [Ejb3DependenciesDeployer] Encountered deployment
AbstractVFSDeploymentContext@9777223{vfszip:/home/dinesh/jboss-5.1.0.GA/server/default/deploy/JbossEJB3.ear/JbossEJB3-ejb.jar/}
21:13:16,183 INFO [Ejb3DependenciesDeployer] Encountered deployment
AbstractVFSDeploymentContext@9777223{vfszip:/home/dinesh/jboss-5.1.0.GA/server/default/deploy/JbossEJB3.ear/JbossEJB3-ejb.jar/}
21:13:16,233 INFO [JBossASKernel] Created KernelDeployment for: javassist.jar
21:13:16,233 INFO [JBossASKernel] installing bean:
jboss.j2ee:ear=JbossEJB3-ejb.jar,jar=javassist.jar,name=javassist,service=EJB3
21:13:16,233 INFO [JBossASKernel] with dependencies:
21:13:16,234 INFO [JBossASKernel] and demands:
21:13:16,234 INFO [JBossASKernel] and supplies:
21:13:16,234 INFO [JBossASKernel] Added
bean(jboss.j2ee:ear=JbossEJB3-ejb.jar,jar=javassist.jar,name=javassist,service=EJB3) to
KernelDeployment of: javassist.jar
21:13:17,527 INFO [JBossASKernel] Created KernelDeployment for: JbossEJB3-ejb.jar
21:13:17,527 INFO [JBossASKernel] installing bean:
jboss.j2ee:ear=JbossEJB3.ear,jar=JbossEJB3-ejb.jar,name=StudentFacade,service=EJB3
21:13:17,527 INFO [JBossASKernel] with dependencies:
21:13:17,527 INFO [JBossASKernel] and demands:
21:13:17,527 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
21:13:17,527 INFO [JBossASKernel]
persistence.unit:unitName=JbossEJB3.ear/JbossEJB3-ejb.jar#JbossEJB3-ejbPU
21:13:17,540 INFO [JBossASKernel] and supplies:
21:13:17,540 INFO [JBossASKernel] jndi:JbossEJB3/StudentFacade/remote
21:13:17,541 INFO [JBossASKernel] Class:Session.StudentFacadeRemote
21:13:17,541 INFO [JBossASKernel]
jndi:JbossEJB3/StudentFacade/remote-Session.StudentFacadeRemote
21:13:17,541 INFO [JBossASKernel] Added
bean(jboss.j2ee:ear=JbossEJB3.ear,jar=JbossEJB3-ejb.jar,name=StudentFacade,service=EJB3)
to KernelDeployment of: JbossEJB3-ejb.jar
21:13:17,911 INFO [EJB3EndpointDeployer] Deploy
AbstractBeanMetaData@52dd05{name=jboss.j2ee:ear=JbossEJB3.ear,jar=JbossEJB3-ejb.jar,name=StudentFacade,service=EJB3_endpoint
bean=org.jboss.ejb3.endpoint.deployers.impl.EndpointImpl properties=[container]
constructor=null autowireCandidate=true}
21:13:18,149 INFO [PersistenceUnitDeployment] Starting persistence unit
persistence.unit:unitName=JbossEJB3.ear/JbossEJB3-ejb.jar#JbossEJB3-ejbPU
21:13:18,177 INFO [Ejb3Configuration] Processing PersistenceUnitInfo [
name: JbossEJB3-ejbPU
...]
21:13:19,219 WARN [Ejb3Configuration] Persistence provider caller does not implement the
EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null.
21:13:19,300 INFO [AnnotationBinder] Binding entity from annotated class: Entity.Student
21:13:19,301 INFO [QueryBinder] Binding Named query: Student.findAll => SELECT s FROM
Student s
21:13:19,301 INFO [QueryBinder] Binding Named query: Student.findById => SELECT s FROM
Student s WHERE s.id = :id
21:13:19,301 INFO [QueryBinder] Binding Named query: Student.findByName => SELECT s
FROM Student s WHERE s.name = :name
21:13:19,306 INFO [EntityBinder] Bind entity Entity.Student on table student
21:13:19,408 INFO [HibernateSearchEventListenerRegister] Unable to find
org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search
is not enabled.
21:13:19,437 INFO [ConnectionProviderFactory] Initializing connection provider:
org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
21:13:19,449 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
21:13:20,031 INFO [SettingsFactory] RDBMS: MySQL, version: 5.1.41-3ubuntu12.3
21:13:20,032 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version:
mysql-connector-java-5.1.6 ( Revision: ${svn.Revision} )
21:13:20,054 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
21:13:20,070 INFO [TransactionFactoryFactory] Transaction strategy:
org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
21:13:20,071 INFO [TransactionManagerLookupFactory] instantiating
TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
21:13:20,072 INFO [TransactionManagerLookupFactory] instantiated
TransactionManagerLookup
21:13:20,072 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
21:13:20,072 INFO [SettingsFactory] Automatic session close at end of transaction:
disabled
21:13:20,072 INFO [SettingsFactory] JDBC batch size: 15
21:13:20,072 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
21:13:20,072 INFO [SettingsFactory] Scrollable result sets: enabled
21:13:20,072 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
21:13:20,072 INFO [SettingsFactory] Connection release mode: auto
21:13:20,072 INFO [SettingsFactory] Maximum outer join fetch depth: 2
21:13:20,073 INFO [SettingsFactory] Default batch fetch size: 1
21:13:20,073 INFO [SettingsFactory] Generate SQL with comments: disabled
21:13:20,073 INFO [SettingsFactory] Order SQL updates by primary key: disabled
21:13:20,073 INFO [SettingsFactory] Order SQL inserts for batching: disabled
21:13:20,073 INFO [SettingsFactory] Query translator:
org.hibernate.hql.ast.ASTQueryTranslatorFactory
21:13:20,074 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
21:13:20,075 INFO [SettingsFactory] Query language substitutions: {}
21:13:20,075 INFO [SettingsFactory] JPA-QL strict compliance: enabled
21:13:20,075 INFO [SettingsFactory] Second-level cache: enabled
21:13:20,075 INFO [SettingsFactory] Query cache: disabled
21:13:20,075 INFO [SettingsFactory] Cache region factory :
org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge
21:13:20,076 INFO [RegionFactoryCacheProviderBridge] Cache provider:
org.hibernate.cache.HashtableCacheProvider
21:13:20,078 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
21:13:20,078 INFO [SettingsFactory] Cache region prefix:
persistence.unit:unitName=JbossEJB3.ear/JbossEJB3-ejb.jar#JbossEJB3-ejbPU
21:13:20,078 INFO [SettingsFactory] Structured second-level cache entries: disabled
21:13:20,078 INFO [SettingsFactory] Statistics: disabled
21:13:20,078 INFO [SettingsFactory] Deleted entity synthetic identifier rollback:
disabled
21:13:20,078 INFO [SettingsFactory] Default entity-mode: pojo
21:13:20,079 INFO [SettingsFactory] Named query checking : enabled
21:13:20,091 INFO [SessionFactoryImpl] building session factory
21:13:20,152 INFO [SessionFactoryObjectFactory] Factory name:
persistence.unit:unitName=JbossEJB3.ear/JbossEJB3-ejb.jar#JbossEJB3-ejbPU
21:13:20,152 INFO [NamingHelper] JNDI InitialContext
properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory,
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
21:13:20,205 INFO [NamingHelper] Creating subcontext:
persistence.unit:unitName=JbossEJB3.ear
21:13:20,206 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name:
persistence.unit:unitName=JbossEJB3.ear/JbossEJB3-ejb.jar#JbossEJB3-ejbPU
21:13:20,215 WARN [SessionFactoryObjectFactory] InitialContext did not implement
EventContext
21:13:20,215 INFO [NamingHelper] JNDI InitialContext
properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory,
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
21:13:20,307 INFO [ClientENCInjectionContainer] STARTED CLIENT ENC CONTAINER: javassist
21:13:20,568 INFO [TomcatDeployment] deploy, ctxPath=/JbossEJB3-war
21:13:21,094 WARN [HDScanner] Failed to process changes
org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete
deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment
"jboss.j2ee:ear=JbossEJB3.ear,jar=JbossEJB3-ejb.jar,name=StudentFacade,service=EJB3"
is missing the following dependencies:
Dependency "<UNKNOWN
jboss.j2ee:ear=JbossEJB3.ear,jar=JbossEJB3-ejb.jar,name=StudentFacade,service=EJB3>"
(should be in state "Described", but is actually in state "** UNRESOLVED
Demands 'jboss.ejb:service=EJBTimerService' **")
Deployment
"jboss.j2ee:ear=JbossEJB3.ear,jar=JbossEJB3-ejb.jar,name=StudentFacade,service=EJB3_endpoint"
is missing the following dependencies:
Dependency
"jboss.j2ee:ear=JbossEJB3.ear,jar=JbossEJB3-ejb.jar,name=StudentFacade,service=EJB3"
(should be in state "Configured", but is actually in state
"PreInstall")
DEPLOYMENTS IN ERROR:
Deployment "<UNKNOWN
jboss.j2ee:ear=JbossEJB3.ear,jar=JbossEJB3-ejb.jar,name=StudentFacade,service=EJB3>"
is in error due to the following reason(s): ** UNRESOLVED Demands
'jboss.ejb:service=EJBTimerService' **
at
org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
at
org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
at
org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
at
org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)
21:14:36,946 INFO [[/JbossEJB3-war]] Marking servlet addRecord as unavailable
21:14:36,947 ERROR [[addRecord]] Allocate exception for servlet addRecord
javax.naming.NameNotFoundException: JbossEJB3 not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
at org.jnp.server.NamingServer.lookup(NamingServer.java:396)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
at javax.naming.InitialContext.lookup(InitialContext.java:409)
at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1346)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:817)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
at org.jboss.ejb3.JndiUtil.lookup(JndiUtil.java:44)
at org.jboss.injection.JndiPropertyInjector.lookup(JndiPropertyInjector.java:75)
at org.jboss.injection.JndiPropertyInjector.inject(JndiPropertyInjector.java:99)
at
org.jboss.web.tomcat.service.TomcatInjectionContainer.processInjectors(TomcatInjectionContainer.java:366)
at
org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:271)
at
org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:265)
at
org.jboss.web.tomcat.service.TomcatInjectionContainer.newInstance(TomcatInjectionContainer.java:256)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1006)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:777)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:636)
Please help me to run my application. *Other than mysql-ds.xml, Is their any xml files
should I configure in Jboss 5.1 server to run my application(I only edit mysql-ds.xml).*
Thank You.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/555307#555307]
Start a new discussion in JNDI and Naming at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]