You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Thilina Buddhika <th...@gmail.com> on 2009/03/13 21:44:27 UTC

Build Failure at Revision 753390

Hi Devs,

I am Thilina Buddhika, and I am interested in contributing for Apache Qpid.
As the first step, I started trying to build the source by following the
steps mentioned at the Qpid web site [1]. But the following error was
encountered and build process was failed.

compile:
    [echo] Targeting : 1.5
    [javac] Compiling 637 source files to
F:\QPID_others\QPID\build\common\classes
    [javac]
F:\QPID_others\QPID\common\src\main\java\org\apache\qpid\ConsoleOutput.java:54:
method does not override a method from its superclass
    [javac]     @Override
    [javac]      ^

It will be really helpful, this error can be fixed.

Thanks.
/ thilina

[1] - http://qpid.apache.org/qpid-java-build-how-to.html

Re: Build Failure at Revision 753390

Posted by Martin Ritchie <ri...@apache.org>.
2009/3/13 Thilina Buddhika <th...@gmail.com>:
> Hi Devs,
>
> I am Thilina Buddhika, and I am interested in contributing for Apache Qpid.
> As the first step, I started trying to build the source by following the
> steps mentioned at the Qpid web site [1]. But the following error was
> encountered and build process was failed.
>
> compile:
>    [echo] Targeting : 1.5
>    [javac] Compiling 637 source files to
> F:\QPID_others\QPID\build\common\classes
>    [javac]
> F:\QPID_others\QPID\common\src\main\java\org\apache\qpid\ConsoleOutput.java:54:
> method does not override a method from its superclass
>    [javac]     @Override
>    [javac]      ^
>
> It will be really helpful, this error can be fixed.
>
> Thanks.
> / thilina
>
> [1] - http://qpid.apache.org/qpid-java-build-how-to.html

Is this not just another case of @Override being used on an Interface
which Java 1.5 does not allow?

Thilina, did you change to 1.6 to get the compilation to work or did
compiling twice with 1.5 also work?

Regards

Martin



-- 
Martin Ritchie

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


Re: Build Failure at Revision 753390

Posted by Rajika Kumarasiri <ra...@wso2.com>.
On Sat, 2009-03-14 at 13:31 +0000, Aidan Skinner wrote:
hi Aidan,
> On Sat, Mar 14, 2009 at 10:18 AM, Thilina Buddhika <th...@gmail.com> wrote:
> 
> > Then I imported the broker module to the eclipse via the Ant build file and
> > attached the jars of the lib folder manually. Now there are some errors in
> > the org.apache.qpid.server.protocol.AMQPFastProtocolHandler class. It says
> > that it is hard to resolve the following classes.
> 
> You need to build it with ant first so that the code generator runs
> and then add build/<project>/src to your source path for common,
> client and broker.
> 
> > I am not sure whether I am doing the correct thing. How can I import this
> > into an IDE successfully ?
> 
> It's a bit more long-winded than it was when we had maven, but here's
> what I do in eclipse after i've done ant build:
Why maven build is removed? Any special reason ?

-Rajika


-- 
http://wso2.org
http://llvm.org
http://www.osdev.org


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


Re: Build Failure at Revision 753390

Posted by Thilina Buddhika <th...@gmail.com>.
Hi Aidan,

Thanks for the guidelines. I followed your steps and it worked for me.

Following is the set of steps I followed, in case someone needs it in the
future.

1. Run the ant build from the root directory of Java trunk.
2. Add <root>/build/broker, <root>/build/client, <root>/build/common as 3
Eclipse projects.
3. Add all the libraries in the <root>/build/lib directory as the libraries
for all three of projects.
4. Set the project dependencies.
    In Eclipse, Build Path --> projects
    Set "common" as a dependency for "broker" and "client"

It will be really helpful for the beginners, if these steps can be
documented and added to the project web site.

Thanks.

/ thilina


On Sat, Mar 14, 2009 at 7:01 PM, Aidan Skinner <ai...@gmail.com>wrote:

> On Sat, Mar 14, 2009 at 10:18 AM, Thilina Buddhika <th...@gmail.com>
> wrote:
>
> > Then I imported the broker module to the eclipse via the Ant build file
> and
> > attached the jars of the lib folder manually. Now there are some errors
> in
> > the org.apache.qpid.server.protocol.AMQPFastProtocolHandler class. It
> says
> > that it is hard to resolve the following classes.
>
> You need to build it with ant first so that the code generator runs
> and then add build/<project>/src to your source path for common,
> client and broker.
>
> > I am not sure whether I am doing the correct thing. How can I import this
> > into an IDE successfully ?
>
> It's a bit more long-winded than it was when we had maven, but here's
> what I do in eclipse after i've done ant build:
>
> new project from existing filesystem
> add the generated source
> add every library in lib/
> fix the project deps - broker and client depend on common etc. Eclipse
> normally guesses these right for me.
>
> I may be missing a step, I haven't done this in a while but I think
> that's everything.
>
> I'm hoping having meaningful poms will make this a bit simpler in the
> future.
>
> - Aidan
> --
> Apache Qpid - World Domination through Advanced Message Queueing
> http://qpid.apache.org
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:dev-subscribe@qpid.apache.org
>
>


-- 
E-Mail         : thilinamb@gmail.com
I blog here : http://thilinamb.com

Re: Build Failure at Revision 753390

Posted by Aidan Skinner <ai...@gmail.com>.
On Sat, Mar 14, 2009 at 10:18 AM, Thilina Buddhika <th...@gmail.com> wrote:

> Then I imported the broker module to the eclipse via the Ant build file and
> attached the jars of the lib folder manually. Now there are some errors in
> the org.apache.qpid.server.protocol.AMQPFastProtocolHandler class. It says
> that it is hard to resolve the following classes.

You need to build it with ant first so that the code generator runs
and then add build/<project>/src to your source path for common,
client and broker.

> I am not sure whether I am doing the correct thing. How can I import this
> into an IDE successfully ?

It's a bit more long-winded than it was when we had maven, but here's
what I do in eclipse after i've done ant build:

new project from existing filesystem
add the generated source
add every library in lib/
fix the project deps - broker and client depend on common etc. Eclipse
normally guesses these right for me.

I may be missing a step, I haven't done this in a while but I think
that's everything.

I'm hoping having meaningful poms will make this a bit simpler in the future.

- Aidan
-- 
Apache Qpid - World Domination through Advanced Message Queueing
http://qpid.apache.org

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


Re: Build Failure at Revision 753390

Posted by Thilina Buddhika <th...@gmail.com>.
Hi Robert,

Thanks for the advice and I was able to build it. Now I am struggling to
import this project to a Java IDE (IntelliJ IDEA or Eclipse). I tried to
follow the instructions given by Lahiru in his blogpost,[1] but Maven build
is failing since there is no pom.xml.

Then I imported the broker module to the eclipse via the Ant build file and
attached the jars of the lib folder manually. Now there are some errors in
the org.apache.qpid.server.protocol.AMQPFastProtocolHandler class. It says
that it is hard to resolve the following classes.

org.apache.mina.filter.WriteBufferLimitFilterBuilder;
org.apache.mina.filter.codec.QpidProtocolCodecFilter;
org.apache.qpid.AMQException;
org.apache.qpid.codec.AMQCodecFactory;
org.apache.qpid.framing.AMQDataBlock;
org.apache.qpid.framing.AMQProtocolHeaderException;
org.apache.qpid.framing.AMQShortString;
org.apache.qpid.framing.ConnectionCloseBody;
org.apache.qpid.framing.HeartbeatBody;
org.apache.qpid.framing.MethodRegistry;
org.apache.qpid.framing.ProtocolInitiation;
org.apache.qpid.framing.ProtocolVersion;
org.apache.qpid.ssl.SSLContextFactory;

I am not sure whether I am doing the correct thing. How can I import this
into an IDE successfully ?

Thanks.

/ thilina

[1] -
http://lahirumanaya.blogspot.com/2008/06/import-apache-qpid-in-to-intellij-idea.html




On Sat, Mar 14, 2009 at 3:50 AM, Robert Greig <ro...@gmail.com>wrote:

> 2009/3/13 Thilina Buddhika <th...@gmail.com>:
>
> > It will be really helpful, this error can be fixed.
>
> This is a bug in javac in JDK 1.5. I believe the compilation will
> complete successfully if you run the build again (i.e. the error is
> not reported the second time).
>
> I recommend you use JDK 1.6 which does not have this problem.
>
> RG
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:dev-subscribe@qpid.apache.org
>
>


-- 
E-Mail         : thilinamb@gmail.com
I blog here : http://thilinamb.com

Re: Build Failure at Revision 753390

Posted by Robert Greig <ro...@gmail.com>.
2009/3/13 Thilina Buddhika <th...@gmail.com>:

> It will be really helpful, this error can be fixed.

This is a bug in javac in JDK 1.5. I believe the compilation will
complete successfully if you run the build again (i.e. the error is
not reported the second time).

I recommend you use JDK 1.6 which does not have this problem.

RG

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org