[JBoss Cache: Core Edition] - SPECjAppServer2004
by zeravlai
Hi all,
I'm trying to setup a cache to test the performance of JBC 3.0 within JBoss AS 5.0. I'm quite a newbie, so take it easy with me ;-)
Application to be used is SPECjAppServer 2004, which uses CMP2.0 EBs. These are the steps I followed:
1.- I created a cache config in jboss-cache-manager-jboss-beans.xml file. No problem with that.
2.- I created a new file under deploy/cluster SPECjAppServer-jboss-beans.xml with the following config:
<?xml version="1.0" encoding="UTF-8"?>
| <deployment xmlns="urn:jboss:bean-deployer:2.0">
| <bean name="SPECjAppServerCache" class="org.jboss.cache.jmx.CacheJmxWrapper">
| <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.cache:service=SPECjAppServerTreeCache", exposedInterface=org.jboss.cache.jmx.CacheJmxWrapperMBean.class, registerDirectly=true)</annotation>
| <constructor>
| <parameter><inject bean="SPECjAppServerCacheConfig"/></parameter>
| </constructor>
| </bean>
| </deployment>
3.- At startup time I get the error:
[exec] 18:39:12,843 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
[exec] *** CONTEXTS IN ERROR: Name -> Error
[exec] SPECjAppServerCache -> java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[org.jboss.cache.Cache] actual=[org.jboss.cache.config.Configuration]
The config is based on what I read in the JBC 3.0.0 user guide (by the way, the pdf misses parts of the code samples, although they are indeed in the html).
I downloaded the jboss cache code (3.0.2) and org.jboss.cache.jmx.CacheJmxWrapper expects a cache in its constructor instead of cache config.
Questions are:
1.- What am I doing wrong?
2.- Will I get this way a Cache for the SPECjAppServer Entity Beans?
3.- CacheJmxWrapper is deprecated as per the source code but in the userguide says this is the preferred approach.
4.- Also, I don't understand what's to be set on the name of the JMX. I set SPECjAppServerTreeCache.
Thanks a lot for your help!!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211605#4211605
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211605
17 years, 2 months
[JBoss Tools (users)] - JBT Nightly Deleting project does not clean up metadata
by bdlink
Deleted a project created with new seam project (ear). Eclipse 3.4.1 builds deployment in .metadata\.plugins\org.jboss.ide.eclipse.as.core\JBoss_4.2_Server\deploy, including data source xml files. When I delete the project (right click on project and select delete), checking to delete all files, the project remains configured on the server (in the JBoss server view and also in the Add and remove Projects window). The metadata in org.jboss.ide.eclipse.as.core also remains.
Shouldn't this data also be deleted? I would expect that deleting a project also deletes any derived files as well.
I would think it is reasonable for JBT to remove the project from the server as well, since it should no longer exist (even if associated files have not been deleted). Is there another box to check to make this happen. I do not like cleaning up using the file explorer, because there may be other configuration I do not know about and may leave the tools in an inconsistent state.
If the project is left deployed, there is concern that creating a new project with the same name will be corrupted with previous project residue.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211598#4211598
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211598
17 years, 2 months
[JBoss jBPM] - Re: where to set the database properties while installing jb
by santoshkumarsamala
there was only file mysql-ds.xml I have removed even that, now i am getting following error
| 12:41:11,381 INFO [DatasourceConnectionProvider] Using datasource: java:JbpmDS
| 12:41:11,381 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
| org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.lang.NullPointerException)
| at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.createManagedConnection(XAManagedConnectionFactory.java:144)
| at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:577)
| at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:262)
| at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:500)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:341)
| at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:315)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:396)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
| at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
| at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)
|
|
my jbpm-mysql-ds.xml contains
<xa-datasource>
| <jndi-name>JbpmDS</jndi-name>
|
| <xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
| <xa-datasource-property name="URL">${jdbc.mysql.url}</xa-datasource-property>
| <user-name>${jdbc.mysql.username}</user-name>
| <password>${jdbc.mysql.password}</password>
|
| <!-- reduce isolation from the default level (repeatable read) -->
| <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
| <!-- separate connections used with and without JTA transaction -->
| <no-tx-separate-pools />
| <!-- disable transaction interleaving -->
| <track-connection-by-tx />
|
| ................................
|
|
My question is do i need to declare mysql-ds.xml in deploy folder with datasource called JbpmDS or I need to overwrite the url ,username and passsword of jbpm-mysql-ds.xml with my own values?
I have tried to override the values of url etc if jbpm-mysql-ds.xml then there is no error but database tables are not generated automatically..
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4211589#4211589
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4211589
17 years, 2 months