OFBIZ will not compile! 9.0.4 at revision 1049215

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

OFBIZ will not compile! 9.0.4 at revision 1049215

Tolu Williams
Fails with the following error.

classes:
  [javac15] Compiling 4 source files to /opt/ofbiz/ofbiz.9.04/framework/security/build/classes
  [javac15] /opt/ofbiz/ofbiz.9.04/framework/security/src/org/ofbiz/security/OFBizSecurity.java:50: invalid inferred types for V; inferred type does not conform to declared bound(s)
  [javac15] inferred: java.util.Map<java.lang.String,java.lang.Object>
  [javac15] bound(s): java.util.Map<java.lang.String,java.lang.String>
  [javac15]     public static final Map<String, Map<String, String>> simpleRoleEntity = UtilMisc.toMap(
  [javac15]                                                                                           ^
  [javac15] 1 error

BUILD FAILED
/opt/ofbiz/ofbiz.9.04/build.xml:148: The following error occurred while executing this line:
/opt/ofbiz/ofbiz.9.04/framework/build.xml:141: The following error occurred while executing this line:
/opt/ofbiz/ofbiz.9.04/macros.xml:27: The following error occurred while executing this line:
/opt/ofbiz/ofbiz.9.04/framework/security/build.xml:46: Compile failed; see the compiler error output for details.


Please HELP i run my production from the stable trunk and update one a month. I have never had a stable trunk update not compile.
Reply | Threaded
Open this post in threaded view
|

Re: OFBIZ will not compile! 9.0.4 at revision 1049215

BJ Freeman
did a clean check out of 9.04.
ant run-install
compiled and installed.
did you do a
ant clean
ant build


=========================
BJ Freeman
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


Tolu Williams sent the following on 12/14/2010 11:22 AM:

>
> Fails with the following error.
>
> classes:
>    [javac15] Compiling 4 source files to
> /opt/ofbiz/ofbiz.9.04/framework/security/build/classes
>    [javac15]
> /opt/ofbiz/ofbiz.9.04/framework/security/src/org/ofbiz/security/OFBizSecurity.java:50:
> invalid inferred types for V; inferred type does not conform to declared
> bound(s)
>    [javac15] inferred: java.util.Map<java.lang.String,java.lang.Object>
>    [javac15] bound(s): java.util.Map<java.lang.String,java.lang.String>
>    [javac15]     public static final Map<String, Map<String, String>>
> simpleRoleEntity = UtilMisc.toMap(
>    [javac15]
> ^
>    [javac15] 1 error
>
> BUILD FAILED
> /opt/ofbiz/ofbiz.9.04/build.xml:148: The following error occurred while
> executing this line:
> /opt/ofbiz/ofbiz.9.04/framework/build.xml:141: The following error occurred
> while executing this line:
> /opt/ofbiz/ofbiz.9.04/macros.xml:27: The following error occurred while
> executing this line:
> /opt/ofbiz/ofbiz.9.04/framework/security/build.xml:46: Compile failed; see
> the compiler error output for details.
>
>
> Please HELP i run my production from the stable trunk and update one a
> month. I have never had a stable trunk update not compile.
>

Reply | Threaded
Open this post in threaded view
|

Re: OFBIZ will not compile! 9.0.4 at revision 1049215

Tolu Williams
Just tried again usually use this process
ant clean-all
ant run-install-seed


Just tried
ant build and got the same error.


  [javac15] Compiling 4 source files to /opt/ofbiz/ofbiz.9.04/framework/security/build/classes
  [javac15] /opt/ofbiz/ofbiz.9.04/framework/security/src/org/ofbiz/security/OFBizSecurity.java:50: invalid inferred types for V; inferred type does not conform to declared bound(s)
  [javac15] inferred: java.util.Map<java.lang.String,java.lang.Object>
  [javac15] bound(s): java.util.Map<java.lang.String,java.lang.String>
  [javac15]     public static final Map<String, Map<String, String>> simpleRoleEntity = UtilMisc.toMap(
  [javac15]                                                                                           ^

I am using jdk 1.6 (and have been using it with no issue for over a year now.)

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: OFBIZ will not compile! 9.0.4 at revision 1049215

BJ Freeman

classes:
   [javac15] Compiling 4 source files to C:\projects\java\ofbiz
9.4_current\framework\security\build\classes

_src-available:

jar:
       [jar] Building jar: C:\projects\java\ofbiz
9.4_current\framework\security\build\lib\ofbiz-security.jar

you might check the file again svn I don't see what it is talking about "V"
this also could be lack of memory for compile.

=========================
BJ Freeman
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


Tolu Williams sent the following on 12/14/2010 12:12 PM:

>
> Just tried again usually use this process
> ant clean-all
> ant run-install-seed
>
>
> Just tried
> ant build and got the same error.
>
>
>    [javac15] Compiling 4 source files to
> /opt/ofbiz/ofbiz.9.04/framework/security/build/classes
>    [javac15]
> /opt/ofbiz/ofbiz.9.04/framework/security/src/org/ofbiz/security/OFBizSecurity.java:50:
> invalid inferred types for V; inferred type does not conform to declared
> bound(s)
>    [javac15] inferred: java.util.Map<java.lang.String,java.lang.Object>
>    [javac15] bound(s): java.util.Map<java.lang.String,java.lang.String>
>    [javac15]     public static final Map<String, Map<String, String>>
> simpleRoleEntity = UtilMisc.toMap(
>    [javac15]
> ^
>
> I am using jdk 1.6 (and have been using it with no issue for over a year
> now.)
>
> Thanks!

Reply | Threaded
Open this post in threaded view
|

Re: OFBIZ will not compile! 9.0.4 at revision 1049215

Tolu Williams
When you say check the file in svn what do you mean?

also i have 1.75gb of RAM on this vps 1GB is free as of now.

Please help. Production is down for going on 2 hrs.

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: OFBIZ will not compile! 9.0.4 at revision 1049215

BJ Freeman
rule for future don't upgrade production without doing a test.
I meant check
framework/security/src/org/ofbiz/security/OFBizSecurity.java
to see if the same as in the SVN.
it has not been changed since 11/11/09

=========================
BJ Freeman
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


Tolu Williams sent the following on 12/14/2010 12:53 PM:
>
> When you say check the file in svn what do you mean?
>
> also i have 1.75gb of RAM on this vps 1GB is free as of now.
>
> Please help. Production is down for going on 2 hrs.
>
> Thanks!

Reply | Threaded
Open this post in threaded view
|

Re: OFBIZ will not compile! 9.0.4 at revision 1049215

BJ Freeman
your other option is to compile on a local machine then create a zip
file of ofbiz*.jar the upload them to you production.


=========================
BJ Freeman
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


BJ Freeman sent the following on 12/14/2010 12:57 PM:

> rule for future don't upgrade production without doing a test.
> I meant check
> framework/security/src/org/ofbiz/security/OFBizSecurity.java
> to see if the same as in the SVN.
> it has not been changed since 11/11/09
>
> =========================
> BJ Freeman
> Strategic Power Office with Supplier Automation
> <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
> Specialtymarket.com <http://www.specialtymarket.com/>
> Systems Integrator-- Glad to Assist
>
> Chat Y! messenger: bjfr33man
>
>
> Tolu Williams sent the following on 12/14/2010 12:53 PM:
>>
>> When you say check the file in svn what do you mean?
>>
>> also i have 1.75gb of RAM on this vps 1GB is free as of now.
>>
>> Please help. Production is down for going on 2 hrs.
>>
>> Thanks!
>
>

Reply | Threaded
Open this post in threaded view
|

Re: OFBIZ will not compile! 9.0.4 at revision 1049215

Tolu Williams
SO there is no way to tell from the stack what exactly is causing the failuure? how can i revert back (can i see a history of svn checkout to see which revision i can roll back to?)

This is pretty rediculous though. here is the entire stack again.


### START

[ofbiz@cultureshockmedia ofbiz.9.04]$ ant run-install-seed
Buildfile: build.xml

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

ofbiz-init:

dir-init:
    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/runtime/logs/test-results
    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/runtime/data/derby
    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/runtime/data/hsql

copy-derby-props:

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

prepare:
    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/start/build/classes
    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/start/build/lib

classes:
  [javac15] Compiling 4 source files to /opt/ofbiz/ofbiz.9.04/framework/start/build/classes

jar:
      [jar] Building jar: /opt/ofbiz/ofbiz.9.04/framework/start/build/lib/ofbiz.jar
     [copy] Copying 1 file to /opt/ofbiz/ofbiz.9.04
Overriding previous definition of reference to local.class.path

prepare:
    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/base/build/classes
    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/base/build/lib

classes:
  [javac15] Compiling 102 source files to /opt/ofbiz/ofbiz.9.04/framework/base/build/classes
  [javac15] Note: Some input files use unchecked or unsafe operations.
  [javac15] Note: Recompile with -Xlint:unchecked for details.

jar:
      [jar] Building jar: /opt/ofbiz/ofbiz.9.04/framework/base/build/lib/ofbiz-base.jar
Overriding previous definition of reference to local.class.path
Overriding previous definition of reference to src.exc.set

prepare:
    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/entity/build/classes
    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/entity/build/lib

classes:
  [javac15] Compiling 124 source files to /opt/ofbiz/ofbiz.9.04/framework/entity/build/classes
  [javac15] Note: Some input files use unchecked or unsafe operations.
  [javac15] Note: Recompile with -Xlint:unchecked for details.

_src-available:
Overriding previous definition of reference to _src-extra-set

jar:
      [jar] Building jar: /opt/ofbiz/ofbiz.9.04/framework/entity/build/lib/ofbiz-entity.jar
Overriding previous definition of reference to local.class.path

prepare:
    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/geronimo/build/classes
    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/geronimo/build/lib

classes:
  [javac15] Compiling 2 source files to /opt/ofbiz/ofbiz.9.04/framework/geronimo/build/classes

_src-available:
Overriding previous definition of reference to _src-extra-set

jar:
      [jar] Building jar: /opt/ofbiz/ofbiz.9.04/framework/geronimo/build/lib/ofbiz-geronimo.jar
Overriding previous definition of reference to local.class.path

prepare:
    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/catalina/build/classes
    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/catalina/build/lib

classes:
  [javac15] Compiling 5 source files to /opt/ofbiz/ofbiz.9.04/framework/catalina/build/classes

_src-available:
Overriding previous definition of reference to _src-extra-set

jar:
      [jar] Building jar: /opt/ofbiz/ofbiz.9.04/framework/catalina/build/lib/ofbiz-catalina.jar
Overriding previous definition of reference to local.class.path

prepare:
    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/jetty/build/classes
    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/jetty/build/lib

classes:
  [javac15] Compiling 1 source file to /opt/ofbiz/ofbiz.9.04/framework/jetty/build/classes

_src-available:
Overriding previous definition of reference to _src-extra-set

jar:
      [jar] Building jar: /opt/ofbiz/ofbiz.9.04/framework/jetty/build/lib/ofbiz-jetty.jar
Overriding previous definition of reference to local.class.path

prepare:
    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/security/build/classes
    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/security/build/lib

classes:
  [javac15] Compiling 4 source files to /opt/ofbiz/ofbiz.9.04/framework/security/build/classes
  [javac15] /opt/ofbiz/ofbiz.9.04/framework/security/src/org/ofbiz/security/OFBizSecurity.java:50: invalid inferred types for V; i
nferred type does not conform to declared bound(s)
  [javac15] inferred: java.util.Map<java.lang.String,java.lang.Object>
  [javac15] bound(s): java.util.Map<java.lang.String,java.lang.String>
  [javac15]     public static final Map<String, Map<String, String>> simpleRoleEntity = UtilMisc.toMap(
  [javac15]                                                                                           ^
  [javac15] 1 error

BUILD FAILED
/opt/ofbiz/ofbiz.9.04/build.xml:148: The following error occurred while executing this line:
/opt/ofbiz/ofbiz.9.04/framework/build.xml:141: The following error occurred while executing this line:
/opt/ofbiz/ofbiz.9.04/macros.xml:27: The following error occurred while executing this line:
/opt/ofbiz/ofbiz.9.04/framework/security/build.xml:46: Compile failed; see the compiler error output for details.


Reply | Threaded
Open this post in threaded view
|

Re: OFBIZ will not compile! 9.0.4 at revision 1049215

Scott Gray-2
You mentioned that you are using java 1.6 but that doesn't appear to be the case since the javac15 compiler is being used.  I'm not sure if that is the cause but it is worth noting.

You could also try a quick fix by explicitly declaring the type rather than allowing it to be implied, change this:
Map<String, Map<String, String>> simpleRoleEntity = UtilMisc.toMap(
to this:
Map<String, Map<String, String>> simpleRoleEntity = UtilMisc.<String, Map<String, String>>toMap(

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 15/12/2010, at 10:34 AM, Tolu Williams wrote:

>
> SO there is no way to tell from the stack what exactly is causing the
> failuure? how can i revert back (can i see a history of svn checkout to see
> which revision i can roll back to?)
>
> This is pretty rediculous though. here is the entire stack again.
>
>
> ### START
>
> [ofbiz@cultureshockmedia ofbiz.9.04]$ ant run-install-seed
> Buildfile: build.xml
>
> build:
>     [echo] [build] ========== Start Building (Compile) ==========
>
> ofbiz-init:
>
> dir-init:
>    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/runtime/logs/test-results
>    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/runtime/data/derby
>    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/runtime/data/hsql
>
> copy-derby-props:
>
> build:
>     [echo] [build] ========== Start Building Framework (Compile) ==========
>
> prepare:
>    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/start/build/classes
>    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/start/build/lib
>
> classes:
>  [javac15] Compiling 4 source files to
> /opt/ofbiz/ofbiz.9.04/framework/start/build/classes
>
> jar:
>      [jar] Building jar:
> /opt/ofbiz/ofbiz.9.04/framework/start/build/lib/ofbiz.jar
>     [copy] Copying 1 file to /opt/ofbiz/ofbiz.9.04
> Overriding previous definition of reference to local.class.path
>
> prepare:
>    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/base/build/classes
>    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/base/build/lib
>
> classes:
>  [javac15] Compiling 102 source files to
> /opt/ofbiz/ofbiz.9.04/framework/base/build/classes
>  [javac15] Note: Some input files use unchecked or unsafe operations.
>  [javac15] Note: Recompile with -Xlint:unchecked for details.
>
> jar:
>      [jar] Building jar:
> /opt/ofbiz/ofbiz.9.04/framework/base/build/lib/ofbiz-base.jar
> Overriding previous definition of reference to local.class.path
> Overriding previous definition of reference to src.exc.set
>
> prepare:
>    [mkdir] Created dir:
> /opt/ofbiz/ofbiz.9.04/framework/entity/build/classes
>    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/entity/build/lib
>
> classes:
>  [javac15] Compiling 124 source files to
> /opt/ofbiz/ofbiz.9.04/framework/entity/build/classes
>  [javac15] Note: Some input files use unchecked or unsafe operations.
>  [javac15] Note: Recompile with -Xlint:unchecked for details.
>
> _src-available:
> Overriding previous definition of reference to _src-extra-set
>
> jar:
>      [jar] Building jar:
> /opt/ofbiz/ofbiz.9.04/framework/entity/build/lib/ofbiz-entity.jar
> Overriding previous definition of reference to local.class.path
>
> prepare:
>    [mkdir] Created dir:
> /opt/ofbiz/ofbiz.9.04/framework/geronimo/build/classes
>    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/geronimo/build/lib
>
> classes:
>  [javac15] Compiling 2 source files to
> /opt/ofbiz/ofbiz.9.04/framework/geronimo/build/classes
>
> _src-available:
> Overriding previous definition of reference to _src-extra-set
>
> jar:
>      [jar] Building jar:
> /opt/ofbiz/ofbiz.9.04/framework/geronimo/build/lib/ofbiz-geronimo.jar
> Overriding previous definition of reference to local.class.path
>
> prepare:
>    [mkdir] Created dir:
> /opt/ofbiz/ofbiz.9.04/framework/catalina/build/classes
>    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/catalina/build/lib
>
> classes:
>  [javac15] Compiling 5 source files to
> /opt/ofbiz/ofbiz.9.04/framework/catalina/build/classes
>
> _src-available:
> Overriding previous definition of reference to _src-extra-set
>
> jar:
>      [jar] Building jar:
> /opt/ofbiz/ofbiz.9.04/framework/catalina/build/lib/ofbiz-catalina.jar
> Overriding previous definition of reference to local.class.path
>
> prepare:
>    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/jetty/build/classes
>    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/jetty/build/lib
>
> classes:
>  [javac15] Compiling 1 source file to
> /opt/ofbiz/ofbiz.9.04/framework/jetty/build/classes
>
> _src-available:
> Overriding previous definition of reference to _src-extra-set
>
> jar:
>      [jar] Building jar:
> /opt/ofbiz/ofbiz.9.04/framework/jetty/build/lib/ofbiz-jetty.jar
> Overriding previous definition of reference to local.class.path
>
> prepare:
>    [mkdir] Created dir:
> /opt/ofbiz/ofbiz.9.04/framework/security/build/classes
>    [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/security/build/lib
>
> classes:
>  [javac15] Compiling 4 source files to
> /opt/ofbiz/ofbiz.9.04/framework/security/build/classes
>  [javac15]
> /opt/ofbiz/ofbiz.9.04/framework/security/src/org/ofbiz/security/OFBizSecurity.java:50:
> invalid inferred types for V; i
> nferred type does not conform to declared bound(s)
>  [javac15] inferred: java.util.Map<java.lang.String,java.lang.Object>
>  [javac15] bound(s): java.util.Map<java.lang.String,java.lang.String>
>  [javac15]     public static final Map<String, Map<String, String>>
> simpleRoleEntity = UtilMisc.toMap(
>  [javac15]                                                                                          
> ^
>  [javac15] 1 error
>
> BUILD FAILED
> /opt/ofbiz/ofbiz.9.04/build.xml:148: The following error occurred while
> executing this line:
> /opt/ofbiz/ofbiz.9.04/framework/build.xml:141: The following error occurred
> while executing this line:
> /opt/ofbiz/ofbiz.9.04/macros.xml:27: The following error occurred while
> executing this line:
> /opt/ofbiz/ofbiz.9.04/framework/security/build.xml:46: Compile failed; see
> the compiler error output for details.
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/OFBIZ-will-not-compile-9-0-4-at-revision-1049215-tp3087778p3088025.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.


smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: OFBIZ will not compile! 9.0.4 at revision 1049215

Adrian Crum
In reply to this post by Tolu Williams
The file that generates the error has remained relatively unchanged
since the 9.04 branch was created. The compiler error is most likely a
compiler version issue or some configuration error on your local machine.

-Adrian

On 12/14/2010 1:34 PM, Tolu Williams wrote:

>
> SO there is no way to tell from the stack what exactly is causing the
> failuure? how can i revert back (can i see a history of svn checkout to see
> which revision i can roll back to?)
>
> This is pretty rediculous though. here is the entire stack again.
>
>
> ### START
>
> [ofbiz@cultureshockmedia ofbiz.9.04]$ ant run-install-seed
> Buildfile: build.xml
>
> build:
>       [echo] [build] ========== Start Building (Compile) ==========
>
> ofbiz-init:
>
> dir-init:
>      [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/runtime/logs/test-results
>      [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/runtime/data/derby
>      [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/runtime/data/hsql
>
> copy-derby-props:
>
> build:
>       [echo] [build] ========== Start Building Framework (Compile) ==========
>
> prepare:
>      [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/start/build/classes
>      [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/start/build/lib
>
> classes:
>    [javac15] Compiling 4 source files to
> /opt/ofbiz/ofbiz.9.04/framework/start/build/classes
>
> jar:
>        [jar] Building jar:
> /opt/ofbiz/ofbiz.9.04/framework/start/build/lib/ofbiz.jar
>       [copy] Copying 1 file to /opt/ofbiz/ofbiz.9.04
> Overriding previous definition of reference to local.class.path
>
> prepare:
>      [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/base/build/classes
>      [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/base/build/lib
>
> classes:
>    [javac15] Compiling 102 source files to
> /opt/ofbiz/ofbiz.9.04/framework/base/build/classes
>    [javac15] Note: Some input files use unchecked or unsafe operations.
>    [javac15] Note: Recompile with -Xlint:unchecked for details.
>
> jar:
>        [jar] Building jar:
> /opt/ofbiz/ofbiz.9.04/framework/base/build/lib/ofbiz-base.jar
> Overriding previous definition of reference to local.class.path
> Overriding previous definition of reference to src.exc.set
>
> prepare:
>      [mkdir] Created dir:
> /opt/ofbiz/ofbiz.9.04/framework/entity/build/classes
>      [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/entity/build/lib
>
> classes:
>    [javac15] Compiling 124 source files to
> /opt/ofbiz/ofbiz.9.04/framework/entity/build/classes
>    [javac15] Note: Some input files use unchecked or unsafe operations.
>    [javac15] Note: Recompile with -Xlint:unchecked for details.
>
> _src-available:
> Overriding previous definition of reference to _src-extra-set
>
> jar:
>        [jar] Building jar:
> /opt/ofbiz/ofbiz.9.04/framework/entity/build/lib/ofbiz-entity.jar
> Overriding previous definition of reference to local.class.path
>
> prepare:
>      [mkdir] Created dir:
> /opt/ofbiz/ofbiz.9.04/framework/geronimo/build/classes
>      [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/geronimo/build/lib
>
> classes:
>    [javac15] Compiling 2 source files to
> /opt/ofbiz/ofbiz.9.04/framework/geronimo/build/classes
>
> _src-available:
> Overriding previous definition of reference to _src-extra-set
>
> jar:
>        [jar] Building jar:
> /opt/ofbiz/ofbiz.9.04/framework/geronimo/build/lib/ofbiz-geronimo.jar
> Overriding previous definition of reference to local.class.path
>
> prepare:
>      [mkdir] Created dir:
> /opt/ofbiz/ofbiz.9.04/framework/catalina/build/classes
>      [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/catalina/build/lib
>
> classes:
>    [javac15] Compiling 5 source files to
> /opt/ofbiz/ofbiz.9.04/framework/catalina/build/classes
>
> _src-available:
> Overriding previous definition of reference to _src-extra-set
>
> jar:
>        [jar] Building jar:
> /opt/ofbiz/ofbiz.9.04/framework/catalina/build/lib/ofbiz-catalina.jar
> Overriding previous definition of reference to local.class.path
>
> prepare:
>      [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/jetty/build/classes
>      [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/jetty/build/lib
>
> classes:
>    [javac15] Compiling 1 source file to
> /opt/ofbiz/ofbiz.9.04/framework/jetty/build/classes
>
> _src-available:
> Overriding previous definition of reference to _src-extra-set
>
> jar:
>        [jar] Building jar:
> /opt/ofbiz/ofbiz.9.04/framework/jetty/build/lib/ofbiz-jetty.jar
> Overriding previous definition of reference to local.class.path
>
> prepare:
>      [mkdir] Created dir:
> /opt/ofbiz/ofbiz.9.04/framework/security/build/classes
>      [mkdir] Created dir: /opt/ofbiz/ofbiz.9.04/framework/security/build/lib
>
> classes:
>    [javac15] Compiling 4 source files to
> /opt/ofbiz/ofbiz.9.04/framework/security/build/classes
>    [javac15]
> /opt/ofbiz/ofbiz.9.04/framework/security/src/org/ofbiz/security/OFBizSecurity.java:50:
> invalid inferred types for V; i
> nferred type does not conform to declared bound(s)
>    [javac15] inferred: java.util.Map<java.lang.String,java.lang.Object>
>    [javac15] bound(s): java.util.Map<java.lang.String,java.lang.String>
>    [javac15]     public static final Map<String, Map<String, String>>
> simpleRoleEntity = UtilMisc.toMap(
>    [javac15]
> ^
>    [javac15] 1 error
>
> BUILD FAILED
> /opt/ofbiz/ofbiz.9.04/build.xml:148: The following error occurred while
> executing this line:
> /opt/ofbiz/ofbiz.9.04/framework/build.xml:141: The following error occurred
> while executing this line:
> /opt/ofbiz/ofbiz.9.04/macros.xml:27: The following error occurred while
> executing this line:
> /opt/ofbiz/ofbiz.9.04/framework/security/build.xml:46: Compile failed; see
> the compiler error output for details.
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: OFBIZ will not compile! 9.0.4 at revision 1049215

Tolu Williams
Thanks guys for your insight.

Here is what java -version returns

[ofbiz@cultureshockmedia ~]$ java -version
java version "1.6.0_17"
OpenJDK Runtime Environment (IcedTea6 1.7.5) (rhel-1.16.b17.el5-i386)
OpenJDK Client VM (build 14.0-b16, mixed mode)
[ofbiz@cultureshockmedia ~]$


the ofbiz user owns the ofbiz software and everything has been working swimmingly up till now.. definitely the fact that others are able to build the exact revision with no issues points to something wrong with my environment, my concern is why is it using javac15 when i have java 1.6 in the path. where else could it be picking 15 from? i dont have any other java installed on my system i don't think. How can i fix it? change my java version? is there any higher level of debug i can put on the build process to figure it out?

I will try changing the file but it would much rather work with unmodified builds, i have made very scant modifications to stock 9.0.4, i am definitely not doing anything untoward and the fact that i've updates so many times in the recent and distant past with the same three commands has me perplexed.

Actually i just recently did a yum update on my system .. hmmm let me look a bit further.

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: OFBIZ will not compile! 9.0.4 at revision 1049215

BJ Freeman
yeah when I switched from 1.5 to 1.6 the open jdk was the problem
I had to load the sun release of the JDK.

=========================
BJ Freeman
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


Tolu Williams sent the following on 12/14/2010 2:03 PM:

>
> Thanks guys for your insight.
>
> Here is what java -version returns
>
> [ofbiz@cultureshockmedia ~]$ java -version
> java version "1.6.0_17"
> OpenJDK Runtime Environment (IcedTea6 1.7.5) (rhel-1.16.b17.el5-i386)
> OpenJDK Client VM (build 14.0-b16, mixed mode)
> [ofbiz@cultureshockmedia ~]$
>
>
> the ofbiz user owns the ofbiz software and everything has been working
> swimmingly up till now.. definitely the fact that others are able to build
> the exact revision with no issues points to something wrong with my
> environment, my concern is why is it using javac15 when i have java 1.6 in
> the path. where else could it be picking 15 from? i dont have any other java
> installed on my system i don't think. How can i fix it? change my java
> version? is there any higher level of debug i can put on the build process
> to figure it out?
>
> I will try changing the file but it would much rather work with unmodified
> builds, i have made very scant modifications to stock 9.0.4, i am definitely
> not doing anything untoward and the fact that i've updates so many times in
> the recent and distant past with the same three commands has me perplexed.
>
> Actually i just recently did a yum update on my system .. hmmm let me look a
> bit further.
>
> Thanks!

Reply | Threaded
Open this post in threaded view
|

Re: OFBIZ will not compile! 9.0.4 at revision 1049215

Scott Gray-2
In reply to this post by Tolu Williams
This is your first mention of using openjdk, I would suggest using Oracle's JDK.

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 15/12/2010, at 11:03 AM, Tolu Williams wrote:

>
> Thanks guys for your insight.
>
> Here is what java -version returns
>
> [ofbiz@cultureshockmedia ~]$ java -version
> java version "1.6.0_17"
> OpenJDK Runtime Environment (IcedTea6 1.7.5) (rhel-1.16.b17.el5-i386)
> OpenJDK Client VM (build 14.0-b16, mixed mode)
> [ofbiz@cultureshockmedia ~]$
>
>
> the ofbiz user owns the ofbiz software and everything has been working
> swimmingly up till now.. definitely the fact that others are able to build
> the exact revision with no issues points to something wrong with my
> environment, my concern is why is it using javac15 when i have java 1.6 in
> the path. where else could it be picking 15 from? i dont have any other java
> installed on my system i don't think. How can i fix it? change my java
> version? is there any higher level of debug i can put on the build process
> to figure it out?
>
> I will try changing the file but it would much rather work with unmodified
> builds, i have made very scant modifications to stock 9.0.4, i am definitely
> not doing anything untoward and the fact that i've updates so many times in
> the recent and distant past with the same three commands has me perplexed.
>
> Actually i just recently did a yum update on my system .. hmmm let me look a
> bit further.
>
> Thanks!
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/OFBIZ-will-not-compile-9-0-4-at-revision-1049215-tp3087778p3088074.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.


smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: OFBIZ will not compile! 9.0.4 at revision 1049215

BJ Freeman
In reply to this post by BJ Freeman
oopps scott is correct Oracle release

=========================
BJ Freeman
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


BJ Freeman sent the following on 12/14/2010 2:11 PM:

> yeah when I switched from 1.5 to 1.6 the open jdk was the problem
> I had to load the sun release of the JDK.
>
> =========================
> BJ Freeman
> Strategic Power Office with Supplier Automation
> <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
> Specialtymarket.com <http://www.specialtymarket.com/>
> Systems Integrator-- Glad to Assist
>
> Chat Y! messenger: bjfr33man
>
>
> Tolu Williams sent the following on 12/14/2010 2:03 PM:
>>
>> Thanks guys for your insight.
>>
>> Here is what java -version returns
>>
>> [ofbiz@cultureshockmedia ~]$ java -version
>> java version "1.6.0_17"
>> OpenJDK Runtime Environment (IcedTea6 1.7.5) (rhel-1.16.b17.el5-i386)
>> OpenJDK Client VM (build 14.0-b16, mixed mode)
>> [ofbiz@cultureshockmedia ~]$
>>
>>
>> the ofbiz user owns the ofbiz software and everything has been working
>> swimmingly up till now.. definitely the fact that others are able to
>> build
>> the exact revision with no issues points to something wrong with my
>> environment, my concern is why is it using javac15 when i have java
>> 1.6 in
>> the path. where else could it be picking 15 from? i dont have any
>> other java
>> installed on my system i don't think. How can i fix it? change my java
>> version? is there any higher level of debug i can put on the build
>> process
>> to figure it out?
>>
>> I will try changing the file but it would much rather work with
>> unmodified
>> builds, i have made very scant modifications to stock 9.0.4, i am
>> definitely
>> not doing anything untoward and the fact that i've updates so many
>> times in
>> the recent and distant past with the same three commands has me
>> perplexed.
>>
>> Actually i just recently did a yum update on my system .. hmmm let me
>> look a
>> bit further.
>>
>> Thanks!
>
>

Reply | Threaded
Open this post in threaded view
|

Re: OFBIZ will not compile! 9.0.4 at revision 1049215

Tolu Williams
All,

I upgraded JDK to Sun/Oracle 1.6_23 latest. i fixed my symbolic links and now ofbiz user returns the following


[ofbiz@cultureshockmedia ofbiz.9.04]$ java -version
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)
[ofbiz@cultureshockmedia ofbiz.9.04]$


i still get the same error though.

where do i specify which java ant is using? something is weird and i really need help/ running out of ideas.

Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: OFBIZ will not compile! 9.0.4 at revision 1049215

Erwan de FERRIERES
Le 15/12/2010 21:48, Tolu Williams a écrit :

>
> All,
>
> I upgraded JDK to Sun/Oracle 1.6_23 latest. i fixed my symbolic links and
> now ofbiz user returns the following
>
>
> [ofbiz@cultureshockmedia ofbiz.9.04]$ java -version
> java version "1.6.0_23"
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
> Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)
> [ofbiz@cultureshockmedia ofbiz.9.04]$
>
>
> i still get the same error though.
>
> where do i specify which java ant is using? something is weird and i really
> need help/ running out of ideas.
>
> Thanks!

ant is using the default java, which is defined in your session. So it
must be the oracle one. You may also use the ant included in OFBiz by
writing ./ant instead of just ant.

--
Erwan de FERRIERES
www.nereide.biz
Reply | Threaded
Open this post in threaded view
|

Re: OFBIZ will not compile! 9.0.4 at revision 1049215

Tolu Williams
Erwan,

Thanks for your insight that seemed to work, build was successful.

You saved my @$$, Merci beacoup.