[jboss-user] [JBoss Portal] - set a theme as the default

2008-07-24 Thread gmeroz
I want new pages to be created by default with a theme other than the default 
supplied by JBoss.

is it possible?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4166386#4166386

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4166386
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - javax.ejb.EJBTransactionRequiredException when calling remot

2008-07-16 Thread gmeroz
i have 2 JBoss (4.2.2) servers. when i call a session bean on the 1st jboss 
from a session bean in the 2nd, having the 1 session method defined as 
MANDATORY transaction, i get the following exception:

javax.ejb.EJBTransactionRequiredException
at org.jboss.ejb3.tx.Ejb3TxPolicy.throwMandatory(Ejb3TxPolicy.java:45)

What's wrong?


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4164789#4164789

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4164789
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: getting child protlet-name inside a portlet

2008-07-08 Thread gmeroz
it returns the instance name, i need the original portlet name.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4163037#4163037

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4163037
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - getting child protlet-name inside a portlet

2008-06-29 Thread gmeroz
Is it possible to get the portlet-name in runtime from inside a portlet?

i have a reference to PortalNode object, but it has only the instance name.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4161392#4161392

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4161392
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - http://wiki.jboss.org/wiki/GiveAdminPrivileges doesn't work

2008-06-10 Thread gmeroz
i use an LDAP schema, where the admin role is differnt than Admin. 

i use JBossPortal 2.6.5  tried http://wiki.jboss.org/wiki/GiveAdminPrivileges 
 was not able to login into the portal.

If i add Admin to my LDAP schem, it works. But since i have many production 
sites (without the portal), i can not change it in all of them.

What's missing?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4157015#4157015

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4157015
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - problem running JBossPortal with Oracle

2008-05-29 Thread gmeroz
when i configure the portal data source for Oracle i get the following error:


  | 12:23:51,516 INFO  [DLQ] Bound to JNDI name: queue/DLQ
  | 12:23:52,501 INFO  [ConnectionFactoryBindingService] Bound 
ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to 
JNDI name 'java:JmsXA'
  | 12:24:00,923 INFO  [ConnectionFactoryBindingService] Bound 
ConnectionManager 'jboss.jca:service=DataSourceBinding,name=PortalDS' to JNDI 
name 'java:PortalDS'
  | 12:24:03,049 WARN  [Oracle9Dialect] The Oracle9Dialect dialect has been 
deprecated; use either Oracle9iDialect or Oracle10gDialect instead
  | 12:24:05,393 INFO  [JbpmConfiguration] using jbpm configuration resource 
'jbpm.cfg.xml'
  | 12:24:07,565 WARN  [SessionFactoryObjectFactory] InitialContext did not 
implement EventContext
  | 12:24:12,331 WARN  [Oracle9Dialect] The Oracle9Dialect dialect has been 
deprecated; use either Oracle9iDialect or Oracle10gDialect instead
  | 12:24:12,518 WARN  [SessionFactoryObjectFactory] InitialContext did not 
implement EventContext
  | 12:24:13,456 WARN  [Oracle9Dialect] The Oracle9Dialect dialect has been 
deprecated; use either Oracle9iDialect or Oracle10gDialect instead
  | 12:24:13,550 WARN  [SessionFactoryObjectFactory] InitialContext did not 
implement EventContext
  | 12:24:14,268 WARN  [Oracle9Dialect] The Oracle9Dialect dialect has been 
deprecated; use either Oracle9iDialect or Oracle10gDialect instead
  | 12:24:14,659 WARN  [SessionFactoryObjectFactory] InitialContext did not 
implement EventContext
  | 12:24:15,253 WARN  [CacheManager] Creating a new instance of CacheManager 
using the diskStorePath c:\DOCUME~1\gil\LOCALS~1\Temp\/workflow which is 
already used by an existing CacheManager.
  | The source of the configuration was URL of 
file:/C:/development/main/jboss-4.2.2.GA/server/be-192.168.10.106-1/deploy/jboss-portal.sar/conf/hibernate/workflow/ehcache.xml.
  | The diskStore path for this CacheManager will be set to 
c:\DOCUME~1\gil\LOCALS~1\Temp\/workflow\ehcache_auto_created_1212063855253.
  | To avoid this warning consider using the CacheManager factory methods to 
create a singleton CacheManager or specifying a separate ehcache configuration 
(ehcache.xml) for each CacheManager instance.
  | 12:24:20,253 WARN  [JDBCExceptionReporter] SQL Error: 1400, SQLState: 23000
  | 12:24:20,253 ERROR [JDBCExceptionReporter] ORA-01400: cannot insert NULL 
into (ALLERGAN04.JBP_PORTAL_OBJECT_DNAMES.LOCALE)
  | 
  | 12:24:20,269 WARN  [JDBCExceptionReporter] SQL Error: 1400, SQLState: 23000
  | 12:24:20,269 ERROR [JDBCExceptionReporter] ORA-01400: cannot insert NULL 
into (ALLERGAN04.JBP_PORTAL_OBJECT_DNAMES.LOCALE)
  | 
  | 12:24:20,269 ERROR [AbstractFlushingEventListener] Could not synchronize 
database state with session
  | org.hibernate.exception.ConstraintViolationException: Could not execute 
JDBC batch update
  | at 
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
  | at 
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
  | at 
org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:253)
  | at 
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:237)
  | at 
org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:145)
  | at 
org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
  | at 
org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:41)
  | at 
org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:969)
  | at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1114)
  | at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
  | at 
org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:811)
  | at 
org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.getObjectNodeNoCache(PersistentPortalObjectContainer.java:274)
  | at 
org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.getObjectNode(PersistentPortalObjectContainer.java:291)
  | at 
org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.getObjectNode(PersistentPortalObjectContainer.java:252)
  | at 
org.jboss.portal.core.impl.model.portal.AbstractPortalObjectContainer.setSecurityBindings(AbstractPortalObjectContainer.java:194)
  | at 
org.jboss.portal.core.model.portal.metadata.PortalObjectMetaData.configure(PortalObjectMetaData.java:234)
  | at 
org.jboss.portal.core.model.portal.metadata.PortalObjectMetaData.create(PortalObjectMetaData.java:150)
  | at 
org.jboss.portal.core.deployment.jboss.ObjectDeployment.org$jboss$portal$core$deployment$jboss$ObjectDeployment$doStart$aop(ObjectDeployment.java:248)
  | at 

[jboss-user] [Security JAAS/JBoss] - Re: How do i implement

2008-05-04 Thread gmeroz
Is there a simple way to implement it using the login lodule?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4148548#4148548

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4148548
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security JAAS/JBoss] - How do i implement remember me with form based login?

2008-05-03 Thread gmeroz
i use jboss 4.0.5 and i want to add the remember me / auto login in the 
login form.

is there a native way to configure that in JBoss?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4148506#4148506

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4148506
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Messaging, JMS JBossMQ] - Re: No pong received warning

2008-01-27 Thread gmeroz
can you give the link for that? 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4123860#4123860

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4123860
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: JDBCCacheLoader bad performance when writing to DB

2008-01-09 Thread gmeroz
I'm using pojo cache with JBossCache2.0.0GA. I didn't notice I use our own a 
wrapper in the code above. 

It should be: 

  | cache.attach(cat/x+i,some_data);
  | 

which gives the same results.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4118514#4118514

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4118514
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: JDBCCacheLoader bad performance when writing to DB

2008-01-06 Thread gmeroz
when setting log priority to debug, i get the following. It means that when i 
add a node to the cache, for each node the same select query is running 4 
times. When the cache has thousands of nodes, it's a huge overhead.


  | 16:59:37,992 DEBUG [JDBCCacheLoader] executing sql: select node from 
jbosscache_1 where fqn=? 
(/aag/queries/d1-1-d2-0-d3-1347132-d4-0-d5-0-d7-6-d9-109-d14-0-d15-0-24-2/3-CHILDREN-2-2)
  | 16:59:38,007 DEBUG [JDBCCacheLoader] executing sql: select node from 
jbosscache_1 where fqn=? 
(/aag/queries/d1-1-d2-0-d3-1347132-d4-0-d5-0-d7-6-d9-109-d14-0-d15-0-24-2/3-CHILDREN-2-2)
  | 16:59:38,007 DEBUG [JDBCCacheLoader] executing sql: select node from 
jbosscache_1 where fqn=? 
(/aag/queries/d1-1-d2-0-d3-1347132-d4-0-d5-0-d7-6-d9-109-d14-0-d15-0-24-2/3-CHILDREN-2-2)
  | 16:59:38,007 DEBUG [JDBCCacheLoader] executing sql: select node from 
jbosscache_1 where fqn=? 
(/aag/queries/d1-1-d2-0-d3-1347132-d4-0-d5-0-d7-6-d9-109-d14-0-d15-0-24-2/3-CHILDREN-2-2)
  | 16:59:38,007 DEBUG [JDBCCacheLoader] executing sql: select node from 
jbosscache_1 where fqn=? 
(/aag/queries/d1-1-d2-0-d3-1347132-d4-0-d5-0-d7-6-d9-109-d14-0-d15-0-24-2/1-SIBLINGS-1-1)
  | 16:59:38,023 DEBUG [JDBCCacheLoader] executing sql: select node from 
jbosscache_1 where fqn=? 
(/aag/queries/d1-1-d2-0-d3-1347132-d4-0-d5-0-d7-6-d9-109-d14-0-d15-0-24-2/1-SIBLINGS-1-1)
  | 16:59:38,023 DEBUG [JDBCCacheLoader] executing sql: select node from 
jbosscache_1 where fqn=? 
(/aag/queries/d1-1-d2-0-d3-1347132-d4-0-d5-0-d7-6-d9-109-d14-0-d15-0-24-2/1-SIBLINGS-1-1)
  | 16:59:38,023 DEBUG [JDBCCacheLoader] executing sql: select node from 
jbosscache_1 where fqn=? 
(/aag/queries/d1-1-d2-0-d3-1347132-d4-0-d5-0-d7-6-d9-109-d14-0-d15-0-24-2/1-SIBLINGS-1-1)
  | 16:59:38,039 DEBUG [JDBCCacheLoader] executing sql: select node from 
jbosscache_1 where fqn=? 
(/aag/queries/d1-1-d2-0-d3-1347132-d4-0-d5-0-d7-6-d9-109-d14-0-d15-0-24-2/2-SIBLINGS-440-440)
  | 16:59:38,039 DEBUG [JDBCCacheLoader] executing sql: select node from 
jbosscache_1 where fqn=? 
(/aag/queries/d1-1-d2-0-d3-1347132-d4-0-d5-0-d7-6-d9-109-d14-0-d15-0-24-2/2-SIBLINGS-440-440)
  | 16:59:38,054 DEBUG [JDBCCacheLoader] executing sql: select node from 
jbosscache_1 where fqn=? 
(/aag/queries/d1-1-d2-0-d3-1347132-d4-0-d5-0-d7-6-d9-109-d14-0-d15-0-24-2/2-SIBLINGS-440-440)
  | 16:59:38,054 DEBUG [JDBCCacheLoader] executing sql: select node from 
jbosscache_1 where fqn=? 
(/aag/queries/d1-1-d2-0-d3-1347132-d4-0-d5-0-d7-6-d9-109-d14-0-d15-0-24-2/2-SIBLINGS-440-440)
  | 16:59:38,070 DEBUG [JDBCCacheLoader] executing sql: select node from 
jbosscache_1 where fqn=? 
(/aag/queries/d1-1-d2-0-d3-1347132-d4-0-d5-0-d7-6-d9-109-d14-0-d15-0-24-2/2-LOWER-440-440)
  | 16:59:38,070 DEBUG [JDBCCacheLoader] executing sql: select node from 
jbosscache_1 where fqn=? 
(/aag/queries/d1-1-d2-0-d3-1347132-d4-0-d5-0-d7-6-d9-109-d14-0-d15-0-24-2/2-LOWER-440-440)
  | 16:59:38,070 DEBUG [JDBCCacheLoader] executing sql: select node from 
jbosscache_1 where fqn=? 
(/aag/queries/d1-1-d2-0-d3-1347132-d4-0-d5-0-d7-6-d9-109-d14-0-d15-0-24-2/2-LOWER-440-440)
  | 16:59:38,085 DEBUG [JDBCCacheLoader] executing sql: select node from 
jbosscache_1 where fqn=? 
(/aag/queries/d1-1-d2-0-d3-1347132-d4-0-d5-0-d7-6-d9-109-d14-0-d15-0-24-2/2-LOWER-440-440)
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4117380#4117380

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4117380
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: JDBCCacheLoader bad performance when writing to DB

2008-01-06 Thread gmeroz
Actually, the log above is for nodes that were laready in the DB. New nodes 
inserted into the DB, result in 8 select qeuries which are exatcly the same.

here is an exmaple of inserting only 2 nodes:

  | for (int i=0 ; i2 ; i++){
  | Address a = new Address();
  | a.setCity(a+i);
  | a.setZip(i);
  | cache.put(cat,x+i,a);
  | }
  | 

result:
anonymous wrote : 
  | 17:55:46,094 DEBUG [JDBCCacheLoader] executing sql: select node from 
ALLERGAN04.jbosscache_test where fqn=? (/)
  | 17:55:46,438 DEBUG [JDBCCacheLoader] executing sql: select node from 
ALLERGAN04.jbosscache_test where fqn=? (/cat/x0)
  | 17:55:46,438 DEBUG [JDBCCacheLoader] executing sql: select node from 
ALLERGAN04.jbosscache_test where fqn=? (/cat/x0)
  | 17:55:46,453 DEBUG [JDBCCacheLoader] executing sql: select node from 
ALLERGAN04.jbosscache_test where fqn=? (/cat/x0)
  | 17:55:46,453 DEBUG [JDBCCacheLoader] executing sql: select node from 
ALLERGAN04.jbosscache_test where fqn=? (/cat/x0)
  | 17:55:46,453 DEBUG [JDBCCacheLoader] executing sql: select node from 
ALLERGAN04.jbosscache_test where fqn=? (/cat/x0)
  | 17:55:46,469 DEBUG [JDBCCacheLoader] executing sql: select node from 
ALLERGAN04.jbosscache_test where fqn=? (/cat/x0)
  | 17:55:46,469 DEBUG [JDBCCacheLoader] executing sql: select node from 
ALLERGAN04.jbosscache_test where fqn=? (/cat/x0)
  | 17:55:46,485 DEBUG [JDBCCacheLoader] executing sql: select node from 
ALLERGAN04.jbosscache_test where fqn=? (/cat/x0)
  | 17:55:46,563 DEBUG [JDBCCacheLoader] executing sql: select node from 
ALLERGAN04.jbosscache_test where fqn=? 
(/__JBossInternal__/cat/x0/_ID_/5c4oa2y-6zewp7-fb3ro8v8-1-fb3ro8v8-2)
  | 17:55:46,578 DEBUG [JDBCCacheLoader] executing sql: insert into 
ALLERGAN04.jbosscache_test (fqn, node, parent) values (?, ?, ?) 
(/__JBossInternal__/cat/x0/_ID_/5c4oa2y-6zewp7-fb3ro8v8-1-fb3ro8v8-2)
  | 17:55:46,672 DEBUG [JDBCCacheLoader] executing sql: select node from 
ALLERGAN04.jbosscache_test where fqn=? (/__JBossInternal__/cat/x0/_ID_)
  | 17:55:46,672 DEBUG [JDBCCacheLoader] executing sql: insert into 
ALLERGAN04.jbosscache_test (fqn, node, parent) values (?, ?, ?) 
(/__JBossInternal__/cat/x0/_ID_)
  | 17:55:46,735 DEBUG [JDBCCacheLoader] executing sql: select node from 
ALLERGAN04.jbosscache_test where fqn=? (/__JBossInternal__/cat/x0)
  | 17:55:46,735 DEBUG [JDBCCacheLoader] executing sql: insert into 
ALLERGAN04.jbosscache_test (fqn, node, parent) values (?, ?, ?) 
(/__JBossInternal__/cat/x0)
  | 17:55:46,750 DEBUG [JDBCCacheLoader] executing sql: select node from 
ALLERGAN04.jbosscache_test where fqn=? (/__JBossInternal__/cat)
  | 17:55:46,750 DEBUG [JDBCCacheLoader] executing sql: insert into 
ALLERGAN04.jbosscache_test (fqn, node, parent) values (?, ?, ?) 
(/__JBossInternal__/cat)
  | 17:55:46,750 DEBUG [JDBCCacheLoader] executing sql: select node from 
ALLERGAN04.jbosscache_test where fqn=? (/__JBossInternal__)
  | 17:55:46,766 DEBUG [JDBCCacheLoader] executing sql: insert into 
ALLERGAN04.jbosscache_test (fqn, node, parent) values (?, ?, ?) 
(/__JBossInternal__)
  | 17:55:46,782 DEBUG [JDBCCacheLoader] executing sql: select node from 
ALLERGAN04.jbosscache_test where fqn=? (/)
  | 17:55:46,782 DEBUG [JDBCCacheLoader] executing sql: insert into 
ALLERGAN04.jbosscache_test (fqn, node, parent) values (?, ?, ?) (/)
  | 17:55:46,797 DEBUG [JDBCCacheLoader] executing sql: select node from 
ALLERGAN04.jbosscache_test where fqn=? 
(/__JBossInternal__/cat/x0/_ID_/5c4oa2y-6zewp7-fb3ro8v8-1-fb3ro8v8-2)
  | 17:55:46,813 DEBUG [JDBCCacheLoader] executing sql: select node from 
ALLERGAN04.jbosscache_test where fqn=? 
(/__JBossInternal__/cat/x0/_ID_/5c4oa2y-6zewp7-fb3ro8v8-1-fb3ro8v8-2)
  | 17:55:46,829 DEBUG [JDBCCacheLoader] executing sql: update 
ALLERGAN04.jbosscache_test set node=? where fqn=?
  | 17:55:46,844 DEBUG [JDBCCacheLoader] executing sql: select node from 
ALLERGAN04.jbosscache_test where fqn=? (/cat/x0)
  | 17:55:46,860 DEBUG [JDBCCacheLoader] executing sql: select node from 
ALLERGAN04.jbosscache_test where fqn=? (/cat/x0)
  | 17:55:46,860 DEBUG [JDBCCacheLoader] executing sql: insert into 
ALLERGAN04.jbosscache_test (fqn, node, parent) values (?, ?, ?) (/cat/x0)
  | 17:55:46,875 DEBUG [JDBCCacheLoader] executing sql: select node from 
ALLERGAN04.jbosscache_test where fqn=? (/cat)
  | 17:55:46,875 DEBUG [JDBCCacheLoader] executing sql: insert into 
ALLERGAN04.jbosscache_test (fqn, node, parent) values (?, ?, ?) (/cat)
  | 17:55:46,891 DEBUG [JDBCCacheLoader] executing sql: select node from 
ALLERGAN04.jbosscache_test where fqn=? (/)
  | 17:55:46,907 DEBUG [JDBCCacheLoader] executing sql: select node from 
ALLERGAN04.jbosscache_test where fqn=? (/cat/x1)
  | 17:55:46,907 DEBUG [JDBCCacheLoader] executing sql: select node from 
ALLERGAN04.jbosscache_test where fqn=? (/cat/x1)
  | 17:55:46,907 DEBUG [JDBCCacheLoader] executing sql: select node from 
ALLERGAN04.jbosscache_test where fqn=? (/cat/x1)
  | 

[jboss-user] [JBossCache] - JDBCCacheLoader bad performance when writing to DB

2008-01-02 Thread gmeroz
I use JDBCCacheLoader (JBossCache 2.0.0GA  Oracle in JBossAS) to persist a 
cahe to DB. When the cache is big it takes hours to persist.

It takes a lot of time to write the item into the DB. i loaded YourKit profiler 
to analyze the problem and learned that most time is spent in running SQL 
commands. YouKit shows that the time is spent mostly on Oracle driver's 
executeQuery  pingDatabase commands and that the following SQL commands are 
run:

1. 2600 * insert into jbosscache_table (obvious)
2. 15000 * select node from jbosscache_table where fqn=?
3. 600 * update jbosscache_table set node=? where fqn=?

i don't understand why there are 6 times more select statements than 
insert. 

Is it related to the number of '/' in the item key?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4116367#4116367

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4116367
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - upgrading JBossCache version on JBossAS problem

2007-11-08 Thread gmeroz
i recently upgrade JBossAS from 4.0.3 to 4.0.5GA.

since i was already using JBossCache 2.0.0GA, which is newer than the one used 
by JBossAS, i had to upgrade the jboss-cache jar in the AS.

The problem is that there's no backward compatability in jboss-cache  the 
2.0.0 version can not be used together with Clusetered SSO.

class org.jboss.web.tomcat.tc5.sso.ClusteredSingleSignOn which is required for 
clustered SSO has an import to class org.jboss.cache.AbstractTreeCacheListener 
which no longer exist in JBossCache. 

i would expect backward compatability.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4102904#4102904

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4102904
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: JDBCCacheLoader problem in java application

2007-11-05 Thread gmeroz
1. Should i open a bug for that?

2. Is there is any workaround your can think of? i need to pre-cache some data, 
i was planning to use jboss cache for that.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4101722#4101722

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101722
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: JDBCCacheLoader problem in java application

2007-11-05 Thread gmeroz
It was Oracle9i! 

I checked on Oracle10g to be able to supply information about the version  the 
test run with an iteration of 5000.

In both cases i used the driver (10.1.0.4.0).

C3p0ConnectionFactory solve it for Oracle9i.

thanks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4101767#4101767

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101767
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - SSO between several JBoss instances

2007-11-04 Thread gmeroz
I have several applications, each deployed on a seperate Jboss server. all of 
them are deployed on the same machine, using a different virtual IP addresses.

i tried to configure jboss to enable SSO between them by:

  | 1. copy deploy/all directory for each instance.
  | 2. edit deploy\jbossweb-tomcat55.sar\server.xml  uncomment this line:
  | 
  |   | Valve className=org.jboss.web.tomcat.tc5.sso.ClusteredSingleSignOn
  |   | cookieDomain=192.168.10 debug=2/
  |   | 
  | 
  | 
  | It didn't work. i tried to do it on the jmx-console application as well.
  | 
  | what's missing?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4101586#4101586

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101586
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - Re: SSO between several JBoss instances

2007-11-04 Thread gmeroz
didn't mentioned i'm using version 4.0.5GA...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4101591#4101591

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101591
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - Re: SSO between several JBoss instances

2007-11-04 Thread gmeroz
i created a file, test.html, under the jmx-console.war with the following 
code:


  | html
  | body
  | A href=http://192.168.10.106:8080/jmx-console/index.jsp;app 1/a
  | A href=http://192.168.10.222:8080/jmx-console/index.jsp;app 2/a
  | /body
  | /html
  | 

then i opened it from http://192.168.10.106:8080/jmx-console/test.html  when i 
clicked the app 2 link, the basic authentication popup opened  asked for 
user/password.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4101590#4101590

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101590
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: JDBCCacheLoader problem in java application

2007-11-02 Thread gmeroz
this class only extends JDBCCacheLoader to change the table name on runtime 
(something i used for testing). When i use the original JDBCCacheLoader it's 
the same.

i'll try your demo...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4101307#4101307

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101307
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: JDBCCacheLoader problem in java application

2007-11-02 Thread gmeroz
The test runs successfully for both Derby  Oracle.

i change my code to use core cache instead of pojo cache  it solves the 
problem. 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4101475#4101475

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101475
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: JDBCCacheLoader problem in java application

2007-11-02 Thread gmeroz
Since we both agree that there shouldn't be a difference between pojo  core 
cache related to this issue, i decided to run more tests  managed to reproduce 
the problem.

i just changed the loop in your test to run up to 1000  got the following 
error (only when using Oracle):


  | java.lang.IllegalStateException: Failed to load node for fqn /C/487
  | at 
org.jboss.cache.loader.AdjListJDBCCacheLoader.reportAndRethrowError(AdjListJDBCCacheLoader.java:652)
  | at 
org.jboss.cache.loader.AdjListJDBCCacheLoader.loadNode(AdjListJDBCCacheLoader.java:408)
  | at org.jboss.cache.loader.JDBCCacheLoader._put(JDBCCacheLoader.java:188)
  | at org.jboss.cache.loader.JDBCCacheLoader.put(JDBCCacheLoader.java:69)
  | at 
org.jboss.cache.interceptors.CacheStoreInterceptor.invoke(CacheStoreInterceptor.java:219)
  | at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
  | at 
org.jboss.cache.interceptors.CacheLoaderInterceptor.invoke(CacheLoaderInterceptor.java:180)
  | at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
  | at 
org.jboss.cache.interceptors.UnlockInterceptor.invoke(UnlockInterceptor.java:36)
  | at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:76)
  | at 
org.jboss.cache.interceptors.PessimisticLockInterceptor.invoke(PessimisticLockInterceptor.java:201)
  | 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:299)
  | 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:97)
  | 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:4019)
  | at org.jboss.cache.CacheImpl.put(CacheImpl.java:1535)
  | at 
org.jboss.cache.loader.JDBCCacheLoaderConnectionTest.testConnectionRelease(JDBCCacheLoaderConnectionTest.java:55)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at 
com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
  | Caused by: java.lang.IllegalStateException: Failed to get connection for 
url=jdbc:oracle:thin:@dbms01:1521:besapp, user=, password=
  | at 
org.jboss.cache.loader.NonManagedConnectionFactory.reportAndRethrowError(NonManagedConnectionFactory.java:236)
  | at 
org.jboss.cache.loader.NonManagedConnectionFactory.getConnection(NonManagedConnectionFactory.java:85)
  | at 
org.jboss.cache.loader.AdjListJDBCCacheLoader.loadNode(AdjListJDBCCacheLoader.java:373)
  | ... 44 more
  | Caused by: java.sql.SQLException: Io exception: The Network Adapter could 
not establish the connection
  | at 
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
  | at 
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
  | at 
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:274)
  | at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:328)
  | at 
oracle.jdbc.driver.PhysicalConnection.init(PhysicalConnection.java:348)
  | at oracle.jdbc.driver.T4CConnection.init(T4CConnection.java:151)
  | at 
oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
  | at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:563)
  | at java.sql.DriverManager.getConnection(DriverManager.java:582)
  | at java.sql.DriverManager.getConnection(DriverManager.java:185)
  | at 
org.jboss.cache.loader.NonManagedConnectionFactory.checkoutConnection(NonManagedConnectionFactory.java:99)
  | at 
org.jboss.cache.loader.NonManagedConnectionFactory.getConnection(NonManagedConnectionFactory.java:80)
  | ... 45 more
  | 
  | 

Is there any workaround for hits?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4101478#4101478

Reply to the post : 

[jboss-user] [JBossCache] - JDBCCacheLoader problem in java application

2007-11-01 Thread gmeroz
in version 2.0.0GA

When i use JDBCCacheLoader inside JBossAS it wokrs fine, but when 
i try to run the same code from a regular java Main class it fails with the 
following exception. i seems that some connections are not closed.


  | 
  | added 85 dummy node to Jboss cache.
  | added 86 dummy node to Jboss cache.
  | 18:15:52,164 ERROR [NonManagedConnectionFactory] Failed to get connection 
for url=jdbc:oracle:thin:@dbms01:1521:besapp, user=, password=
  | java.sql.SQLException: Io exception: The Network Adapter could not 
establish the connection
  | at 
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
  | at oracle.jdbc.driver.DatabaseError.throwSqlException
  | ...
  | ...
  | at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:563)
  | at java.sql.DriverManager.getConnection(DriverManager.java:582)
  | at java.sql.DriverManager.getConnection(DriverManager.java:185)
  | at 
org.jboss.cache.loader.NonManagedConnectionFactory.checkoutConnection(NonManagedConnectionFactory.java:99)
  | at 
org.jboss.cache.loader.NonManagedConnectionFactory.getConnection(NonManagedConnectionFactory.java:80)
  | at 
org.jboss.cache.loader.AdjListJDBCCacheLoader.loadNode(AdjListJDBCCacheLoader.java:373)
  | at 
org.jboss.cache.loader.AdjListJDBCCacheLoader.get(AdjListJDBCCacheLoader.java:97)
  | 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.pojo.impl.InternalHelper.get(InternalHelper.java:92)
  | at 
org.jboss.cache.pojo.impl.InternalHelper.getPojoInstance(InternalHelper.java:38)
  | at 
org.jboss.cache.pojo.impl.InternalHelper.getPojo(InternalHelper.java:198)
  | at 
org.jboss.cache.pojo.impl.PojoCacheDelegate.putObjectII(PojoCacheDelegate.java:131)
  | at 
org.jboss.cache.pojo.impl.PojoCacheImpl.putObject(PojoCacheImpl.java:136)
  | at 
org.jboss.cache.pojo.impl.PojoCacheImpl.org$jboss$cache$pojo$impl$PojoCacheImpl$attach$aop(PojoCacheImpl.java:101)
  | at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java)
  | at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:93)
  | at JDBCCacheTest.main(JDBCCacheTest.java:10)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4100983#4100983

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4100983
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: JDBCCacheLoader problem in java application

2007-11-01 Thread gmeroz
The code to produce this error:

  | import org.jboss.cache.pojo.PojoCache;
  | import org.jboss.cache.pojo.PojoCacheFactory;
  | import org.jboss.cache.Fqn;
  | 
  | public class JDBCCacheTest {
  | 
  | public static final String CONF_FILE = jboss-cache.xml;
  | public static void main(String[] args) {
  | PojoCache cache = PojoCacheFactory.createCache(CONF_FILE, true);
  | cache.getCache().removeNode(Fqn.fromString(C));
  | for (int i = 0; i  100; i++) {
  | cache.attach(C/+ Integer.toString(i), Integer.toString(i));
  | System.out.println(added +i+ dummy node to Jboss cache.);
  | }
  | }
  | }
  | 
  | and jbosscache config file:
  | 
  |   | ?xml version=1.0 encoding=UTF-8?
  |   | 
  |   | server
  |   | 
  |   | classpath codebase=./lib/jboss 
archives=jbosscache.jar,jboss-cache.jar, 
jgroups.jar,jboss-aop-jdk50.jar,javassist.jar,jboss-common-core.jar,jboss-serialization.jar,pojocache.jar/
  |   | 
  |   | mbean code=org.jboss.cache.TreeCache
  |   | name=jboss.cache:service=EngineServerTreeCache
  |   | 
  |   | dependsjboss:service=Naming/depends
  |   | dependsjboss:service=TransactionManager/depends
  |   | dependsjboss.jca:service=DataSourceBinding,name=beDS/depends
  |   | attribute 
name=TransactionManagerLookupClassorg.jboss.cache.transaction.DummyTransactionManagerLookup/attribute
  |   | 
  |   | attribute name=CacheModeLOCAL/attribute
  |   | attribute name=CacheLoaderConfiguration
  |   | config
  |   | passivationfalse/passivation
  |   | !--preload//preload--
  |   | sharedtrue/shared
  |   | 
  |   | cacheloader
  |   | 
classcom.bevents.infra.service.cache.JDBCCacheLoader/class
  |   | properties
  |   | cache.jdbc.table.name=jbosscache_engine_cache
  |   | cache.jdbc.table.create=true
  |   | cache.jdbc.table.drop=true
  |   | 
cache.jdbc.table.primarykey=jbosscache_engine_cache_pk
  |   | cache.jdbc.fqn.column=fqn
  |   | cache.jdbc.fqn.type=varchar(255)
  |   | cache.jdbc.node.column=node
  |   | cache.jdbc.node.type=blob
  |   | cache.jdbc.parent.column=parent
  |   | 
cache.jdbc.driver=oracle.jdbc.driver.OracleDriver
  |   | 
cache.jdbc.url=jdbc:oracle:thin:@dbms01:1521:besapp
  |   | cache.jdbc.user=some_db
  |   | cache.jdbc.password=some_db
  |   | /properties
  |   | 
  |   | asyncfalse/async
  |   | fetchPersistentStatefalse/fetchPersistentState
  |   | ignoreModificationsfalse/ignoreModifications
  |   | purgeOnStartupfalse/purgeOnStartup
  |   | /cacheloader
  |   | /config
  |   | /attribute
  |   | /mbean
  |   | 
  |   | /server
  |   | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4101088#4101088

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101088
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: changing name of jdbc.table.name?

2007-11-01 Thread gmeroz
did you try to change the name of the primary key (cache.jdbc.table.primarykey)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4101090#4101090

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101090
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: JDBCCacheLoader problem in java application

2007-11-01 Thread gmeroz
yes. actualy i was able to put 60 or so items into the cache (which were 
inserted into the DB).

it seems that some connection is not closed by JBossCache.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4101092#4101092

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101092
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - performance issue with JDBCCacheLoader

2007-07-31 Thread gmeroz
i use version 2.0.0CR1 running inside JBoss AS with PojoCache.

i have a senario where i need to check for a list of nodes which of them are in 
the cache already (so i'll know if i need to add them to the cache latter). 

to check if a node is in the cache i use cache.find(...), but those calls are 
expensive since they load a Blob from the DB.

Is there a way to do something like Map.containsKey() ? which will run a 
cheaper query to the DB?


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4069074#4069074

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4069074
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: performance issue with JDBCCacheLoader

2007-07-31 Thread gmeroz
yes, that's exactly what i'm looking for. 

It may perform queries to DB as long as it does not access the Blob column. 
(like select count(*)...).


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4069118#4069118

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4069118
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: performance issue with JDBCCacheLoader

2007-07-31 Thread gmeroz
http://jira.jboss.com/jira/browse/JBCACHE-1158

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4069160#4069160

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4069160
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: removing items from cache is VERY slow when using JDBCCa

2007-07-19 Thread gmeroz
thanks. it worked for me.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4065659#4065659

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065659
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - org.jboss.Shutdown is causing the AS to restart instead of t

2007-07-19 Thread gmeroz
When i call org.jboss.Shutdown usually the server is shuting down. But 
sometimes the server is restarting instead.

here is the log:

  | 15:18:20,971 INFO [TomcatDeployer] undeploy, ctxPath=/jboss-net, 
warUrl=.../deploy/jboss-net.sar/jboss-net.war/ 
  | Shutting down 
  | 15:18:22,471 INFO [Server] Shutdown complete 
  | Shutdown complete 
  | Halting VM 
  | 'jboss.Main' is not recognized as an internal or external command, 
  | operable program or batch file. 
  | 

Does any one know how to solve it?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4065689#4065689

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065689
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: removing items from cache is VERY slow when using JDBCCa

2007-07-18 Thread gmeroz
i use PojoCache, there's no such method in there. 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4065335#4065335

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065335
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: removing items from cache is VERY slow when using JDBCCa

2007-07-18 Thread gmeroz
i use 2.0.0CR1 and the signature of remove is 

V remove(org.jboss.cache.Fqn fqn, K key)

any other ideas?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4065366#4065366

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065366

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - removing items from cache is VERY slow when using JDBCCacheL

2007-07-17 Thread gmeroz
i use JBoss cache with JDBCCacheLoader.

when trying to delete many items from the cache (to initialize it from the 
begining) it takes a long time and when running on JBossAS i get a timeout 
exception. 

to delete items, i use findAll and than iterate them to remove each one.

Is there a way to empty the cache in a fast way?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4065008#4065008

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065008
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: JDBCCacheLoader does not delete item from table

2007-06-19 Thread gmeroz
can you explain how to do it?
if i use pojoCache.getCache().getMembers(), i get an empty list...

By the way, deleting the cahce with the exmaple i gave on my previous post, 
takes a long time (because of the for loop). When running on JBoss with 
transactions, it may cause a transaction timeout which cause this problem as 
well. 
Is there a way to make it be deleted faster? 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4055503#4055503

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4055503
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: JDBCCacheLoader does not delete item from table

2007-06-19 Thread gmeroz
It is not empty:

this is the print result:


  | 12:50:38,642 INFO  [STDOUT] ***+++/__JBossInternal__ 0
  | /aag 0
  | /queries 0
  | /d1-3-d2-2-d3-196-d4-0-d5-0-d7-0-d10-0-d11-0-d12-0-d13-0-24-2 0
  | /queryDefinition1-10-SHOW_ALL-7-1 0
  | /_ID_ 0
  | /5c4oa2y-kzuv73-f32qcwqd-1-f34agdco-1uj 2
  | /queryDefinition1-null-SIBLINGS-7-56 0
  | /_ID_ 0
  | /5c4oa2y-kzuv73-f32qcwqd-1-f34agdg5-1uk 2
  | /queryDefinition1-4-SHOW_ALL-1-1 0
  | /_ID_ 0
  | /5c4oa2y-kzuv73-f32qcwqd-1-f34agdj6-1ul 2
  | /d1-4-d2-19-d3-0-d4-0-d5-0-d7-0-d10-0-d11-0-d12-1-d13-4-24-4 0
  | /queryDefinition1-null-LOWEST-7-56 0
  | /_ID_ 0
  | /5c4oa2y-kzuv73-f32qcwqd-1-f34a7v5l-1pw 2
  | /queryDefinition1-10-SHOW_ALL-7-1 0
  | /_ID_ 0
  | /5c4oa2y-kzuv73-f32qcwqd-1-f34a7ucy-1pu 2
  | /queryDefinition1-null-SIBLINGS-7-56 0
  | /_ID_ 0
  | /5c4oa2y-kzuv73-f32qcwqd-1-f34a7v3v-1pv 2
  | /queryDefinition1-4-SHOW_ALL-1-1 0
  | /_ID_ 0
  | /5c4oa2y-kzuv73-f32qcwqd-1-f34a7v87-1px 2
  | /d1-3-d2-4-d3-0-d4-0-d5-0-d7-2-d10-0-d11-0-d12-0-d13-0-24-3 0
  | /queryDefinition1-null-LOWEST-7-56 0
  | /_ID_ 0
  | /5c4oa2y-kzuv73-f32qcwqd-1-f34abkxc-1r2 2
  | /queryDefinition1-10-SHOW_ALL-7-1 0
  | /_ID_ 0
  | /5c4oa2y-kzuv73-f32qcwqd-1-f34abkpj-1r0 2
  | /queryDefinition1-null-SIBLINGS-7-56 0
  | /_ID_ 0
  | /5c4oa2y-kzuv73-f32qcwqd-1-f34abkvm-1r1 2
  | /queryDefinition1-4-SHOW_ALL-1-1 0
  | /_ID_ 0
  | /5c4oa2y-kzuv73-f32qcwqd-1-f34abkzj-1r3 2
  | /d1-4-d2-0-d3-0-d4-0-d5-0-d7-4-d10-0-d11-2-d12-1-d13-1-23-2 0
  | /queryDefinition1-null-LOWEST-7-56 0
  | /_ID_ 0
  | /5c4oa2y-kzuv73-f32qcwqd-1-f34bq4iw-2g2 2
  | /queryDefinition1-10-SHOW_ALL-7-1 0
  | /_ID_ 0
  | /5c4oa2y-kzuv73-f32qcwqd-1-f34bq3zd-2g0 2
  | ...
  | 

when using the code i gave before for clearing the cache, i used aag as a 
parameter...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4055601#4055601

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4055601
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - JDBCCacheLoader does not delete item from table

2007-06-13 Thread gmeroz
i use the following code to delete objects from the cache (configured with 
JDBCCacheLoader):


  | public void clear(String category) {
  | for (Object key : cache.findAll(category).keySet()){
  | cache.detach(((Fqn)key).toString());
  | }
  | cache.getCache().getRoot().removeChild(Fqn.fromString(category));
  | }
  | 

but i see that some of the records are not deleted from the DB.
If i would like to add the undeleted objects latter.

How do i solve this?

i use version JBossCache-all-2.0.0.CR1

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4053850#4053850

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4053850
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - JDBCCacheLoader: table not created when using cache.jdbc.tab

2007-06-06 Thread gmeroz
When using Oracle DB, if schema has role priviliges of 'exp_full_database' (or 
other DBA priviliges), the table may not be created in case a similar table 
already exist in another schema in the same DB.

how to produce:
1. create 2 schema on the same DB: SCHEMA_1  SCHEMA_2
2. run an application with JDBCCacheLoader (cache.jdbc.table.create=true) on 
SCHEMA_1.
3. add 'exp_full_database' to SCHEMA_2's role priviliges.
4. run the same application from section 2 on SCHEMA_2. you'll get the 
following exception.

SQL's of JDBCCacheLoader should be generated with the schema name in them...



  | 2007-06-06 14:51:40,380 DEBUG 
[org.jboss.cache.loader.ManagedConnectionFactory] Datasource lookup for 
java:/beDS succeded: [EMAIL PROTECTED]
  | 2007-06-06 14:51:40,380 DEBUG 
[org.jboss.cache.loader.ManagedConnectionFactory] Connection checked out: 
[EMAIL PROTECTED]
  | 2007-06-06 14:51:40,489 DEBUG [org.jboss.cache.loader.JDBCCacheLoader] 
executing sql: select node from jbosscache_application where fqn=? (/)
  | 2007-06-06 14:51:40,489 DEBUG 
[org.jboss.cache.loader.ManagedConnectionFactory] Connection checked out: 
[EMAIL PROTECTED]
  | 2007-06-06 14:51:41,097 ERROR [org.jboss.cache.loader.JDBCCacheLoader] 
Failed to load node for fqn /
  | java.sql.SQLException: ORA-00942: table or view does not exist
  | 
  | at 
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
  | at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305)
  | at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272)
  | at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:626)
  | at 
oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:182)
  | at 
oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:500)
  | at 
oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:942)
  | at 
oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:532)
  | at 
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1037)
  | at 
oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2905)
  | at 
oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:2946)
  | at 
org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:211)
  | at 
org.jboss.cache.loader.AdjListJDBCCacheLoader.loadNode(AdjListJDBCCacheLoader.java:354)
  | at 
org.jboss.cache.loader.AdjListJDBCCacheLoader.exists(AdjListJDBCCacheLoader.java:296)
  | at 
org.jboss.cache.loader.JDBCCacheLoader.start(JDBCCacheLoader.java:227)
  | at 
org.jboss.cache.loader.CacheLoaderManager.startCacheLoader(CacheLoaderManager.java:346)
  | at org.jboss.cache.CacheImpl.start(CacheImpl.java:755)
  | at 
org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.java:87)
  | at org.jboss.cache.pojo.impl.PojoCacheImpl.init(PojoCacheImpl.java:96)
  | at org.jboss.cache.pojo.impl.PojoCacheImpl.init(PojoCacheImpl.java:79)
  | at 
org.jboss.cache.pojo.PojoCacheFactory.createCache(PojoCacheFactory.java:42)
  | at 
com.bevents.infra.service.cache.JBossCacheImpl.init(JBossCacheImpl.java:32)
  | at 
com.bevents.application.eventaccess.server.manager.cache.ApplicationCacheFactory.clinit(ApplicationCacheFactory.java:19)
  | at 
com.bevents.application.eventaccess.server.manager.cache.NodeQueryCacheImpl.init(NodeQueryCacheImpl.java:273)
  | at 
com.bevents.application.eventaccess.server.ejb.ConfigurationBean.initMBeans(ConfigurationBean.java:584)
  | 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.invocation.Invocation.performCall(Invocation.java:345)
  | at 
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
  | at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:149)
  | at 
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:154)
  | at 
org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
  | at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
  | at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
  | at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
  | 

[jboss-user] [Security JAAS/JBoss] - SSO between 2 JBoss instances

2007-04-15 Thread gmeroz
I'm running 2 JBoss instances on the same host. i tried to use SSO between them 
(by setting the Tomcat Valve parameter. the 2 isntances are configured exatcly 
the same (only ports are different).

The SSO doesn't work - what am i missing here?




View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4037368#4037368

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4037368
___
jboss-user mailing list
[EMAIL PROTECTED]
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: memory leak

2007-03-05 Thread gmeroz
I think there should be a way to clear an entire area in the cache (as a bulk). 
Finding all the POJOs in the cache and deleting them one by one, sound 
expensive.





View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4025003#4025003

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4025003
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: long wait when cache is started

2007-03-03 Thread gmeroz
What do you mean in anonymous wrote : 2) State in your DB is large 
  | ? the state of the cache?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4024831#4024831

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4024831
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - long wait when cache is started

2007-03-01 Thread gmeroz
when i load Jboss and start the cache, i see that the cache initialization 
takes few minutes.

The cache is not very big. i use JDBCCacheLoader.

Is there any way to workaround the long wait?

10:24:12,645 INFO  [InterceptorChainFactory] interceptor chain is:
class org.jboss.cache.interceptors.CallInterceptor
class org.jboss.cache.interceptors.PessimisticLockInterceptor
class org.jboss.cache.interceptors.CacheLoaderInterceptor
class org.jboss.cache.interceptors.UnlockInterceptor
class org.jboss.cache.interceptors.CacheStoreInterceptor
class org.jboss.cache.interceptors.NotificationInterceptor
class org.jboss.cache.interceptors.TxInterceptor
class org.jboss.cache.interceptors.CacheMgmtInterceptor
class org.jboss.cache.interceptors.InvocationContextInterceptor
10:27:35,124 INFO  [CacheImpl] JBoss Cache version: JBossCache 'Habanero' 
2.0.0.ALPHA2[ $Id: Version.java,v 1.26 2006/12/30 17:49:54 msurtani Exp $]

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4024117#4024117

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4024117
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - memory leak

2007-03-01 Thread gmeroz
I use JBossCache-all-2.0.0.ALPHA2.

i have a memory leak in my application when i use JBossCache. The following 
test reproduce it. It add 100 Person object to the cache, than it remove them 
from the cache  and repeat...

When i use profiler, I see that the number of instances of Person is raising. 
(even if i force GC).


  | public void testMemoryLeak(){
  | PojoCache cache = 
PojoCacheFactory.createCache(com/bevents/infra/service/cache/cache.xml, true);
  | String category = testCat;
  | while (true) {
  | for (int i=0 ;i100; i++) {
  | Person person = new Person();
  | person.setName(aaa);
  | cache.attach(category+/testPerson+i,person);
  | assertEquals(person,cache.find(category+/testPerson+i));
  | }
  | // delete from the cache.
  | 
cache.getCache().getRoot().removeChild(Fqn.fromString(category));
  | assertNull(cache.find(category+/testPerson0));
  | System.out.println(sleep);
  | try {
  | Thread.sleep(5000);
  | } catch (InterruptedException e) {
  | e.printStackTrace();  //To change body of catch statement 
use File | Settings | File Templates.
  | }
  | }
  | }
  | 

this is the configuration XML loaded for the cache:

  | ?xml version=1.0 encoding=UTF-8?
  | server
  | classpath codebase=./lib archives=jboss-cache.jar, jgroups.jar/
  | mbean code=org.jboss.cache.TreeCache
  | name=jboss.cache:service=TreeCache
  | 
  | dependsjboss:service=Naming/depends
  | dependsjboss:service=TransactionManager/depends
  | 
  | attribute 
name=TransactionManagerLookupClassorg.jboss.cache.DummyTransactionManagerLookup/attribute
  | attribute name=IsolationLevelREAD_COMMITTED/attribute
  | 
  | attribute name=CacheModeLOCAL/attribute
  | /mbean
  | 
  | 
  | 
  | /server
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4024278#4024278

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4024278
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Bug? maximum number of expressions in a list is 1000

2007-02-25 Thread gmeroz
I'm usning JBossCache-all-2.0.0.ALPHA2 with Oracle. When i try to remove the 
root of my cache, i get the following error.

It looks like a bug...


  | 09:41:43,802 ERROR [JDBCCacheLoader] Failed to remove node /aag
  | 
  | java.sql.SQLException: ORA-01795: maximum number of expressions in a list 
is 1000
  | 
  |  
  | 
  | at 
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
  | 
  | at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:305)
  | 
  | at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:272)
  | 
  | at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:626)
  | 
  | at 
oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:182)
  | 
  | at 
oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(T4CPreparedStatement.java:630)
  | 
  | at 
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1081)
  | 
  | at 
oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2905)
  | 
  | at 
oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:2977)
  | 
  | at 
org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:227)
  | 
  | at 
org.jboss.cache.loader.JDBCCacheLoader.remove(JDBCCacheLoader.java:376)
  | 
  | at 
org.jboss.cache.loader.AbstractCacheLoader.put(AbstractCacheLoader.java:211)
  | 
  | at 
org.jboss.cache.loader.JDBCCacheLoader.prepare(JDBCCacheLoader.java:431)
  | 
  | at 
org.jboss.cache.interceptors.CacheStoreInterceptor.prepareCacheLoader(CacheStoreInterceptor.java:378)
  | 
  | at 
org.jboss.cache.interceptors.CacheStoreInterceptor.invoke(CacheStoreInterceptor.java:142)
  | 
  | at 
org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75)
  | 
  | at 
org.jboss.cache.interceptors.NotificationInterceptor.invoke(NotificationInterceptor.java:22)
  | 
  | at 
org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75)
  | 
  | at 
org.jboss.cache.interceptors.TxInterceptor.runPreparePhase(TxInterceptor.java:802)
  | 
  | at 
org.jboss.cache.interceptors.TxInterceptor$LocalSynchronizationHandler.beforeCompletion(TxInterceptor.java:1058)
  | 
  | at 
org.jboss.cache.interceptors.OrderedSynchronizationHandler.beforeCompletion(OrderedSynchronizationHandler.java:74)
  | 
  | at 
org.jboss.tm.TransactionImpl.doBeforeCompletion(TransactionImpl.java:1473)
  | 
  | at 
org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1092)
  | 
  | at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:306)
  | 
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.endTransaction(TxInterceptorCMT.java:486)
  | 
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:346)
  | 
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
  | 
  | at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
  | 
  | at 
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
  | 
  | at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
  | 
  | at 
org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
  | 
  | at org.jboss.ejb.Container.invoke(Container.java:873)
  | 
  | at sun.reflect.GeneratedMethodAccessor124.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:141)
  | 
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | 
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  | 
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
  | 
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | 
  | at 
org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)
  | 
  | at 
org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)
  | 
  | at 
org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:179)
  | 
  | at 
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:165)
  | 
  | at 
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
  | 
  | at 
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
  | 
  | at 
org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:97)
  | 
  | at 

[jboss-user] [Management, JMX/JBoss] - Re: how can i check if some ear file is deployed?

2007-02-20 Thread gmeroz
can you give a code exmample? i was not able to find it.

i'm using jboss-4.0.3SP1...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4019279#4019279

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4019279
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - how can i check if some ear file is deployed?

2007-02-19 Thread gmeroz
I want to check if an ear file was deployed. what is the best way to do it?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4018884#4018884

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4018884
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: how do i clean (remove) all nodes from a cache loader?

2007-02-10 Thread gmeroz
I'm not using async mode.

i made sure the cache is empty (nodes are not found anymore). but the 
JDBCCacheLoader's table content did not change.

i'm using JBossCache-all-2.0.0.ALPHA2 deployed on jboss-4.0.3SP1.

with the following configuration:

  | attribute 
name=TransactionManagerLookupClassorg.jboss.cache.GenericTransactionManagerLookup/attribute
  | attribute name=IsolationLevelREAD_COMMITTED/attribute
  | 
  | attribute name=CacheModeLOCAL/attribute
  | attribute name=CacheLoaderConfiguration
  | config
  | passivationfalse/passivation
  | preload//preload
  | sharedtrue/shared
  | 
  | cacheloader
  | 
!--classorg.jboss.cache.loader.FileCacheLoader/class--
  | !--properties--
  | !--location=d:\temp\jc--
  | !--/properties--
  | classorg.jboss.cache.loader.JDBCCacheLoader/class
  | properties
  | cache.jdbc.table.name=jbosscache_application
  | cache.jdbc.table.create=true
  | cache.jdbc.table.drop=true
  | 
cache.jdbc.table.primarykey=jbosscache_application_pk
  | cache.jdbc.fqn.column=fqn
  | cache.jdbc.fqn.type=varchar(255)
  | cache.jdbc.node.column=node
  | cache.jdbc.node.type=blob
  | cache.jdbc.parent.column=parent
  | cache.jdbc.datasource=java:/beDS
  | /properties
  | 
  | asyncfalse/async
  | fetchPersistentStatefalse/fetchPersistentState
  | ignoreModificationsfalse/ignoreModifications
  | purgeOnStartupfalse/purgeOnStartup
  | /cacheloader
  | /config
  | /attribute

What can explain this behaviour?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4014133#4014133

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4014133
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - how do i clean (remove) all nodes from a cache loader?

2007-02-08 Thread gmeroz
I use JDBCCache for a fast start up.

Sometimes i want to reload the cache from the begining (when some application 
configuration is changed).
i saw that if i remove every thing from the cache, the cache laoder does not 
delete records from DB. i want to make sure that if the server will be shuted 
down, the old data won't be loaded.

how do i clean it?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4013291#4013291

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4013291
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Error while deploying PojoCache mbean deployed on JBoss

2007-02-07 Thread gmeroz
I'm trying to deploy PojoCache as mbean under JBoss AS.

jboss version: jboss-4.0.3SP1
jboss cache version: JBossCache-all-2.0.0.ALPHA2

i copied jboss cache jars to jboss lib directory. i get the following 
exception. It looks like the jboss-aop-jdk50.jar does not match the AOP manager 
of the AS.


  | 10:58:40,832 INFO  [ServiceConfigurator] Problem configuring service 
jboss.aop:service=AspectManager
  | org.jboss.deployment.DeploymentException: Exception setting attribute 
[EMAIL PROTECTED] on mbean jboss.aop:service=AspectManager; - nested throwable: 
(java.lang.NoSuchFieldError: prune)
  | at 
org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:669)
  | at 
org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:314)
  | at 
org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:442)
  | at 
org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:153)
  | at 
org.jboss.system.ServiceController.install(ServiceController.java:215)
  | 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:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  | at $Proxy4.install(Unknown Source)
  | at org.jboss.deployment.SARDeployer.create(SARDeployer.java:232)
  | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:935)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:789)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
  | 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:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  | at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  | at $Proxy9.deploy(Unknown Source)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:265)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
  | at sun.reflect.GeneratedMethodAccessor3.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:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
  | at $Proxy0.start(Unknown Source)
  | at 

[jboss-user] [JBossCache] - Re: TreeCache is missing in JBossCache-all-2.0.0.ALPHA2

2007-02-05 Thread gmeroz
I'm able to deploy the mbean if i use lib\jboss as the base directory

I wasn't able to access it from my code, because i could not control the order 
of the depencies jars for the ear file.

What i realy need is a large cache for POJOs. i'll need to presist it to the DB 
(for fast startup). In the future i would like to have a limited sized memory 
cache, with ability to load fast the POJOs from DB (2nd level cache). 

1. I'm i right on choosing PojoCahce? 
2. How do i deploy a PojoCache as Mbean in jboss-4.0.3SP1? 
 2.1 do i have to use older jboss-cache.jar or should jbosscache.jar is enough?
 2.2 what is the mbean code class needed to be used?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4011208#4011208

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4011208
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: TreeCache is missing in JBossCache-all-2.0.0.ALPHA2

2007-02-04 Thread gmeroz
I tried to follow the directions in this document (copied jar files to 
/deploy/lib) and copy one of the XML configuration from /etc.

I'm using jboss-4.0.3SP1.

i get the following exception:


  | 16:11:46,948 INFO  [ServiceConfigurator] Problem configuring service 
jboss.aop:service=AspectManager
  | org.jboss.deployment.DeploymentException: Exception setting attribute 
[EMAIL PROTECTED] on mbean jboss.aop:service=AspectManager; - nested throwable: 
(java.lang.NoSuchFieldError: prune)
  | at 
org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:669)
  | at 
org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:314)
  | at 
org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:442)
  | at 
org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:153)
  | at 
org.jboss.system.ServiceController.install(ServiceController.java:215)
  | 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:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  | at $Proxy4.install(Unknown Source)
  | at org.jboss.deployment.SARDeployer.create(SARDeployer.java:232)
  | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:935)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:789)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
  | 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:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  | at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  | at $Proxy9.deploy(Unknown Source)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:265)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
  | at sun.reflect.GeneratedMethodAccessor3.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:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
  | at $Proxy0.start(Unknown Source)
  | at 
org.jboss.system.ServiceController.start(ServiceController.java:428)
  | at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
  | at 

[jboss-user] [JBossCache] - TreeCache is missing in JBossCache-all-2.0.0.ALPHA2

2007-02-01 Thread gmeroz
i downloaded JBossCache-all-2.0.0.ALPHA2 and there is no class TreeCache in 
there. Why?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4009247#4009247

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4009247
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: JDBCCacheLoader error: Io exception: The Network Adapter

2007-01-31 Thread gmeroz
I'll want to run it from out side the app server as well as inside. 

My DB has 150 connections - it should be enough. I'll wait for JBCACHE-802...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4008671#4008671

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4008671
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - JDBCCacheLoader error: Io exception: The Network Adapter cou

2007-01-30 Thread gmeroz
if i use the following code with a JDBCCacheLoader, i get the following 
exception after a while (after putting about 250 items to the cache):


  | for (int i=0 ; i1 ;i++){
  |   Person x = new Person();
  |   x.setName(x+i);
  |   x.setAddress(address);
  |   cache.put(engine/x+i,x);
  | }
  | 


  | 12:19:32,645 ERROR [JDBCCacheLoader] Failed to get connection for 
url=jdbc:oracle:thin:@dbms01:1521:besapp, user=GILEADHBVMC02_NEW2, 
password=GILEADHBVMC02_NEW2
  | java.sql.SQLException: Io exception: The Network Adapter could not 
establish the connection
  | at 
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
  | at 
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
  | at 
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:274)
  | at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:328)
  | at 
oracle.jdbc.driver.PhysicalConnection.init(PhysicalConnection.java:348)
  | at oracle.jdbc.driver.T4CConnection.init(T4CConnection.java:151)
  | at 
oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
  | at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:563)
  | at java.sql.DriverManager.getConnection(DriverManager.java:525)
  | at java.sql.DriverManager.getConnection(DriverManager.java:171)
  | at 
org.jboss.cache.loader.JDBCCacheLoader$NonManagedConnectionFactory.getConnection(JDBCCacheLoader.java:1157)
  | at 
org.jboss.cache.loader.JDBCCacheLoader.loadNode(JDBCCacheLoader.java:816)
  | at org.jboss.cache.loader.JDBCCacheLoader.get(JDBCCacheLoader.java:202)
  | at 
org.jboss.cache.interceptors.CacheLoaderInterceptor.loadData(CacheLoaderInterceptor.java:533)
  | at 
org.jboss.cache.interceptors.CacheLoaderInterceptor.loadNode(CacheLoaderInterceptor.java:426)
  | at 
org.jboss.cache.interceptors.CacheLoaderInterceptor.loadIfNeeded(CacheLoaderInterceptor.java:214)
  | at 
org.jboss.cache.interceptors.CacheLoaderInterceptor.invoke(CacheLoaderInterceptor.java:185)
  | at 
org.jboss.cache.interceptors.ActivationInterceptor.invoke(ActivationInterceptor.java:66)
  | at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75)
  | at 
org.jboss.cache.interceptors.UnlockInterceptor.invoke(UnlockInterceptor.java:33)
  | at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75)
  | at 
org.jboss.cache.interceptors.PassivationInterceptor.invoke(PassivationInterceptor.java:80)
  | at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75)
  | at 
org.jboss.cache.interceptors.NotificationInterceptor.invoke(NotificationInterceptor.java:22)
  | at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75)
  | at 
org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:288)
  | at 
org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:126)
  | at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75)
  | at 
org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:126)
  | at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75)
  | at 
org.jboss.cache.interceptors.InvocationContextInterceptor.invoke(InvocationContextInterceptor.java:66)
  | at org.jboss.cache.CacheImpl.invokeMethod(CacheImpl.java:3750)
  | at org.jboss.cache.CacheImpl.get(CacheImpl.java:1390)
  | at org.jboss.cache.CacheImpl.get(CacheImpl.java:1365)
  | at org.jboss.cache.pojo.impl.InternalHelper.get(InternalHelper.java:142)
  | at 
org.jboss.cache.pojo.impl.InternalHelper.getAopInstance(InternalHelper.java:72)
  | at 
org.jboss.cache.pojo.impl.InternalHelper.getPojo(InternalHelper.java:264)
  | at 
org.jboss.cache.pojo.impl.PojoCacheDelegate.getObject(PojoCacheDelegate.java:88)
  | at 
org.jboss.cache.pojo.impl.PojoCacheImpl.getObject(PojoCacheImpl.java:208)
  | at 
org.jboss.cache.pojo.impl.PojoCacheImpl.org$jboss$cache$pojo$impl$PojoCacheImpl$find$aop(PojoCacheImpl.java:196)
  | at 
org.jboss.cache.pojo.impl.PojoCacheImpl$PojoCacheImplAdvisor.find_N_7063709169143275953(PojoCacheImpl$PojoCacheImplAdvisor.java)
  | at org.jboss.cache.pojo.impl.PojoCacheImpl.find(PojoCacheImpl.java)
  | at 
org.jboss.cache.pojo.impl.PojoCacheImpl.org$jboss$cache$pojo$impl$PojoCacheImpl$detach$aop(PojoCacheImpl.java:160)
  | at 
org.jboss.cache.pojo.impl.PojoCacheImpl$PojoCacheImplAdvisor.detach9209594694587929181(PojoCacheImpl$PojoCacheImplAdvisor.java)
  | at org.jboss.cache.pojo.impl.PojoCacheImpl.detach(PojoCacheImpl.java)
  | at 
org.jboss.cache.pojo.impl.PojoCacheDelegate.putObjectII(PojoCacheDelegate.java:150)
  | at 
org.jboss.cache.pojo.impl.PojoCacheImpl.putObject(PojoCacheImpl.java:145)
  | at 

[jboss-user] [JBossCache] - Re: Debuging with JBossCache (from IntelliJ)

2007-01-02 Thread gmeroz
I wanted to see that i can run it from inside the IntelliJ (as a main class). 
The ant task run for me as well.

I notice that the wiki page was update last night, so i tried to run it with 
the new mentioned VM params and it runs now.

thanks.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3997187#3997187

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3997187
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: Debuging with JBossCache (from IntelliJ)

2006-12-31 Thread gmeroz
i tried to run \JBossCache-all-2.0.0.ALPHA1\examples\PojoCache\annotated50 
using the same configuration and got the following error:


---
GMS: address is 192.168.10.222:4578
---

---
GMS: address is 192.168.10.222:4582
---
org.jboss.cache.ReplicationException: java.lang.Exception: Don't know how to 
marshall object of type class examples.Student
at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:2110)
at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:2045)
at org.jboss.cache.TreeCache.callRemoteMethods(TreeCache.java:2177)
at org.jboss.cache.RPCManager.callRemoteMethods(RPCManager.java:65)
at 
org.jboss.cache.interceptors.BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:84)
at 
org.jboss.cache.interceptors.BaseRpcInterceptor.replicateCall(BaseRpcInterceptor.java:62)
at 
org.jboss.cache.interceptors.ReplicationInterceptor.handleReplicatedMethod(ReplicationInterceptor.java:114)
at 
org.jboss.cache.interceptors.ReplicationInterceptor.invoke(ReplicationInterceptor.java:86)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75)
at 
org.jboss.cache.interceptors.TxInterceptor.handleNonTxMethod(TxInterceptor.java:290)
at 
org.jboss.cache.interceptors.TxInterceptor.invoke(TxInterceptor.java:128)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75)
at 
org.jboss.cache.interceptors.CacheMgmtInterceptor.invoke(CacheMgmtInterceptor.java:151)
at org.jboss.cache.interceptors.Interceptor.invoke(Interceptor.java:75)
at 
org.jboss.cache.interceptors.InvocationContextInterceptor.invoke(InvocationContextInterceptor.java:61)
at org.jboss.cache.TreeCache.invokeMethod(TreeCache.java:3803)
at org.jboss.cache.TreeCache.put(TreeCache.java:1556)
at org.jboss.cache.TreeCacheProxyImpl.put(TreeCacheProxyImpl.java:226)
at org.jboss.cache.pojo.impl.InternalHelper.put(InternalHelper.java:162)
at 
org.jboss.cache.pojo.impl.SerializableObjectHandler.putIntoCache(SerializableObjectHandler.java:76)
at 
org.jboss.cache.pojo.impl.SerializableObjectHandler.put(SerializableObjectHandler.java:60)
at 
org.jboss.cache.pojo.impl.PojoCacheDelegate.putObjectII(PojoCacheDelegate.java:179)
at 
org.jboss.cache.pojo.impl.PojoCacheImpl.putObject(PojoCacheImpl.java:139)
at 
org.jboss.cache.pojo.impl.PojoCacheImpl.org$jboss$cache$pojo$impl$PojoCacheImpl$attach$aop(PojoCacheImpl.java:117)
at 
org.jboss.cache.pojo.impl.PojoCacheImpl$PojoCacheImplAdvisor.attach3085019539260813833(PojoCacheImpl$PojoCacheImplAdvisor.java)
at org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java)
at 
org.jboss.cache.pojo.impl.PojoCacheImpl.attach(PojoCacheImpl.java:109)
at 
test.examples.StudentMaintTest.testPropagation(StudentMaintTest.java:98)
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 junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at junit.textui.TestRunner.doRun(TestRunner.java:116)
at 
com.intellij.rt.execution.junit.IdeaTestRunner.doRun(IdeaTestRunner.java:69)
at junit.textui.TestRunner.doRun(TestRunner.java:109)
at 
com.intellij.rt.execution.junit.IdeaTestRunner.startRunnerWithArgs(IdeaTestRunner.java:24)
at 
com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:118)
at 
com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
Caused by: java.lang.Exception: Don't know how to marshall object of type class 
examples.Student
at 

[jboss-user] [JBossCache] - Debuging with JBossCache (from IntelliJ)

2006-12-27 Thread gmeroz
I want to run the JBossCache examples from the IntelliJ (for debugging). I saw 
on the examples build file, it is using AOP during compilcation. is it possible 
to compile with AOP from the IntelliJ?

Is it required to use JBossAOP when using JBossCahce?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3996518#3996518

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3996518
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user