Bill, Sebastian thanks for your replies. Sorry about the delay...

I've try what you suggested and here is the result:

(ps.: between my several tries to solve the problem I have changed the database 
to mysql and upgraded jboss to 4.0.4 CR2.)

Sebastian suggestion (put the -ds file directly in deploy folder):

Jar content:


  | C:\java\jboss\server\default\deploy>jar tf FirstEjb3Tutorial.jar
  | META-INF/
  | META-INF/MANIFEST.MF
  | META-INF/ejb-jar.xml
  | META-INF/jndi.properties
  | META-INF/log4j.properties
  | META-INF/persistence.xml
  | de/
  | de/lalinuna/
  | de/lalinuna/library/
  | de/lalinuna/library/Book.class
  | de/lalinuna/library/BookTestBean.class
  | de/lalinuna/library/BookTestBeanLocal.class
  | de/lalinuna/library/BookTestBeanRemote.class
  | 
  | C:\java\jboss\server\default\deploy>
  | 

The file mysql-ds.xml is in the deploy folder.

Here is the complete server output listening:


  | C:\java\jboss\bin>run
  | 
===============================================================================
  | .
  |   JBoss Bootstrap Environment
  | .
  |   JBOSS_HOME: C:\java\jboss\bin\\..
  | .
  |   JAVA: c:\java\jee5\jdk\bin\java
  | .
  |   JAVA_OPTS:  -Dprogram.name=run.bat -Xms128m -Xmx512m
  | .
  |   CLASSPATH: c:\java\jee5\jdk\lib\tools.jar;C:\java\jboss\bin\\run.jar
  | .
  | 
===============================================================================
  | .
  | 19:53:58,468 INFO  [Server] Starting JBoss (MX MicroKernel)...
  | 19:53:58,468 INFO  [Server] Release ID: JBoss [Zion] 4.0.4.CR2 (build: 
CVSTag=JBoss_4_0_4_CR2 date=2
  | 00603311500)
  | 19:53:58,484 INFO  [Server] Home Dir: C:\java\jboss
  | 19:53:58,484 INFO  [Server] Home URL: file:/C:/java/jboss/
  | 19:53:58,484 INFO  [Server] Patch URL: null
  | 19:53:58,484 INFO  [Server] Server Name: default
  | 19:53:58,484 INFO  [Server] Server Home Dir: C:\java\jboss\server\default
  | 19:53:58,484 INFO  [Server] Server Home URL: 
file:/C:/java/jboss/server/default/
  | 19:53:58,484 INFO  [Server] Server Log Dir: C:\java\jboss\server\default\log
  | 19:53:58,484 INFO  [Server] Server Temp Dir: 
C:\java\jboss\server\default\tmp
  | 19:53:58,484 INFO  [Server] Root Deployment Filename: jboss-service.xml
  | 19:53:58,828 INFO  [ServerInfo] Java version: 1.5.0_06,Sun Microsystems Inc.
  | 19:53:58,828 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Client VM 
1.5.0_06-b05,Sun Microsystems In
  | c.
  | 19:53:58,828 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
  | 19:53:59,250 INFO  [Server] Core system initialized
  | 19:54:00,250 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: 
resource:log4j.xml
  | 19:54:02,750 INFO  [SocketServerInvoker] Invoker started for locator: 
InvokerLocator [socket://10.1.
  | 1.2:3873/]
  | 19:54:03,062 INFO  [AspectDeployer] Deployed AOP: 
file:/C:/java/jboss/server/default/deploy/ejb3-int
  | erceptors-aop.xml
  | 19:54:04,234 INFO  [WebService] Using RMI server codebase: 
http://MMMJR_NB:8083/
  | 19:54:04,343 WARN  [EJBTimerServiceImpl] Cannot obtain TransactionManager 
from JNDI, using TxManager
  | .getInstance(): javax.naming.NameNotFoundException: TransactionManager not 
bound
  | 19:54:05,859 INFO  [MailService] Mail Service bound to java:/Mail
  | 19:54:06,218 INFO  [NamingService] JNDI bootstrap JNP=/0.0.0.0:1099, 
RMI=/0.0.0.0:1098, backlog=50,
  | no client SocketFactory, Server SocketFactory=class 
org.jboss.net.sockets.DefaultSocketFactory
  | 19:54:06,234 INFO  [SubscriptionManager] Bound event dispatcher to 
java:comp/env/EventDispatcher
  | 19:54:06,781 INFO  [Embedded] Catalina naming disabled
  | 19:54:06,843 INFO  [ClusterRuleSetFactory] Unable to find a cluster rule 
set in the classpath. Will
  | load the default rule set.
  | 19:54:06,843 INFO  [ClusterRuleSetFactory] Unable to find a cluster rule 
set in the classpath. Will
  | load the default rule set.
  | 19:54:07,187 INFO  [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on 
http-0.0.0.0-8080
  | 19:54:07,187 INFO  [Catalina] Initialization processed in 328 ms
  | 19:54:07,187 INFO  [StandardService] Starting service jboss.web
  | 19:54:07,187 INFO  [StandardEngine] Starting Servlet Engine: Apache 
Tomcat/5.5.16
  | 19:54:07,218 INFO  [StandardHost] XML validation disabled
  | 19:54:07,250 INFO  [Catalina] Server startup in 63 ms
  | 19:54:07,375 INFO  [TomcatDeployer] deploy, ctxPath=/, 
warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.
  | war/
  | 19:54:07,734 INFO  [WebappLoader] Dual registration of jndi stream handler: 
factory already defined
  | 19:54:08,062 INFO  [TomcatDeployer] deploy, ctxPath=/jbossws, 
warUrl=.../tmp/deploy/tmp26191jbossws.
  | sar-contents/jbossws-exp.war/
  | 19:54:08,328 INFO  [RARDeployment] Required license terms exist, view 
META-INF/ra.xml in .../deploy/
  | jboss-local-jdbc.rar
  | 19:54:08,437 INFO  [RARDeployment] Required license terms exist, view 
META-INF/ra.xml in .../deploy/
  | jms/jms-ra.rar
  | 19:54:09,265 INFO  [ConnectionFactoryBindingService] Bound 
ConnectionManager 'jboss.jca:service=Data
  | SourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
  | 19:54:09,546 INFO  [A] Bound to JNDI name: queue/A
  | 19:54:09,546 INFO  [B] Bound to JNDI name: queue/B
  | 19:54:09,546 INFO  [C] Bound to JNDI name: queue/C
  | 19:54:09,546 INFO  [D] Bound to JNDI name: queue/D
  | 19:54:09,546 INFO  [ex] Bound to JNDI name: queue/ex
  | 19:54:09,593 INFO  [testTopic] Bound to JNDI name: topic/testTopic
  | 19:54:09,593 INFO  [securedTopic] Bound to JNDI name: topic/securedTopic
  | 19:54:09,593 INFO  [testDurableTopic] Bound to JNDI name: 
topic/testDurableTopic
  | 19:54:09,593 INFO  [testQueue] Bound to JNDI name: queue/testQueue
  | 19:54:09,625 INFO  [UILServerILService] JBossMQ UIL service available at : 
/0.0.0.0:8093
  | 19:54:09,671 INFO  [DLQ] Bound to JNDI name: queue/DLQ
  | 19:54:09,796 INFO  [ConnectionFactoryBindingService] Bound 
ConnectionManager 'jboss.jca:service=Conn
  | ectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
  | 19:54:09,875 INFO  [ConnectionFactoryBindingService] Bound 
ConnectionManager 'jboss.jca:service=Data
  | SourceBinding,name=mysql-DS' to JNDI name 'java:mysql-DS'
  | 19:54:10,531 INFO  [Ejb3Deployment] EJB3 deployment time took: 610
  | 19:54:10,531 INFO  [JmxKernelAbstraction] installing MBean: 
persistence.units:jar=FirstEjb3Tutorial.
  | jar,unitName=FirstEjb3Tutorial with dependencies:
  | 19:54:10,546 INFO  [JmxKernelAbstraction]       
jboss.jca:name=mysql-ds,service=ManagedConnectionFac
  | tory
  | 19:54:10,593 INFO  [JmxKernelAbstraction] installing MBean: 
jboss.j2ee:jar=FirstEjb3Tutorial.jar,nam
  | e=BookTestBean,service=EJB3 with dependencies:
  | 19:54:10,593 INFO  [JmxKernelAbstraction]       
persistence.units:jar=FirstEjb3Tutorial.jar,unitName
  | =FirstEjb3Tutorial
  | 19:54:10,593 INFO  [EJB3Deployer] Deployed: 
file:/C:/java/jboss/server/default/deploy/FirstEjb3Tutor
  | ial.jar
  | 19:54:10,625 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console, 
warUrl=.../deploy/jmx-console.war/
  | 
  | 19:54:10,765 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
  | 
  | --- MBeans waiting for other MBeans ---
  | ObjectName: 
persistence.units:jar=FirstEjb3Tutorial.jar,unitName=FirstEjb3Tutorial
  |   State: NOTYETINSTALLED
  |   I Depend On:
  |     jboss.jca:name=mysql-ds,service=ManagedConnectionFactory
  |   Depends On Me:
  |     jboss.j2ee:jar=FirstEjb3Tutorial.jar,name=BookTestBean,service=EJB3
  | 
  | ObjectName: 
jboss.j2ee:jar=FirstEjb3Tutorial.jar,name=BookTestBean,service=EJB3
  |   State: NOTYETINSTALLED
  |   I Depend On:
  |     persistence.units:jar=FirstEjb3Tutorial.jar,unitName=FirstEjb3Tutorial
  | 
  | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
  | ObjectName: jboss.jca:name=mysql-ds,service=ManagedConnectionFactory
  |   State: NOTYETINSTALLED
  |   Depends On Me:
  |     persistence.units:jar=FirstEjb3Tutorial.jar,unitName=FirstEjb3Tutorial
  | 
  | 
  | 19:54:10,781 INFO  [Http11BaseProtocol] Starting Coyote HTTP/1.1 on 
http-0.0.0.0-8080
  | 19:54:10,937 INFO  [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
  | 19:54:10,937 INFO  [JkMain] Jk running ID=0 time=0/31  config=null
  | 19:54:10,953 INFO  [Server] JBoss (MX MicroKernel) [4.0.4.CR2 (build: 
CVSTag=JBoss_4_0_4_CR2 date=20
  | 0603311500)] Started in 12s:469ms
  | 

Bill suggestion to put the -ds file at the top of the jar:

jar contents:


  | C:\java\jboss\server\default\deploy>jar tf FirstEjb3Tutorial.jar
  | META-INF/
  | META-INF/MANIFEST.MF
  | META-INF/ejb-jar.xml
  | META-INF/jndi.properties
  | META-INF/log4j.properties
  | META-INF/persistence.xml
  | de/
  | de/lalinuna/
  | de/lalinuna/library/
  | de/lalinuna/library/Book.class
  | de/lalinuna/library/BookTestBean.class
  | de/lalinuna/library/BookTestBeanLocal.class
  | de/lalinuna/library/BookTestBeanRemote.class
  | mysql-DS.xml
  | 
  | C:\java\jboss\server\default\deploy>
  | 

Complete server output:


  | C:\java\jboss\bin>run
  | 
===============================================================================
  | .
  |   JBoss Bootstrap Environment
  | .
  |   JBOSS_HOME: C:\java\jboss\bin\\..
  | .
  |   JAVA: c:\java\jee5\jdk\bin\java
  | .
  |   JAVA_OPTS:  -Dprogram.name=run.bat -Xms128m -Xmx512m
  | .
  |   CLASSPATH: c:\java\jee5\jdk\lib\tools.jar;C:\java\jboss\bin\\run.jar
  | .
  | 
===============================================================================
  | .
  | 19:59:57,640 INFO  [Server] Starting JBoss (MX MicroKernel)...
  | 19:59:57,640 INFO  [Server] Release ID: JBoss [Zion] 4.0.4.CR2 (build: 
CVSTag=JBoss_4_0_4_CR2 date=2
  | 00603311500)
  | 19:59:57,656 INFO  [Server] Home Dir: C:\java\jboss
  | 19:59:57,656 INFO  [Server] Home URL: file:/C:/java/jboss/
  | 19:59:57,656 INFO  [Server] Patch URL: null
  | 19:59:57,656 INFO  [Server] Server Name: default
  | 19:59:57,656 INFO  [Server] Server Home Dir: C:\java\jboss\server\default
  | 19:59:57,656 INFO  [Server] Server Home URL: 
file:/C:/java/jboss/server/default/
  | 19:59:57,656 INFO  [Server] Server Log Dir: C:\java\jboss\server\default\log
  | 19:59:57,656 INFO  [Server] Server Temp Dir: 
C:\java\jboss\server\default\tmp
  | 19:59:57,656 INFO  [Server] Root Deployment Filename: jboss-service.xml
  | 19:59:58,000 INFO  [ServerInfo] Java version: 1.5.0_06,Sun Microsystems Inc.
  | 19:59:58,000 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Client VM 
1.5.0_06-b05,Sun Microsystems In
  | c.
  | 19:59:58,000 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
  | 19:59:58,406 INFO  [Server] Core system initialized
  | 19:59:59,375 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: 
resource:log4j.xml
  | 20:00:02,328 INFO  [SocketServerInvoker] Invoker started for locator: 
InvokerLocator [socket://10.1.
  | 1.2:3873/]
  | 20:00:02,640 INFO  [AspectDeployer] Deployed AOP: 
file:/C:/java/jboss/server/default/deploy/ejb3-int
  | erceptors-aop.xml
  | 20:00:03,843 INFO  [WebService] Using RMI server codebase: 
http://MMMJR_NB:8083/
  | 20:00:03,937 WARN  [EJBTimerServiceImpl] Cannot obtain TransactionManager 
from JNDI, using TxManager
  | .getInstance(): javax.naming.NameNotFoundException: TransactionManager not 
bound
  | 20:00:05,421 INFO  [MailService] Mail Service bound to java:/Mail
  | 20:00:05,765 INFO  [NamingService] JNDI bootstrap JNP=/0.0.0.0:1099, 
RMI=/0.0.0.0:1098, backlog=50,
  | no client SocketFactory, Server SocketFactory=class 
org.jboss.net.sockets.DefaultSocketFactory
  | 20:00:05,796 INFO  [SubscriptionManager] Bound event dispatcher to 
java:comp/env/EventDispatcher
  | 20:00:06,390 INFO  [Embedded] Catalina naming disabled
  | 20:00:06,453 INFO  [ClusterRuleSetFactory] Unable to find a cluster rule 
set in the classpath. Will
  | load the default rule set.
  | 20:00:06,453 INFO  [ClusterRuleSetFactory] Unable to find a cluster rule 
set in the classpath. Will
  | load the default rule set.
  | 20:00:06,796 INFO  [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on 
http-0.0.0.0-8080
  | 20:00:06,796 INFO  [Catalina] Initialization processed in 343 ms
  | 20:00:06,796 INFO  [StandardService] Starting service jboss.web
  | 20:00:06,796 INFO  [StandardEngine] Starting Servlet Engine: Apache 
Tomcat/5.5.16
  | 20:00:06,843 INFO  [StandardHost] XML validation disabled
  | 20:00:06,859 INFO  [Catalina] Server startup in 63 ms
  | 20:00:06,984 INFO  [TomcatDeployer] deploy, ctxPath=/, 
warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.
  | war/
  | 20:00:07,312 INFO  [WebappLoader] Dual registration of jndi stream handler: 
factory already defined
  | 20:00:07,656 INFO  [TomcatDeployer] deploy, ctxPath=/jbossws, 
warUrl=.../tmp/deploy/tmp39778jbossws.
  | sar-contents/jbossws-exp.war/
  | 20:00:08,015 INFO  [RARDeployment] Required license terms exist, view 
META-INF/ra.xml in .../deploy/
  | jboss-local-jdbc.rar
  | 20:00:08,125 INFO  [RARDeployment] Required license terms exist, view 
META-INF/ra.xml in .../deploy/
  | jms/jms-ra.rar
  | 20:00:09,078 INFO  [ConnectionFactoryBindingService] Bound 
ConnectionManager 'jboss.jca:service=Data
  | SourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
  | 20:00:09,406 INFO  [A] Bound to JNDI name: queue/A
  | 20:00:09,406 INFO  [B] Bound to JNDI name: queue/B
  | 20:00:09,406 INFO  [C] Bound to JNDI name: queue/C
  | 20:00:09,406 INFO  [D] Bound to JNDI name: queue/D
  | 20:00:09,406 INFO  [ex] Bound to JNDI name: queue/ex
  | 20:00:09,453 INFO  [testTopic] Bound to JNDI name: topic/testTopic
  | 20:00:09,453 INFO  [securedTopic] Bound to JNDI name: topic/securedTopic
  | 20:00:09,453 INFO  [testDurableTopic] Bound to JNDI name: 
topic/testDurableTopic
  | 20:00:09,453 INFO  [testQueue] Bound to JNDI name: queue/testQueue
  | 20:00:09,484 INFO  [UILServerILService] JBossMQ UIL service available at : 
/0.0.0.0:8093
  | 20:00:09,531 INFO  [DLQ] Bound to JNDI name: queue/DLQ
  | 20:00:09,656 INFO  [ConnectionFactoryBindingService] Bound 
ConnectionManager 'jboss.jca:service=Conn
  | ectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
  | 20:00:10,468 INFO  [Ejb3Deployment] EJB3 deployment time took: 765
  | 20:00:10,484 INFO  [JmxKernelAbstraction] installing MBean: 
persistence.units:jar=FirstEjb3Tutorial.
  | jar,unitName=FirstEjb3Tutorial with dependencies:
  | 20:00:10,500 INFO  [JmxKernelAbstraction]       
jboss.jca:name=mysql-ds,service=ManagedConnectionFac
  | tory
  | 20:00:10,546 INFO  [JmxKernelAbstraction] installing MBean: 
jboss.j2ee:jar=FirstEjb3Tutorial.jar,nam
  | e=BookTestBean,service=EJB3 with dependencies:
  | 20:00:10,546 INFO  [JmxKernelAbstraction]       
persistence.units:jar=FirstEjb3Tutorial.jar,unitName
  | =FirstEjb3Tutorial
  | 20:00:10,546 INFO  [EJB3Deployer] Deployed: 
file:/C:/java/jboss/server/default/deploy/FirstEjb3Tutor
  | ial.jar
  | 20:00:10,593 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console, 
warUrl=.../deploy/jmx-console.war/
  | 
  | 20:00:10,718 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
  | 
  | --- MBeans waiting for other MBeans ---
  | ObjectName: 
persistence.units:jar=FirstEjb3Tutorial.jar,unitName=FirstEjb3Tutorial
  |   State: NOTYETINSTALLED
  |   I Depend On:
  |     jboss.jca:name=mysql-ds,service=ManagedConnectionFactory
  |   Depends On Me:
  |     jboss.j2ee:jar=FirstEjb3Tutorial.jar,name=BookTestBean,service=EJB3
  | 
  | ObjectName: 
jboss.j2ee:jar=FirstEjb3Tutorial.jar,name=BookTestBean,service=EJB3
  |   State: NOTYETINSTALLED
  |   I Depend On:
  |     persistence.units:jar=FirstEjb3Tutorial.jar,unitName=FirstEjb3Tutorial
  | 
  | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
  | ObjectName: jboss.jca:name=mysql-ds,service=ManagedConnectionFactory
  |   State: NOTYETINSTALLED
  |   Depends On Me:
  |     persistence.units:jar=FirstEjb3Tutorial.jar,unitName=FirstEjb3Tutorial
  | 
  | 
  | 20:00:10,750 INFO  [Http11BaseProtocol] Starting Coyote HTTP/1.1 on 
http-0.0.0.0-8080
  | 20:00:10,875 INFO  [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
  | 20:00:10,875 INFO  [JkMain] Jk running ID=0 time=0/79  config=null
  | 20:00:10,937 INFO  [Server] JBoss (MX MicroKernel) [4.0.4.CR2 (build: 
CVSTag=JBoss_4_0_4_CR2 date=20
  | 0603311500)] Started in 13s:281ms
  | 

Looking at the messages I can't find a clue of what is wrong...

thanks again, Marcio.

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

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


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to