-
1. Re: Guvnor - build package problem, import definitions
tsurdilovic Sep 16, 2011 10:32 AM (in response to urdo2)>> I get a "Process Compilation error HashMap cannot be resolved to a type HashMap cannot be resolved to a type" error. <<
The Guvnor package you have your process in and are building has to have the proper imports defined.
Click on your package, and select the "Edit" tab, then under "Configuration: Imported Types" click the green "+" image to add another import type.
In the popup shown, in the "(advanced) class name:" text box type in java.util.HashMap, then the "OK" button. Validate your configuration, and then build your package again. It should build fine now.
Hope this helps.
Thanks.
-
2. Re: Guvnor - build package problem, import definitions
stangirala Mar 29, 2013 11:15 AM (in response to tsurdilovic)Hi Tihomir,
I tried to create a sample process and have some imports of external classes from odata4j jars, but when I add it as you mentioned, it validates successfully, but when I build it throws process compilation error. Not sure how to add external jars to guvnor process import... any ideas?
This is the error I get :
Process Compilation error ODataConsumer cannot be resolved to a type ODataConsumers cannot be resolved FormatType.JSON cannot be resolved to a type OClientBehaviors cannot be resolved OEntity cannot be resolved to a type List cannot be resolved to a type OEntity cannot be resolved to a type OQueryRequest cannot be resolved to a type OEntity cannot be resolved to a type OEntity cannot be resolved to a type List cannot be resolved to a type OProperty cannot be resolved to a type OProperty cannot be resolved to a type EdmType cannot be resolved to a type
Thanks,
Shailendra
-
3. Re: Guvnor - build package problem, import definitions
tsurdilovic Mar 29, 2013 11:33 AM (in response to stangirala)Check the Guvnor documentation. It describes how to add package-level imports - http://docs.jboss.org/drools/release/5.5.0.Final/drools-guvnor-docs/html_single/index.html#d0e2975
-
4. Re: Guvnor - build package problem, import definitions
stangirala Mar 29, 2013 3:50 PM (in response to tsurdilovic)Hi, I am talking about external third party jars which have dependency on my process. I tried adding to dependencies folder and then try to install it, but still the issue remains...
Not sure what is the process of adding third party jars...
Process Compilation error ODataConsumer cannot be resolved to a type ODataConsumers cannot be resolved FormatType.JSON cannot be resolved to a type OClientBehaviors cannot be resolved OEntity cannot be resolved to a type List cannot be resolved to a type OEntity cannot be resolved to a type OQueryRequest cannot be resolved to a type OEntity cannot be resolved to a type OEntity cannot be resolved to a type List cannot be resolved to a type OProperty cannot be resolved to a type OProperty cannot be resolved to a type EdmType cannot be resolved to a type
Regards,
Shailendra
-
5. Re: Guvnor - build package problem, import definitions
tsurdilovic Mar 29, 2013 4:48 PM (in response to stangirala)Can you attach your latest bpmn2. I'll take a look. If you get these errors during package build time, then its setting your package imports and process imports correctly. If it's at runtime then it's something in your bpmn2.
-
6. Re: Guvnor - build package problem, import definitions
stangirala Mar 29, 2013 4:52 PM (in response to stangirala)Hi,
Here is the bpm process...
Thanks for your reply.
Regards,
Shailendra
-
SamplingTest.bpmn.zip 2.2 KB
-
-
7. Re: Guvnor - build package problem, import definitions
stangirala Apr 1, 2013 10:57 AM (in response to tsurdilovic)Hi,
It is during build time. The same process works fine in eclipse environment. So I tried couple of ways to import external jars...
1) Put in depency folder so that they can added to lib directory once I do clean build and I see those jar added to the jbpm-gwt-console-server.war. Started the JBoss and still get this errors as not able to find the classes.
2) Add them as a part of "Edit Configuration" and added all the imports there... but same issue...
Any debug parameters I can use to see whats being done while I build package?
Thanks,
Shailendra
-
8. Re: Guvnor - build package problem, import definitions
stangirala Apr 1, 2013 11:05 AM (in response to tsurdilovic)