[JBossCache] - ClusteredCacheLoader + LOCAL CacheMode
by lovelyliatroim
Hi Folks,
I have set my cache mode to local and i also want to use the ClusteredCacheLoader. What i want to do, is keep my caches seperate from each other i.e not replicate but at the same time be able to ask other caches has it got data if the original doesnt have it.
I can get it to work fine in all other modes but i dont want replication or invalidation. Or maybe there is another approach to this??
I have the feeling that i cant do these 2 settings together but would like someone to confirm this and a reason why would be nice ;).
Log file doesnt give much away to me as to what the problem is and for what its worth here is the log file. Using jboss AS 5.0 beta 2 and Jboss cache 2.0.
anonymous wrote :
| 2007-11-28 14:02:25,877 DEBUG [org.jboss.system.ServiceCreator] About to create bean: jboss.cache:service=PriceServerCache with code: org.jboss.cache.jmx.CacheJmxWrapper
|
| 2007-11-28 14:02:26,064 DEBUG [org.jboss.cache.jmx.CacheJmxWrapper] Registered in JMX under jboss.cache:service=PriceServerCache
|
| 2007-11-28 14:02:26,064 DEBUG [org.jboss.system.ServiceCreator] Created mbean: jboss.cache:service=PriceServerCache
|
| 2007-11-28 14:02:26,064 DEBUG [org.jboss.system.ServiceConfigurator] TransactionManagerLookupClass set to org.jboss.cache.transaction.GenericTransactionManagerLookup in jboss.cache:service=PriceServerCache
|
| 2007-11-28 14:02:26,111 DEBUG [org.jboss.system.ServiceConfigurator] IsolationLevel set to REPEATABLE_READ in jboss.cache:service=PriceServerCache
|
| 2007-11-28 14:02:26,111 DEBUG [org.jboss.system.ServiceConfigurator] CacheMode set to LOCAL in jboss.cache:service=PriceServerCache
|
| 2007-11-28 14:02:26,111 DEBUG [org.jboss.system.ServiceConfigurator] ClusterName set to JBossCache-Cluster in jboss.cache:service=PriceServerCache
|
| 2007-11-28 14:02:26,111 DEBUG [org.jboss.system.ServiceConfigurator] ClusterConfig set to [config: null] in jboss.cache:service=PriceServerCache
|
| 2007-11-28 14:02:26,158 DEBUG [org.jboss.system.ServiceConfigurator] StateRetrievalTimeout set to 20000 in jboss.cache:service=PriceServerCache
|
| 2007-11-28 14:02:26,158 DEBUG [org.jboss.system.ServiceConfigurator] SyncReplTimeout set to 15000 in jboss.cache:service=PriceServerCache
|
| 2007-11-28 14:02:26,158 DEBUG [org.jboss.system.ServiceConfigurator] LockAcquisitionTimeout set to 10000 in jboss.cache:service=PriceServerCache
|
| 2007-11-28 14:02:26,158 DEBUG [org.jboss.system.ServiceConfigurator] CacheLoaderConfiguration set to [config: null] in jboss.cache:service=PriceServerCache
|
| 2007-11-28 14:02:26,158 WARN [org.jboss.cache.jmx.CacheJmxWrapper] MBean attribute 'CacheLoaderConfiguration' is deprecated; use 'CacheLoaderConfig'
|
| 2007-11-28 14:02:26,190 DEBUG [org.jboss.system.ServiceController] Creating service jboss.cache:service=PriceServerCache
|
| 2007-11-28 14:02:26,190 DEBUG [org.jboss.cache.jmx.CacheJmxWrapper] Constructing Cache
|
| 2007-11-28 14:02:27,299 DEBUG [org.jboss.cache.factories.InterceptorChainFactory] interceptor chain is:
| class org.jboss.cache.interceptors.CallInterceptor
| class org.jboss.cache.interceptors.CacheStoreInterceptor
| class org.jboss.cache.interceptors.CacheLoaderInterceptor
| class org.jboss.cache.interceptors.UnlockInterceptor
| class org.jboss.cache.interceptors.PessimisticLockInterceptor
| class org.jboss.cache.interceptors.NotificationInterceptor
| class org.jboss.cache.interceptors.TxInterceptor
| class org.jboss.cache.interceptors.CacheMgmtInterceptor
| class org.jboss.cache.interceptors.InvocationContextInterceptor
|
| 2007-11-28 14:02:27,315 DEBUG [org.jboss.cache.CacheImpl.JBossCache-Cluster] Not using an EvictionPolicy
|
| 2007-11-28 14:02:27,315 DEBUG [org.jboss.system.ServiceController] starting service jboss.cache:service=PriceServerCache
|
| 2007-11-28 14:02:27,362 DEBUG [org.jboss.cache.transaction.GenericTransactionManagerLookup] Trying to lookup TransactionManager for JBoss, JRun4
|
| 2007-11-28 14:02:27,362 DEBUG [org.jboss.cache.transaction.GenericTransactionManagerLookup] Found TransactionManager for JBoss, JRun4
|
| 2007-11-28 14:02:27,362 DEBUG [org.jboss.cache.CacheImpl.JBossCache-Cluster] cache mode is local, will not create the channel
|
| 2007-11-28 14:02:27,362 DEBUG [org.jboss.cache.loader.CacheLoaderManager] preloading transient state from cache loader org.jboss.cache.loader.ClusteredCacheLoader@107eafc
|
| 2007-11-28 14:02:27,612 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=jboss.cache:service=PriceServerCache state=Create mode=Manual requiredState=Installed
|
| java.lang.NullPointerException
|
| at org.jboss.cache.loader.ClusteredCacheLoader.callRemote(ClusteredCacheLoader.java:90)
|
| at org.jboss.cache.loader.ClusteredCacheLoader.get0(ClusteredCacheLoader.java:146)
|
| at org.jboss.cache.loader.ClusteredCacheLoader.get(ClusteredCacheLoader.java:135)
|
| at org.jboss.cache.interceptors.CacheLoaderInterceptor.loadData(CacheLoaderInterceptor.java:530)
|
| at org.jboss.cache.interceptors.CacheLoaderInterceptor.loadNode(CacheLoaderInterceptor.java:408)
|
| at org.jboss.cache.interceptors.CacheLoaderInterceptor.loadIfNeeded(CacheLoaderInterceptor.java:210)
|
| at org.jboss.cache.interceptors.CacheLoaderInterceptor.invoke(CacheLoaderInterceptor.java:157)
|
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
|
| at org.jboss.cache.interceptors.UnlockInterceptor.invoke(UnlockInterceptor.java:37)
|
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
|
| at org.jboss.cache.interceptors.PessimisticLockInterceptor.invoke(PessimisticLockInterceptor.java:203)
|
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
|
| at org.jboss.cache.interceptors.NotificationInterceptor.invoke(NotificationInterceptor.java:32)
|
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
|
| at org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:298)
|
| at org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:131)
|
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
|
| at org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:81)
|
| at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
|
| at org.jboss.cache.interceptors.InvocationContextInterceptor.invoke(InvocationContextInterceptor.java:62)
|
| at org.jboss.cache.CacheImpl.invokeMethod(CacheImpl.java:3939)
|
| at org.jboss.cache.CacheImpl.get(CacheImpl.java:1441)
|
| at org.jboss.cache.CacheImpl.get(CacheImpl.java:1415)
|
| at org.jboss.cache.loader.CacheLoaderManager.preload(CacheLoaderManager.java:282)
|
| at org.jboss.cache.loader.CacheLoaderManager.preloadCache(CacheLoaderManager.java:256)
|
| at org.jboss.cache.CacheImpl.internalStart(CacheImpl.java:796)
|
| at org.jboss.cache.CacheImpl.start(CacheImpl.java:708)
|
| at org.jboss.cache.jmx.CacheJmxWrapper.start(CacheJmxWrapper.java:614)
|
| 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:157)
|
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
|
| 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:668)
|
| at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:184)
|
| at $Proxy0.start(Unknown Source)
|
| at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
|
| at org.jboss.system.microcontainer.ServiceControllerContextAction.install(ServiceControllerContextAction.java:46)
|
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
|
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:233)
|
| at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:238)
|
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:724)
|
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:445)
|
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:555)
|
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:489)
|
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:335)
|
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:205)
|
| at org.jboss.system.ServiceController.doChange(ServiceController.java:656)
|
| at org.jboss.system.ServiceController.start(ServiceController.java:431)
|
| at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:142)
|
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:103)
|
| at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
|
| at org.jboss.deployers.plugins.deployers.helpers.AbstractSimpleRealDeployer.deploy(AbstractSimpleRealDeployer.java:56)
|
| at org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer.commitDeploy(AbstractSimpleDeployer.java:52)
|
| at org.jboss.deployers.plugins.deployer.DeployerWrapper.commitDeploy(DeployerWrapper.java:170)
|
| at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:592)
|
| at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:603)
|
| at org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:476)
|
| at org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:406)
|
| 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.aop.joinpoint.MethodInvocation.invokeTarget(MethodInvocation.java:121)
|
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:110)
|
| at org.jboss.profileservice.aop.MainDeployerAspect.process(MainDeployerAspect.java:53)
|
| at org.jboss.aop.advice.org.jboss.profileservice.aop.MainDeployerAspect_z_process_15232416.invoke(MainDeployerAspect_z_process_15232416.java)
|
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
|
| at AOPContainerProxy$0.process(AOPContainerProxy$0.java)
|
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:371)
|
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.bootstrap(ProfileServiceBootstrap.java:247)
|
| at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:89)
|
| at org.jboss.system.server.profileservice.ServerImpl.doStart(ServerImpl.java:403)
|
| at org.jboss.system.server.profileservice.ServerImpl.start(ServerImpl.java:342)
|
| at org.jboss.Main.boot(Main.java:210)
|
| at org.jboss.Main$1.run(Main.java:522)
|
| at java.lang.Thread.run(Thread.java:595)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108510#4108510
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108510
18 years, 5 months
[JBoss Seam] - Problem starting service persistence in Seam
by smyugavr
Hi,
I'm trying to get a persistence-unit working under seam, but there's one strange exception and can't understand why the unit can't get started.
I use MSSQL 2000 with net.sourceforge.jtds.jdbc.Driver and it actually works (at least I can navigate database in the Hibernate View). So I get following exception:
| 15:14:41,409 WARN [ServiceController] Problem starting service persistence.units:ear=otdnetweb-ear.ear,unitName=otdnetweb
| java.lang.UnsupportedOperationException
| at org.hibernate.util.EmptyIterator.next(EmptyIterator.java:18)
| at org.hibernate.validator.LengthValidator.apply(LengthValidator.java:32)
| at org.hibernate.validator.ClassValidator.apply(ClassValidator.java:606)
| at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:318)
| at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1115)
| at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1233)
| at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:154)
| at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:869)
| at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:407)
| at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:126)
| at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:246)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| 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.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| 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 $Proxy528.start(Unknown Source)
| at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)
| at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:627)
| at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:351)
| at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| 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.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| 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 $Proxy33.start(Unknown Source)
| at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
| at sun.reflect.GeneratedMethodAccessor169.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| 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.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| 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 $Proxy34.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| 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:610)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
|
and
| --- MBeans waiting for other MBeans ---
| ObjectName: persistence.units:ear=otdnetweb-ear.ear,unitName=otdnetweb
| State: FAILED
| Reason: java.lang.UnsupportedOperationException
| I Depend On:
| jboss.jca:service=DataSourceBinding,name=otdnetwebDatasource
|
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: persistence.units:ear=otdnetweb-ear.ear,unitName=otdnetweb
| State: FAILED
| Reason: java.lang.UnsupportedOperationException
| I Depend On:
| jboss.jca:service=DataSourceBinding,name=otdnetwebDatasource
|
So, persistence.xml and datasource file seems to be ok:
| <?xml version="1.0" encoding="UTF-8"?>
| <!-- Persistence deployment descriptor for dev profile -->
| <persistence xmlns="http://java.sun.com/xml/ns/persistence"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
| version="1.0">
|
| <persistence-unit name="otdnetweb" transaction-type="JTA">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>java:/otdnetwebDatasource</jta-data-source>
| <properties>
| <property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
| <property name="hibernate.hbm2ddl.auto" value="update"/>
| <property name="hibernate.show_sql" value="true"/>
| <property name="hibernate.format_sql" value="true"/>
| <property name="jboss.entity.manager.factory.jndi.name" value="java:/otdnetwebEntityManagerFactory"/>
| </properties>
| </persistence-unit>
|
| </persistence>
|
and
| <datasources>
|
| <local-tx-datasource>
| <jndi-name>otdnetwebDatasource</jndi-name>
| <connection-url>jdbc:jtds:sqlserver://localhost:1433/testdb</connection-url>
| <driver-class>net.sourceforge.jtds.jdbc.Driver</driver-class>
| <user-name>sa</user-name>
| <password>testpass</password>
| </local-tx-datasource>
|
| </datasources>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108499#4108499
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108499
18 years, 5 months
[JBoss Seam] - Seam Filter + Commons fileupload problem
by Holger Prause
Hello,
i am using the commons file upload api in a servlet to upload files.
I noticed when declaring the seam filter in web.xml
| <filter>
| <filter-name>Seam Filter</filter-name>
| <filter-class>org.jboss.seam.web.SeamFilter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>Seam Filter</filter-name>
| <url-pattern>/*</url-pattern>
| </filter-mapping>
|
common file upload dont recognizes the multipart content anymore
(statement returns false)
| boolean isMultipart = ServletFileUpload.isMultipartContent(request);
|
Well i also tested this on other upload apis(oreilly, seam fileupload) and it seems only to be a problem with the commons fileupload api(commons-fileupload-1.2).
I got 2 questions on this.
1) Does the Seam Web Filter do something "unusual" to the request object?
2) i noticed when i declare the filter this way:
| <filter-mapping>
| <filter-name>Seam Filter</filter-name>
| <url-pattern>*.seam</url-pattern>
| </filter-mapping>
|
it works ,will i have any drawbacks with that solution?
Thx very much,
Bye
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108494#4108494
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108494
18 years, 5 months