[Clustering/JBoss] - Re: :: Question On JBoss Clustering with Hibernate Second Le
by BhaktavatsalamReddy
No the problem is with farming deployment: I could able to resolve the previous error by making element to in treecache.xml.
New Trace trace is
[ServiceConfigurator] Problem configuring service jboss:service=FarmMember,partition=MyPartition
| java.lang.IllegalArgumentException: java.lang.String is not an interface
| at java.lang.reflect.Proxy.getProxyClass(Proxy.java:362)
| at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
| at org.jboss.mx.util.MBeanProxyExt.create(MBeanProxyExt.java:395)
| at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:375)
| at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:460)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
| at org.jboss.system.ServiceController.install(ServiceController.java:226)
| at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.install(Unknown Source)
| at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy9.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:595)
| 11:51:10,531 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\jdk1.5.0_11\bin
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061501#4061501
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061501
18Â years, 9Â months
[Clustering/JBoss] - Re: :: Question On JBoss Clustering with Hibernate Second Le
by BhaktavatsalamReddy
Here is farm-service.xml
================
<?xml version="1.0" encoding="UTF-8"?>
<!-- ===================================================================== -->
<!-- -->
<!-- Farming Service Configuration -->
<!-- -->
<!-- ===================================================================== -->
<!-- We now inject the partition into the HAJNDI service instead
of requiring that the partition name be passed -->
<depends optional-attribute-name="PartitionName"
proxy-type="attribute">jboss:service=${jboss.partition.name:DefaultPartition}
jboss.web:service=WebServer
<!-- Uncomment (and comment/remove version below) to enable usage of the
DeploymentCache
<depends optional-attribute-name="Deployer">jboss.deployment:type=DeploymentCache
-->
<depends optional-attribute-name="Deployer">jboss.system:service=MainDeployer
<!-- The URLComparator can be used to specify a deployment ordering
for deployments found in a scanned directory. The class specified
must be an implementation of java.util.Comparator, it must be able
to compare two URL objects, and it must have a no-arg constructor.
Two deployment comparators are shipped with JBoss:
- org.jboss.deployment.DeploymentSorter
Sorts by file extension, as follows:
"sar", "service.xml", "rar", "jar", "war", "wsr", "ear", "zip",
"*"
- org.jboss.deployment.scanner.PrefixDeploymentSorter
If the name portion of the url begins with 1 or more digits, those
digits are converted to an int (ignoring leading zeroes), and
files are deployed in that order. Files that do not start with
any digits will be deployed last, and they will be sorted by
extension as above with DeploymentSorter.
-->
org.jboss.deployment.DeploymentSorter
<!--
org.jboss.deployment.scanner.PrefixDeploymentSorter
-->
<!-- The Filter specifies a java.io.FileFilter for scanned
directories. Any file not accepted by this filter will not be
deployed. The org.jboss.deployment.scanner.DeploymentFilter
rejects the following patterns:
"#*", "%*", ",*", ".*", "_$*", "*#", "*$", "*%", "*.BAK",
"*.old", "*.orig", "*.rej", "*.bak", "*,v", "*~", ".make.state",
".nse_depinfo", "CVS", "CVS.admin", "RCS", "RCSLOG", "SCCS",
"TAGS", "core", "tags"
-->
org.jboss.deployment.scanner.DeploymentFilter
5000
<!-- URLs are comma seperated and unprefixed arguments are considered
file URLs and resolve relative to server home(JBOSS_DIST/server/default)
unless the given path is absolute. Any referenced directories cannot
be unpackaged archives, use the parent directory of the unpacked
archive.
-->
farm/
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061500#4061500
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061500
18Â years, 9Â months
[Clustering/JBoss] - Re: :: Question On JBoss Clustering with Hibernate Second Le
by BhaktavatsalamReddy
Here is the hibernate config file
=====================
| <?xml version='1.0' encoding='UTF-8'?>
| <!DOCTYPE hibernate-configuration PUBLIC
| "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
| "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
| <hibernate-configuration>
| <session-factory>
| <!-- Data Source -->
| <property name="hibernate.connection.datasource">
| java:/mamboDS
| </property>
|
| <!-- Select the dialect for the PostgresSQL database -->
| <property name="hibernate.dialect">
| org.hibernate.dialect.PostgreSQLDialect
| </property>
|
| <!-- JBoss Transaction Manager -->
| <property name="hibernate.transaction.manager_lookup_class">
| org.hibernate.transaction.JBossTransactionManagerLookup
| </property>
|
| <!-- Use Container Managed Transaction -->
| <property name="hibernate.transaction.factory_class">
| org.hibernate.transaction.CMTTransactionFactory
| </property>
|
| <property name="hibernate.show_sql">true</property>
|
| <property name="hibernate.use_sql_comments">true</property>
|
| <!-- Properties for second level caching -->
| <property name="hibernate.cache.use_second_level_cache">true</property>
| <property name="hibernate.cache.provider_class">org.hibernate.cache.TreeCacheProvider</property>
| <property name="hibernate.cache.use_query_cache">true</property>
| <property name="hibernate.generate_statistics">true</property>
| <property name="hibernate.cache.use_structured_entries">true</property>
| <property name="hibernate.cache.use_minimal_puts">false</property>
|
| <!-- Register all the mapping files -->
| <mapping resource="com/rs/mambo/hibernate/config/Configuration.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/user/User.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/encoder/Encoder.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/account/Security.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/asset/Asset.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/job/Job.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/job/JobQueue.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/encodingProfile/EncodingProfile.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/encodingRequest/EncodingRequest.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/usage/UsageSummary.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/link/Link.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/reservation/Reservation.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/usage/AccountUsageSummary.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/usage/LicenseUsageSummary.hbm.xml" />
|
| <!-- Enable Second Level Caching -->
| <class-cache class="com.rs.mambo.hibernate.account.CompanyImpl" usage="transactional" region="CompanyImpl"/>
| <class-cache class="com.rs.mambo.hibernate.account.AddressImpl" usage="transactional" region="AddressImpl"/>
| <class-cache class="com.rs.mambo.hibernate.account.LicenseImpl" usage="transactional" region="LicenseImpl"/>
| <class-cache class="com.rs.mambo.hibernate.account.LicenseAccessPlanImpl" usage="transactional" region="LicenseAccessPlanImpl"/>
| <class-cache class="com.rs.mambo.hibernate.account.AccountImpl" usage="transactional" region="AccountImpl"/>
| <class-cache class="com.rs.mambo.hibernate.account.AccountAccessPlanImpl" usage="transactional" region="AccountAccessPlanImpl"/>
| <class-cache class="com.rs.mambo.hibernate.asset.FolderImpl" usage="transactional" region="FolderImpl"/>
| <class-cache class="com.rs.mambo.hibernate.asset.AssetMasterImpl" usage="transactional" region="AssetMasterImpl"/>
| <class-cache class="com.rs.mambo.hibernate.asset.AssetImpl" usage="transactional" region="AssetImpl"/>
| <class-cache class="com.rs.mambo.hibernate.encodingProfile.EncodingProfileImpl" usage="transactional" region="EncodingProfileImpl"/>
| <class-cache class="com.rs.mambo.hibernate.encodingRequest.EncodingRequestImpl" usage="transactional" region="EncodingRequestImpl"/>
| <class-cache class="com.rs.mambo.hibernate.reservation.ReservationImpl" usage="transactional" region="ReservationImpl"/>
| <class-cache class="com.rs.mambo.hibernate.job.JobQueueImpl" usage="transactional" region="JobQueueImpl"/>
| <class-cache class="com.rs.mambo.hibernate.encoder.EncoderImpl" usage="transactional" region="EncoderImpl"/>
|
| <!--
| <class-cache class="com.rs.mambo.hibernate.link.LinkImpl" usage="transactional" region="LinkImpl"/>
| <class-cache class="com.rs.mambo.hibernate.job.JobImpl" usage="transactional" region="JobImpl"/>
| -->
|
| <!-- collections caches -->
| <collection-cache collection="com.rs.mambo.hibernate.account.CompanyImpl.licenses" usage="transactional" region="CompanyImpl.licenses"/>
| <collection-cache collection="com.rs.mambo.hibernate.account.LicenseImpl.accountAccessPlanList" usage="transactional" region="LicenseImpl.accountAccessPlanList"/>
| <collection-cache collection="com.rs.mambo.hibernate.account.LicenseImpl.accounts" usage="transactional" region="LicenseImpl.accounts"/>
| <collection-cache collection="com.rs.mambo.hibernate.account.AccountImpl.folderList" usage="transactional" region="AccountImpl.folderList"/>
| <collection-cache collection="com.rs.mambo.hibernate.asset.FolderImpl.childFolderList" usage="transactional" region="FolderImpl.childFolderList"/>
| <collection-cache collection="com.rs.mambo.hibernate.asset.FolderImpl.assetMasterList" usage="transactional" region="FolderImpl.assetMasterList"/>
| <collection-cache collection="com.rs.mambo.hibernate.asset.AssetMasterImpl.assets" usage="transactional" region="AssetMasterImpl.assets"/>
| <collection-cache collection="com.rs.mambo.hibernate.asset.AssetMasterImpl.encodingRequestImplList" usage="transactional" region="AssetMasterImpl.encodingRequestImplList"/>
| <collection-cache collection="com.rs.mambo.hibernate.asset.AssetImpl.attributeMap" usage="transactional" region="AssetImpl.attributeMap"/>
| </session-factory>
| </hibernate-configuration>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061499#4061499
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061499
18Â years, 9Â months