aspose file tools*
The moose likes JBoss/WildFly and the fly likes new to jndi name connecting to mysql Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "new to jndi name connecting to mysql" Watch "new to jndi name connecting to mysql" New topic
Author

new to jndi name connecting to mysql

prashan dassanayake
Greenhorn

Joined: Nov 07, 2008
Posts: 23
Im a beginner so please help me to solve the error of ds.xml file.this is the error message i got.

15:08:34,281 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo@fe9193fa { url=file:/C:/jboss-4.0.5.GA/serve
r/default/deploy/BCLDB.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.5.GA/server/default/deploy/BCLDB.xml
altDD: null
lastDeployed: 1226050714265
lastModified: 1226050714265
mbeans:

--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@fe9193fa { url=file:/C:/jboss-4.0.5.GA/serve
r/default/deploy/BCLDB.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.5.GA/server/default/deploy/BCLDB.xml
altDD: null
lastDeployed: 1226050714265
lastModified: 1226050714265
mbeans:


15:08:34,531 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0
-8080
15:08:34,687 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
15:08:34,703 INFO [JkMain] Jk running ID=0 time=0/32 config=null
15:08:34,718 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Bran
ch_4_0 date=200610162339)] Started in 20s:234ms



this is my database xml file


<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>jdbc/BCLDB</jndi-name>
<connection-url>jdbc:mysql:3306//localhost/bcl</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
<password>atlink</password>
<maxStatements>2147483647</maxStatements>


<metadata>
<type-mapping>mySQL</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>

please help me how to solve this error.im using jboss server.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

There will be another exception in message earlier in your JBoss log telling you why the DataSource could not be created. What does that say?

(Also, since this is not really a Servlet question, I'll move this to a more a ppropriate forum)


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
prashan dassanayake
Greenhorn

Joined: Nov 07, 2008
Posts: 23
Thanks for replying..This is th e whole report i got.i sent only part of this before.Plese tell me how to solve this error.
===============================================================================

JBoss Bootstrap Environment

JBOSS_HOME: C:\jboss-4.0.5.GA\bin\\..

JAVA: C:\Program Files\Java\jdk1.5.0_10\bin\java

JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.cli
ent.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

CLASSPATH: C:\Program Files\Java\jdk1.5.0_10\lib\tools.jar;C:\jboss-4.0.5.GA\b
in\\run.jar

===============================================================================

15:08:14,468 INFO [Server] Starting JBoss (MX MicroKernel)...
15:08:14,468 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Bra
nch_4_0 date=200610162339)
15:08:14,468 INFO [Server] Home Dir: C:\jboss-4.0.5.GA
15:08:14,468 INFO [Server] Home URL: file:/C:/jboss-4.0.5.GA/
15:08:14,468 INFO [Server] Patch URL: null
15:08:14,468 INFO [Server] Server Name: default
15:08:14,468 INFO [Server] Server Home Dir: C:\jboss-4.0.5.GA\server\default
15:08:14,468 INFO [Server] Server Home URL: file:/C:/jboss-4.0.5.GA/server/defa
ult/
15:08:14,484 INFO [Server] Server Log Dir: C:\jboss-4.0.5.GA\server\default\log

15:08:14,484 INFO [Server] Server Temp Dir: C:\jboss-4.0.5.GA\server\default\tm
p
15:08:14,484 INFO [Server] Root Deployment Filename: jboss-service.xml
15:08:14,781 INFO [ServerInfo] Java version: 1.5.0_10,Sun Microsystems Inc.
15:08:14,781 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_10-b03
,Sun Microsystems Inc.
15:08:14,781 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
15:08:15,375 INFO [Server] Core system initialized
15:08:18,250 INFO [WebService] Using RMI server codebase: http://prashan:8083/
15:08:18,296 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resour
ce:log4j.xml
15:08:23,578 INFO [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date
=200609291417)
15:08:24,953 INFO [Embedded] Catalina naming disabled
15:08:25,015 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in
the classpath. Will load the default rule set.
15:08:25,015 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in
the classpath. Will load the default rule set.
15:08:25,609 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0
.0.0-8080
15:08:25,609 INFO [Catalina] Initialization processed in 594 ms
15:08:25,609 INFO [StandardService] Starting service jboss.web
15:08:25,625 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.2
0
15:08:25,656 INFO [StandardHost] XML validation disabled
15:08:25,781 INFO [Catalina] Server startup in 172 ms
15:08:25,968 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/
http-invoker.sar/invoker.war/
15:08:26,390 INFO [WebappLoader] Dual registration of jndi stream handler: fact
ory already defined
15:08:27,015 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbosswe
b-tomcat55.sar/ROOT.war/
15:08:27,171 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/dep
loy/tmp4405jbossws-context-exp.war/
15:08:27,343 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../
deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
15:08:29,453 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../dep
loy/management/console-mgr.sar/web-console.war/
15:08:30,281 INFO [MailService] Mail Service bound to java:/Mail
15:08:30,578 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-ha-local-jdbc.rar
15:08:30,640 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-ha-xa-jdbc.rar
15:08:30,671 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-local-jdbc.rar
15:08:30,718 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-xa-jdbc.rar
15:08:30,781 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jms/jms-ra.rar
15:08:30,828 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/mail-ra.rar
15:08:32,031 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca
:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java efaultDS'
15:08:32,328 INFO [A] Bound to JNDI name: queue/A
15:08:32,328 INFO [B] Bound to JNDI name: queue/B
15:08:32,328 INFO [C] Bound to JNDI name: queue/C
15:08:32,328 INFO [D] Bound to JNDI name: queue/D
15:08:32,328 INFO [ex] Bound to JNDI name: queue/ex
15:08:32,359 INFO [testTopic] Bound to JNDI name: topic/testTopic
15:08:32,359 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
15:08:32,359 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic

15:08:32,359 INFO [testQueue] Bound to JNDI name: queue/testQueue
15:08:32,437 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.
0.0:8093
15:08:32,500 INFO [DLQ] Bound to JNDI name: queue/DLQ
15:08:32,718 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
oss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
15:08:33,046 INFO [TomcatDeployer] deploy, ctxPath=/bestcarelab, warUrl=.../dep
loy/bestcarelab.war/
15:08:34,000 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../dep
loy/jmx-console.war/
15:08:34,281 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo@fe9193fa { url=file:/C:/jboss-4.0.5.GA/serve
r/default/deploy/BCLDB.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.5.GA/server/default/deploy/BCLDB.xml
altDD: null
lastDeployed: 1226050714265
lastModified: 1226050714265
mbeans:

--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@fe9193fa { url=file:/C:/jboss-4.0.5.GA/serve
r/default/deploy/BCLDB.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.5.GA/server/default/deploy/BCLDB.xml
altDD: null
lastDeployed: 1226050714265
lastModified: 1226050714265
mbeans:


15:08:34,531 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0
-8080
15:08:34,687 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
15:08:34,703 INFO [JkMain] Jk running ID=0 time=0/32 config=null
15:08:34,718 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Bran
ch_4_0 date=200610162339)] Started in 20s:234ms
15:40:36,437 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo@fe9193fa { url=file:/C:/jboss-4.0.5.GA/serve
r/default/deploy/BCLDB.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.5.GA/server/default/deploy/BCLDB.xml
altDD: null
lastDeployed: 1226050714265
lastModified: 1226050714265
mbeans:

--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@fe9193fa { url=file:/C:/jboss-4.0.5.GA/serve
r/default/deploy/BCLDB.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.5.GA/server/default/deploy/BCLDB.xml
altDD: null
lastDeployed: 1226050714265
lastModified: 1226050714265
mbeans:


15:43:16,609 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo@fe9193fa { url=file:/C:/jboss-4.0.5.GA/serve
r/default/deploy/BCLDB.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.5.GA/server/default/deploy/BCLDB.xml
altDD: null
lastDeployed: 1226050714265
lastModified: 1226050714265
mbeans:

--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@fe9193fa { url=file:/C:/jboss-4.0.5.GA/serve
r/default/deploy/BCLDB.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-4.0.5.GA/server/default/deploy/BCLDB.xml
altDD: null
lastDeployed: 1226050714265
lastModified: 1226050714265
mbeans:
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9315
    
109

Rename BCLDB.xml to BCLDB-ds.xml


[My Blog] [JavaRanch Journal]
prashan dassanayake
Greenhorn

Joined: Nov 07, 2008
Posts: 23
Thanks so much.when i change so errors are shorten.but there are some errors further.plese help me more to solve them.
i can connect to the my opening page.but i cant acces further by giving correct user names and pass words.it is saying incorrect passwaord.so please help me further to solve this problem.
this is the new error im having
===============================================================================

JBoss Bootstrap Environment

JBOSS_HOME: C:\jboss-4.0.5.GA\bin\\..

JAVA: C:\Program Files\Java\jdk1.5.0_10\bin\java

JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.cli
ent.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

CLASSPATH: C:\Program Files\Java\jdk1.5.0_10\lib\tools.jar;C:\jboss-4.0.5.GA\b
in\\run.jar

===============================================================================

16:35:49,531 INFO [Server] Starting JBoss (MX MicroKernel)...
16:35:49,562 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Bra
nch_4_0 date=200610162339)
16:35:49,562 INFO [Server] Home Dir: C:\jboss-4.0.5.GA
16:35:49,562 INFO [Server] Home URL: file:/C:/jboss-4.0.5.GA/
16:35:49,562 INFO [Server] Patch URL: null
16:35:49,562 INFO [Server] Server Name: default
16:35:49,562 INFO [Server] Server Home Dir: C:\jboss-4.0.5.GA\server\default
16:35:49,562 INFO [Server] Server Home URL: file:/C:/jboss-4.0.5.GA/server/defa
ult/
16:35:49,562 INFO [Server] Server Log Dir: C:\jboss-4.0.5.GA\server\default\log

16:35:49,578 INFO [Server] Server Temp Dir: C:\jboss-4.0.5.GA\server\default\tm
p
16:35:49,578 INFO [Server] Root Deployment Filename: jboss-service.xml
16:35:50,000 INFO [ServerInfo] Java version: 1.5.0_10,Sun Microsystems Inc.
16:35:50,000 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_10-b03
,Sun Microsystems Inc.
16:35:50,000 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
16:35:50,812 INFO [Server] Core system initialized
16:35:54,234 INFO [WebService] Using RMI server codebase: http://prashan:8083/
16:35:54,265 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resour
ce:log4j.xml
16:36:00,156 INFO [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date
=200609291417)
16:36:01,765 INFO [Embedded] Catalina naming disabled
16:36:01,828 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in
the classpath. Will load the default rule set.
16:36:01,843 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in
the classpath. Will load the default rule set.
16:36:02,250 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0
.0.0-8080
16:36:02,265 INFO [Catalina] Initialization processed in 406 ms
16:36:02,265 INFO [StandardService] Starting service jboss.web
16:36:02,265 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.2
0
16:36:02,312 INFO [StandardHost] XML validation disabled
16:36:02,328 INFO [Catalina] Server startup in 63 ms
16:36:02,671 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/
http-invoker.sar/invoker.war/
16:36:03,109 INFO [WebappLoader] Dual registration of jndi stream handler: fact
ory already defined
16:36:04,093 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbosswe
b-tomcat55.sar/ROOT.war/
16:36:04,906 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/dep
loy/tmp32899jbossws-context-exp.war/
16:36:05,312 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../
deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
16:36:07,046 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../dep
loy/management/console-mgr.sar/web-console.war/
16:36:08,328 INFO [MailService] Mail Service bound to java:/Mail
16:36:08,562 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-ha-local-jdbc.rar
16:36:08,640 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-ha-xa-jdbc.rar
16:36:08,718 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-local-jdbc.rar
16:36:08,781 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-xa-jdbc.rar
16:36:08,859 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jms/jms-ra.rar
16:36:08,937 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/mail-ra.rar
16:36:09,390 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca
:service=DataSourceBinding,name=jdbc/BCLDB' to JNDI name 'java:jdbc/BCLDB'
16:36:10,156 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca
:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java efaultDS'
16:36:10,453 INFO [A] Bound to JNDI name: queue/A
16:36:10,453 INFO [B] Bound to JNDI name: queue/B
16:36:10,453 INFO [C] Bound to JNDI name: queue/C
16:36:10,453 INFO [D] Bound to JNDI name: queue/D
16:36:10,468 INFO [ex] Bound to JNDI name: queue/ex
16:36:10,484 INFO [testTopic] Bound to JNDI name: topic/testTopic
16:36:10,484 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
16:36:10,484 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic

16:36:10,500 INFO [testQueue] Bound to JNDI name: queue/testQueue
16:36:10,578 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.
0.0:8093
16:36:10,625 INFO [DLQ] Bound to JNDI name: queue/DLQ
16:36:10,765 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
oss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
16:36:11,218 INFO [TomcatDeployer] deploy, ctxPath=/bestcarelab, warUrl=.../dep
loy/bestcarelab.war/
16:36:12,125 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../dep
loy/jmx-console.war/
16:36:12,875 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0
-8080
16:36:13,031 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
16:36:13,046 INFO [JkMain] Jk running ID=0 time=0/31 config=null
16:36:13,046 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Bran
ch_4_0 date=200610162339)] Started in 23s:468ms
16:36:29,781 ERROR [Logging] [null] [null] Could not get connection using jndina
me = java:BCLDB
16:36:29,781 ERROR [Logging] [UserDAL] [null] Could not find user waruna
16:36:29,781 ERROR [Logging] [UserManager] [null] Could not authenticate user
16:36:38,125 ERROR [Logging] [null] [null] Could not get connection using jndina
me = java:BCLDB
16:36:38,125 ERROR [Logging] [UserDAL] [null] Could not find user waruna
16:36:38,125 ERROR [Logging] [UserManager] [null] Could not authenticate user
16:36:48,671 ERROR [Logging] [null] [null] Could not get connection using jndina
me = java:BCLDB
16:36:48,671 ERROR [Logging] [UserDAL] [null] Could not find user waruna
16:36:48,671 ERROR [Logging] [UserManager] [null] Could not authenticate user


please help me to solve this
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9315
    
109

16:36:29,781 ERROR [Logging] [null] [null] Could not get connection using jndina
me = java:BCLDB
16:36:29,781 ERROR [Logging] [UserDAL] [null] Could not find user waruna
16:36:29,781 ERROR [Logging] [UserManager] [null] Could not authenticate user
16:36:38,125 ERROR [Logging] [null] [null] Could not get connection using jndina
me = java:BCLDB
16:36:38,125 ERROR [Logging] [UserDAL] [null] Could not find user waruna
16:36:38,125 ERROR [Logging] [UserManager] [null] Could not authenticate user
16:36:48,671 ERROR [Logging] [null] [null] Could not get connection using jndina
me = java:BCLDB
16:36:48,671 ERROR [Logging] [UserDAL] [null] Could not find user waruna
16:36:48,671 ERROR [Logging] [UserManager] [null] Could not authenticate user


These logs look specific to your application and not from JBoss. You might have to look into the application's code to see what's going on.
prashan dassanayake
Greenhorn

Joined: Nov 07, 2008
Posts: 23
Thank you so much for helping.I was able to solve many probs and save lot of time due to you.
Thank you!!!
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9315
    
109

Good to know, you got it working
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: new to jndi name connecting to mysql
 
Similar Threads
Exploded deployment not working
Jboss Server
Error whiling running the server
JBoss AS Deployment
Incompletely Deployed Packages in jboss