<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
problem with jbpm on weblogic
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/arashbahal">arash norouz</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/569094#569094">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>hi all</p><p>i am new to jbpm.</p><p>i am trying to implement some web services based on jbpm. i have implemented my services and test it in stand alone mode and it is ok!</p><p>but when i am trying to deploy my services on weblogic server it is thrown by some exceptions!</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>org.hibernate.HibernateException: Errors in named queries: findTasks, findMessages, findTimers, findGroupsByUserAndGroupType, findProcessInstanceIds, findJo<br/>        at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:397)<br/>        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)<br/>        at org.jbpm.pvm.internal.wire.descriptor.HibernateSessionFactoryDescriptor.construct(HibernateSessionFactoryDescriptor.java:62)<br/>        at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:487)<br/>        at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:466)<br/>        Truncated. see log file for complete stacktrace</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>after searching the internet i have found that adding</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong><property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property></strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>to hibernate config fix the problem. i have tried the solution and it was successful, but after deploying</p><p>when i want to run one of my services it throws another exception</p><p>my code snippet is:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>ProcessInstance processInstance = executionService<br/>                    .startProcessInstanceByKey(processDefinitionId, parameters,<br/>                            userId + "-" + sequence);</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>and the exception is :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>Error invoking com.pardis.notification.core.Services (POJO): org.hibernate.QueryException<ComponentHandler.handleRequest:144><br/><WSEE:21>org.hibernate.QueryException: Incorrect query syntax [select new map( idProperty.objectName as objectName, idProperty.deployment.dbid as deploymentDbid )</strong></p><p><strong><br/></strong></p><p><strong>Caused by: java.lang.NullPointerException<br/>        at java.lang.Class.forName0(Native Method)<br/>        at java.lang.Class.forName(Class.java:169)<br/>        at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:123)<br/>        at org.hibernate.hql.classic.SelectParser.token(SelectParser.java:96)<br/>        at org.hibernate.hql.classic.ClauseParser.token(ClauseParser.java:109)<br/>        at org.hibernate.hql.classic.ClauseParser.end(ClauseParser.java:136)<br/>        at org.hibernate.hql.classic.PreprocessingParser.end(PreprocessingParser.java:145)<br/>        at org.hibernate.hql.classic.ParserHelper.parse(ParserHelper.java:52)<br/>        at org.hibernate.hql.classic.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:239)</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>please help me about this situation</p><p>thanks in advance</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/569094#569094">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>