[jboss-user] [JBoss Cache: Core Edition] - Node.replaceAll and Node.getData do not work in an atomic wa

2008-12-28 Thread vsevel
Hi, I am trying to use jbosscache in the simplest way, having readers and 
writers working at the same time, with no transaction, just using the atomicity 
of operations replaceAll (writers) and getData (readers) on Node.

In my test case, 100 writers replace each second (or less) the complete data of 
a node using its own. Each second (or less) as well, 100 readers read that 
data, and verify its consistency (each value in the map is equal to the map 
size).

replaceAll and getData being atomic, I shouldn't have any reader complaining 
about consistencies, which is not what I found.

Here is my test case:


  | package mytest;
  | 
  | import java.util.HashMap;
  | import java.util.Map;
  | import java.util.Random;
  | 
  | import junit.framework.TestCase;
  | 
  | import org.jboss.cache.Cache;
  | import org.jboss.cache.CacheFactory;
  | import org.jboss.cache.DefaultCacheFactory;
  | import org.jboss.cache.Fqn;
  | import org.jboss.cache.Node;
  | 
  | public class MyCacheTest extends TestCase {
  | 
  | CacheFactoryInteger, Integer factory;
  | 
  | CacheInteger, Integer cache;
  | 
  | NodeInteger, Integer populations;
  | 
  | int errors = 0;
  | 
  | public void testCache() throws Exception {
  | factory = new DefaultCacheFactoryInteger, Integer();
  | cache = factory.createCache();
  | populations = 
cache.getRoot().addChild(Fqn.fromString(populations));
  | 
  | final Random r = new Random();
  | 
  | for (int i = 0; i  100; i++) {
  | final MapInteger, Integer map = new HashMapInteger, 
Integer();
  | 
  | for (int j = 0; j  i; j++) {
  | map.put(j, i);
  | }
  | 
  | new Thread() {
  | @Override
  | public void run() {
  | while (true) {
  | populations.replaceAll(map);
  | // System.out.println(replaceAll  + map.size());
  | sleepRandom(r);
  | }
  | }
  | }.start();
  | }
  | 
  | for (int i = 0; i  100; i++) {
  | 
  | new Thread() {
  | @Override
  | public void run() {
  | while (true) {
  | MapInteger, Integer map = populations.getData();
  | int size = map.size();
  | 
  | for (Integer value : map.values()) {
  | if (value != size) {
  | System.out.println(inconsistency in  + 
map);
  | 
  | synchronized (MyCacheTest.this) {
  | errors++;
  | }
  | 
  | break;
  | }
  | }
  | 
  | sleepRandom(r);
  | }
  | }
  | }.start();
  | }
  | 
  | Thread.sleep(1);
  | System.out.println(errors:  + errors);
  | assertEquals(0, errors);
  | }
  | 
  | void sleepRandom(final Random r) {
  | long sleep = 0;
  | synchronized (r) {
  | sleep = (long) (1000 * r.nextFloat());
  | }
  | try {
  | Thread.sleep(sleep);
  | } catch (InterruptedException e) {
  | e.printStackTrace();
  | }
  | }
  | }
  | 

Some runs do exhibit some inconsistencies, like the following, and some don't:

anonymous wrote : 
  | 10:52:57,469  App.ComponentRegistry  
org.jboss.cache.factories.ComponentRegistry.getFromConfiguration(ComponentRegistry.java:420)
 - Looking in configuration for an instance of class 
org.jboss.cache.invocation.InvocationContextContainer that may have been 
injected from an external source.
  | 10:52:57,547  App.ComponentRegistry  
org.jboss.cache.factories.ComponentRegistry.getFromConfiguration(ComponentRegistry.java:420)
 - Looking in configuration for an instance of interface 
org.jboss.cache.factories.context.ContextFactory that may have been injected 
from an external source.
  | 10:52:57,547  App.ComponentRegistry  
org.jboss.cache.factories.ComponentRegistry.getFromConfiguration(ComponentRegistry.java:420)
 - Looking in configuration for an instance of class 
org.jboss.cache.interceptors.InterceptorChain that may have been injected from 
an external source.
  | 10:52:57,625  App.ComponentRegistry  
org.jboss.cache.factories.ComponentRegistry.getFromConfiguration(ComponentRegistry.java:420)
 - Looking in configuration for an instance of class 
org.jboss.cache.transaction.TransactionTable that may have been injected from 
an external source.
  | 10:52:57,625  App.ComponentRegistry  

[jboss-user] [JBoss jBPM] - Re: Duplication of processDefinition

2008-06-20 Thread vsevel
I am also interested by this topic since it is not a good idea to export a 
process definition as xml. see 
http://www.jboss.com/index.html?module=bbop=viewtopict=135563

What is the solution for building a new process definition which is very 
similar (or an extension)  of a previous (already defined) process definition?
It is not convenient to restart from scratch.

Thanks,
Val


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

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


[jboss-user] [JBoss jBPM] - Re: Impossible to run anymore a jBPM query after a socket er

2008-06-17 Thread vsevel
You're right. we do not have the problem anymore since we are using c3po.
Thanks,
Val

For those who have the same problem, see http://www.hibernate.org/214.html

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

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


[jboss-user] [JBoss jBPM] - Impossible to run anymore a jBPM query after a socket error

2008-06-16 Thread vsevel
Hello,

I developped a web application with jBPM which works fine most of the time.
My web application is deployed into Tomcat 6.
Sometimes after a week-end, my web application cannot query anymore jBPM. The 
problem persists when I use a new session.
The only way to solve the problem is to restart my web application context in 
Tomcat.

I do not keep any jBPM objects. For each request, I create a new context.
I do not know if there is a way to force jBPM to give me a clean new instance 
of jbpmConfiguration.

  | JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
  | JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
  | try {
  | (...)
  | 
  |User jbpmUser = identitySession.getUserByName(currentUser);
  | if (jbpmUser != null) {
  | List allTaskInstanceList = jbpmContext.getTaskList(currentUser);
  | (...)
  |}
  |   } catch (Exception e) {
  | (...)
  |   } finally {
  | jbpmContext.close();
  |   }
  | 

Do you have any ideas? Did you encounter this problem before?
Thanks,
Val

Exceptions:



  | org.jbpm.JbpmException: couldn't get task instances list for actor 'hca'
  | at 
org.jbpm.db.TaskMgmtSession.findTaskInstances(TaskMgmtSession.java:65)
  | at org.jbpm.JbpmContext.getTaskList(JbpmContext.java:189)
  | at 
com.rsd.rbsfol.tasklet.bpm.TaskListTableTasklet.lookupNavigationList(TaskListTableTasklet.java:93)
  | at 
com.rsd.rbsfol.tasklet.bpm.TaskListTableTasklet.performSort(TaskListTableTasklet.java:149)
  | at com.rsd.rbs.tasklet.TableTasklet.perform(TableTasklet.java:86)
  | at 
com.rsd.rbs.action.UpdateTableAction.updateTable(UpdateTableAction.java:146)
  | at 
com.rsd.rbs.action.UpdateTableAction.perform(UpdateTableAction.java:99)
  | at org.apache.struts.action.Action.execute(Action.java:228)
  | at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
  | at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
  | at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1211)
  | at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:424)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
  | at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
  | at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
  | at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
  | at 
com.rsd.rbs.redirect.AbstractRedirectAdapter.processActionForward(AbstractRedirectAdapter.java:105)
  | at 
com.rsd.rbs.action.MappingServlet.processForward(MappingServlet.java:520)
  | at 
com.rsd.rbs.action.MappingServlet.processRequest(MappingServlet.java:332)
  | at com.rsd.rbs.action.MappingServlet.doGet(MappingServlet.java:346)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
  | at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
  | at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  | at java.lang.Thread.run(Thread.java:619)
  | Caused by: org.hibernate.exception.JDBCConnectionException: could not 
execute query
  | at 
org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:74)
  | at 
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
  | at org.hibernate.loader.Loader.doList(Loader.java:2223)
  | at 

[jboss-user] [JBoss jBPM] - Need recommandation about jbpmContext

2008-02-15 Thread vsevel
What is your recommandation about the JbpmContext object lifetime in a web 
application?
I was thinking to keep the same context during the web application life time 
and to close it only when the application is stopped.
I am working mostly with taskInstance objects. 
So I noticed that the context should be saved with task instance object each 
time that some operations are made on it (to keep the database up to date).
Will it be better to close regurlarly the context and get a new one?

Thanks,
Val


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

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


[jboss-user] [JBoss jBPM] - How to get the tasks instance list when there is no swimlane

2008-02-08 Thread vsevel
Hello,

I have a process definition where a task is not assigned to any swimlane.
I do not know how to get the task instance list in this particular scenario.
Each time an actorId or a list of actorId should be provided to be able to 
retrieve task instances.

Thanks,
Val

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

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


[jboss-user] [JBoss jBPM] - Re: Hibernate problem

2008-01-07 Thread vsevel
I found the error.
For my application, I added jbpm-jpdl-config.jar which contain another 
hibernate configuration.
So my hibernate configuration was not taken into account.
Val

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

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


[jboss-user] [JBoss jBPM] - Hibernate problem

2008-01-04 Thread vsevel
I am getting an hibernate error while getting the jbpmContext in my own 
application.
I have no clue how to solve it. 
However the jbpm console is still working. I am using MySQL.
I've got also the same error now when I am compiling jbpm3 sources.
Please help.


java.lang.IllegalStateException: No data type for node: 
org.hibernate.hql.ast.tree.MethodNode 
 \-[METHOD_CALL] MethodNode: '('
+-[METHOD_NAME] IdentNode: 'stddev' {originalText=stddev}
\-[EXPR_LIST] SqlNode: 'exprList'
   \-[DOT] DotNode: 'nodelog0_.DURATION_' 
{propertyName=duration,dereferenceType=4,propertyPath=duration,path=nl.duration,tableAlias=nodelog0_,className=org.jbpm.graph.log.NodeLog,classAlias=nl}
  +-[ALIAS_REF] IdentNode: 'nodelog0_.ID_' {alias=nl, 
className=org.jbpm.graph.log.NodeLog, tableAlias=nodelog0_}
  \-[IDENT] IdentNode: 'duration' {originalText=duration}


org.hibernate.hql.ast.tree.SelectClause.initializeExplicitSelectClause(SelectClause.java:145)

org.hibernate.hql.ast.HqlSqlWalker.useSelectClause(HqlSqlWalker.java:705)
org.hibernate.hql.ast.HqlSqlWalker.processQuery(HqlSqlWalker.java:529)

org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:645)

org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:281)

org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:229)

org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:228)

org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160)

org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:77)
org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:56)

org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)

org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:402)
org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:352)

org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)

org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:91)

org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:95)

org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:100)
org.jbpm.JbpmContext.getSession(JbpmContext.java:506)


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

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


[jboss-user] [JBoss jBPM] - Component to manage user-roles model

2007-12-20 Thread vsevel
Hello,

I read in the user guide that a component to manage user-roles model will 
provided in the future.
I browsed the JIRA issue tracker.
I did not find anything about this subject.
What is the number for this?
Thanks,
Val

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

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


[jboss-user] [JBoss jBPM] - Feedback about gravel and jbpm4jsf

2007-11-08 Thread vsevel
Hello,

I would like to know if jBPM with gravel and jbpm4jsf has already been deployed 
in a production environment? Or is it too early?
If yes, afterward do you think it was a good choice?

Thanks,
Val

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

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


[jboss-user] [JBoss jBPM] - Debug mode

2007-11-05 Thread vsevel
How to set the debug mode?
I put the following in jbpm-console/WEB-INF/classes/jbpm.cfg.xml

jbpm-configuration
  | string name=jbpm.log.default value=debug /
  | string name=jbpm.create.tables.log value=true /
  | /jbpm-configuration

But I have still the info logging.

I succeed to deploy the jbpm-console under tomcat with mysql and I was able to 
test the websale example also.
Now I am trying to understand the jbpm-console code (more precisely Gravel et 
jbpm4jsf) by debugging it with eclipse (also with tomcat).
The application is deployed successfully but the login part is not working 
anymore. I have no clue why.

Thanks,
Val



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

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


[jboss-user] [JBoss jBPM] - Question about process archive deployment

2007-11-05 Thread vsevel
I deployed in tomcat the websale process archive via eclipse.
I believe that during the deployment the database is updated.
But where are stored the newly created forms such as form.gift.wrap.xhtml?

Also, how to deploy a process archive in a production environment?
I saw that process archive could be stored as .par file (zip file).
How to deploy a .par file without using eclipse? 
I only saw that it was possible to do it via some code???

If there are some documentations about this subject, please give me the links.
I did not see any except 
http://docs.jboss.com/jbpm/v3.2/userguide/html/deployment.html 

Thanks,
Val

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

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


[jboss-user] [JBoss jBPM] - Re: tomcat and mysql integration

2007-10-30 Thread vsevel
What else needs to be done?

I did the modification in hibernate.cfg.xml and created the file 
jbpm-console.xml in /$CATALINA_HOME/conf/Catalina/localhost like it was 
specified in the tutorial

I also tried to add in web.xml
resource-ref
  jBPM Database
  res-ref-namejdbc/JbpmDS/res-ref-name
  res-ref-typejavax.sql.DataSource/res-ref-type
  res-authContainer/res-auth
/resource-ref

and tried to add in jbpm-console.xml:



I also tried to put the Resource name=jdbc/JbpmDS inside  
META-INF/context.xml with a context tag

Nothing is working.
Could you tell me the right procedure to configure hibernate?
It is the first time I am using hibernate.
I also read their faqs.

Thanks
Val

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

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


[jboss-user] [JBoss jBPM] - Re: tomcat and mysql integration

2007-10-30 Thread vsevel
Oops I was saying that I tried to add the following piece of code:



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

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


[jboss-user] [JBoss jBPM] - Re: tomcat and mysql integration

2007-10-30 Thread vsevel
Resource name=jdbc/JbpmDS auth=Container
  | type=javax.sql.DataSource username=jbossjbpm 
password=jbossjbpm
  | driverClassName=com.mysql.jdbc.Driver 
url=jdbc:mysql://localhost:3306/jbpm32
  | maxActive=8 maxIdle=4/

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

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


[jboss-user] [JBoss jBPM] - Re: tomcat and mysql integration

2007-10-30 Thread vsevel
I already did it in jbpm-console/WEB-INF/classes/hibernate.cfg.xml like it was 
suggested in the tutorial.

?xml version='1.0' encoding='utf-8'?
  | 
  | !DOCTYPE hibernate-configuration PUBLIC
  |   -//Hibernate/Hibernate Configuration DTD 3.0//EN
  |   
http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd;
  | 
  | hibernate-configuration
  |   session-factory
  | 
  | !-- JDBC connection properties (begin) --
  |   
  | !-- HSQL configuration 
  | property 
name=hibernate.dialectorg.hibernate.dialect.HSQLDialect/property
  | property 
name=hibernate.connection.driver_classorg.hsqldb.jdbcDriver/property
  | property 
name=hibernate.connection.urljdbc:hsqldb:mem:jbpm/property
  | property name=hibernate.connection.usernamesa/property
  | property name=hibernate.connection.password/property
  | --
  | 
  | !-- MYSQL configuration --
  | property 
name=hibernate.dialectorg.hibernate.dialect.MySQLInnoDBDialect/property
  | property 
name=hibernate.connection.driver_classcom.mysql.jdbc.Driver/property
  | property 
name=hibernate.connection.urljdbc:mysql://localhost:3306/jbpm32/property
  | property name=hibernate.connection.usernamejbossjbpm/property
  | property name=hibernate.connection.passwordjbossjbpm/property
  | 
  |  !-- JDBC connection properties (end) --
  | 
  | 
  | property 
name=hibernate.cache.provider_classorg.hibernate.cache.HashtableCacheProvider/property
  | 
  | !-- DataSource properties (begin) --
  | property name=hibernate.connection.datasourcejava:/JbpmDS/property
  | !-- DataSource properties (end) --
  | 
  | property 
name=hibernate.transaction.factory_classorg.hibernate.transaction.JDBCTransactionFactory/property
  | 
  | 
  | !-- JTA transaction properties (begin) ===
  | property 
name=hibernate.transaction.factory_classorg.hibernate.transaction.JTATransactionFactory/property
  | property 
name=hibernate.transaction.manager_lookup_classorg.hibernate.transaction.JBossTransactionManagerLookup/property
  |  JTA transaction properties (end) --
  | 
  | !-- CMT transaction properties (begin) ===
  | property 
name=hibernate.transaction.factory_classorg.hibernate.transaction.CMTTransactionFactory/property
  | property 
name=hibernate.transaction.manager_lookup_classorg.hibernate.transaction.JBossTransactionManagerLookup/property
  |  CMT transaction properties (end) --
  | 
  | !-- logging properties (begin) ===
  | property name=hibernate.show_sqltrue/property
  | property name=hibernate.format_sqltrue/property
  | property name=hibernate.use_sql_commentstrue/property
  |  logging properties (end) --
  | 
  | !--  --
  | !-- # mapping files with external dependencies # --
  | !--  --
  | 
  | !-- following mapping file has a dependendy on   --
  | !-- 'bsh-{version}.jar'. --
  | !-- uncomment this if you don't have bsh on your --
  | !-- classpath.  you won't be able to use the --
  | !-- script element in process definition files   --
  | mapping resource=org/jbpm/graph/action/Script.hbm.xml/
  | 
  | !-- following mapping files have a dependendy on  --
  | !-- 'jbpm-identity.jar', mapping files--
  | !-- of the pluggable jbpm identity component. --
  | !-- Uncomment the following 3 lines if you--
  | !-- want to use the jBPM identity mgmgt   --
  | !-- component.--
  | !-- identity mappings (begin) --
  | mapping resource=org/jbpm/identity/User.hbm.xml/
  | mapping resource=org/jbpm/identity/Group.hbm.xml/
  | mapping resource=org/jbpm/identity/Membership.hbm.xml/
  | !-- identity mappings (end) --
  | 
  | !-- following mapping files have a dependendy on  --
  | !-- the JCR API   --
  | !-- jcr mappings (begin) ===
  | mapping 
resource=org/jbpm/context/exe/variableinstance/JcrNodeInstance.hbm.xml/
  |  jcr mappings (end) --
  | 
  | 
  | !-- ## --
  | !-- # jbpm mapping files # --
  | !-- ## --
  | 
  | !-- hql queries and type defs --
  | mapping resource=org/jbpm/db/hibernate.queries.hbm.xml /
  | 
  | !-- graph.action mapping files --
  | mapping resource=org/jbpm/graph/action/MailAction.hbm.xml/
  | 
  | !-- graph.def mapping files --
  | mapping resource=org/jbpm/graph/def/ProcessDefinition.hbm.xml/
  | mapping resource=org/jbpm/graph/def/Node.hbm.xml/
  | mapping resource=org/jbpm/graph/def/Transition.hbm.xml/
  | mapping resource=org/jbpm/graph/def/Event.hbm.xml/
  | mapping resource=org/jbpm/graph/def/Action.hbm.xml/
  | mapping 

[jboss-user] [JBoss jBPM] - Re: tomcat and mysql integration

2007-10-30 Thread vsevel
I do not have anymore the datasource problem.
I forgot to comment the datasource part of the hibernate file.

But now I have another problem:

anonymous wrote : INFO: connection properties: {user=jbossjbpm, password=}
  | 30 oct. 2007 14:30:19 org.hibernate.cfg.SettingsFactory buildSettings
  | ATTENTION: Could not obtain connection metadata
  | com.mysql.jdbc.CommunicationsException: Communications link failure due to 
underlying exception: 
  | 
  | ** BEGIN NESTED EXCEPTION ** 
  | 
  | java.net.ConnectException
  | MESSAGE: Connection refused: connect
  | 
  | STACKTRACE:
  | 
  | java.net.ConnectException: Connection refused: connect
  | at java.net.PlainSocketImpl.socketConnect(Native Method)
  | at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
  | at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
  | at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
  | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
  | at java.net.Socket.connect(Socket.java:518)
  | at java.net.Socket.connect(Socket.java:468)
  | at java.net.Socket.(Socket.java:365)
  | at java.net.Socket.(Socket.java:208)
  | at 
com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:256)
  | at com.mysql.jdbc.MysqlIO.(MysqlIO.java:271)
  | at com.mysql.jdbc.Connection.createNewIO(Connection.java:2771)
  | at com.mysql.jdbc.Connection.(Connection.java:1555)
  | at 
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)
  | at java.sql.DriverManager.getConnection(DriverManager.java:582)
  | at java.sql.DriverManager.getConnection(DriverManager.java:154)
  | at 
org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
  | at 
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)
  | at 
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
  | at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
  | at 
org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:91)
  | at 
org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:95)
  | at 
org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:99)
  | at 
org.jbpm.persistence.db.DbPersistenceService.getJobSession(DbPersistenceService.java:359)
  | at org.jbpm.JbpmContext.getJobSession(JbpmContext.java:563)
  | at 
org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread.java:112)
  | at 
org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:58)
  | 
  | 
  | ** END NESTED EXCEPTION **
  | 
  | 
  | 
  | Last packet sent to the server was 0 ms ago.
  | at com.mysql.jdbc.Connection.createNewIO(Connection.java:2847)
  | at com.mysql.jdbc.Connection.(Connection.java:1555)
  | at 
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:285)
  | at java.sql.DriverManager.getConnection(DriverManager.java:582)
  | at java.sql.DriverManager.getConnection(DriverManager.java:154)
  | at 
org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
  | at 
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)
  | at 
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
  | at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
  | at 
org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:91)
  | at 
org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:95)
  | at 
org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:99)
  | at 
org.jbpm.persistence.db.DbPersistenceService.getJobSession(DbPersistenceService.java:359)
  | at org.jbpm.JbpmContext.getJobSession(JbpmContext.java:563)
  | at 
org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread.java:112)
  | at 
org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:58)
  | 30 oct. 2007 14:30:19 org.hibernate.dialect.Dialect 
  | INFO: Using dialect: org.hibernate.dialect.MySQLInnoDBDialect
  | 30 oct. 2007 14:30:19 org.hibernate.transaction.TransactionFactoryFactory 
buildTransactionFactory
  | INFO: Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
  | 30 oct. 2007 14:30:19 
org.hibernate.transaction.TransactionManagerLookupFactory 
getTransactionManagerLookup
  | INFO: No TransactionManagerLookup configured (in JTA environment, use of 
read-write or transactional second-level cache is not recommended)
  | 30 oct. 2007 14:30:19 org.hibernate.cfg.SettingsFactory buildSettings
  | INFO: Automatic flush during beforeCompletion(): disabled
  | 30 oct. 2007 14:30:19 

[jboss-user] [JBoss jBPM] - Re: tomcat and mysql integration - Cannot login

2007-10-30 Thread vsevel
You are right the problem was due to the port.

Now I have:
anonymous wrote : INFO: building session factory
  | 30 oct. 2007 15:13:12 org.hibernate.impl.SessionFactoryObjectFactory 
addInstance
  | INFO: Not binding factory to JNDI, no JNDI name configured
  | 30 oct. 2007 15:14:23 com.sun.facelets.compiler.TagLibraryConfig 
loadImplicit

Previously I imported successfully mysql.identity.script.sql. ( I build the war 
from jbpm-jpdl-3.2.2)

When I am using the user ernie or bert (the users that are defined in the 
database), I got the follwing error:
Error 403 Ressource access has been forbidden 
anonymous wrote : L'accès à la ressource demandée (L'accès à la ressource 
demandée a été interdit) a été interdit.
I did not see any error logged into catalina.2007-10-30.log
What configuration needs to be done?
I have the following in web.xml
anonymous wrote : !--
  |This role list should be changed to include all the relevant roles 
for your
  |environment.
  | --
  | security-role
  | role-nameadmin/role-name
  | /security-role
  | 
  | !--
  |Security constraints - uncomment and optionally customize the role 
name to require
  |a login before access is allowed to the application.
  | 
  |Also, be sure to edit jboss-web.xml to configure the security domain 
if you are
  |deploying inside JBossAS.
  | --
  | security-constraint
  | web-resource-collection
  | web-resource-nameSecure Area/web-resource-name
  | url-pattern/sa/*/url-pattern
  | http-methodGET/http-method
  | http-methodPOST/http-method
  | /web-resource-collection
  | auth-constraint
  | role-nameuser/role-name
  | /auth-constraint
  | /security-constraint
  | !-- end security constraints --
  | 
  | !-- Example Login page - lists user names --
  | login-config
  | auth-methodFORM/auth-method
  | form-login-config
  | form-login-page/ua/login-example.jsf/form-login-page
  | 
form-error-page/ua/login-example.jsf?error=true/form-error-page
  | /form-login-config
  | /login-config
  | !-- End Example Login page - lists user names --
  | 
  | !-- Login configuration option #1 - use the login page ==
  | login-config
  | auth-methodFORM/auth-method
  | form-login-config
  | form-login-page/ua/login.jsf/form-login-page
  | form-error-page/ua/login.jsf?error=true/form-error-page
  | /form-login-config
  | /login-config
  | !== End Login configuration option #1 --
  | 
  | !-- Login configuration option #2 - use basic auth ==
  | login-config
  | auth-methodBASIC/auth-method
  | realm-namejBPM Administration Console/realm-name
  | /login-config
  | !== End Login configuration option #2 --
  | 
  | 
  | 
  | !-- This servlet serves the purpose of executing pending timer jobs. 
--
  | !-- JbpmJobExecutorServlet BEGIN --
  | 
  | servlet-nameJobExecutorServlet/servlet-name
  | 
servlet-classorg.jbpm.job.executor.JobExecutorServlet/servlet-class
  | load-on-startup1/load-on-startup
  | 
  | servlet-mapping
  | servlet-nameJobExecutorServlet/servlet-name
  | url-pattern/jobs/url-pattern
  | /servlet-mapping
  | !-- JbpmJobExecutorServlet END --
  | 
  | !-- This section is so that the web console can deploy in the 
jbpm-enterprise.ear module --
  | !-- EJB LOCAL REFS BEGIN ===
  | ejb-local-ref
  | ejb-ref-nameejb/LocalTimerServiceBean/ejb-ref-name
  | ejb-ref-typeSession/ejb-ref-type
  | 
local-homeorg.jbpm.scheduler.ejbtimer.LocalTimerServiceHome/local-home
  | org.jbpm.scheduler.ejbtimer.LocalTimerService
  | ejb-linkTimerServiceBean/ejb-link
  | /ejb-local-ref
  |  EJB LOCAL REFS END --


When I am using the users user admin manager, I have the following error 
Login failed. Invalid user name or password. 
This users are described in jbpm-console/WEB-INF/access.properties
Is this file is needed when using mysql?

anonymous wrote : # Security configuration for jBPM Administration Console.
  | #
  | # Customize the properties in this file to define security permissions
  | # for different components within the console.
  | 
  | # Require one of the given roles for identity management functionality.
  | # Insert a bogus role name to disable identity management (if you are not
  | # using the jBPM identity module, for example).
  | role.identities=manager
  | 
  | # Fine-grained controls for different levels of identity management.
  | role.identities.user=admin
  | role.identities.user.add=
  | role.identities.user.delete=
  | role.identities.user.modify=
  | 
  | role.identities.group=admin
  | role.identities.group.add=
  | role.identities.group.delete=
  | role.identities.group.modify=
  | 
 

[jboss-user] [JBoss jBPM] - tomcat and mysql integration

2007-10-29 Thread vsevel
Hello,

Previously I tested successfully jBPM with the websale example.
Now I want to test it with tomcat 6 and mySQL 5.
I followed the instructions of: 
http://wiki.jboss.org/wiki/Wiki.jsp?page=JbpmOnTomcat

I deployed the console. However I have the following error:
 Could not find datasource: java:/JbpmDS
javax.naming.NameNotFoundException: Le Nom JbpmDS n'est pas lié à ce Contexte
at org.apache.naming.NamingContext.lookup(NamingContext.java:770) .

I also read http://docs.jboss.com/jbpm/v3/userguide/deployment.html

Please help.
Val

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

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

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


[jboss-user] [JBoss jBPM] - Difference between /fisheye/browse/JBPM/jbpm.3/console and f

2007-10-23 Thread vsevel
Hello,

I installed jBPM-jPDL-3.2.2 and ran the websale example. 
Everything was OK.
Now I want to have my own console and webapplication.
So I need to learn from the jBPM console code.
So I started to dowloaded jbpm.3 from
http://fisheye.jboss.org/browse/JBPM/jbpm.3/console
I was surprise not to find any java class inside the console directory.
But I am guessing now it is because things has been moved to jbmp4jsf and 
gravel. But I am not sure.

However I saw that some code is present in
http://fisheye.jboss.org/browse/JbpmSvn/console.

So which one is the right one?
I read in one email that the plan was to migrate from CVS to subversion.
Is it related?


Thanks,
Val


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

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