Errors compiling ofbiz 13.07 under debian 7

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
x1
Reply | Threaded
Open this post in threaded view
|

Errors compiling ofbiz 13.07 under debian 7

x1
 Hi, everybody!
I downloaded release ofbiz 13.07 as zip archieve from apache site, then compiled it under windows 7 (and also with win server 2008 R2) with jdk8 and ant 1.9.4. Everything is OK.
Then I need to compile ofbiz under debian 7.8. I tried to do this also with jdk8 and ant 1.9.4, but got errors.
Could you help me?
This is log.
root@debian:/opt/ofbiz/apache-ofbiz-13.07.01# ./ant
Buildfile: /opt/ofbiz/apache-ofbiz-13.07.01/build.xml

dir-init:

copy-derby-props:

ofbiz-init:

build:
     [echo] [build] ========== Start Building (Compile) ==========

build-framework:

init:

prepare:

classes:

jar:
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/framework/start/build/lib/ofbiz.jar
     [copy] Copying 1 file to /opt/ofbiz/apache-ofbiz-13.07.01

init:

prepare:

gen-src:

classes:

jar:
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/framework/base/build/lib/ofbiz-base.jar
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/framework/base/build/lib/ofbiz-base-test.jar

init:

prepare:

gen-src:

classes:

jar:
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/framework/sql/build/lib/ofbiz-sql.jar
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/framework/sql/build/lib/ofbiz-sql-test.jar

init:

prepare:

classes:

jar:
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/framework/entity/build/lib/ofbiz-entity.jar
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/framework/entity/build/lib/ofbiz-entity-test.jar

init:

prepare:

classes:

jar:
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/framework/geronimo/build/lib/ofbiz-geronimo.jar

init:

prepare:

classes:

jar:
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/framework/catalina/build/lib/ofbiz-catalina.jar

init:

prepare:

classes:

jar:
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/framework/security/build/lib/ofbiz-security.jar

init:

prepare:

classes:

stubs:

main-jar:
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/framework/service/build/lib/ofbiz-service.jar
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/framework/service/build/lib/ofbiz-service-test.jar

rmi-jar:
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/framework/service/build/rmi/ofbiz-service-rmi.jar

jar:

init:

prepare:

classes:

jar:
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/framework/entityext/build/lib/ofbiz-entityext.jar

init:

prepare:

classes:

jar:
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/framework/bi/build/lib/ofbiz-bi.jar

init:

prepare:

classes:

jar:
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/framework/minilang/build/lib/ofbiz-minilang.jar
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/framework/minilang/build/lib/ofbiz-minilang-test.jar

init:

prepare:

classes:

jar:
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/framework/webapp/build/lib/ofbiz-webapp.jar
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/framework/webapp/build/lib/ofbiz-webapp-test.jar

init:

prepare:

classes:

jar:
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/framework/widget/build/lib/ofbiz-widget.jar

init:

prepare:

classes:

jar:
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/framework/common/build/lib/ofbiz-common.jar

init:

prepare:

classes:

jar:
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/framework/datafile/build/lib/ofbiz-datafile.jar

init:

prepare:

classes:

jar:
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/framework/testtools/build/lib/ofbiz-testtools.jar

init:

prepare:

classes:

jar:
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/framework/webtools/build/lib/ofbiz-webtools.jar

build-applications:

init:

prepare:

classes:
  [javac16] Compiling 1 source file to /opt/ofbiz/apache-ofbiz-13.07.01/applications/content/build/classes
  [javac16] warning: [options] bootstrap class path not set in conjunction with -source 1.6

jar:
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/applications/content/build/lib/ofbiz-content.jar
      [jar] Building jar: /opt/ofbiz/apache-ofbiz-13.07.01/applications/content/build/lib/ofbiz-content-test.jar

init:

prepare:

classes:
  [javac16] Compiling 11 source files to /opt/ofbiz/apache-ofbiz-13.07.01/applications/party/build/classes
  [javac16] warning: [options] bootstrap class path not set in conjunction with -source 1.6
  [javac16] /opt/ofbiz/apache-ofbiz-13.07.01/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java:139: error: cannot access DataResourceWorkerInterface
  [javac16]                     ByteBuffer dataContent = DataResourceWorker.getContentAsByteBuffer(delegator, dataResource.getString("dataResourceId"), null, null, locale, null);
  [javac16]                                                                ^
  [javac16]   class file for org.ofbiz.widget.DataResourceWorkerInterface not found
  [javac16] /opt/ofbiz/apache-ofbiz-13.07.01/applications/party/src/org/ofbiz/party/content/PartyContentWrapper.java:229: error: cannot access ContentWorkerInterface
  [javac16]             ContentWorker.renderContentAsText(dispatcher, delegator, partyContent.getString("contentId"), outWriter, inContext, locale, mimeTypeId, null, null, false);
  [javac16]                          ^
  [javac16]   class file for org.ofbiz.widget.ContentWorkerInterface not found
  [javac16] 2 errors

BUILD FAILED
/opt/ofbiz/apache-ofbiz-13.07.01/build.xml:229: The following error occurred while executing this line:
/opt/ofbiz/apache-ofbiz-13.07.01/build.xml:248: The following error occurred while executing this line:
/opt/ofbiz/apache-ofbiz-13.07.01/macros.xml:39: The following error occurred while executing this line:
/opt/ofbiz/apache-ofbiz-13.07.01/common.xml:91: Compile failed; see the compiler error output for details.

Total time: 6 seconds



--
Best regards, Alexey Gorbachev.
Reply | Threaded
Open this post in threaded view
|

Re: Errors compiling ofbiz 13.07 under debian 7

Mauricio Tavares
On Mon, Apr 13, 2015 at 3:58 PM, Alexey Gorbachev <[hidden email]> wrote:
>  Hi, everybody!
> I downloaded release ofbiz 13.07 as zip archieve from apache site, then compiled it under windows 7 (and also with win server 2008 R2) with jdk8 and ant 1.9.4. Everything is OK.
> Then I need to compile ofbiz under debian 7.8. I tried to do this also with jdk8 and ant 1.9.4, but got errors.
> Could you help me?
> This is log.
> root@debian:/opt/ofbiz/apache-ofbiz-13.07.01# ./ant
> Buildfile: /opt/ofbiz/apache-ofbiz-13.07.01/build.xml
>
[...]
> classes:
>   [javac16] Compiling 11 source files to /opt/ofbiz/apache-ofbiz-13.07.01/applications/party/build/classes
>   [javac16] warning: [options] bootstrap class path not set in conjunction with -source 1.6
>   [javac16] /opt/ofbiz/apache-ofbiz-13.07.01/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java:139: error: cannot access DataResourceWorkerInterface

      Smells like a path (or lack thereof) issue. Are you sure you
told it which java compiler to use? How and where did you install
jdk8?

I might be completely wrong but that is where I would start at.
Reply | Threaded
Open this post in threaded view
|

Re: Errors compiling ofbiz 13.07 under debian 7

Chris Clark
i personally use openjdk-1.7.0  which would be your jdk7

it just seems to be less buggy with ofbiz

On Mon, Apr 13, 2015 at 3:07 PM, Mauricio Tavares <[hidden email]>
wrote:

> On Mon, Apr 13, 2015 at 3:58 PM, Alexey Gorbachev <[hidden email]> wrote:
> >  Hi, everybody!
> > I downloaded release ofbiz 13.07 as zip archieve from apache site, then
> compiled it under windows 7 (and also with win server 2008 R2) with jdk8
> and ant 1.9.4. Everything is OK.
> > Then I need to compile ofbiz under debian 7.8. I tried to do this also
> with jdk8 and ant 1.9.4, but got errors.
> > Could you help me?
> > This is log.
> > root@debian:/opt/ofbiz/apache-ofbiz-13.07.01# ./ant
> > Buildfile: /opt/ofbiz/apache-ofbiz-13.07.01/build.xml
> >
> [...]
> > classes:
> >   [javac16] Compiling 11 source files to
> /opt/ofbiz/apache-ofbiz-13.07.01/applications/party/build/classes
> >   [javac16] warning: [options] bootstrap class path not set in
> conjunction with -source 1.6
> >   [javac16]
> /opt/ofbiz/apache-ofbiz-13.07.01/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java:139:
> error: cannot access DataResourceWorkerInterface
>
>       Smells like a path (or lack thereof) issue. Are you sure you
> told it which java compiler to use? How and where did you install
> jdk8?
>
> I might be completely wrong but that is where I would start at.
>
Reply | Threaded
Open this post in threaded view
|

Re: Errors compiling ofbiz 13.07 under debian 7

Tirtha Rahaman
In reply to this post by x1
Add widget jars in the classpath of order, party, product & workeffort. Add
the below line

<fileset dir="../../framework/widget/build/lib" includes="*.jar"/>

in build.xml of order, party, product & workeffort under applications
directory.

On Tue, Apr 14, 2015 at 1:28 AM, Alexey Gorbachev <[hidden email]> wrote:

>  Hi, everybody!
> I downloaded release ofbiz 13.07 as zip archieve from apache site, then
> compiled it under windows 7 (and also with win server 2008 R2) with jdk8
> and ant 1.9.4. Everything is OK.
> Then I need to compile ofbiz under debian 7.8. I tried to do this also
> with jdk8 and ant 1.9.4, but got errors.
> Could you help me?
> This is log.
> root@debian:/opt/ofbiz/apache-ofbiz-13.07.01# ./ant
> Buildfile: /opt/ofbiz/apache-ofbiz-13.07.01/build.xml
>
> dir-init:
>
> copy-derby-props:
>
> ofbiz-init:
>
> build:
>      [echo] [build] ========== Start Building (Compile) ==========
>
> build-framework:
>
> init:
>
> prepare:
>
> classes:
>
> jar:
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/framework/start/build/lib/ofbiz.jar
>      [copy] Copying 1 file to /opt/ofbiz/apache-ofbiz-13.07.01
>
> init:
>
> prepare:
>
> gen-src:
>
> classes:
>
> jar:
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/framework/base/build/lib/ofbiz-base.jar
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/framework/base/build/lib/ofbiz-base-test.jar
>
> init:
>
> prepare:
>
> gen-src:
>
> classes:
>
> jar:
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/framework/sql/build/lib/ofbiz-sql.jar
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/framework/sql/build/lib/ofbiz-sql-test.jar
>
> init:
>
> prepare:
>
> classes:
>
> jar:
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/framework/entity/build/lib/ofbiz-entity.jar
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/framework/entity/build/lib/ofbiz-entity-test.jar
>
> init:
>
> prepare:
>
> classes:
>
> jar:
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/framework/geronimo/build/lib/ofbiz-geronimo.jar
>
> init:
>
> prepare:
>
> classes:
>
> jar:
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/framework/catalina/build/lib/ofbiz-catalina.jar
>
> init:
>
> prepare:
>
> classes:
>
> jar:
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/framework/security/build/lib/ofbiz-security.jar
>
> init:
>
> prepare:
>
> classes:
>
> stubs:
>
> main-jar:
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/framework/service/build/lib/ofbiz-service.jar
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/framework/service/build/lib/ofbiz-service-test.jar
>
> rmi-jar:
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/framework/service/build/rmi/ofbiz-service-rmi.jar
>
> jar:
>
> init:
>
> prepare:
>
> classes:
>
> jar:
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/framework/entityext/build/lib/ofbiz-entityext.jar
>
> init:
>
> prepare:
>
> classes:
>
> jar:
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/framework/bi/build/lib/ofbiz-bi.jar
>
> init:
>
> prepare:
>
> classes:
>
> jar:
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/framework/minilang/build/lib/ofbiz-minilang.jar
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/framework/minilang/build/lib/ofbiz-minilang-test.jar
>
> init:
>
> prepare:
>
> classes:
>
> jar:
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/framework/webapp/build/lib/ofbiz-webapp.jar
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/framework/webapp/build/lib/ofbiz-webapp-test.jar
>
> init:
>
> prepare:
>
> classes:
>
> jar:
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/framework/widget/build/lib/ofbiz-widget.jar
>
> init:
>
> prepare:
>
> classes:
>
> jar:
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/framework/common/build/lib/ofbiz-common.jar
>
> init:
>
> prepare:
>
> classes:
>
> jar:
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/framework/datafile/build/lib/ofbiz-datafile.jar
>
> init:
>
> prepare:
>
> classes:
>
> jar:
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/framework/testtools/build/lib/ofbiz-testtools.jar
>
> init:
>
> prepare:
>
> classes:
>
> jar:
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/framework/webtools/build/lib/ofbiz-webtools.jar
>
> build-applications:
>
> init:
>
> prepare:
>
> classes:
>   [javac16] Compiling 1 source file to
> /opt/ofbiz/apache-ofbiz-13.07.01/applications/content/build/classes
>   [javac16] warning: [options] bootstrap class path not set in conjunction
> with -source 1.6
>
> jar:
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/applications/content/build/lib/ofbiz-content.jar
>       [jar] Building jar:
> /opt/ofbiz/apache-ofbiz-13.07.01/applications/content/build/lib/ofbiz-content-test.jar
>
> init:
>
> prepare:
>
> classes:
>   [javac16] Compiling 11 source files to
> /opt/ofbiz/apache-ofbiz-13.07.01/applications/party/build/classes
>   [javac16] warning: [options] bootstrap class path not set in conjunction
> with -source 1.6
>   [javac16]
> /opt/ofbiz/apache-ofbiz-13.07.01/applications/party/src/org/ofbiz/party/communication/CommunicationEventServices.java:139:
> error: cannot access DataResourceWorkerInterface
>   [javac16]                     ByteBuffer dataContent =
> DataResourceWorker.getContentAsByteBuffer(delegator,
> dataResource.getString("dataResourceId"), null, null, locale, null);
>   [javac16]
> ^
>   [javac16]   class file for org.ofbiz.widget.DataResourceWorkerInterface
> not found
>   [javac16]
> /opt/ofbiz/apache-ofbiz-13.07.01/applications/party/src/org/ofbiz/party/content/PartyContentWrapper.java:229:
> error: cannot access ContentWorkerInterface
>   [javac16]             ContentWorker.renderContentAsText(dispatcher,
> delegator, partyContent.getString("contentId"), outWriter, inContext,
> locale, mimeTypeId, null, null, false);
>   [javac16]                          ^
>   [javac16]   class file for org.ofbiz.widget.ContentWorkerInterface not
> found
>   [javac16] 2 errors
>
> BUILD FAILED
> /opt/ofbiz/apache-ofbiz-13.07.01/build.xml:229: The following error
> occurred while executing this line:
> /opt/ofbiz/apache-ofbiz-13.07.01/build.xml:248: The following error
> occurred while executing this line:
> /opt/ofbiz/apache-ofbiz-13.07.01/macros.xml:39: The following error
> occurred while executing this line:
> /opt/ofbiz/apache-ofbiz-13.07.01/common.xml:91: Compile failed; see the
> compiler error output for details.
>
> Total time: 6 seconds
>
>
>
> --
> Best regards, Alexey Gorbachev.
>



--
Warm regards,
Tirtha Rahaman