It seems that it doesn't work under ruby 1.8.6.
Now the build is failing on:
buildr _1.3.5_ clean package test=no
(...)
Packaging ode-axis2-1.3.4-SNAPSHOT.jar
Compiling ode:axis2-war:test into
c:/ODE/sources/branches/1.x/axis2-war/target/test/classes
Note:
c:/ODE/sources/branches/1.x/axis2-war/src/test/java/org/apache/ode/axis2/management/InstanceManagementTest.java
uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Skipping tests for ode:axis2-war
63 ode-unit-test-embedded INFO [main] openjpa.jdbc.JDBC - Using dictionary
class "org.apache.openjpa.jdbc.sql.DerbyDictionary".
78 ode-unit-test-embedded INFO [main] openjpa.Tool - No targets were given.
Running on all classes listed in your configuration, or all persistent classes
in the classpath if no classes are configured. Use -help to display tool usage
information.
313 ode-unit-test-embedded INFO [main] openjpa.Tool - Mapping tool running
on type "class org.apache.ode.store.jpa.ProcessConfPropertyDaoImpl" with action
"buildSchema".
391 ode-unit-test-embedded INFO [main] openjpa.Tool - Mapping tool running
on type "class org.apache.ode.dao.jpa.XmlDataDAOImpl" with action "buildSchema".
579 ode-unit-test-embedded INFO [main] openjpa.Tool - Mapping tool running
on type "class org.apache.ode.dao.jpa.CorrelatorDAOImpl" with action
"buildSchema".
579 ode-unit-test-embedded INFO [main] openjpa.Tool - Mapping tool running
on type "class org.apache.ode.dao.jpa.ProcessInstanceDAOImpl" with action
"buildSchema".
579 ode-unit-test-embedded INFO [main] openjpa.Tool - Mapping tool running
on type "class org.apache.ode.dao.jpa.ScopeDAOImpl" with action "buildSchema".
579 ode-unit-test-embedded INFO [main] openjpa.Tool - Mapping tool running
on type "class org.apache.ode.dao.jpa.PartnerLinkDAOImpl" with action
"buildSchema".
(...)
328 ode-unit-test-embedded INFO [main] openjpa.Tool - Mapping tool running
on type "class org.apache.ode.dao.jpa.EventDAOImpl" with action "buildSchema".
344 ode-unit-test-embedded INFO [main] openjpa.Tool - Mapping tool running
on type "class org.apache.ode.store.jpa.VersionTrackerDAOImpl" with action
"buildSchema".
344 ode-unit-test-embedded INFO [main] openjpa.Tool - Mapping tool running
on type "class org.apache.ode.dao.jpa.MessageExchangeDAOImpl" with action
"buildSchema".
344 ode-unit-test-embedded INFO [main] openjpa.Tool - Mapping tool running
on type "class org.apache.ode.dao.jpa.MessageRouteDAOImpl" with action
"buildSchema".
344 ode-unit-test-embedded INFO [main] openjpa.Tool - Mapping tool running
on type "class org.apache.ode.dao.jpa.FaultDAOImpl" with action "buildSchema".
344 ode-unit-test-embedded INFO [main] openjpa.Tool - Recording mapping and
schema changes.
[sql] Executing resource:
c:\Projects\SWSOrchestration\ODE\sources\branches\1.x\dao-jpa-ojpa-derby\target\derby.sql
Buildr aborted!
←[31mBad file descriptor←[0m
(See full trace by running task with --trace)
PS. I can see no differences on http://ode.apache.org/building-ode.html.
Still out of date information.
--
Regards
Mateusz Nowakowski
-----Original Message-----
From: Rafal Rusin [mailto:[email protected]]
Sent: Wednesday, November 18, 2009 11:51 AM
To: [email protected]
Cc: [email protected]
Subject: Re: buildr 1.x fail
OK, I updated building info on site http://ode.apache.org/building-ode.html
2009/11/18 Andreas Fritzler <[email protected]>:
> Ok, I tried to compile it now on my mac and it worked just fine. I'm
> using buildr 1.3.5, JDK 6, ruby 1.8.7 (2008-08-11 patchlevel 72). So
> it's either a Windows 7 issue or I haven't configured my Java/Ruby
> environment properly on my Windows machine. :P
>
> Cheers
>
>
> On Tue, Nov 17, 2009 at 2:29 PM, Rafal Rusin <[email protected]> wrote:
>> Well, I'm not using windows, so it's hard to say.
>> But I'm using jruby 1.4.0 (ruby 1.8.7 patchlevel 174) with JDK 1.6 and
>> it works.
>> It's a pure java way (no need for generating native java extensions),
>> so you can try it.
>>
>> I just needed to add a following patch in order to not have
>> uninitalized variable error:
>>
>> diff --git a/tasks/nativedb.rake b/tasks/nativedb.rake
>> index f9193a8..6fff31a 100644
>> --- a/tasks/nativedb.rake
>> +++ b/tasks/nativedb.rake
>> @@ -16,6 +16,7 @@
>> #
>>
>> SETTINGS = "#{File.expand_path('.buildr', ENV['HOME'])}/settings.rb"
>> +REQUIRES=""
>>
>> module NativeDB
>> #
>>
>>
>> Let me know if it works.
>>
>>
>> 2009/11/17 Andreas Fritzler <[email protected]>:
>>> I have the same issue here.
>>>
>>> Any ideas?
>>>
>>>
>>> 2009/11/17 Nowakowski, Mateusz <[email protected]>:
>>>> Any reply on that?
>>>>
>>>> --
>>>> Regards
>>>> Mateusz Nowakowski
>>>>
>>>> -----Original Message-----
>>>> From: Nowakowski, Mateusz [mailto:[email protected]]
>>>> Sent: Friday, November 13, 2009 11:36 AM
>>>> To: [email protected]
>>>> Subject: buildr 1.x fail
>>>>
>>>> I've updated build to 1.3.5 and I have troubles with building ODE from
>>>> 1.x branch:
>>>>
>>>>
>>>>
>>>> C:\ODE\sources\branches\1.x>ruby -v
>>>> ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
>>>> C:\ODE\sources\branches\1.x>gem -v
>>>> 1.3.4
>>>> C:\ODE\sources\branches\1.x>gem list buildr
>>>>
>>>> *** LOCAL GEMS ***
>>>> buildr (1.3.5)
>>>> C:\ODE\sources\branches\1.x>echo %JAVA_HOME%
>>>> C:\Programs\Java\jdk1.5.0_07
>>>>
>>>> C:\ODE\sources\branches\1.x>java -version
>>>> java version "1.5.0_07"
>>>> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
>>>> Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode)
>>>>
>>>> C:\ODE\sources\branches\1.x>buildr _1.3.5_ package test=no
>>>> ←[34m./tasks/derby.rake:22: Deprecated: See documentation for new way to
>>>> access Java code.←[0m
>>>> ←[34m./tasks/derby.rake:22: Deprecated: Append to Java.classpath
>>>> instead.←[0m
>>>> (in C:/ODE/sources/branches/1.x, development)
>>>> ←[34mC:/ODE/sources/branches/1.x/rakefile:492:in `__instance_exec0':
>>>> Deprecated: We changed the way package_as methods are implemented. See
>>>> the package method documentation for more details.←[0m
>>>> Buildr aborted!
>>>> ←[31mprivate method `distro' called for
>>>> project("apache-ode"):Buildr::Project←[0m
>>>> ←[31mC:/ODE/sources/branches/1.x/rakefile:618:in `__instance_exec0'←[0m
>>>> (See full trace by running task with --trace)
>>>>
>>>> With --trace the last fragment is:
>>>> (...)
>>>>
>>>> ** Invoke ode:jca-server
>>>> ** Invoke ode:jbi
>>>> ** Invoke ode:jacob-ap
>>>> ** Invoke ode:scheduler-simple
>>>> ** Invoke ode:bpel-api-jca
>>>> ** Invoke ode:axis2
>>>> ** Invoke ode:jca-ra
>>>> ** Invoke ode:bpel-ql
>>>> ** Invoke ode:bpel-obj
>>>> ** Invoke ode:tools
>>>> ** Invoke ode:bpel-runtime
>>>> ** Invoke apache-ode:distro (first_time)
>>>> ** Execute apache-ode:distro
>>>> Defining task apache-ode:distro:shell:bsh
>>>> Defining task apache-ode:distro:shell:jirb
>>>> Defining task apache-ode:distro:shell:clj
>>>> Buildr aborted!
>>>> ←[31mprivate method `distro' called for
>>>> project("apache-ode"):Buildr::Project←[0m
>>>> C:/ODE/sources/branches/1.x/rakefile:618:in `__instance_exec0'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/util.rb:183:in
>>>> `send'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/util.rb:183:in
>>>> `instance_exec'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/project.rb:225:in
>>>> `define'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
>>>> `call'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
>>>> `execute'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
>>>> `each'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
>>>> `execute'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/project.rb:625:in
>>>> `execute'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/application.rb:146:in
>>>> `switch_to_namespace'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/project.rb:624:in
>>>> `execute'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/application.rb:630:in
>>>> `invoke_with_call_chain'
>>>> C:/Programs/Ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/application.rb:616:in
>>>> `invoke_with_call_chain'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/application.rb:611:in
>>>> `invoke'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/project.rb:230:in
>>>> `define'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
>>>> `call'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
>>>> `execute'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
>>>> `each'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
>>>> `execute'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/project.rb:625:in
>>>> `execute'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/application.rb:146:in
>>>> `switch_to_namespace'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/project.rb:624:in
>>>> `execute'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/application.rb:630:in
>>>> `invoke_with_call_chain'
>>>> C:/Programs/Ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/application.rb:616:in
>>>> `invoke_with_call_chain'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/application.rb:611:in
>>>> `invoke'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/util.rb:204:in
>>>> `__send__'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/util.rb:204:in
>>>> `to_proc'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/project.rb:281:in
>>>> `each'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/project.rb:281:in
>>>> `projects'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/project.rb:863:in
>>>> `projects'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/application.rb:400:in
>>>> `raw_load_buildfile'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/application.rb:218:in
>>>> `load_buildfile'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/application.rb:496:in
>>>> `standard_exception_handling'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/application.rb:213:in
>>>> `load_buildfile'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/application.rb:137:in
>>>> `run'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/application.rb:496:in
>>>> `standard_exception_handling'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/lib/buildr/core/application.rb:135:in
>>>> `run'
>>>> C:/Programs/Ruby/lib/ruby/gems/1.8/gems/buildr-1.3.5-x86-mswin32/bin/buildr:19
>>>> C:/Programs/Ruby/bin/buildr:19:in `load'
>>>> C:/Programs/Ruby/bin/buildr:19
>>>>
>>>> Apart from that Apache ODE site still says that 1.2.10 should be used to
>>>> build 1.x branch.
>>>>
>>>> --
>>>> Regards
>>>> Mateusz Nowakowski
>>>>
>>>
>>
>>
>>
>> --
>> Rafał Rusin
>> http://rrusin.blogspot.com
>> http://www.touk.pl
>> http://top.touk.pl
>>
>
Regards,
--
Rafał Rusin
http://rrusin.blogspot.com
http://www.touk.pl
http://top.touk.pl