7 Replies Latest reply on Mar 14, 2006 9:29 PM by JBoss Developer

    JNDI DataSource - IllegalArgumentException - Help Please

    JBoss Developer Newbie

      Hi,

      I am trying to setup a MySQLDataSource and I am receiving this exception no matter what I try to change. Config files at bottom. Your assistance is very much apreciated. THANKS

      ==========

      [java] 16:08:17,213 ERROR [StandardContext] Error starting static Resources
      [java] java.lang.IllegalArgumentException: Document base C:\jboss-4.0.4RC1\server\tapestry-proto-1.0\.\MySQLContext does not exist or is not a readable directory
      [java] at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:140)
      [java] at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3777)

      ===========

      <?xml version="1.0" encoding="UTF-8"?>
      
      <datasources>
       <local-tx-datasource>
       <jndi-name>MySQLDataSource</jndi-name>
       <connection-url>jdbc:mysql://localhost/roster</connection-url>
       <driver-class>com.mysql.jdbc.Driver</driver-class>
       <user-name>webapps</user-name>
       <password>webapps</password>
       <metadata>
       <type-mapping>mySQL</type-mapping>
       </metadata>
       <min-pool-size>5</min-pool-size>
       <max-pool-size>20</max-pool-size>
       </local-tx-datasource>
      </datasources>
      


      web.xml fragment
      
       <resource-ref>
       <description>MySQL Connection</description>
       <res-ref-name>jdbc/MySQLDataSource</res-ref-name>
       <res-type>javax.sql.DataSource</res-type>
       <jndi-name>java:MySQLDataSource</jndi-name>
       <res-auth>Container</res-auth>
       </resource-ref>
      


      
      the docbase is very confusing... and never gets picked up properly at bootstrap, but this is how the docs state it should go... ???
      
      
      <Context path="/MySQLContext" docBase="MySQLContext"
       debug="5" reloadable="true" crossContext="true">
      
       <Logger className="org.apache.catalina.logger.FileLogger"
       prefix="localhost_DBTest_log." suffix=".txt"
       timestamp="true"/>
      
       <Resource name="jdbc/MySQLDataSource"
       auth="Container"
       type="javax.sql.DataSource"/>
      
       <ResourceParams name="jdbc/MySQLDataSource">
       <parameter>
       <name>factory</name>
       <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
       </parameter>
      
       <!-- Maximum number of dB connections in pool. Make sure you
       configure your mysqld max_connections large enough to handle
       all of your db connections. Set to 0 for no limit.
       -->
       <parameter>
       <name>maxActive</name>
       <value>100</value>
       </parameter>
      
       <!-- Maximum number of idle dB connections to retain in pool.
       Set to -1 for no limit. See also the DBCP documentation on this
       and the minEvictableIdleTimeMillis configuration parameter.
       -->
       <parameter>
       <name>maxIdle</name>
       <value>30</value>
       </parameter>
      
       <!-- Maximum time to wait for a dB connection to become available
       in ms, in this example 10 seconds. An Exception is thrown if
       this timeout is exceeded. Set to -1 to wait indefinitely.
       -->
       <parameter>
       <name>maxWait</name>
       <value>10000</value>
       </parameter>
      
       <!-- MySQL dB username and password for dB connections -->
       <parameter>
       <name>username</name>
       <value>webapps</value>
       </parameter>
       <parameter>
       <name>password</name>
       <value>webapps</value>
       </parameter>
      
       <!-- Class name for the old mm.mysql JDBC driver - uncomment this entry and comment next
       if you want to use this driver - we recommend using Connector/J though
       <parameter>
       <name>driverClassName</name>
       <value>org.gjt.mm.mysql.Driver</value>
       </parameter>
       -->
      
       <!-- Class name for the official MySQL Connector/J driver -->
       <parameter>
       <name>driverClassName</name>
       <value>com.mysql.jdbc.Driver</value>
       </parameter>
      
       <!-- The JDBC connection url for connecting to your MySQL dB.
       The autoReconnect=true argument to the url makes sure that the
       mm.mysql JDBC Driver will automatically reconnect if mysqld closed the
       connection. mysqld by default closes idle connections after 8 hours.
       -->
       <parameter>
       <name>url</name>
       <value>jdbc:mysql://localhost/roster?autoReconnect=true</value>
       </parameter>
       </ResourceParams>
      </Context>
      


      
      here is complete tack trace... from console...
      
      Buildfile: C:\Prototype\Company\Product\tapestry-proto-1.0\build.xml
      jboss.start:
       [echo] jdk: C:\DEVTOOLS\Sun\jdk1.5.0_04
       [echo] server: C:\jboss-4.0.4RC1\server\tapestry-proto-1.0
       [echo] jboss.home: C:\jboss-4.0.4RC1
       [java] Listening for transport dt_socket at address: 8000
       [java] 16:07:37,857 INFO [Server] Starting JBoss (MX MicroKernel)...
       [java] 16:07:37,857 INFO [Server] Release ID: JBoss [Zion] 4.0.4RC1 (build: CVSTag=JBoss_4_0_4_RC1 date=200602071519)
       [java] 16:07:37,877 INFO [Server] Home Dir: C:\jboss-4.0.4RC1
       [java] 16:07:37,877 INFO [Server] Home URL: file:/C:/jboss-4.0.4RC1/
       [java] 16:07:37,887 INFO [Server] Patch URL: null
       [java] 16:07:37,887 INFO [Server] Server Name: tapestry-proto-1.0
       [java] 16:07:37,887 INFO [Server] Server Home Dir: C:\jboss-4.0.4RC1\server\tapestry-proto-1.0
       [java] 16:07:37,887 INFO [Server] Server Home URL: file:/C:/jboss-4.0.4RC1/server/tapestry-proto-1.0/
       [java] 16:07:37,887 INFO [Server] Server Temp Dir: C:\jboss-4.0.4RC1\server\tapestry-proto-1.0\tmp
       [java] 16:07:37,887 INFO [Server] Root Deployment Filename: jboss-service.xml
       [java] 16:07:38,898 INFO [ServerInfo] Java version: 1.5.0_04,Sun Microsystems Inc.
       [java] 16:07:38,898 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_04-b05,Sun Microsystems Inc.
       [java] 16:07:38,898 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
       [java] 16:07:39,980 INFO [Server] Core system initialized
       [java] 16:07:42,343 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
       [java] log4j:ERROR Parsing error on line 314 and column 23
       [java] log4j:ERROR The content of element type "log4j:configuration" must match "(renderer*,appender*,(category|logger)*,root?,categoryFactory?)".
       [java] 16:07:47,260 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://192.168.0.2:3873/]
       [java] 16:07:48,773 INFO [AspectDeployer] Deployed AOP: file:/C:/jboss-4.0.4RC1/server/tapestry-proto-1.0/deploy/ejb3-interceptors-aop.xml
       [java] 16:07:55,632 INFO [WebService] Using RMI server codebase: http://NETICU:8083/
       [java] 16:07:56,033 WARN [EJBTimerServiceImpl] Cannot obtain TransactionManager from JNDI, using TxManager.getInstance(): javax.naming.NameNotFoundException: TransactionManager not bound
       [java] 16:07:56,864 INFO [TreeCache] setting cluster properties from xml to: UDP(ip_mcast=true;ip_ttl=64;loopback=false;mcast_addr=228.1.2.3;mcast_port=45551;mcast_recv_buf_size=80000;mcast_send_buf_size=150000;ucast_recv_buf_size=80000;ucast_send_buf_size=150000):PING(down_thread=false;num_initial_members=3;timeout=2000;up_thread=false):MERGE2(max_interval=20000;min_interval=10000):FD(down_thread=true;shun=true;up_thread=true):VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=false;gc_lag=50;max_xmit_size=8192;retransmit_timeout=600,1200,2400,4800;up_thread=false):UNICAST(down_thread=false;min_threshold=10;timeout=600,1200,2400;window_size=100):pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=false):FRAG(down_thread=false;frag_size=8192;up_thread=false):pbcast.GMS(join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=true):pbcast.STATE_TRANSFER(down_thread=false;up_thread=false)
       [java] 16:07:56,954 INFO [TreeCache] setEvictionPolicyConfig(): [config: null]
       [java] 16:07:57,014 WARN [TreeCache] No transaction manager lookup class has been defined. Transactions cannot be used
       [java] 16:07:57,225 INFO [TreeCache] interceptor chain is:
       [java] class org.jboss.cache.interceptors.CallInterceptor
       [java] class org.jboss.cache.interceptors.LockInterceptor
       [java] class org.jboss.cache.interceptors.CacheLoaderInterceptor
       [java] class org.jboss.cache.interceptors.UnlockInterceptor
       [java] class org.jboss.cache.interceptors.ReplicationInterceptor
       [java] class org.jboss.cache.interceptors.CacheStoreInterceptor
       [java] 16:07:57,295 INFO [TreeCache] cache mode is REPL_SYNC
       [java] 16:08:00,149 INFO [TreeCache] state could not be retrieved (must be first member in group)
       [java] 16:08:00,149 INFO [LRUPolicy] Starting eviction policy using the provider: org.jboss.ejb3.cache.tree.StatefulEvictionPolicy
       [java] 16:08:00,149 INFO [LRUPolicy] Starting a eviction timer with wake up interval of (secs) 1
       [java] 16:08:00,159 INFO [TreeCache] viewAccepted(): new members: [NETICU:2777]
       [java] 16:08:00,159 INFO [TreeCache] new cache is null (maybe first member in cluster)
       [java] 16:08:00,369 INFO [TreeCache] setting cluster properties from xml to: UDP(ip_mcast=true;ip_ttl=2;loopback=false;mcast_addr=228.1.2.3;mcast_port=43333;mcast_recv_buf_size=80000;mcast_send_buf_size=150000;ucast_recv_buf_size=80000;ucast_send_buf_size=150000):PING(down_thread=false;num_initial_members=3;timeout=2000;up_thread=false):MERGE2(max_interval=20000;min_interval=10000):FD(down_thread=true;shun=true;up_thread=true):VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=false;gc_lag=50;max_xmit_size=8192;retransmit_timeout=600,1200,2400,4800;up_thread=false):UNICAST(down_thread=false;min_threshold=10;timeout=600,1200,2400;window_size=100):pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=false):FRAG(down_thread=false;frag_size=8192;up_thread=false):pbcast.GMS(join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=true):pbcast.STATE_TRANSFER(down_thread=false;up_thread=false)
       [java] 16:08:00,409 INFO [TreeCache] setEvictionPolicyConfig(): [config: null]
       [java] 16:08:05,847 INFO [MailService] Mail Service bound to java:/Mail
       [java] 16:08:07,069 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@ad093076
       [java] 16:08:07,139 INFO [DefaultPartition] Initializing
       [java] 16:08:09,342 INFO [DefaultPartition] Number of cluster members: 1
       [java] 16:08:09,342 INFO [DefaultPartition] Other members: 0
       [java] 16:08:09,342 INFO [DefaultPartition] Fetching state (will wait for 30000 milliseconds):
       [java] 16:08:09,472 INFO [HANamingService] Started ha-jndi bootstrap jnpPort=1100, backlog=50, bindAddress=/0.0.0.0
       [java] 16:08:09,492 INFO [DetachedHANamingService$AutomaticDiscovery] Listening on /0.0.0.0:1102, group=230.0.0.4, HA-JNDI address=192.168.0.2:1100
       [java] 16:08:09,943 INFO [EJB3Deployer] Default persistence.properties: {hibernate.transaction.flush_before_completion=true, hibernate.cglib.use_reflection_optimizer=false, hibernate.transaction.auto_close_session=false, hibernate.jndi.java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces, hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, hibernate.transaction.manager_lookup_class=org.hibernate.transaction.JBossTransactionManagerLookup, hibernate.jndi.java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, hibernate.query.factory_class=org.hibernate.hql.ast.ASTQueryTranslatorFactory, hibernate.connection.release_mode=after_statement}
       [java] 16:08:10,093 INFO [TreeCache] interceptor chain is:
       [java] class org.jboss.cache.interceptors.CallInterceptor
       [java] class org.jboss.cache.interceptors.LockInterceptor
       [java] class org.jboss.cache.interceptors.UnlockInterceptor
       [java] class org.jboss.cache.interceptors.ReplicationInterceptor
       [java] 16:08:10,153 INFO [TreeCache] cache mode is REPL_SYNC
       [java] 16:08:12,226 INFO [TreeCache] viewAccepted(): new members: [NETICU:2783]
       [java] 16:08:12,226 INFO [TreeCache] state could not be retrieved (must be first member in group)
       [java] 16:08:12,226 INFO [LRUPolicy] Starting eviction policy using the provider: org.jboss.cache.eviction.LRUPolicy
       [java] 16:08:12,226 INFO [LRUPolicy] Starting a eviction timer with wake up interval of (secs) 5
       [java] 16:08:12,246 INFO [TreeCache] new cache is null (maybe first member in cluster)
       [java] 16:08:14,680 INFO [Embedded] Catalina naming disabled
       [java] 16:08:16,803 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
       [java] 16:08:16,823 INFO [Catalina] Initialization processed in 1833 ms
       [java] 16:08:16,823 INFO [StandardService] Starting service jboss.web
       [java] 16:08:16,863 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.12
       [java] 16:08:16,973 INFO [StandardHost] XML validation disabled
       [java] 16:08:17,213 ERROR [StandardContext] Error starting static Resources
       [java] java.lang.IllegalArgumentException: Document base C:\jboss-4.0.4RC1\server\tapestry-proto-1.0\.\MySQLContext does not exist or is not a readable directory
       [java] at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:140)
       [java] at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3777)
       [java] at org.apache.catalina.core.StandardContext.start(StandardContext.java:3948)
       [java] at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
       [java] at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
       [java] at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
       [java] at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
       [java] at org.jboss.web.tomcat.tc5.StandardService.start(StandardService.java:538)
       [java] at org.apache.catalina.core.StandardServer.start(StandardServer.java:680)
       [java] at org.apache.catalina.startup.Catalina.start(Catalina.java:536)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
       [java] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.web.tomcat.tc5.Tomcat5.startService(Tomcat5.java:387)
       [java] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       [java] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       [java] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:974)
       [java] at $Proxy0.start(Unknown Source)
       [java] at org.jboss.system.ServiceController.start(ServiceController.java:417)
       [java] at org.jboss.system.ServiceController.start(ServiceController.java:435)
       [java] at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       [java] at $Proxy4.start(Unknown Source)
       [java] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
       [java] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
       [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
       [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
       [java] at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       [java] at $Proxy6.deploy(Unknown Source)
       [java] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:334)
       [java] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:522)
       [java] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:207)
       [java] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:280)
       [java] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       [java] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:974)
       [java] at $Proxy0.start(Unknown Source)
       [java] at org.jboss.system.ServiceController.start(ServiceController.java:417)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       [java] at $Proxy4.start(Unknown Source)
       [java] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
       [java] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
       [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
       [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
       [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       [java] at $Proxy5.deploy(Unknown Source)
       [java] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:477)
       [java] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:357)
       [java] at org.jboss.Main.boot(Main.java:200)
       [java] at org.jboss.Main$1.run(Main.java:464)
       [java] at java.lang.Thread.run(Unknown Source)
       [java] 16:08:17,263 ERROR [StandardContext] Error in resourceStart()
       [java] 16:08:18,075 ERROR [StandardContext] Error getConfigured
       [java] 16:08:18,095 ERROR [StandardContext] Context [/MySQLContext] startup failed due to previous errors
       [java] 16:08:18,095 INFO [StandardContext] Container org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/MySQLContext] has not been started
       [java] 16:08:18,235 INFO [Catalina] Server startup in 1412 ms
       [java] 16:08:18,796 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
       [java] 16:08:19,437 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
       [java] 16:08:21,560 INFO [TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=.../tmp/deploy/tmp57219jboss-ws4ee-exp.war/
       [java] 16:08:22,311 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
       [java] 16:08:23,042 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
       [java] 16:08:23,823 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
       [java] 16:08:26,587 INFO [TreeCache] setting cluster properties from xml to: UDP(ip_mcast=true;ip_ttl=8;loopback=false;mcast_addr=230.1.2.7;mcast_port=45577;mcast_recv_buf_size=80000;mcast_send_buf_size=150000;ucast_recv_buf_size=80000;ucast_send_buf_size=150000):PING(down_thread=false;num_initial_members=3;timeout=2000;up_thread=false):MERGE2(max_interval=20000;min_interval=10000):FD_SOCK:VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(down_thread=false;gc_lag=50;max_xmit_size=8192;retransmit_timeout=600,1200,2400,4800;up_thread=false):UNICAST(down_thread=false;min_threshold=10;timeout=600,1200,2400;window_size=100):pbcast.STABLE(desired_avg_gossip=20000;down_thread=false;up_thread=false):FRAG(down_thread=false;frag_size=8192;up_thread=false):pbcast.GMS(join_retry_timeout=2000;join_timeout=5000;print_local_addr=true;shun=true):pbcast.STATE_TRANSFER(down_thread=true;up_thread=true)
       [java] 16:08:26,627 INFO [TreeCache] interceptor chain is:
       [java] class org.jboss.cache.interceptors.CallInterceptor
       [java] class org.jboss.cache.interceptors.LockInterceptor
       [java] class org.jboss.cache.interceptors.UnlockInterceptor
       [java] class org.jboss.cache.interceptors.ReplicationInterceptor
       [java] 16:08:26,627 INFO [TreeCache] cache mode is REPL_ASYNC
       [java] 16:08:28,820 INFO [TreeCache] viewAccepted(): new members: [NETICU:2787]
       [java] 16:08:28,820 INFO [TreeCache] new cache is null (maybe first member in cluster)
       [java] 16:08:28,820 INFO [TreeCache] state could not be retrieved (must be first member in group)
       [java] 16:08:28,820 WARN [TreeCache] No transaction manager lookup class has been defined. Transactions cannot be used
       [java] 16:08:28,820 INFO [TreeCache] interceptor chain is:
       [java] class org.jboss.cache.interceptors.CallInterceptor
       [java] class org.jboss.cache.interceptors.LockInterceptor
       [java] class org.jboss.cache.interceptors.UnlockInterceptor
       [java] 16:08:28,820 INFO [TreeCache] cache mode is local, will not create the channel
       [java] 16:08:29,701 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
       [java] 16:08:29,982 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
       [java] 16:08:30,132 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
       [java] 16:08:30,422 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
       [java] 16:08:30,833 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
       [java] 16:08:31,073 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
       [java] 16:08:34,028 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
       [java] 16:08:35,159 INFO [A] Bound to JNDI name: queue/A
       [java] 16:08:35,169 INFO [B] Bound to JNDI name: queue/B
       [java] 16:08:35,179 INFO [C] Bound to JNDI name: queue/C
       [java] 16:08:35,189 INFO [D] Bound to JNDI name: queue/D
       [java] 16:08:35,199 INFO [ex] Bound to JNDI name: queue/ex
       [java] 16:08:35,269 INFO [testTopic] Bound to JNDI name: topic/testTopic
       [java] 16:08:35,279 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
       [java] 16:08:35,299 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
       [java] 16:08:35,299 INFO [testQueue] Bound to JNDI name: queue/testQueue
       [java] 16:08:35,630 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
       [java] 16:08:35,840 INFO [DLQ] Bound to JNDI name: queue/DLQ
       [java] 16:08:36,521 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
       [java] 16:08:36,872 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=MySQLDataSource' to JNDI name 'java:MySQLDataSource'
       [java] 16:08:37,182 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=OracleDataSource' to JNDI name 'java:OracleDataSource'
       [java] 16:08:37,302 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
       [java] 16:08:41,669 INFO [TomcatDeployer] deploy, ctxPath=/tapestry-proto-1.0, warUrl=.../tmp/deploy/tmp57291tapestry-proto-1.0-exp.war/
       [java] 16:08:41,709 WARN [ServiceController] Problem starting service jboss.web.deployment:war=tapestry-proto-1.0.war,id=1003645924
       [java] org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: resource-ref: jdbc/MySQLDataSource has no valid JNDI binding. Check the jboss-web/resource-ref.)
       [java] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:380)
       [java] at org.jboss.web.WebModule.startModule(WebModule.java:83)
       [java] at org.jboss.web.WebModule.startService(WebModule.java:61)
       [java] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       [java] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:974)
       [java] at $Proxy0.start(Unknown Source)
       [java] at org.jboss.system.ServiceController.start(ServiceController.java:417)
       [java] at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       [java] at $Proxy47.start(Unknown Source)
       [java] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:469)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       [java] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       [java] at $Proxy48.start(Unknown Source)
       [java] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
       [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
       [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
       [java] at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       [java] at $Proxy6.deploy(Unknown Source)
       [java] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:334)
       [java] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:522)
       [java] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:207)
       [java] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:280)
       [java] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       [java] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:974)
       [java] at $Proxy0.start(Unknown Source)
       [java] at org.jboss.system.ServiceController.start(ServiceController.java:417)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       [java] at $Proxy4.start(Unknown Source)
       [java] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
       [java] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
       [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
       [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
       [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       [java] at $Proxy5.deploy(Unknown Source)
       [java] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:477)
       [java] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:357)
       [java] at org.jboss.Main.boot(Main.java:200)
       [java] at org.jboss.Main$1.run(Main.java:464)
       [java] at java.lang.Thread.run(Unknown Source)
       [java] Caused by: javax.naming.NamingException: resource-ref: jdbc/MySQLDataSource has no valid JNDI binding. Check the jboss-web/resource-ref.
       [java] at org.jboss.web.AbstractWebDeployer.linkResourceRefs(AbstractWebDeployer.java:610)
       [java] at org.jboss.web.AbstractWebDeployer.parseWebAppDescriptors(AbstractWebDeployer.java:508)
       [java] at org.jboss.web.AbstractWebDeployer$DescriptorParser.parseWebAppDescriptors(AbstractWebDeployer.java:865)
       [java] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:157)
       [java] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
       [java] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
       [java] ... 110 more
       [java] 16:08:41,889 ERROR [MainDeployer] Could not start deployment: file:/C:/jboss-4.0.4RC1/server/tapestry-proto-1.0/deploy/tapestry-proto-1.0.war
       [java] org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: resource-ref: jdbc/MySQLDataSource has no valid JNDI binding. Check the jboss-web/resource-ref.)
       [java] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:380)
       [java] at org.jboss.web.WebModule.startModule(WebModule.java:83)
       [java] at org.jboss.web.WebModule.startService(WebModule.java:61)
       [java] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       [java] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:974)
       [java] at $Proxy0.start(Unknown Source)
       [java] at org.jboss.system.ServiceController.start(ServiceController.java:417)
       [java] at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       [java] at $Proxy47.start(Unknown Source)
       [java] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:469)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       [java] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       [java] at $Proxy48.start(Unknown Source)
       [java] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
       [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
       [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
       [java] at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       [java] at $Proxy6.deploy(Unknown Source)
       [java] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:334)
       [java] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:522)
       [java] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:207)
       [java] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:280)
       [java] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       [java] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:974)
       [java] at $Proxy0.start(Unknown Source)
       [java] at org.jboss.system.ServiceController.start(ServiceController.java:417)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       [java] at $Proxy4.start(Unknown Source)
       [java] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
       [java] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
       [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
       [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
       [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       [java] at $Proxy5.deploy(Unknown Source)
       [java] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:477)
       [java] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:357)
       [java] at org.jboss.Main.boot(Main.java:200)
       [java] at org.jboss.Main$1.run(Main.java:464)
       [java] at java.lang.Thread.run(Unknown Source)
       [java] Caused by: javax.naming.NamingException: resource-ref: jdbc/MySQLDataSource has no valid JNDI binding. Check the jboss-web/resource-ref.
       [java] at org.jboss.web.AbstractWebDeployer.linkResourceRefs(AbstractWebDeployer.java:610)
       [java] at org.jboss.web.AbstractWebDeployer.parseWebAppDescriptors(AbstractWebDeployer.java:508)
       [java] at org.jboss.web.AbstractWebDeployer$DescriptorParser.parseWebAppDescriptors(AbstractWebDeployer.java:865)
       [java] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:157)
       [java] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
       [java] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
       [java] ... 110 more
       [java] 16:08:42,380 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-4.0.4RC1/server/tapestry-proto-1.0/deploy/tapestry-proto-1.0.ear
       [java] 16:08:47,918 INFO [TomcatDeployer] deploy, ctxPath=/tapestry-proto-1.0, warUrl=.../tmp/deploy/tmp57292tapestry-proto-1.0.ear-contents/tapestry-proto-1.0-exp.war/
       [java] 16:08:47,948 WARN [ServiceController] Problem starting service jboss.web.deployment:war=tapestry-proto-1.0.war,id=1554849305
       [java] org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: resource-ref: jdbc/MySQLDataSource has no valid JNDI binding. Check the jboss-web/resource-ref.)
       [java] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:380)
       [java] at org.jboss.web.WebModule.startModule(WebModule.java:83)
       [java] at org.jboss.web.WebModule.startService(WebModule.java:61)
       [java] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       [java] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:974)
       [java] at $Proxy0.start(Unknown Source)
       [java] at org.jboss.system.ServiceController.start(ServiceController.java:417)
       [java] at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       [java] at $Proxy47.start(Unknown Source)
       [java] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:469)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       [java] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       [java] at $Proxy48.start(Unknown Source)
       [java] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
       [java] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
       [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
       [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
       [java] at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       [java] at $Proxy6.deploy(Unknown Source)
       [java] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:334)
       [java] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:522)
       [java] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:207)
       [java] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:280)
       [java] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       [java] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:974)
       [java] at $Proxy0.start(Unknown Source)
       [java] at org.jboss.system.ServiceController.start(ServiceController.java:417)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       [java] at $Proxy4.start(Unknown Source)
       [java] at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
       [java] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
       [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
       [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
       [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       [java] at $Proxy5.deploy(Unknown Source)
       [java] at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:477)
       [java] at org.jboss.system.server.ServerImpl.start(ServerImpl.java:357)
       [java] at org.jboss.Main.boot(Main.java:200)
       [java] at org.jboss.Main$1.run(Main.java:464)
       [java] at java.lang.Thread.run(Unknown Source)
       [java] Caused by: javax.naming.NamingException: resource-ref: jdbc/MySQLDataSource has no valid JNDI binding. Check the jboss-web/resource-ref.
       [java] at org.jboss.web.AbstractWebDeployer.linkResourceRefs(AbstractWebDeployer.java:610)
       [java] at org.jboss.web.AbstractWebDeployer.parseWebAppDescriptors(AbstractWebDeployer.java:508)
       [java] at org.jboss.web.AbstractWebDeployer$DescriptorParser.parseWebAppDescriptors(AbstractWebDeployer.java:865)
       [java] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:157)
       [java] at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
       [java] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
       [java] ... 111 more
       [java] 16:08:48,298 ERROR [MainDeployer] Could not start deployment: file:/C:/jboss-4.0.4RC1/server/tapestry-proto-1.0/tmp/deploy/tmp57292tapestry-proto-1.0.ear-contents/tapestry-proto-1.0.war
       [java] org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: resource-ref: jdbc/MySQLDataSource has no valid JNDI binding. Check the jboss-web/resource-ref.)
       [java] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:380)
       [java] at org.jboss.web.WebModule.startModule(WebModule.java:83)
       [java] at org.jboss.web.WebModule.startService(WebModule.java:61)
       [java] at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
       [java] at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
       [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:974)
       [java] at $Proxy0.start(Unknown Source)
       [java] at org.jboss.system.ServiceController.start(ServiceController.java:417)
       [java] at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       [java] at $Proxy47.start(Unknown Source)
       [java] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:469)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       [java] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       [java] at $Proxy48.start(Unknown Source)
       [java] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
       [java] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
       [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
       [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
       [java] at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
       [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       [java] at java.lang.reflect.Method.invoke(Unknown Source)
       [java] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       [java] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       [java] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       [java] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       [java] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
       [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       [java] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
       [java] at $Proxy6.deploy(Unknown Source)
       [java] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:334)
       [java] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:522)
       [java] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:207)
       [java] at org.jboss.deployment.scanner.AbstractDeploymentScanner.startServ


        • 1. Re: JNDI DataSource - IllegalArgumentException - Help Please
          Scott Stark Master

          docBase must be an absolute path which generally requires the drive prefix on win32. Use C:/the-full-path/MySQLContext/

          • 2. Re: JNDI DataSource - IllegalArgumentException - Help Please
            JBoss Developer Newbie

            Well thats pretty nasty...

            How am I suppose to deploy a product to the field? Assume that all docBase paths are going to be unique?

            Why can't it be relative? Who wrote that code?

            I am finding myself having to not only articulate/fabricate the root drive directory and the install directory (without any env variable capability), but to articulatefabricate the work directory structure for tomcat as well.

            Should this be implemented better? And if so what should the ideal function be?

            Thanks for feedback.

            I just think it is unreasonable for me to have to place this into my docBase...

            C:\jboss-4.0.4RC1\server\tapestry-proto-1.0\work\jboss.web\localhost\MySQLContext

            There has to bea better way.

            • 3. Re: JNDI DataSource - IllegalArgumentException - Help Please
              JBoss Developer Newbie

              Well I tried the suggested advise and it did not work.

              [java] 10:19:26,493 ERROR [StandardContext] Error starting static Resources
              [java] java.lang.IllegalArgumentException: Document base C:\jboss-4.0.4RC1\server\tapestry-proto-1.0\.\work\jboss.web\localhost\MySQLContext does not exist or is not a readable directory
              [java] at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:140)


              If someone knows of the proper solution for the broken docBase that would terrific.

              Thanks in advance

              • 4. Re: JNDI DataSource - IllegalArgumentException - Help Please
                JBoss Developer Newbie

                Here is the configuration...

                <Context path="/MySQLContext" docBase="C:/jboss-4.0.4RC1/server/tapestry-proto-1.0/work/jboss.web/localhost/MySQLContext"
                 debug="5" reloadable="true" crossContext="true">
                
                


                • 5. Re: JNDI DataSource - IllegalArgumentException - Help Please
                  JBoss Developer Newbie

                  Alright, I had to manually goto that directory and reset the readonly access bit of the directory off

                  This seems to have resolved the directory thing.

                  But now I am receiving errors on the resource-ref for the data source.

                  Can someone elaborate on how this is suppose to be configured. I believe I have tried every combination/permutation in chaning that.

                  Thanks

                   [java] 10:52:10,587 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
                   [java] 10:52:10,937 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=MySQLDataSource' to JNDI name 'java:MySQLDataSource'
                   [java] 10:52:11,288 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=OracleDataSource' to JNDI name 'java:OracleDataSource'
                   [java] 10:52:11,428 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
                   [java] 10:52:14,653 INFO [TomcatDeployer] deploy, ctxPath=/tapestry-proto-1.0, warUrl=.../tmp/deploy/tmp5231tapestry-proto-1.0-exp.war/
                   [java] 10:52:14,693 WARN [ServiceController] Problem starting service jboss.web.deployment:war=tapestry-proto-1.0.war,id=1003645924
                   [java] org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: resource-ref: jdbc/MySQLDataSource has no valid JNDI binding. Check the jboss-web/resource-ref.)
                   [java] at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:380)
                   [java] at org.jboss.web.WebModule.startModule(WebModule.java:83)
                  


                  • 6. Re: JNDI DataSource - IllegalArgumentException - Help Please
                    JBoss Developer Newbie

                    The docBase problem should be bugged and fixed for win32. I have to manually go and set the directory access missions after each iteration of build/deploy.

                    I can understand neglecting win32 for the sake of linux & open source... but it is the shear runnabilty of this stuff on win32 that makes the product a success.

                    • 7. Re: JNDI DataSource - IllegalArgumentException - Help Please
                      JBoss Developer Newbie

                      The docBase bug exists for 4.0.3SP1 and 4.0.4RC1

                      To work around this I had to add mkdir calls to my server start task as this bug entls the docBase not creating the directories needed in order to run.

                      If a jboss.org guy can bug this that would be nice.

                       <!-- Start Server-->
                       <target name="jboss.start" description="Start JBoss server.">
                      
                       <echo message="jdk: ${jdk.home}" />
                       <echo message="server: ${deploy.server}"/>
                       <echo message="jboss.home: ${jboss.home}"/>
                      
                       <property name="dao.dir" value="${src.dir}/model/dao"/>
                      
                       <mkdir dir="C:\jboss-4.0.3SP1\server\tapestry-proto-1.0\work\jboss.web\localhost\MySQLContext"/>
                       <mkdir dir="C:\jboss-4.0.3SP1\server\tapestry-proto-1.0\work\jboss.web\localhost\OracleContext"/>
                       <exec dir="." executable="cmd" os="Windows XP">
                       <arg line="/c attrib -R C:\jboss-4.0.3SP1\server\tapestry-proto-1.0\work\jboss.web\localhost\MySQLContext"/>
                       <arg line="/c attrib -R C:\jboss-4.0.3SP1\server\tapestry-proto-1.0\work\jboss.web\localhost\OracleContext"/>
                       </exec>
                      
                       <java dir="${deploy.server}" classname="org.jboss.Main" fork="true">
                       <arg line="-c ${ant.project.name}"/>
                       <jvmarg value="-Xms${java.min.heap}"/>
                       <jvmarg value="-Xmx${java.max.heap}"/>
                       <jvmarg value="-XX:MaxPermSize=${java.max.perm}"/>
                       <jvmarg value="-XX:PermSize=${java.min.perm}"/>
                       <jvmarg value="-Xdebug"/>
                       <jvmarg value="-Doracle.jdbc.Trace=true"/>
                       <jvmarg value="-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"/>
                       <jvmarg value="-Djava.security.manager="/>
                       <jvmarg value="-Djava.security.policy=${jboss.policy}"/>
                      
                       <!--
                       <jvmarg value="-Djava.security.debug=policy,access,failure,all,help"/>
                       -->
                      
                       <!--
                       <jvmarg value="-Dsun.java2d.noddraw=true"/>
                       <jvmarg value="-Djava.awt.headless=true"/>
                       -->
                       <jvmarg value="-Dorg.apache.tapestry.disable-caching=${tapestry.debug}"/>
                      
                       <sysproperty key="jboss.home" value="${jboss.home}"/>
                       <classpath>
                       <pathelement path="${jboss.home}/bin/run.jar"/>
                       <pathelement path="${jdk.home}/lib/tools.jar"/>
                       </classpath>
                       </java>
                       </target>