problem on first deploy with webratio

25 May '16, 10:44 AM
42,682 Views
No Forum Badges

Hi, 

I'm new on WebRatio and I try to generate a war and deploy it on local Tomcat.

I've this error that I don't understand:

org.eclipse.core.runtime.CoreException: C:\Users\aub.aceti\Desktop\Webratio\WebRatio Enterprise 7.2.0\WebRatio\plugins\com.webratio.generator.webapp_7.2.4.201405131235\DataModel\JavaCompile.xml:7: Compile failed; see the compiler error output for details.
    at org.eclipse.ant.core.AntRunner.handleInvocationTargetException(AntRunner.java:452)
    at org.eclipse.ant.core.AntRunner.run(AntRunner.java:384)
    at org.eclipse.ant.core.AntRunner.run(AntRunner.java:475)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
    at org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:766)
    at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:754)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(ScriptBytecodeAdapter.java:198)
    at com_webratio_generator_webapp_7_2_4_201405131235_DataModel_Main_template_1464085896396.run(com_webratio_generator_webapp_7_2_4_201405131235_DataModel_Main_template_1464085896396:134)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluateObject(GroovyTemplate.java:255)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluateScript(GroovyTemplate.java:192)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluate(GroovyTemplate.java:167)
    at com.webratio.commons.transform.groovy.Script2$ExecuteTemplateClosure.doCall(Script2.java:124)
    at com.webratio.commons.transform.groovy.Script2$ExecuteTemplateClosure.doCall(Script2.java:108)
    at com.webratio.commons.transform.groovy.Script2$ExecuteTemplateClosure.doCall(Script2.java:104)
    at sun.reflect.GeneratedMethodAccessor2010.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:927)
    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnCurrentN(ScriptBytecodeAdapter.java:78)
    at com_webratio_generator_webapp_7_2_4_201405131235_WebApp_Main_template_1464085902711.run(com_webratio_generator_webapp_7_2_4_201405131235_WebApp_Main_template_1464085902711:112)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluateObject(GroovyTemplate.java:255)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluateScript(GroovyTemplate.java:192)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluate(GroovyTemplate.java:167)
    at com.webratio.commons.transform.groovy.GroovyTemplate.evaluate(GroovyTemplate.java:149)
    at com.webratio.ide.deploy.core.jobs.GenerateWebAppJob.doRun(GenerateWebAppJob.java:164)
    at com.webratio.ide.deploy.core.jobs.AbstractDeploymentJob.runExternal(AbstractDeploymentJob.java:84)
    at com.webratio.commons.mf.jobs.ExternalJob.run(ExternalJob.java:53)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: C:\Users\aub.aceti\Desktop\Webratio\WebRatio Enterprise 7.2.0\WebRatio\plugins\com.webratio.generator.webapp_7.2.4.201405131235\DataModel\JavaCompile.xml:7: Compile failed; see the compiler error output for details.
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1079)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:882)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:357)
    at org.apache.tools.ant.Target.performTasks(Target.java:385)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:662)
    at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:495)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
    ... 37 more

 

Anyone can help me?

Thanks in advice

 

 
x 0
Follow
Answer Answer at this question and get points!
Forum Expert - Level 8

Hi,

well this is very strange.
I'm thinking that maybe you are using WebRatio with JDK 8, which is not compatible.
I experimented the same error reported in this situation.
Can you check the JDK version?
You have to go in the main menu and select Help -> About WebRatio ... Platform , press on the Installation Details button and select the Configuration tab in the opening dialog.
When the information are loaded, search for the -vm parameter and see what you get here.
If you have JDK 8 you need to configure WebRatio to use another version (for example JDK 7).
If you are using WebRatio on Windows you just have to open the link to the app and set the -vm parameter in the Target , just after the path to the WebRatio installation path.

Refer to the InstallationNotes.txt file you have in the WebRatio installation folder for further information.

 

   
x 0
Forum Expert - Level 8

Hi,

I suggest you to run the Find Model Problem option on your project.
The error you are getting indicates that there's an error in the project.
In particular I suggest you to check the Domain Model.

 
x 0
No Forum Badges

Hi Michela,

thanks for your suggestion.

I've run the Find Model Problem option but that don't return any error.

My web application is the same as in this guide: 

https://my.webratio.com/learn/learningobject/your-first-web-application-v-72?link=oln72ae.redirect&nav=14#!ajax=true

but I can't run it and deploy it on Tomcat.

 

 
x 0
No Forum Badges

Hi,

thanks that resolve the problem.. 

 
x 0
No Forum Badges

The problem is that I've use Java 8.. with Java 7 I haven't more this error

 
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 Any sample deployment application not deploying properly Automatization of deployment AWS Elastic Beanstalk y Webratio Build Project. Only files for compilation .class 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 Compare with the current time Component computation com.webratio.struts.exceptions.WRSecurityException: Invalid request target host Connection refused. 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 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 From BPM to WebProject - BUILD FAILED Generation errors on ajax enabled page with many components, ajax links and selective refresh "Generation Error" with Generate and Run 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 to accelerate the generation process? How to avoid language selection automatically according to the browser? how to delete this error? How to disble derby database? How to get a wr:AjaxURL tag working 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) Installation with java 1.8 Installazione Macosx invio mail fallito java.lang.NullPointerException java virtual machine error Job not start correctly JSP/DO issues on Tomcat 5.5 (Ubuntu) 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 generazione codice Problema Grafo da una lista gerarchica Problema ¨HTTP Status 404" Problemas con el Operations View Delete Problem: Compile Failed problemi installazione su Mac sistema operativo OSX El Capitan 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 Project cannot be opened with WebRatio Community Platform Project generation best practices redeployCheckInterval property REST connection and Mobile App deploy Root Context & Enterprise Project Sample web application Showing items that have a relation with an entity 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 Table 'freeapp43.profesion' doesn't exist 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 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 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 XPCOM Error