[JBoss-user] [Management, JMX/JBoss] - XMBEAN NotCompliantMBeanException on 4.0.4RC1 - Help Please,
Hi, I am getting NotCompliantMBeanException: Cannot instanciate MBean: services.jmx.MemoryMonitorService) Can anyone look at this simple xmbean and tell me why it is not compliant? It is the same kind as the one from the memorymonitor from xdoclet in action. Thanks for any tips. Code follows exception see below to bottom... 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] 15:13:26,234 INFO [Server] Starting JBoss (MX MicroKernel)... [java] 15:13:26,234 INFO [Server] Release ID: JBoss [Zion] 4.0.4RC1 (build: CVSTag=JBoss_4_0_4_RC1 date=200602071519) [java] 15:13:26,254 INFO [Server] Home Dir: C:\jboss-4.0.4RC1 [java] 15:13:26,254 INFO [Server] Home URL: file:/C:/jboss-4.0.4RC1/ [java] 15:13:26,264 INFO [Server] Patch URL: null [java] 15:13:26,264 INFO [Server] Server Name: tapestry-proto-1.0 [java] 15:13:26,264 INFO [Server] Server Home Dir: C:\jboss-4.0.4RC1\server\tapestry-proto-1.0 [java] 15:13:26,264 INFO [Server] Server Home URL: file:/C:/jboss-4.0.4RC1/server/tapestry-proto-1.0/ [java] 15:13:26,264 INFO [Server] Server Temp Dir: C:\jboss-4.0.4RC1\server\tapestry-proto-1.0\tmp [java] 15:13:26,264 INFO [Server] Root Deployment Filename: jboss-service.xml [java] 15:13:27,286 INFO [ServerInfo] Java version: 1.5.0_04,Sun Microsystems Inc. [java] 15:13:27,286 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_04-b05,Sun Microsystems Inc. [java] 15:13:27,286 INFO [ServerInfo] OS-System: Windows XP 5.1,x86 [java] 15:13:28,327 INFO [Server] Core system initialized [java] 15:13:30,420 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] 15:13:35,327 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://192.168.0.2:3873/] [java] 15:13:36,839 INFO [AspectDeployer] Deployed AOP: file:/C:/jboss-4.0.4RC1/server/tapestry-proto-1.0/deploy/ejb3-interceptors-aop.xml [java] 15:13:43,539 ERROR [MainDeployer] Could not create deployment: file:/C:/jboss-4.0.4RC1/server/tapestry-proto-1.0/deploy/memorymonitor-service.sar [java] org.jboss.deployment.DeploymentException: Cannot instanciate MBean: services.jmx.MemoryMonitorService; - nested throwable: (javax.management.NotCompliantMBeanException: Cannot instanciate MBean: services.jmx.MemoryMonitorService) [java] at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196) [java] at org.jboss.system.ServiceController.install(ServiceController.java:226) [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.install(Unknown Source) [java] at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249) [java] at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953) [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807) [java] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771) [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(Invocat
[JBoss-user] [Management, JMX/JBoss] - Re: XMBEAN NotCompliantMBeanException on 4.0.4RC1 - Help Ple
my jboss-service.xml got chomped during the post process.
Here is another shot at it...
|
| package services.jmx;
|
| import java.io.*;
| import java.lang.*;
| import org.jboss.system.*;
|
| import org.apache.commons.logging.Log;
| import org.apache.commons.logging.LogFactory;
|
| /**
| * JBoss Service XMBean
| *
| * @jmx.mbean name=":service=MemoryMonitorService,type=Service"
| *description="A JBoss Service for MemoryMonitor Metrics"
| *extends="org.jboss.system.ServiceMBean"
| *persistPolicy="OnTimer"
| *persistPeriod="10"
| *currencyTimeLimit="10"
| *state-action-on-update="keep-running"
| *
| * @jboss.service
| *servicefile="memorymonitor"
| * @jboss.depends
| *name="Naming"
| * @jboss.destination-jndi-name
| *name="jmx/MemoryMonitorService"
| * @jmx.mbean
| *persistpolicy="OnTimer"
| */
| public abstract class MemoryMonitorService extends
org.jboss.system.ServiceMBeanSupport
| implements MemoryMonitorServiceMBean
| {
| /**
|* Default constructor
|* @jmx.managed-constructor description="Default constructor"
|*/
| public MemoryMonitorService () {
| }
|
| /**
|* @jmx.managed-attribute
|*access="read-write"
|*currencyTimeLimit="30"
|*description="long attribute"
|*persistPeriod="30"
|*persistPolicy="OnTimer"
|*value="0"
|*/
| public long getAvailableMemory () {
| return Runtime.getRuntime().freeMemory();
| }
|
| /**
|* @jmx.managed-attribute
|*access="read-write"
|*currencyTimeLimit="30"
|*description="long attribute"
|*persistPeriod="30"
|*persistPolicy="OnTimer"
|*value="0"
|*/
| public void setAvailableMemory (long value) {
| }
|
| /**
|* @jmx.managed-attribute
|*access="read-write"
|*currencyTimeLimit="30"
|*description="long attribute"
|*persistPeriod="30"
|*persistPolicy="OnTimer"
|*value="0"
|*/
| public long getTotalMemory () {
| return Runtime.getRuntime().totalMemory();
| }
|
| /**
|* @jmx.managed-attribute
|*access="read-write"
|*currencyTimeLimit="30"
|*description="long attribute"
|*persistPeriod="30"
|*persistPolicy="OnTimer"
|*value="0"
|*/
| public void setTotalMemory (long value) {
| }
|
| /**
|* @jmx.managed-attribute
|*access="read-write"
|*currencyTimeLimit="30"
|*description="long attribute"
|*persistPeriod="30"
|*persistPolicy="OnTimer"
|*value="0"
|*/
| public long getMaxMemory () {
| return Runtime.getRuntime().maxMemory();
| }
|
| /**
|* @jmx.managed-attribute
|*access="read-write"
|*currencyTimeLimit="30"
|*description="long attribute"
|*persistPeriod="30"
|*persistPolicy="OnTimer"
|*value="0"
|*/
| public void setMaxMemory (long value) {
| }
|
| /**
|* @see ServiceMBeanSupport#createService()
|*/
| protected void createService() throws Exception
| {
| super.createService();
| //jmsServer = new JMSDestinationManager();
| // Create the JSR-77 management representation
| }
|
| /**
|* @see ServiceMBeanSupport#startService()
|*/
| protected void startService() throws Exception
| {
| super.startService();
| }
|
| /**
|* @see ServiceMBeanSupport#stopService()
|*/
| protected void stopService() throws Exception
| {
| super.stopService();
| }
|
| /**
|* @see ServiceMBeanSupport#destroyService()
|*/
| protected void destroyService() throws Exception
| {
| super.destroyService();
| }
| }
|
|
| /*
| * Generated file - Do not edit!
| */
| package services.jmx;
|
| /**
| * MBean interface.
| * @xdoclet-generated at ${TODAY}
| * @copyright
| * @author
| * @version ${version}
| */
| public interface MemoryMonitorServiceMBean extends
org.jboss.system.ServiceMBean {
|
| long getAvailableMemory() ;
|
| void setAvailableMemory(long value) ;
|
| long getTotalMemory() ;
|
| void setTotalMemory(long value) ;
|
| long getMaxMemory() ;
|
| void setMaxMemory(long value) ;
|
| }
|
|
|
|
|
|
|
|
| 0
|
| 0
|
| 0
| jboss:service=Naming
|
|
|
|
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=vi
[JBoss-user] [Management, JMX/JBoss] - Re: XMBEAN NotCompliantMBeanException on 4.0.4RC1 - Help Ple
Cute, can't believe I missed that. Anyway after building and deploying I got the following: [java] 22:06:36,135 INFO [AspectDeployer] Deployed AOP: file:/C:/jboss-4.0.4RC1/server/tapestry-proto-1.0/deploy/ejb3-interceptors-aop.xml [java] 22:06:41,793 INFO [ServiceConfigurator] Problem configuring service jboss:service=MemoryMonitorService,type=Service [java] org.jboss.deployment.DeploymentException: No ObjectName supplied for depends in jboss:service=MemoryMonitorService,type=Service Any clues for naming conventions? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927645#3927645 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927645 --- 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
[JBoss-user] [Management, JMX/JBoss] - Re: XMBEAN NotCompliantMBeanException on 4.0.4RC1 - Help Ple
Ok, I think this is resovled. XDoclet does nto output depends fragments. Anyway how can this xmbean run every 30secs? Seems it is registerd but not triggered every 30 secs. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927647#3927647 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3927647 --- 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
[JBoss-user] [Management, JMX/JBoss] - Re: How Can I deploy a Standard MBean on JBoss by using a SA
The example I posted should be sufficient... http://www.jboss.com/index.html?module=bb&op=viewtopic&t=78485 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928191#3928191 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928191 --- 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
[JBoss-user] [Beginners Corner] - Re: JNDI DataSource - IllegalArgumentException - Help Please
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. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928193#3928193 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928193 --- 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
[JBoss-user] [Beginners Corner] - Re: JNDI DataSource - IllegalArgumentException - Help Please
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 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928202#3928202 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928202 --- 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
[JBoss-user] [Beginners Corner] - Re: JNDI DataSource - IllegalArgumentException - Help Please
Here is the configuration... | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928203#3928203 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928203 --- 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
[JBoss-user] [Beginners Corner] - Re: JNDI DataSource - IllegalArgumentException - Help Please
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) | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928216#3928216 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928216 --- 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
[JBoss-user] [Beginners Corner] - Re: JNDI DataSource - IllegalArgumentException - Help Please
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. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928271#3928271 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928271 --- 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
[JBoss-user] [Beginners Corner] - Re: JNDI DataSource - IllegalArgumentException - Help Please
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. | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930240#3930240 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930240 --- 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
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - jboss-4.0.3SP1 - Hibernate SAR data source, please help
Hi Folks,
If you can get me past this exception I would be greatful.
Thanks
| 006-03-14 23:31:29,776 INFO
[org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound
ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI
name 'java:DefaultDS'
| 2006-03-14 23:31:31,188 INFO [org.jboss.mq.server.jmx.Queue.A] Bound to
JNDI name: queue/A
| 2006-03-14 23:31:31,188 INFO [org.jboss.mq.server.jmx.Queue.B] Bound to
JNDI name: queue/B
| 2006-03-14 23:31:31,208 INFO [org.jboss.mq.server.jmx.Queue.C] Bound to
JNDI name: queue/C
| 2006-03-14 23:31:31,208 INFO [org.jboss.mq.server.jmx.Queue.D] Bound to
JNDI name: queue/D
| 2006-03-14 23:31:31,208 INFO [org.jboss.mq.server.jmx.Queue.ex] Bound to
JNDI name: queue/ex
| 2006-03-14 23:31:31,458 INFO [org.jboss.mq.server.jmx.Topic.testTopic]
Bound to JNDI name: topic/testTopic
| 2006-03-14 23:31:31,468 INFO [org.jboss.mq.server.jmx.Topic.securedTopic]
Bound to JNDI name: topic/securedTopic
| 2006-03-14 23:31:31,478 INFO
[org.jboss.mq.server.jmx.Topic.testDurableTopic] Bound to JNDI name:
topic/testDurableTopic
| 2006-03-14 23:31:31,498 INFO [org.jboss.mq.server.jmx.Queue.testQueue]
Bound to JNDI name: queue/testQueue
| 2006-03-14 23:31:31,798 INFO [org.jboss.mq.il.uil2.UILServerILService]
JBossMQ UIL service available at : /0.0.0.0:8093
| 2006-03-14 23:31:32,069 INFO [org.jboss.mq.server.jmx.Queue.DLQ] Bound to
JNDI name: queue/DLQ
| 2006-03-14 23:31:32,960 INFO
[org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound
ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to
JNDI name 'java:JmsXA'
| 2006-03-14 23:31:33,411 INFO [org.hibernate.jmx.HibernateServiceMBean]
starting service at JNDI name: HibernateSessionFactory
| 2006-03-14 23:31:33,411 INFO [org.hibernate.jmx.HibernateServiceMBean]
service properties: {hibernate.session_factory_name=HibernateSessionFactory,
hibernate.transaction.manager_lookup_class=org.hibernate.transaction.JBossTransactionManagerLookup,
hibernate.transaction.auto_close_session=true,
hibernate.transaction.factory_class=org.hibernate.transaction.JTATransactionFactory,
hibernate.connection.datasource=java:MySQLDataSource,
hibernate.transaction.flush_before_completion=true}
| 2006-03-14 23:31:33,801 INFO [org.hibernate.cfg.Environment] Hibernate 3.1
| 2006-03-14 23:31:33,851 INFO [org.hibernate.cfg.Environment] loaded
properties from resource hibernate.properties:
{hibernate.connection.driver_class=com.mysql.jdbc.Driver,
hibernate.cglib.use_reflection_optimizer=false,
hibernate.cache.provider_class=org.hibernate.cache.TreeCacheProvider,
hibernate.dialect=org.hibernate.dialect.MySQLDialect,
hibernate.jdbc.use_streams_for_binary=true, hibernate.jdbc.batch_size=20,
hibernate.connection.username=webapps,
hibernate.connection.datasource=java:/MySQLDataSource,
hibernate.connection.url=jdbc:mysql://localhost/roster,
hibernate.show_sql=true, hibernate.connection.password=}
| 2006-03-14 23:31:33,851 INFO [org.hibernate.cfg.Environment] using java.io
streams to persist binary types
| 2006-03-14 23:31:33,851 INFO [org.hibernate.cfg.Environment] using JDK 1.4
java.sql.Timestamp handling
| 2006-03-14 23:31:34,723 INFO [org.hibernate.cfg.Configuration] processing
extends queue
| 2006-03-14 23:31:34,723 INFO [org.hibernate.cfg.Configuration] processing
collection mappings
| 2006-03-14 23:31:34,733 INFO [org.hibernate.cfg.Configuration] processing
association property references
| 2006-03-14 23:31:34,733 INFO [org.hibernate.cfg.Configuration] processing
foreign key constraints
| 2006-03-14 23:31:34,813 INFO [org.hibernate.util.NamingHelper] JNDI
InitialContext properties:{}
| 2006-03-14 23:31:34,943 FATAL
[org.hibernate.connection.DatasourceConnectionProvider] Could not find
datasource: java:MySQLDataSource
| javax.naming.NameNotFoundException: MySQLDataSource not bound
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:514)
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:522)
| at org.jnp.server.NamingServer.getObject(NamingServer.java:528)
| at org.jnp.server.NamingServer.lookup(NamingServer.java:281)
|
|
|
|
|
|
|
| jboss.jca:service=RARDeployer
| jboss.jca:service=LocalTxCM,name=MySQLDataSource
|
|
| HibernateSessionFactory
|
|
| java:MySQLDataSource
| org.hibernate.dialect.MySQLDialect
|
|
|
| org.hibernate.transaction.JTATransactionFactory
|
|
org.hibernate.transaction.JBossTransactionManagerLookup
| true
| true
|
|
| 5
|
|
| true
| org.hibernate.cache.EhCacheProvider
| true
|
|
| true
|
|
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: jboss-4.0.3SP1 - Hibernate SAR data source, please help
here is the datasource | | | | | MySQLDataSource | jdbc:mysql://localhost:3306/roster | com.mysql.jdbc.Driver | webapps | webapps | | |mySQL | | 5 | 20 | | 5 | com.mysql.jdbc.integration.jboss.ExtendedMysqlExceptionSorter | com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930251#3930251 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930251 --- 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
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: jboss-4.0.3SP1 - Hibernate SAR data source, please help
Well... the solution is hidden in the log files... the way they cache their resources and the uniue keyes they use to identify them. Here is my resulting XMBean for HibernateService... I re-spelle out the dependencies and datasource. | | | | | | | jboss.jca:service=RARDeployer | jboss.jca:service=DataSourceBinding,name=MySQLDataSource | jboss.jca:service=DataSourceBinding,name=OracleDataSource | | | HibernateSessionFactory | | | java:MySQLDataSource | org.hibernate.dialect.MySQLDialect | | | | org.hibernate.transaction.JTATransactionFactory | | org.hibernate.transaction.JBossTransactionManagerLookup | true | true | | | 5 | | | true | org.hibernate.cache.EhCacheProvider | true | | | true | | | | Clean boot... Now I can finally start writing some kick ass code... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930335#3930335 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930335 --- 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
