[jboss-user] [Clustering/JBoss] - Shared objects in cluster

2009-04-28 Thread bentins
I have a running JBoss 4.2.3.GA cluster running. My application, not originally 
designed for a cluster, has some Singleton objects that hold in memory code 
tables. This tables rarely change, but when they do, I need to update the whole 
cluster. Since moving to the cluster I face the problem that when such a change 
occurs it only occurs on the node which it was done on and the other nodes are 
not aware.

I need to redesign these objects. It seems the best solution is to keep these 
code tables in a shared cache, i.e. the treecahce used by the cluster.

1. Can some one direct me to a code example on how this is done in a cluster.
2. Does anyone think I should use a different solution for this problem?

Thnx

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

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


[jboss-user] [JBoss jBPM] - Wierd Problem in Hibernate session

2008-12-12 Thread bentins
I have to following code:

  | protected TaskInstance locateTask(ContextInstance ctx, JbpmContext 
jbpmContext) throws ApplicationException {
  | String searchValue = (String) ctx.getVariable(contextKey);
  | if (searchValue == null || searchValue.trim().equals())
  | return null;
  | String query = String.format(select t.ID_ TASK_ID from 
JBPM_TASKINSTANCE t , JBPM_VARIABLEINSTANCE vi 
  | + where vi.STRINGVALUE_ = '%s' and vi.TOKEN_ = 
t.TOKEN_ and (t.ISOPEN_ = 1 or t.ISSUSPENDED_ = 1)
  | +  and t.END_ is null and t.NAME_ , new 
Object[] {searchValue});
  | 
  | String inString;
  | if (!notInTaskType) {
  | inString = String.format(in ( %s ), new Object[] 
{taskName});
  | }
  | else {
  | // we're looking for tasks which are not of types given
  | inString = String.format(not in ( %s ), new Object[] 
{taskName});
  | }
  | 
  | query += inString;
  | 
  | SQLQuery sqlQuery = 
jbpmContext.getSession().createSQLQuery(query).addScalar(TASK_ID, 
Hibernate.LONG);
  | List result = sqlQuery.list();
  | //  CollectionDbaseFieldList result = 
JDBCHelper.getInstance().runSelectStatement(query,
  | //  (Connection) 
ctx.getTransientVariable(FlowVariables.CONNECTION));
  | if (result == null || result.isEmpty()) {
  | return null;
  | }
  | // always take the first one found! usually there should be 
only one task in existence
  | //  long taskId = 
Long.parseLong(result.iterator().next().get(ID_).getValueAsString());
  | Long taskId = (Long) result.get(0);
  | if (logger.isLoggable(Level.FINEST))
  | logger.finest(Found a Task with ID:  + taskId);
  | TaskInstance task;
  | try {
  | task = TaskManager.loadInstance(taskId, jbpmContext);
  | if (logger.isLoggable(Level.FINEST))
  | logger.finest(task.toString());
  | }
  | catch (ApplicationException ae) {
  | // the task is either being opened by a user of is 
being finished by a user.
  | Long userId = (Long) 
ctx.getTransientVariable(FlowVariables.USER_ID);
  | if (userId != null) {
  | String folderId = (String) 
ctx.getVariable(FlowVariables.FOLDER_ID);
  | String text = 
ServerSideResources.translate(Msg38) +   + folderId;
  | SetString users = new HashSetString();
  | users.add(userId.toString());
  | 
MessageManager.getInstance().sendMessageToUsers(users, text);
  | }
  | return null;
  | }
  | return task;
  | }
  | 
  | public static EmiTaskInstance loadInstance(long taskId, JbpmContext ctx) 
throws ApplicationException {
  | EmiTaskMgmntSession mgmtSession = (EmiTaskMgmntSession) 
ctx.getTaskMgmtSession();
  | try {
  | return (EmiTaskInstance) 
mgmtSession.loadTaskInstance(taskId);
  | }
  | catch (JbpmException e) {
  | throw new ApplicationException(ALREADY_ASSIGNED, 
e.getMessage());
  | }
  | }
  | 
  | 

In one process I call a subprocess. Before the subprocess is called I run an 
action which closes a Task (Hence Task A). At the beginning of the subprocess I 
run an action which runs the locateTask from above to locate open tasks that 
have a certain value. The select I run using the open hibernate session returns 
finding Task A although Task A is closed i.e has an end date, and is not marked 
as open or suspended. More over, on the next couple of lines of code I load the 
task with the id the select returned and try to resume it, this fails on 
exception that says I can't resume a task that has been closed. How can the 
select find this task if it closed?

I'm running a Jbpm 3.2 in a clustered environment, which means I'm using an XA 
DataSource and XA transactions. A Transaction is opened before I begin and the 
commit is only after The subprocess has reached a blocking state.

The only thing I can think of is that for some reason the connection used for 
the query is not the connection used for loading and closing the task. I also 
want to mention that the same exact code does not fail in a non clusterd 
environment.

I'll be happy to read any thoughts on this matter that can point me to a 
direction

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

Reply to the 

[jboss-user] [JBoss jBPM] - Re: Wierd Problem in Hibernate session

2008-12-12 Thread bentins
I wish I could recall this issue...

It is my mistake. The environment which had this working had a different 
process running which did not run the locateTask code and thus did not fail. 
This through me off and caused the question. However, once I found out this 
difference I realized that when running within the same session, changes done 
to persistent objects will not show up in regular selects. I changed my query 
to an HQL query and everything is working fine.

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

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


[jboss-user] [Clustering/JBoss] - Best locking strategy

2008-12-04 Thread bentins
I have an existing ejb 2.1 application which I now moved to clustering.

If I understand the documentation correctly 2.1 entities are not shared on the 
cluster through a common cache. 

This means that if two users running on two different nodes are working on the 
same database row through an entity bean they may corrupt the data?

If so, I tried to use row-locking on the entity which creates a SELECT FOR 
UPDATE...  queries on the db and thus locks the row when a transaction is 
working on it. But with this I have problems on ejb queries that use DISTINCT, 
MAX, MIN or SUM and since I have such queries it does not look like a good 
solution.

Can someone please help here on what is the best strategy? Should I try to use 
optimistic locking on all beans? Did I understand the documentation wrong?

THX

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

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


[jboss-user] [JBoss jBPM] - Re: Is this a bug or is it intentional

2008-06-20 Thread bentins
I agree both scanarios should be addressed. Addressing the interface issue is 
not hard as we can do
type.isInterface()


However this leaves two problems. Both are not common. use cases.
1. Abstract classes which if someone uses it is imposible to get it to work, 
since it will fail on 'Field.set'. 

2. Another problem is when a user uses his own sub interface.

I think the code should address the first two issues and state in the 
documentation not to use abstract classes or sub interfaces of Collection, Set, 
List and Map for field mapping. (Maybe add an clear exception message)

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

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


[jboss-user] [JBoss jBPM] - Is this a bug or is it intentional

2008-06-19 Thread bentins
I'm running jbpm 3.1.1 on my site for a long time. Today I tried to see what I 
need to do in order to upgrade to 3.2.3. Aside from migrating the DB, I found 
several things. One of the things is something I submitted a jira issue 
jbpm-696 (which was accepted as a fix and closed).

In FieldInstantiator line 140 - 141:
else if (Map.class.isAssignableFrom(type)) {
  | value = getMap(propertyElement, new HashMap());

This makes the developer of an actionHandler use only the HashMap type as his 
map type, otherwise if you use hashtable you won't be able to set it. What I 
suggested back on that fix (applies also to collection types) is to write the 
code like this:

else if (Map.class.isAssignableFrom(type)) {
  | value = getMap(propertyElement, (Map)type.newInstance());

this allows the developer to use any kind of map type even his own 
implementation.

My question is: Is it intentional not to allow other map or collection types or 
is it just an oversight? 

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

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


[jboss-user] [JBoss jBPM] - Re: Assigning Taks to the same user when sent back

2008-02-05 Thread bentins
A swimlane, as fas as I understand, will keep the same actor. If TASK B is for 
a different actor then a swimlane will not solve this. What we did was to 
extend the taskInstance with our own object that keeps the information on the 
former actors on the task (Tasks can also be reassigned so you need to keep as 
fas history as needed). Then we used a Task Assignement Handler that checks for 
a flag to restore the former actor.

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

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


[jboss-user] [JBoss jBPM] - memory leak in delegation???

2007-11-21 Thread bentins
We are using JBpm 3.1.1 on a big insurance application. We are having memory 
problems. After using a profiler we have seen that for some reason all our 
actionHandlers(delegations) do not clean from memory. Since these actions are 
basically stateless it strikes me as odd.

When a process is running it creates actionHandlers, these handlers don't clean 
up after the process has ended, they just stay in memory for ever.

Before I start dumping information here please advice...

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

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


[jboss-user] [JBoss jBPM] - JbpmTaskInstance not released from memory

2007-05-14 Thread bentins
I have an enterprise application running with Jbpm 3.1.1. I have recently done 
some profiling work on it and encountered something I can't explain.

Every TaskInsatnce which I get by calling getTaskList on the taskMgmntSession 
is never released from memory. So I'm wondering who is holding these references 
and why? If it is some kind of cache why don't I get the same instances when I 
call the same list?

Any how I'd appreciate any ideas on this issue and how to expore it. Since in 
our enterprise system where people get hundreds of tasks a day and we have over 
a 100 users the memory will klog up rather quickly.

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

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


[jboss-user] [JBoss jBPM] - Re: JbpmTaskInstance not released from memory

2007-05-14 Thread bentins
Found my problem. Somehwere along the line I didn't release the context, 
everytime I got the new Tasks I created a new context. The former context was 
still holding references to the old list and this is why id didn't get cleared 
by the GC.

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

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


[jboss-user] [Performance Tuning] - Re: stack size limit

2007-04-18 Thread bentins
I was able to run with the following configuration:


  | # Setup JBoss sepecific properties
  | JAVA_OPTS=$JAVA_OPTS -XX:ThreadStackSize=128 -Xmx3072m -Xms1024m 
-XX:MaxPermSize=256m
  | 
  | # setup java temporary disk space
  | JAVA_OPTS=$JAVA_OPTS -Djava.io.tmpdir=/appdata/jboss/tmp
  | 
  | # the running program
  | JAVA_OPTS=$JAVA_OPTS -Dsun.rmi.dgc.client.gcInterval=360 
-Dsun.rmi.dgc.server.gcInterval=360
  | JAVA_OPTS=$JAVA_OPTS -XX:+UseParallelGC -Dprogram.name=$PROGNAME
  | 

It seems that I needed to omit tje 'k' after 128. However when I copied these 
same setting to my production server Jboss failed to load the application at 
all:

Here is what I get:

  | Could not create deployment: file:/appdata/jboss/jboss-4.0.3
  | SP1/server/amit/deploy/jboss-bean.deployer/
  | org.jboss.deployment.DeploymentException: Unexpected error during load of: 
org.jboss.kernel.deployment.jboss.JBossBeanDeployer
  | , msg=org/jboss/kernel/deployment/jboss/JBossBeanDeployerMBean; - nested 
throwable: (java.lang.ClassNotFoundException: Unexpec
  | ted error during load of: 
org.jboss.kernel.deployment.jboss.JBossBeanDeployer, 
msg=org/jboss/kernel/deployment/jboss/JBossBean
  | DeployerMBean)
  | 
 
and it goes on Jboss is reporting on problems with claa loading, however 
when I take the new settings off it works fine.

Both the production and Test are the same Solaris OS, same JDK, running the 
same application server settings and version.

What could be causing this, where do you think I should look for differences?

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

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


[jboss-user] [Performance Tuning] - stack size limit

2007-04-17 Thread bentins
I've been reading through the posts here. I saw that it was recommended in many 
places to do the following setting on solaris:

  | -XX:ThreadStackSize=128k
  | 

So I did it! But when I ran it I got an error stating that this new setting of 
131072 Kb exceeds the exiting limit of 8192 kB. When I changed the limit to 
131072 I got a different error stating:


  | Exception in thread main java.lang.OutOfMemoryError: unable to create new 
native thread
  | at java.lang.Thread.start(Native Method)
  | at org.jboss.Main.main(Main.java:450)
  | 

can someone please shed some light. If my original limit is smaller and my 
application works (although I do have performance problems) Do I still have to 
change this?

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

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


[jboss-user] [Performance Tuning] - Re: stack size limit

2007-04-17 Thread bentins
according to man pages changing the stack limit (which is what I did using
ulimit -s)
is what controlls the number of threads per process. so, I guess my problem 
lies elswhere.

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

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


[jboss-user] [Performance Tuning] - please suggest a startegy

2007-04-13 Thread bentins
I have a web application running on JBoss 4.0.3SP1 on a sun sparc with 2 
processors. Some of my processes are running asynchronously doing alot of 
transactions with the DB. When these processes are running the CPU is working 
real heavy and the users suffer from a slowdown. 

Is there a JBoss setup that would utilize both CPUs. When I look at the machine 
I see only one is used for Jboss. Should I run two instances of Jboss one on 
each CPU and create some clustering between them?

What the best way to approch this.

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

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


[jboss-user] [JBoss jBPM] - Re: db connection leak some advice please

2007-02-01 Thread bentins
OK. Done alot of investigation but still have a problem. Here is what I got:

first, I saw that my jbmp.configuration has no effect. i.e to have no 
transaction support by hibernate i had

  | service name='persistence' 
factory='org.jbpm.persistence.db.DbPersistenceServiceFactory'
  | field name=isTransactionEnabledfalse //field
  | /service
  | 
this did not actually load the attribute what i should have had is this:


  | service name='persistence'
  |  factory
  | bean 
class='com.emi.framework.infrastructure.workflow.EmiDbPersistanceServiceFactory'
  | field name=isTransactionEnabledfalse //field
  | /bean
  |  /factory
  | /service
  | 

Now the transaction is managed by Jboss App Server and not hibernate. Still 
there is a problem.

Here is what I do:
1. user clicks on a link on a web page.
2. A UserTransaction is opened
3. JbpmContext is created (JbpmConfiguration.getInstance().createJbpmContext()
4. TaskMgmntSesion is received and a taskInstance is loaded.
5. ContextInstance is received from the task
6. processinstance is received from context
7. the process is signaled.
8. Action are run and the process foloows to the next state.
9 return from signal to method
10. commit transaction
11. JbpmContext is closed

After lots of investigation I know the following:
1. the connection is opened by Jbpm in the LoadTaskInstance
2. this connection is not on the hiberanteSession, jdbcContext, 
ConnectionManager
3. I could not find it anywhere, so I can not close it.
4. This connection is not closed and stays open even though transaction is 
committed or rolledback.
5. Since this connection is nowhere to be found I can't close it.

This causes the connection pool to run out very quickly.

Need help ASAP

THNX

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

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


[jboss-user] [JBoss jBPM] - Re: db connection leak some advice please

2007-02-01 Thread bentins
I tried as you suggested and commented the flush and release mode and 
uncommented the transaction factory. Nothing is changed. 

I want to emphasize that everything gets committed or rolledback as it should. 
My only problem is that the connection is never closed, thus it is never 
returned to the ManagedConnectionPool.

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

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


[jboss-user] [JBoss jBPM] - db connection leak some advice please

2007-01-28 Thread bentins
I have recently deployed a large jbpm application. This is actually an 
extension to a J2ee application which has been running for two years. Since 
this deployment my system exhausted the connection pool every few hours. It 
looks like JBPM is responsible (or rather me misusing it)

Anyhow, I read somewhere that not closing JbpmContext could be the reason for 
this problem. However, I'm running most of my jbpm calls from code that does 
other things and which uses a UserTransaction (I'm working with ejb 2.0 on 
jboss4.0.3Sp1). If I try to close the context it complains I can't commit when 
autocommit is set!, so basically I commit my userTransaction and don't close 
the JbpmContext.

Here are my configuration files:

  | hibernate-configuration
  |   session-factory
  | 
  |
  | !-- Datasource configuration --
  | property 
name=hibernate.dialectorg.hibernate.dialect.Oracle9Dialect/property
  | property 
name=hibernate.connection.datasourcejava:/OracleDS/property
  | property name=hibernate.show_sqlfalse/property
  | property name=hibernate.format_sqlfalse/property 
  | !--
  | property 
name=hibernate.transaction.factory_classorg.hibernate.transaction.JTATransactionFactory/property
  | --
  | property 
name=hibernate.transaction.manager_lookup_classorg.hibernate.transaction.JBossTransactionManagerLookup/property
  | property 
name=hibernate.connection.release_modeafter_statement/property 
  | !--
  | property 
name=hibernate.transaction.auto_close_sessiontrue/property 
  | -- 
  | property 
name=hibernate.transaction.flush_before_completiontrue/property
  | 
  | !-- other hibernate properties 
  | property name=hibernate.show_sqltrue/property
  | property name=hibernate.format_sqltrue/property
  | --
  | 

and jbpmConfig:

  | jbpm-configuration
  | 
  |   jbpm-context
  | service name='persistence' 
factory='org.jbpm.persistence.db.DbPersistenceServiceFactory'
  | field name=isTransactionEnabledfalse //field
  | /service  
  | service name='message' 
factory='org.jbpm.msg.db.DbMessageServiceFactory' /
  | !-- service name='scheduler' 
factory='org.jbpm.scheduler.db.DbSchedulerServiceFactory' /--
  | service name='logging' 
factory='org.jbpm.logging.db.DbLoggingServiceFactory' /
  | !-- service name='authentication' 
factory='org.jbpm.security.authentication.DefaultAuthenticationServiceFactory' 
/--
  |   /jbpm-context
  | 
  |   !-- configuration resource files pointing to default configuration files 
in jbpm-{version}.jar --
  |   string name='resource.hibernate.cfg.xml' value='hibernate.cfg.xml' /
  |   !-- string name='resource.hibernate.properties' 
value='hibernate.properties' / --
  |   string name='resource.business.calendar' 
value='org/jbpm/calendar/jbpm.business.calendar.properties' /
  |   string name='resource.default.modules' 
value='org/jbpm/graph/def/jbpm.default.modules.properties' /
  |   string name='resource.converter' 
value='org/jbpm/db/hibernate/jbpm.converter.properties' /
  |   string name='resource.action.types' 
value='org/jbpm/graph/action/action.types.xml' /
  |   string name='resource.node.types' 
value='org/jbpm/graph/node/node.types.xml' /
  |   string name='resource.parsers' 
value='org/jbpm/jpdl/par/jbpm.parsers.xml' /
  |   string name='resource.varmapping' 
value='org/jbpm/context/exe/jbpm.varmapping.xml' /
  | 
  |   bean name='jbpm.task.instance.factory' 
class='com.emi.framework.infrastructure.workflow.TaskInstanceFactory' 
singleton='true' /
  |   bean name='jbpm.variable.resolver' 
class='org.jbpm.jpdl.el.impl.JbpmVariableResolver' singleton='true' /
  |   long name='jbpm.msg.wait.timout' value='5000' singleton='true' /
  | 
  | /jbpm-configuration
  | 

can someone shed a light?

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

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


[jboss-user] [JBoss jBPM] - startegy for enhancing TaskInstance

2006-10-13 Thread bentins
I've created a class that extends TaskInstance. I've created an enhancment 
table for it (thought it should be better this way) and done the hbm.xml stuff. 
The extension was OK and I was able to create a task. However, I now have these 
problems. if I load a task using the JbpmContext (which I need to do) it will 
load a\the regular TaskInstance Object and I will not have access to my new 
fields. The same goes for all the finder queries, it seems I have to reqrite 
them all to fit my new extension class.

1. Is there a strategy to extend TaskInstance that will let me have new fields 
without changing stuff in Jbpm core?
2. Is there a way to just get the hibernate session used for task Managment and 
use my own class for quereing and loading?
3. If not 1, 2, it seems logical that I will need to use my own new queries for 
finding tasks. however I do think JbpmContext should be fixed to load the class 
used by the TaskInstanceFactory, and not the default TaskInstance.

Thnx

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

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


[jboss-user] [JBoss Eclipse IDE (users)] - Re: jboss IDE 2.0.0- server doesn't take my login - config

2006-08-21 Thread bentins
I just checked and I have the exact issue with 1.6.1GA.

I forgot to mention I'm not using the default configuration, I use myu own 
copnfiguration. When I start from command line I do:
run -c amit

I chose the 'amit' configuration for the server both in 2.0.0 and 1.6.1 The 
server loads, but when I do my first query with the datasource I get an 
exception:

  | 09:04:46,906 ERROR [[/amit]] StandardWrapper.Throwable
  | java.lang.SecurityException: Invalid authentication attempt, principal=null
  | at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.getSubject(BaseConnectionManager2.java:665)
  | at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:461)
  | at 
org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnection
  | Manager2.java:894)
  | at 
org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:73)
  | at 
com.emi.framework.infrastructure.jdbc.JDBCHelper.runSelectStatementSimple(JDBCHelper.java:194)
  | at 
com.emi.framework.infrastructure.jdbc.JDBCHelper.runSelectStatement(JDBCHelper.java:422)
  | at 
com.emi.framework.client.utils.fieldLimits.FieldLimitCache.init(FieldLimitCache.java:38)
  | at 
com.emi.framework.client.actions.Initializer.init(Initializer.java:64)
  | at javax.servlet.GenericServlet.init(GenericServlet.java:211)
  | at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
  | at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925)
  | at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3857)
  | at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4118)
  | at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
  | at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
  | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
  | 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.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
  | at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | at 
org.apache.catalina.core.StandardContext.init(StandardContext.java:5005)
  | 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.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
  | at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | at 
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:280)
  | at 
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:88)
  | at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:357)
  | at org.jboss.web.WebModule.startModule(WebModule.java:68)
  | at org.jboss.web.WebModule.startService(WebModule.java:46)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
  | at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java: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.GeneratedMethodAccessor5.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 

[jboss-user] [JBoss Eclipse IDE (users)] - jboss IDE 2.0.0- server doesn't take my login - config

2006-08-20 Thread bentins
I configured my jboss 4.0.3Sp1 server to run in the ide. This server runs 
perfectly from command line. However when I run it from the server and deploy 
my application it fails on DB connectivity. My datasource connects using a 
login configuration in the conf directory's login-config.xml which holds my 
user and encrypted password. The server is unable to connect to the DB.

Is there a way to config this, have I configured it wrong, or is this some knd 
of problem with the IDE.

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

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


[jboss-user] [JBoss jBPM] - invoking code from an ear file

2006-07-16 Thread bentins
I'm trying to integrate JBpm into an existing j2ee application running on Jboss 
in it's own ear. I'm using Jbpm as a service.

I need to write actions that do things directly in the application like 
invoking some processes, beans and such. The problem is that Jbpm.sar does not 
see my ear file in it's class path, and thus I get the class not found 
exceptions. I've read the stuff about classloading in jboss, however I couldn't 
find how its done in practice, adding the ear file into Jbpm service classpath.

thnx

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

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