java ee - Gradle BuildException in NetBeans -
i want run gradle java ee project using netbeans on ubuntu 12.04. error - project output:
build failure: gradle run org.gradle.tooling.buildexception: not execute build using gradle distribution 'http://services.gradle.org/distributions/gradle-1.7-bin.zip'
my gradle -version output:
------------------------------------------------------------ gradle 1.7 ------------------------------------------------------------ build time: 2013-08-06 11:19:56 utc build number: none revision: 9a7199efaf72c620b33f9767874f0ebced135d83 groovy: 1.8.6 ant: apache ant(tm) version 1.8.4 compiled on may 22 2012 ivy: 2.2.0 jvm: 1.6.0_27 (sun microsystems inc. 20.0-b12) os: linux 3.2.0-52-generic-pae i386
and build.gradle file:
apply plugin: 'java' apply plugin: 'war' mainclass = "main.main" sourcecompatibility = '1.7' [compilejava, compiletestjava]*.options*.encoding = 'utf-8' if (!hasproperty('mainclass')) { ext.mainclass = 'main.main' } repositories { mavencentral() } dependencies { compile group: 'org.hibernate', name: 'hibernate-core', version: '3.6.7.final' compile group: 'org.hibernate', name: 'hibernate-entitymanager', version: '3.6.7.final' compile "javax.ws.rs:jsr311-api:1.1.1" compile 'com.sun.jersey:jersey-server:1.13' compile 'com.sun.jersey:jersey-core:1.13' compile 'com.sun.jersey:jersey-servlet:1.13' testcompile group: 'junit', name: 'junit', version: '4.10' }
this error occurs when i'm trying use hibernate (create entitymanager): netbeans log:
slf4j: failed load class "org.slf4j.impl.staticloggerbinder". slf4j: defaulting no-operation (nop) logger implementation slf4j: see http://www.slf4j.org/codes.html#staticloggerbinder further details. exception in thread "main" javax.persistence.persistenceexception: no persistence provider entitymanager named websismspupgsql @ javax.persistence.persistence.createentitymanagerfactory(persistence.java:69) @ jpa.entitymanagerfactory.reinit(entitymanagerfactory.java:69) @ jpa.entitymanagerfactory.<init>(entitymanagerfactory.java:61) @ jpa.entitymanagerfactory.<init>(entitymanagerfactory.java:56) @ jpa.entitymanagerfactory.getinstance(entitymanagerfactory.java:43) @ main.main.main(main.java:18) :run failed failure: build failed exception. * went wrong: execution failed task ':run'. > process 'command '/usr/lib/jvm/jdk1.7.0_25/bin/java'' finished non-zero exit value 1
what should it?
Comments
Post a Comment