[JBoss jBPM] - Re: deployment of process with forms, and mail setup / examp
by rossputin
excellent, all mail functionality is now working for me, thanks,
going back to the forms question though, I am using eclipse designer plugin version 'JBoss JBPM JPDL Designer 3.1.0.beta1' on an intel macbook pro on eclipse 3.3.0, and for some reason, when I generate a form from the 'details' tab, and select it to be included from the files and folders on the Deloyment tab, my process running on tomcat 5.0.28 does not find the form or a variable that should I have assigned to the node in question.
I am hoping someone can lead me through how to get this working, or how to find the websale example process par file so that I can deploy this to tomcat 2.0.28 to see how its done,
thanks for your help in advance,
regards
Ross
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065734#4065734
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065734
18Â years, 10Â months
[JBoss Seam] - count(*) and group by
by artur.chyzy
Hello.
I'm trying to show a list of objects.
I'm using EntityQuery.
I also show a message when list is empty so i put
| rendered="#{list.resultCount == 0}"
|
on outputText but the excaption is thrown.
The problem is that my query has group by i JPQL
In query class method getCountEjbql
| protected String getCountEjbql()
| {
| String ejbql = getRenderedEjbql();
|
| Matcher fromMatcher = FROM_PATTERN.matcher(ejbql);
| if ( !fromMatcher.find() )
| {
| throw new IllegalArgumentException("no from clause found in query");
| }
| int fromLoc = fromMatcher.start(2);
|
| Matcher orderMatcher = ORDER_PATTERN.matcher(ejbql);
| int orderLoc = orderMatcher.find() ? orderMatcher.start(1) : ejbql.length();
|
| return "select count(*) " + ejbql.substring(fromLoc, orderLoc);
| }
|
is only checking for order by and from.
The count(*) is insterted before all... but it will not work with group by queries because then the list of objects will be in result but seam gets getSingleResult in getResultCount method and the exception will be thrown..
| public Long getResultCount()
| {
| if ( resultCount==null || isAnyParameterDirty() )
| {
| javax.persistence.Query query = createCountQuery();
| resultCount = query==null ?
| null : (Long) query.getSingleResult();
| }
| return resultCount;
| }
|
For now i made a workaround
| rendered="#{not empty lista.resultCount }"
|
but i think that everybody can see how this is looking like... terrible
i think that when there is group by in query then it should be converted like this for count(*)
| select count(*) from (previous_query ) as some_name
|
Is this a bug or i'm doing sth wrong ??
Can someone put some light into my problem ??
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065733#4065733
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065733
18Â years, 10Â months
[Persistence, JBoss/CMP, Hibernate, Database] - Initializing hibernate exception
by taggat
Hi,
I have an application that uses EJB3 and hence hibernate.
As we are finding performance issues using ejb3 we are moving to directly accessing hibernate directly.
I am testing upgrading our installation from jboss 4.0.3SP1 to 4.2.0GA and where we had code to get the hibernate sessions setup using our entities with the following code
| try {
| AnnotationConfiguration ac = new AnnotationConfiguration();
| Filter[] filters = setFilter();
| setAnnotatedClasses(ac, filters);
| sessionFactory = ac.configure().buildSessionFactory();
| break;
| } catch (Throwable ex) {
| // Log exception!
| log.error("Initial SessionFactory creation failed. Message = " + ex.getMessage(), ex);
| //throw new ExceptionInInitializerError(ex);
| }
|
|
this used to work ok for setting up the hibernate session to read all of our existing entities and settings. under jboss 4.2.0GA it comes up with the following exception.
| org.hibernate.HibernateException: cannot simultaneously fetch multiple bags
| at org.hibernate.loader.BasicLoader.postInstantiate(BasicLoader.java:66)
| at org.hibernate.loader.entity.EntityLoader.<init>(EntityLoader.java:75)
| at org.hibernate.loader.entity.EntityLoader.<init>(EntityLoader.java:43)
| at org.hibernate.loader.entity.EntityLoader.<init>(EntityLoader.java:33)
| at org.hibernate.loader.entity.BatchingEntityLoader.createBatchingEntityLoader(BatchingEntityLoader.java:103)
| at org.hibernate.persister.entity.AbstractEntityPersister.createEntityLoader(AbstractEntityPersister.java:1748)
| at org.hibernate.persister.entity.AbstractEntityPersister.createEntityLoader(AbstractEntityPersister.java:1752)
| at org.hibernate.persister.entity.AbstractEntityPersister.createLoaders(AbstractEntityPersister.java:2982)
| at org.hibernate.persister.entity.AbstractEntityPersister.postInstantiate(AbstractEntityPersister.java:2975)
| at org.hibernate.persister.entity.SingleTableEntityPersister.postInstantiate(SingleTableEntityPersister.java:690)
| at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:290)
| at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
| at com.flytxt.global.data.jmx.HibernateService.<clinit>(HibernateService.java:37)
|
does anyone know how to get around this ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065730#4065730
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065730
18Â years, 10Â months
[Installation, Configuration & DEPLOYMENT] - Contradictory classloading on different JBoss instances
by ASyDBarret
Hey there...
I have a strange problem...when I deploy my MBean services on my development JBoss instance (my setup is, that all my proprietary classes (POJO's, EJBs and even the MBean classes) are referenced from the Jboss's classpath setup directly in their "bin" repository) I get "ClassNotFound exception" as soon as the MBean service tries to run its start method.
I managed to get rid of this problem by defining a custom classloader for the MBean services ... but only with the expense of not being able to debug them anymore (I had to pack the MBEans in an SAR archive and deploy them on the Jboss manually, but that made me lose the connection to the appropriate repository within my IDE - Eclipse...so I cannot access the classes from Eclipse for debugging anymore)
the thing that is really weird about my situation, is that when I tried out my deployment setup in a different environment (resp. on another JBoss on another machine)...it went OK even without the need to specify a custom classloader for the MBean Services.
I investigated a possible difference in the Jboss's configuration, but I could not locate any difference... I was wondering : How can a same SAR archive behave so differently on different JBoss servers, that seem to be configured similarily ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065728#4065728
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065728
18Â years, 10Â months