[jboss-user] [JNDI/Naming/Network] - Re: JNDI Data Source

manofspider do-not-reply at jboss.com
Wed Sep 3 05:48:04 EDT 2008


I checked it, previously, I placed driver jar into \simplej2ee.war\WEB-INF\lib\classes12.jar

Now I place driver jar into %JBOSS_HOME%\server\< serverName>\lib folder: \Install\jboss-4.0.2\server\simplej2ee\lib\classes12.jar.

Output:

anonymous wrote : 
  | 15:56:32,010 INFO  [Server] Starting JBoss (MX MicroKernel)...
  | 15:56:32,010 INFO  [Server] Release ID: JBoss [Zion] 4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)
  | 15:56:32,010 INFO  [Server] Home Dir: D:\Work\Install\jboss-4.0.2
  | 15:56:32,010 INFO  [Server] Home URL: file:/D:/Work/Install/jboss-4.0.2/
  | 15:56:32,010 INFO  [Server] Library URL: file:/D:/Work/Install/jboss-4.0.2/lib/
  | 15:56:32,010 INFO  [Server] Patch URL: null
  | 15:56:32,010 INFO  [Server] Server Name: simplej2ee
  | 15:56:32,010 INFO  [Server] Server Home Dir: D:\Work\Install\jboss-4.0.2\server\simplej2ee
  | 15:56:32,010 INFO  [Server] Server Home URL: file:/D:/Work/Install/jboss-4.0.2/server/simplej2ee/
  | 15:56:32,010 INFO  [Server] Server Data Dir: D:\Work\Install\jboss-4.0.2\server\simplej2ee\data
  | 15:56:32,010 INFO  [Server] Server Temp Dir: D:\Work\Install\jboss-4.0.2\server\simplej2ee\tmp
  | 15:56:32,010 INFO  [Server] Server Config URL: file:/D:/Work/Install/jboss-4.0.2/server/simplej2ee/conf/
  | 15:56:32,026 INFO  [Server] Server Library URL: file:/D:/Work/Install/jboss-4.0.2/server/simplej2ee/lib/
  | 15:56:32,026 INFO  [Server] Root Deployment Filename: jboss-service.xml
  | 15:56:32,026 INFO  [Server] Starting General Purpose Architecture (GPA)...
  | 15:56:32,477 INFO  [ServerInfo] Java version: 1.6.0,Sun Microsystems Inc.
  | 15:56:32,477 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.6.0-b105,Sun Microsystems Inc.
  | 15:56:32,477 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
  | 15:56:33,070 INFO  [Server] Core system initialized
  | 15:56:34,488 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
  | 15:56:34,581 INFO  [WebService] Using RMI server codebase: http://tra10:8083/
  | 15:56:34,846 INFO  [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory at ad093076
  | 15:56:39,007 INFO  [Embedded] Catalina naming disabled
  | 15:56:39,303 INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
  | 15:56:39,303 INFO  [Catalina] Initialization processed in 249 ms
  | 15:56:39,303 INFO  [StandardService] Starting service jboss.web
  | 15:56:39,303 INFO  [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.9
  | 15:56:39,334 INFO  [StandardHost] XML validation disabled
  | 15:56:39,365 INFO  [Catalina] Server startup in 62 ms
  | 15:56:39,474 INFO  [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=file:/D:/Work/Install/jboss-4.0.2/server/simplej2ee/deploy/http-invoker.sar/invoker.war/
  | 15:56:39,739 INFO  [WebappLoader] Dual registration of jndi stream handler: factory already defined
  | 15:56:40,145 INFO  [TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=file:/D:/Work/Install/jboss-4.0.2/server/simplej2ee/tmp/deploy/tmp60090jboss-ws4ee-exp.war/
  | 15:56:40,269 INFO  [TomcatDeployer] deploy, ctxPath=/, warUrl=file:/D:/Work/Install/jboss-4.0.2/server/simplej2ee/deploy/jbossweb-tomcat55.sar/ROOT.war/
  | 15:56:40,581 INFO  [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=file:/D:/Work/Install/jboss-4.0.2/server/simplej2ee/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
  | 15:56:42,326 INFO  [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/D:/Work/Install/jboss-4.0.2/server/simplej2ee/deploy/management/console-mgr.sar/web-console.war/
  | 15:56:43,386 INFO  [MailService] Mail Service bound to java:/Mail
  | 15:56:43,807 INFO  [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/D:/Work/Install/jboss-4.0.2/server/simplej2ee/deploy/jboss-ha-local-jdbc.rar
  | 15:56:43,916 INFO  [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/D:/Work/Install/jboss-4.0.2/server/simplej2ee/deploy/jboss-ha-xa-jdbc.rar
  | 15:56:44,165 INFO  [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/D:/Work/Install/jboss-4.0.2/server/simplej2ee/deploy/jboss-local-jdbc.rar
  | 15:56:44,243 INFO  [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/D:/Work/Install/jboss-4.0.2/server/simplej2ee/deploy/jboss-xa-jdbc.rar
  | 15:56:44,337 INFO  [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/D:/Work/Install/jboss-4.0.2/server/simplej2ee/deploy/jms/jms-ra.rar
  | 15:56:44,430 INFO  [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/D:/Work/Install/jboss-4.0.2/server/simplej2ee/deploy/mail-ra.rar
  | 15:56:45,568 INFO  [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS to JNDI name 'java:DefaultDS'
  | 15:56:45,817 INFO  [A] Bound to JNDI name: queue/A
  | 15:56:45,817 INFO  [B] Bound to JNDI name: queue/B
  | 15:56:45,817 INFO  [C] Bound to JNDI name: queue/C
  | 15:56:45,817 INFO  [D] Bound to JNDI name: queue/D
  | 15:56:45,833 INFO  [ex] Bound to JNDI name: queue/ex
  | 15:56:45,848 INFO  [testTopic] Bound to JNDI name: topic/testTopic
  | 15:56:45,848 INFO  [securedTopic] Bound to JNDI name: topic/securedTopic
  | 15:56:45,848 INFO  [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
  | 15:56:45,848 INFO  [testQueue] Bound to JNDI name: queue/testQueue
  | 15:56:45,895 INFO  [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
  | 15:56:45,926 INFO  [DLQ] Bound to JNDI name: queue/DLQ
  | 15:56:46,082 INFO  [ConnectionFactoryBindingService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA to JNDI name 'java:JmsXA'
  | 15:56:46,191 INFO  [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=DataSourceBinding,name=training-db-ds to JNDI name 'java:training-db-ds'
  | 15:56:46,222 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=file:/D:/Work/Install/jboss-4.0.2/server/simplej2ee/deploy/jmx-console.war/
  | 15:56:46,378 INFO  [TomcatDeployer] deploy, ctxPath=/simplej2ee, warUrl=file:/D:/Work/eclipse/simplej2ee/training1/dist/appdev/simplej2ee.war/
  | 15:56:46,596 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
  | 15:56:46,736 INFO  [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
  | 15:56:46,768 INFO  [JkMain] Jk running ID=0 time=0/63  config=null
  | 15:56:46,768 INFO  [Server] JBoss (MX MicroKernel) [4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)] Started in 14s:742ms
  | 15:57:00,621 INFO  [STDOUT] Connected to DB successfully.
  | 15:57:00,746 INFO  [STDOUT] ITEM: 1 Monitor
  | 15:57:00,746 INFO  [STDOUT] ITEM: 2 Keyboard
  | 15:57:00,746 INFO  [STDOUT] ITEM: 3 Mouse
  | 

jaikiran, good answer! It works now, thanksss.

And do you know how to make my previous example worked ? by keeping driver jar in \simplej2ee.war\WEB-INF\lib\classes12.jar ?

looking forward to your next answers!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173894#4173894

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173894



More information about the jboss-user mailing list