From BPM to WebProject - BUILD FAILED

13 Jan '14, 05:13 PM
64,640 Views
No Forum Badges

Hi everyone,
 
I've synchronize BPM to clean Web Project but when i try to perform a "generate full web project" i have this problem:
 
BUILD FAILED

C:\WebRatio\WebRatio Personal 7.2.1\WebRatio\plugins\com.webratio.generator.webapp_7.2.1.201312200101\DataModel\JavaCompile.xml:7: Compile failed; see the compiler error output for details.


Total time: 1 second

Buildfile: C:\WebRatio\WebRatio Personal 7.2.1\WebRatio\plugins\com.webratio.generator.webapp_7.2.1.201312200101\DataModel\JavaCompile.xml


main:

    [javac] Compiling 14 source files to C:\WebRatio\WebRatio Personal 7.2.1\Tomcat\webapps\MELPTRE\WEB-INF\classes

    [javac] ----------

    [javac] 1. ERROR in C:\WebRatio\WebRatio Personal 7.2.1\Tomcat\webapps\MELPTRE\WEB-INF\classes\com\webratio\webapp\ActivityInstance.java (at line 368)

    [javac]  com.webratio.webapp.ProcessInstance_AttachmentCountBean __attachmentCount = activityInstance2ProcessInstance

    [javac]  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    [javac] com.webratio.webapp.ProcessInstance_AttachmentCountBean cannot be resolved to a type

    [javac] ----------

    [javac] 2. ERROR in C:\WebRatio\WebRatio Personal 7.2.1\Tomcat\webapps\MELPTRE\WEB-INF\classes\com\webratio\webapp\ActivityInstance.java (at line 369)

    [javac]  .getAttachmentCountBean();

    [javac]   ^^^^^^^^^^^^^^^^^^^^^^

    [javac] The method getAttachmentCountBean() from the type ProcessInstance refers to the missing type ProcessInstance_AttachmentCountBean

    [javac] ----------

    [javac] ----------

    [javac] 3. ERROR in C:\WebRatio\WebRatio Personal 7.2.1\Tomcat\webapps\MELPTRE\WEB-INF\classes\com\webratio\webapp\ProcessInstance.java (at line 31)

    [javac]  private com.webratio.webapp.ProcessInstance_AttachmentCountBean _attachmentCountBean;

    [javac]          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    [javac] com.webratio.webapp.ProcessInstance_AttachmentCountBean cannot be resolved to a type

    [javac] ----------

    [javac] 4. ERROR in C:\WebRatio\WebRatio Personal 7.2.1\Tomcat\webapps\MELPTRE\WEB-INF\classes\com\webratio\webapp\ProcessInstance.java (at line 177)

    [javac]  com.webratio.webapp.ProcessInstance_AttachmentCountBean __attachmentCount = this.getAttachmentCountBean();

    [javac]  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    [javac] com.webratio.webapp.ProcessInstance_AttachmentCountBean cannot be resolved to a type

    [javac] ----------

    [javac] 5. ERROR in C:\WebRatio\WebRatio Personal 7.2.1\Tomcat\webapps\MELPTRE\WEB-INF\classes\com\webratio\webapp\ProcessInstance.java (at line 177)

    [javac]  com.webratio.webapp.ProcessInstance_AttachmentCountBean __attachmentCount = this.getAttachmentCountBean();

    [javac]                                                                                   ^^^^^^^^^^^^^^^^^^^^^^

    [javac] The method getAttachmentCountBean() from the type ProcessInstance refers to the missing type ProcessInstance_AttachmentCountBean

    [javac] ----------

    [javac] 6. ERROR in C:\WebRatio\WebRatio Personal 7.2.1\Tomcat\webapps\MELPTRE\WEB-INF\classes\com\webratio\webapp\ProcessInstance.java (at line 188)

    [javac]  public com.webratio.webapp.ProcessInstance_AttachmentCountBean getAttachmentCountBean() {

    [javac]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    [javac] com.webratio.webapp.ProcessInstance_AttachmentCountBean cannot be resolved to a type

    [javac] ----------

    [javac] 7. ERROR in C:\WebRatio\WebRatio Personal 7.2.1\Tomcat\webapps\MELPTRE\WEB-INF\classes\com\webratio\webapp\ProcessInstance.java (at line 189)

    [javac]  return _attachmentCountBean;

    [javac]         ^^^^^^^^^^^^^^^^^^^^

    [javac] ProcessInstance_AttachmentCountBean cannot be resolved to a type

    [javac] ----------

    [javac] 8. ERROR in C:\WebRatio\WebRatio Personal 7.2.1\Tomcat\webapps\MELPTRE\WEB-INF\classes\com\webratio\webapp\ProcessInstance.java (at line 192)

    [javac]  public void setAttachmentCountBean(com.webratio.webapp.ProcessInstance_AttachmentCountBean _attachmentCountBean) {

    [javac]                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    [javac] com.webratio.webapp.ProcessInstance_AttachmentCountBean cannot be resolved to a type

    [javac] ----------

    [javac] 9. ERROR in C:\WebRatio\WebRatio Personal 7.2.1\Tomcat\webapps\MELPTRE\WEB-INF\classes\com\webratio\webapp\ProcessInstance.java (at line 193)

    [javac]  this._attachmentCountBean = _attachmentCountBean;

    [javac]  ^^^^^^^^^^^^^^^^^^^^^^^^^

    [javac] ProcessInstance_AttachmentCountBean cannot be resolved to a type

    [javac] ----------

    [javac] 9 problems (9 errors)

Any suggestions?

 
x 0
Follow
Answer Answer at this question and get points!
Forum Hero - Level 9

Ok, The "Data Model" "Domain Model" isn't synchronized, you have to add a database in the domain model:
 
- Add a Database to the Web Project in the Data Model View, in the Outline Window (if you not already done). Edit the Connections properties in the Properties View. For example you can use Apache Derby DBMS in bundle with Tomcat offered by the WebRatio installation package. In this case you can set these Properties in the Properties View related to the Database:
Type: Apache Derby
URL: jdbc:derby://localhost:50102/MyDBName;create=true (NOTE: With the 'create=true' option the Database will be automatically created. The Database must be before created with the other DBMSs, this is the easy way to have a working database)
Username: manager
Password: manager
 
- In the Database you have to right click and select Synchronize and you can see a window configuration (Database Synchronizer) you have to select "Export All Objects" click "Next" and "Finish"
 
if you do "Find Model Problems" again, is possible that you won't have problems and when you generate full web project it will success
 
Tell me the result please.
 

   
x 1
Forum Expert - Level 5

My recommendation is to install the mysql or postgres database for testing, which can view the data in the form that are created

 
x 1
Forum Hero - Level 9

Hi, Antonio,

Can you do right click in the your web Project and select "Find"  -> "Find Model Problems", if exist some problem with "Data Model" or WebModel you can see the messages in the "Problems" window.

Tell me if you find some problem.

 
x 0
No Forum Badges

Ops... thanks for the trick! So?

I'm using the integrated apache derby dbms

Here the problems:

Description Resource Path Location Type

The mapping database of the entity 'ActivityInstance' is unspecified ActivityInstance /MELPONLINE line 0 WebRatio Problem
The mapping database of the entity 'ActivityType' is unspecified ActivityType /MELPONLINE line 0 WebRatio Problem
The mapping database of the entity 'Attachment' is unspecified Attachment /MELPONLINE line 0 WebRatio Problem
The mapping database of the entity 'Group' is unspecified Group /MELPONLINE line 0 WebRatio Problem
The mapping database of the entity 'Lock' is unspecified Lock /MELPONLINE line 0 WebRatio Problem
The mapping database of the entity 'Module' is unspecified Module /MELPONLINE line 0 WebRatio Problem
The mapping database of the entity 'Note' is unspecified Note /MELPONLINE line 0 WebRatio Problem
The mapping database of the entity 'Notification' is unspecified Notification /MELPONLINE line 0 WebRatio Problem
The mapping database of the entity 'ParameterInstance' is unspecified ParameterInstance /MELPONLINE line 0 WebRatio Problem
The mapping database of the entity 'ParameterType' is unspecified ParameterType /MELPONLINE line 0 WebRatio Problem
The mapping database of the entity 'Process' is unspecified Process /MELPONLINE line 0 WebRatio Problem
The mapping database of the entity 'ProcessInstance' is unspecified ProcessInstance /MELPONLINE line 0 WebRatio Problem
The mapping database of the entity 'SequenceFlow' is unspecified SequenceFlow /MELPONLINE line 0 WebRatio Problem
The mapping database of the entity 'User' is unspecified User /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'ActivityInstance_CandidateUser' is unspecified ActivityInstance_CandidateUser /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'ActivityInstance_Group' is unspecified ActivityInstance_Group /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'ActivityInstance_NextActivityInstanceNotes' is unspecified ActivityInstance_NextActivityInstanceNotes /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'ActivityInstance_Notification' is unspecified ActivityInstance_Notification /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'ActivityType_ActivityInstance' is unspecified ActivityType_ActivityInstance /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'Attachment_ProcessInstance' is unspecified Attachment_ProcessInstance /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'Attachment_User' is unspecified Attachment_User /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'Group_ActivityType' is unspecified Group_ActivityType /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'Group_DefaultModule' is unspecified Group_DefaultModule /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'Group_Module' is unspecified Group_Module /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'NextActivityType_PreviousSequenceFlow' is unspecified NextActivityType_PreviousSequenceFlow /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'Note_ActivityInstance' is unspecified Note_ActivityInstance /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'Note_ProcessInstance' is unspecified Note_ProcessInstance /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'Note_User' is unspecified Note_User /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'ParameterInstance_ActivityInstance' is unspecified ParameterInstance_ActivityInstance /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'ParameterType_ParameterInstance' is unspecified ParameterType_ParameterInstance /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'PreviousActivityInstance_NextActivityInstance' is unspecified PreviousActivityInstance_NextActivityInstance /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'PreviousActivityType_NextSequenceFlow' is unspecified PreviousActivityType_NextSequenceFlow /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'Process_ActivityType' is unspecified Process_ActivityType /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'Process_ParameterType' is unspecified Process_ParameterType /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'ProcessInstance_ActivityInstance' is unspecified ProcessInstance_ActivityInstance /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'ProcessInstance_ParameterInstance' is unspecified ProcessInstance_ParameterInstance /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'ProcessInstance_Process' is unspecified ProcessInstance_Process /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'SubprocessInstances_ParentProcessInstance' is unspecified SubprocessInstances_ParentProcessInstance /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'User_ActivityInstance' is unspecified User_ActivityInstance /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'User_DefaultGroup' is unspecified User_DefaultGroup /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'User_Group' is unspecified User_Group /MELPONLINE line 0 WebRatio Problem
The mapping database of the relationship 'User_Notifications' is unspecified User_Notifications /MELPONLINE line 0 WebRatio Problem
 

 
x 0
Forum Expert - Level 5

For production enviroments do not use Apache Derby, because is a volatile database, when you restart server database is cleaned. Use other database like Oracle, Postgress...

 
x 0
No Forum Badges

Ok, using MySql DB all goes well.

Thank you everyone.

P.S.

I would like to report (what I think is) a bug. If I try to synchronize db checking "Synchronize Database when finished" in "BPMN Synchonization to web project" options, the system returns a java lang null pointer exception

 
x 0
Forum Hero - Level 9

Hi Antonio,

We need test this report, could you send your project to support@webratio.com? I can test and  tell you if is a bug or not.

 

 
x 0
Answer at this question and get points!

Related questions

404 on generated app page 500 error with WebRatio BPM 502 proxy error-generate and run A Commercial Hosting Service for the publication of a Website? Admin area disabled aggiornamento fallito a causa di un errore interno Ajax and FCK Editor (WebRatio 5.x) AJAX events problem to external JavaScript Ajax onchange and jQuery 2.x (with migrate plugin) incompatible Anyone Using WebRatio BPM as a Dashboard in the NOC? Any sample deployment application not deploying properly Automatization of deployment AWS Elastic Beanstalk y Webratio [beginner] - How to store and browse data collected with BPM app? Bpmn data object BPMN: URL field BPMN vs. Web Model BPM - Service Task in errore BPM Subprocess BPM Subprocess BPM subprocess loop usage Build Project. Only files for compilation .class Business object data Can I deploy an application to the cloud using RightScale and/or Scalr? Can I integrate Amazon S3 and/or Amazon CloudFront? Can I use Git with Webratio Cannot invoke method putAll() on null object Cannot invoke method selectSingleNode() on null object Can't run any aplication Code is exceeding the 65535 bytes limit error on JBOSS COLORARE le sequence flow Compare with the current time Component computation com.webratio.struts.exceptions.WRSecurityException: Invalid request target host Connection refused. Constants in the BPM model Creación DB Apache Derby - Modelado BPMN Create sub-processes in WebRatio 8.5.2. ¿ Cuál es la diferencia entre Web Ratio y Bizagi? Database connection, Host and Port number DB in Data Service Project Debug configuration Dependencies installation error Deploy de proyecto en HTTPS Deploying to CloudBees Deploy web project da riga di comando Dynamic attribute/field names. Possible? End message event error activating student account Error deploying Bookstore sample to cloud Error deploying WAR against to JBOSS Error testing mobil app in android Error updating metadata process Error when updating to WR 7.2.3 Filtros Caracteres Especiales Find Model Problemas Format currency Generation errors on ajax enabled page with many components, ajax links and selective refresh "Generation Error" with Generate and Run Generation options problem Groovy script numer after an error Hacer pruebas unitarias y de integración / Unit Test in WebRatio HelloWorld Unit sample code Help with math unit. Debug mode says error as result code Hide form until a flow is triggered Hierarchy component How can i save a diagram as an image file? How to accelerate the generation process? How to avoid language selection automatically according to the browser? How to create a new Web Project how to delete this error? How to disble derby database? How to fix Expense report example? How to get a wr:AjaxURL tag working How to implement a BPMN Service Task into WebModel How to open a window ajax in a BPM activity? i can't install mobile version on windows I can't install Webratio on my Desktop (Ubuntu 13.04 x64) I can't run any application with WebRatio (Table/View 'APP.POST' does not exist) Import an XPDL 2.2 file into a BPM Project Installation with java 1.8 Installazione Macosx Integrating a BPM model into an existent WebML model Intermediate Catching Timer Event invio mail fallito java.lang.NullPointerException java virtual machine error Job not start correctly JSP/DO issues on Tomcat 5.5 (Ubuntu) Localize body mail messages in BPM flows Login Error mandatory control code parameter is missing Mensaje: the selection cannot be launched and there are no recent launches Missing plugin emulation support error Missing units when importing project Multi Selects didn't work in update page Next Activity Note property - Error synchronizing with web project No access to protected site view with Login No Apache Derby driver found No database on my cloud account Page Home - First time the Project Web begins Problema al generar y ejecutar proyecto Problema generando la logica de un proyecto Problema generazione codice Problema Grafo da una lista gerarchica Problema ¨HTTP Status 404" Problemas con el Operations View Delete Problem: Compile Failed problemi con il salvataggio problemi installazione su Mac sistema operativo OSX El Capitan problem on first deploy with webratio Problems to connect Sql Server DB from Webratio Problem syncing reports Problem to run an Application Problem with application runnung Problem with execution of webratio Problem with ireport Problem with the deletion of more than 50.000 records in a table Process model import in other languages Project cannot be opened with WebRatio Community Platform Project generation best practices Question about integrating LinkedIn using BPMN and WebML redeployCheckInterval property Remove default BPM css import for all templates Renamed Gateways still cause Errors Resize fields REST connection and Mobile App deploy Root Context & Enterprise Project Sample web application Sending and Catching message in Webratio BPM Showing items that have a relation with an entity Simulation Software Solve "Generation Error" with Generate and Run option Some hint before I generate and deploy a webapp on a 64-bit windows system? Start Job when WebApp starts Student reserved area, download error Synchronize bpmn to web project Table 'freeapp43.profesion' doesn't exist Tarea de servicio no me evalua el valor Tomcat external session store and WebRatio webapp. "Unable to close sub-context ..." Unable to compute the controller URL(s) for applicationUnable to compute the controller URL(s) for application having status PROVISIONING Unable to connect the BAM application to a BPM based Web application Unable to connect to Internet Unable to execute the script java.lang.NullPointerException Unable to find Cloud free function Unable to get ExpenseReport example work in WebRation Personl 7.2.2 Unable to instantiate a new application instance Unable to update the web project Unspecified BPM Engine Database Updating attributes of an entity User Login Timestamp Use Running profile en project Uso de la componente chart de webRatio Webratio Add-ons no permite login Web Ratio Add-ons shop not working WEBRATIO LINUX AT EXECUTION TIME Web Ratio Mobile plateform Macos Sierra Web Ratio Mobile - Remote data mapping problem Webratio with Git support When execute my web application I have this error: returned a null bean White report XPCOM Error