Hi Sathwik,

Thanks for your help. Following your instructions, I was able to compile ode 
1.3.5. The only thing I had to do more was changing axis-2 dependency from 
version 1.3 to 1.6.2. I will copy your response from this thread to stack 
overflow and accept it as answer.


Again, thank you very much for your help.


Regards

Adeel

________________________________
From: Sathwik B P <sathwik...@gmail.com>
Sent: Friday, August 4, 2017 10:14:31 AM
To: user@ode.apache.org
Subject: Re: Compiling the apache ODE 1.4.5 from the sources

Hi Adeel,

You are sitting on a 7yrs old release. Why don't you look towards 1.3.7,
released recently.

Older releases are not compilable on Java 8. Next coming release 1.3.8 will
be compilable on Java 8.

xdoclet:xjavadoc-1.1-j5 can be found in this repo. Add this line to
repositories.rb
repositories.remote << "http://people.apache.org/~vanto/m2/";

The distribution archives will be generated under
<ode_source>/distro/target/

ode-1.3.5 compiles for me on
Ubuntu 17.04, java version 1.7.0_80, jruby 1.7.13, buildr 1.4.19

Make sure no multiple versions of Ruby or Jruby are installed on the system
path.

I prefer extracting the archives to a local directory and use full path to
the executables like this,
apps/apache-ode-sources-1.3.5$ ~/apps/jruby-1.7.13/bin/jruby -S buildr
clean package test=no

regards,
sathwik

On Fri, Aug 4, 2017 at 7:00 AM, Muhammad Adeel Zahid <16030...@lums.edu.pk>
wrote:

> Hello,
>
>
> Latest update. I have been able to find repository for the package
> xdoclet:xjavadoc-1.1-j5. Now when I execute the command
>
> buildr package test=no
>
> I get the following error
>
> NameError : undefined local variable or method `it' for
> #<JBITask:0xc184a81>
>
>
> Please note, I am using java 1.6 oracle jdk
>
>
> Regards
>
> Adeel
>
> ________________________________
> From: Muhammad Adeel Zahid <16030...@lums.edu.pk>
> Sent: Thursday, August 3, 2017 7:50:52 PM
> To: user@ode.apache.org
> Subject: Re: Compiling the apache ODE 1.4.5 from the sources
>
> Ok, some updates.
>
>
> xdoclet:xjavadoc 1.1-j5 was the required package that was not being found
> in different repositories. I have changed the version of said component to
> 1.1 both in RakeFile and pom.xml. Now, all the packages are downloaded
> without trouble but I get compilation errors like below
>
>
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/xdoclet/xjavadoc/1.1/xjavadoc-
> 1.1.pom
> xjavadoc-1.1.pom: 100%     1.9KB/1.9KB Time: 00:00:00
> 147 [main] INFO xdoclet.XDocletMain.start - Running <hibernate/>
> Error parsing File F:\apache-ode-sources-1.3.5\
> bpel-store\src\main\java\org\apache\ode\store\ConfStoreConnection.java:Encountered
> "<" at line 31, column 15.
> Was expecting one of:
>     <IDENTIFIER> ...
>     "[" ...
>     "." ...
>
> Error parsing File F:\apache-ode-sources-1.3.5\
> bpel-store\src\main\java\org\apache\ode\store\DeploymentUnitDAO.java:Encountered
> "<" at line 53, column 15.
> Was expecting one of:
>     <IDENTIFIER> ...
>     "[" ...
>     "." ...
>
> Error parsing File F:\apache-ode-sources-1.3.5\
> bpel-store\src\main\java\org\apache\ode\store\DeploymentUnitDir.java:Encountered
> "<" at line 78, column 20.
> Was expecting one of:
>     <IDENTIFIER> ...
>     "[" ...
>     "." ...
>     "(" ...
>
>
> There are much more errors but I have just pasted some of them to show the
> problem.
>
>
> Regards
>
> Adeel
>
>
> ________________________________
> From: Muhammad Adeel Zahid
> Sent: Thursday, August 3, 2017 6:44:16 PM
> To: user@ode.apache.org
> Subject: Re: Compiling the apache ODE 1.4.5 from the sources
>
>
> Hi Sathwik,
>
>
> Thanks for your reply. It was really helpful. I made some progress in
> compilation process after your help. I have some questions.
>
> Where is the war file created that I can deploy into eclipse?
>
> I used java 1.8 for compilation? is that a problem?
>
> I repeatedly see the message "name or service not known". What is this?
>
> I also get a message about buildr aborted because it was unable to
> download some packages. How do I get past this.
>
>
> Below is the complete output of the command "buildr package test=no"
>
>
> (in F:/apache-ode-sources-1.3.5, development)
> Building ode
> Skipping tests for ode:utils
> Skipping tests for ode:bpel-obj
> Skipping tests for ode:bpel-schemas
> Skipping tests for ode:bpel-api
> Skipping tests for ode:bpel-api-jca
> Downloading xalan:xalan:jar:2.7.1
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/xalan/xalan/2.7.1/xalan-2.7.1.
> jar
> xalan-2.7.1.jar: 100%     3.0MB/3.0MB Time: 00:00:04
> Downloading xalan:xalan:pom:2.7.1
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/xalan/xalan/2.7.1/xalan-2.7.1.
> pom
> xalan-2.7.1.pom: 100%     1.2KB/1.2KB Time: 00:00:00
> Compiling ode:bpel-compiler into F:/apache-ode-sources-1.3.5/
> bpel-compiler/target/classes
> Note: Some input files use or override a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> Downloading org.slf4j:slf4j-log4j12:jar:1.4.3
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/org/slf4j/slf4j-log4j12/1.4.3/
> slf4j-log4j12-1.4.3.jar
> slf4j-log4j12-1.4.3.jar: 100%     8.4KB/8.4KB Time: 00:00:00
> Downloading org.slf4j:slf4j-log4j12:pom:1.4.3
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/org/slf4j/slf4j-log4j12/1.4.3/
> slf4j-log4j12-1.4.3.pom
> slf4j-log4j12-1.4.3.pom: 100%     1.6KB/1.6KB Time: 00:00:00
> Skipping tests for ode:bpel-compiler
> Packaging ode-bpel-compiler-1.3.5-SNAPSHOT.jar
> Compiling ode:bpel-dao into F:/apache-ode-sources-1.3.5/
> bpel-dao/target/classes
> Skipping tests for ode:bpel-dao
> Packaging ode-bpel-dao-1.3.5-SNAPSHOT.jar
> Downloading commons-beanutils:commons-beanutils:jar:1.8.2
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/commons-beanutils/commons-
> beanutils/1.8.2/commons-beanutils-1.8.2.jar
> commons-beanutils-1.8.2.jar: 100%   226.5KB/226.5KB Time: 00:00:00
> Downloading commons-beanutils:commons-beanutils:pom:1.8.2
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/commons-beanutils/commons-
> beanutils/1.8.2/commons-beanutils-1.8.2.pom
> commons-beanutils-1.8.2.pom: 100%    11.3KB/11.3KB Time: 00:00:00
> Downloading org.apache.derby:derby:jar:10.5.3.0_1
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/org/apache/derby/derby/10.5.3.
> 0_1/derby-10.5.3.0_1.jar
> derby-10.5.3.0_1.jar: 100%     2.4MB/2.4MB Time: 00:00:05
> Downloading org.apache.derby:derby:pom:10.5.3.0_1
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/org/apache/derby/derby/10.5.3.
> 0_1/derby-10.5.3.0_1.pom
> derby-10.5.3.0_1.pom: 100%     2.6KB/2.6KB Time: 00:00:00
> Downloading org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/org/apache/geronimo/specs/
> geronimo-jta_1.1_spec/1.1/geronimo-jta_1.1_spec-1.1.jar
> geronimo-jta_1.1_spec-1.1.jar: 100%    15.3KB/15.3KB Time: 00:00:00
> Downloading org.apache.geronimo.specs:geronimo-jta_1.1_spec:pom:1.1
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/org/apache/geronimo/specs/
> geronimo-jta_1.1_spec/1.1/geronimo-jta_1.1_spec-1.1.pom
> geronimo-jta_1.1_spec-1.1.pom: 100%     1.5KB/1.5KB Time: 00:00:00
> Downloading org.apache.geronimo.components:geronimo-transaction:jar:2.0.1
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/org/apache/geronimo/
> components/geronimo-transaction/2.0.1/geronimo-transaction-2.0.1.jar
> geronimo-transaction-2.0.1.jar: 100%    49.8KB/49.8KB Time: 00:00:00
> Downloading org.apache.geronimo.components:geronimo-transaction:pom:2.0.1
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/org/apache/geronimo/
> components/geronimo-transaction/2.0.1/geronimo-transaction-2.0.1.pom
> geronimo-transaction-2.0.1.pom: 100%     2.1KB/2.1KB Time: 00:00:00
> Downloading org.apache.geronimo.components:geronimo-connector:jar:2.0.1
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/org/apache/geronimo/
> components/geronimo-connector/2.0.1/geronimo-connector-2.0.1.jar
> geronimo-connector-2.0.1.jar: 100%    98.0KB/98.0KB Time: 00:00:00
> Downloading org.apache.geronimo.components:geronimo-connector:pom:2.0.1
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/org/apache/geronimo/
> components/geronimo-connector/2.0.1/geronimo-connector-2.0.1.pom
> geronimo-connector-2.0.1.pom: 100%     1.8KB/1.8KB Time: 00:00:00
> Downloading tranql:tranql-connector:jar:1.1
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/tranql/tranql-connector/1.1/
> tranql-connector-1.1.jar
> tranql-connector-1.1.jar: 100%    52.7KB/52.7KB Time: 00:00:00
> Downloading tranql:tranql-connector:pom:1.1
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/tranql/tranql-connector/1.1/
> tranql-connector-1.1.pom
> tranql-connector-1.1.pom: 100%     3.7KB/3.7KB Time: 00:00:00
> Downloading commons-primitives:commons-primitives:jar:1.0
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/commons-primitives/commons-
> primitives/1.0/commons-primitives-1.0.jar
> commons-primitives-1.0.jar: 100%   254.1KB/254.1KB Time: 00:00:01
> Downloading commons-primitives:commons-primitives:pom:1.0
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/commons-primitives/commons-
> primitives/1.0/commons-primitives-1.0.pom
> commons-primitives-1.0.pom: 100%      168B/168B Time: 00:00:00
> Compiling ode:bpel-epr into F:/apache-ode-sources-1.3.5/
> bpel-epr/target/classes
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> Skipping tests for ode:bpel-epr
> Packaging ode-bpel-epr-1.3.5-SNAPSHOT.jar
> Downloading commons-logging:commons-logging:jar:1.0.3
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/commons-logging/commons-
> logging/1.0.3/commons-logging-1.0.3.jar
> commons-logging-1.0.3.jar: 100%    30.9KB/30.9KB Time: 00:00:00
> Downloading commons-logging:commons-logging:pom:1.0.3
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/commons-logging/commons-
> logging/1.0.3/commons-logging-1.0.3.pom
> commons-logging-1.0.3.pom: 100%      866B/866B Time: 00:00:00
> Downloading dom4j:dom4j:jar:1.6.1
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/dom4j/dom4j/1.6.1/dom4j-1.6.1.
> jar
> dom4j-1.6.1.jar: 100%   306.5KB/306.5KB Time: 00:00:01
> Downloading dom4j:dom4j:pom:1.6.1
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/dom4j/dom4j/1.6.1/dom4j-1.6.1.
> pom
> dom4j-1.6.1.pom: 100%     6.6KB/6.6KB Time: 00:00:00
> Downloading org.hibernate:hibernate:jar:3.1.2
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/org/hibernate/hibernate/3.1.2/
> hibernate-3.1.2.jar
> hibernate-3.1.2.jar: 100%     1.9MB/1.9MB Time: 00:00:06
> Downloading org.hibernate:hibernate:pom:3.1.2
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/org/hibernate/hibernate/3.1.2/
> hibernate-3.1.2.pom
> hibernate-3.1.2.pom: 100%     4.2KB/4.2KB Time: 00:00:00
> Downloading xdoclet:xdoclet:jar:1.2.3
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/xdoclet/xdoclet/1.2.3/xdoclet-
> 1.2.3.jar
> xdoclet-1.2.3.jar: 100%   145.4KB/145.4KB Time: 00:00:00
> Downloading xdoclet:xdoclet:pom:1.2.3
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/xdoclet/xdoclet/1.2.3/xdoclet-
> 1.2.3.pom
> xdoclet-1.2.3.pom: 100%      525B/525B Time: 00:00:00
> Downloading xdoclet:xdoclet-xdoclet-module:jar:1.2.3
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/xdoclet/xdoclet-xdoclet-
> module/1.2.3/xdoclet-xdoclet-module-1.2.3.jar
> xdoclet-xdoclet-module-1.2.3.jar: 100%    54.7KB/54.7KB Time: 00:00:00
> Downloading xdoclet:xdoclet-xdoclet-module:pom:1.2.3
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/xdoclet/xdoclet-xdoclet-
> module/1.2.3/xdoclet-xdoclet-module-1.2.3.pom
> xdoclet-xdoclet-module-1.2.3.pom: 100%      378B/378B Time: 00:00:00
> Downloading xdoclet:xdoclet-hibernate-module:jar:1.2.3
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/xdoclet/xdoclet-hibernate-
> module/1.2.3/xdoclet-hibernate-module-1.2.3.jar
> xdoclet-hibernate-module-1.2.3.jar: 100%    55.9KB/55.9KB Time: 00:00:00
> Downloading xdoclet:xdoclet-hibernate-module:pom:1.2.3
> initialize: name or service not known
> Downloading http://repo1.maven.org/maven2/xdoclet/xdoclet-hibernate-
> module/1.2.3/xdoclet-hibernate-module-1.2.3.pom
> xdoclet-hibernate-module-1.2.3.pom: 100%      532B/532B Time: 00:00:00
> Downloading xdoclet:xjavadoc:jar:1.1-j5
> initialize: name or service not known
> Buildr aborted!
> RuntimeError : Failed to download xdoclet:xjavadoc:jar:1.1-j5, tried the
> following repositories:
> http://www.intalio.org/public/maven2/
> http://people.apache.org/repo/m2-incubating-repository/
> http://repo1.maven.org/maven2/
> http://people.apache.org/repo/m2-snapshot-repository/
> http://download.java.net/maven/2/
> http://svn.apache.org/repos/asf/servicemix/m2-repo/
> http://www.aqute.biz/repo/
>
> (See full trace by running task with --trace)
>
> F:\apache-ode-sources-1.3.5>
>
>
> Regards
>
> Adeel
>
>
> ________________________________
> From: Sathwik B P <sathwik...@gmail.com>
> Sent: Thursday, August 3, 2017 10:40:49 AM
> To: user@ode.apache.org
> Subject: Re: Compiling the apache ODE 1.4.5 from the sources
>
> Hi Muhammad,
>
> Use jruby 1.7.13 and buildr 1.4.19
>
> Edit file <ode 1.3.5 source>/tasks/jbi.rake
> Find & Replace the initialize method with the content below
>
>   def initialize(*args)
>     super
>     prepare { path("lib").include((component.libs +
> bootstrap.libs).flatten.uniq) }
>
>     enhance do
>       case jbi_xml
>       when String
>         path("META-INF").include jbi_xml.path, :as=>"jbi.xml"
>       when nil, true
>         # Tempfiles gets deleted on garbage collection, so we're going to
> hold on to it
>         # through instance variable not closure variable.
>         @jbi_xml_tmp = Tempfile.new('MANIFEST.MF')
>         @jbi_xml_tmp.write descriptor
>         path("META-INF").include @jbi_xml_tmp.path, :as=>"jbi.xml"
>         @jbi_xml_tmp.close
>       when Proc, Method
>         @jbi_xml_tmp = Tempfile.new('MANIFEST.MF')
>         @jbi_xml_tmp.write jbi_xml.call.to_s
>         path("META-INF").include @jbi_xml_tmp.path, :as=>"jbi.xml"
>         @jbi_xml_tmp.close
>       end
>     end
>   end
>
>
> regards,
> sathwik
>
> On Wed, Aug 2, 2017 at 6:31 PM, Muhammad Adeel Zahid <16030...@lums.edu.pk
> >
> wrote:
>
> > Hi Community,
> >
> >
> > I have a need to build apache 1.3.5 from the sources so that we can make
> > changes and still be able to compile the modified source. I have read
> > compilation instructions at http://ode.apache.org/
> > developerguide/building-ode.html, but was not able to compile
> > successfully. I have put the details of what I tried on a stackoverflow
> > question that you can find here https://stackoverflow.com/
> > questions/45439748/building-apache-ode-from-the-source-
> > jruby-and-buildr?noredirect=1#comment77863641_45439748
> >
> >
> > I would appreciate any help towards building of this project.
> >
> >
> > Regards
> >
> > Adeel
> >
> >
> >
>

Reply via email to