You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by Gabriele Columbro <ga...@alfresco.com> on 2010/03/30 15:01:05 UTC

Annoying Eclipse issue on chemistry-soap-server

Hey guys,
even though my command line Maven build seems happy about our modules  
dependencies and builds fine, I got an annoying glitch in my Eclipse  
error panel,
for class chemistry/chemistry-soap-server/src/main/java/org/apache/ 
chemistry/soap/server/AuthHandler.java
mentioning at line 80  that "SOAPHeader cannot be resolved to a type"
and at line 82 that "The type javax.xml.soap.SOAPMessage cannot be  
resolved. It is indirectly referenced from required .class files"

I'm guessing this has something to do with my m2eclipse integration  
and the way it uses the emdedded maven (3.x I believe) to resolve  
transitive dependencies (like this WS related stuff),
as I repeat build works fine from the cmd line and in Hudson.

I was just wondering if any of you has this issue which keeps  
bothering me in the error pane (I hate red alerts in my code, and  
don't suggest me to use filters plz :) ) and if you found any  
workaround.

Thanks in advance for any suggestion,
ciao!

Gab





-- 

Gabriele Columbro
Field Consultant, EMEA Professional Services
Alfresco Software, Ltd. (http://www.alfresco.com)

M: +31 (0)627 565 103
P: +39 320 161 28 46
D: +44 (0)1628 876 654
Skype: gabrielecolumbro
Blog: http://www.mindthegab.com

Tweet this:  #Alfresco #SpringSource announce Spring Surf Extension  
for web app development http://bit.ly/alfsurf







Re: Annoying Eclipse issue on chemistry-soap-server

Posted by Florent Guillaume <fg...@nuxeo.com>.
On Wed, Mar 31, 2010 at 12:53 PM, Gabriele Columbro <co...@gmail.com> wrote:
> On Mar 31, 2010, at 11:06 AM, Klevenz, Stephan wrote:
>> I had quite a lot of trouble using m2eclipse and just skipped it. Since I'm using
>> mvn eclipse:eclipse
>> everything is fine with Eclipse integration of Maven. This is really simple.
>
> So the good thing why I use m2eclipse is to be able to manage multiple modules as a single project so that I can have full control over it (e.g. for bulk SVN changes) and for other dependency analysis tools.
> IIRC when you mvn eclipse:eclipse a multimodule project you end up with a .classpath for each of submodules and I want to avoid that.
> Are you able using mvn eclipse:eclipse to have a single project and pull up all submodules source folders and dependencies like m2eclipse does?

Yes as long as you start the mvn eclipse:eclipse from the toplevel
containing directory. Then all bundles referencing each other are seen
as workspace source dependencies, not M2_REPO ones. When needed I have
also a shell script that does sed surgery on the .classpath to turn
M2_REPO references to some projects to workspace source dependencies.


> Actually the issue is definitely related to Java5 / Java6 settings for my project as I noticed an old reference to JVM5 system library in the Eclipse project: unluckily though, when changing that to JVM 6 system library, while the original AtuhHandler problem disappear (still sorting out other local issue though).

Good that it's fixed for you.

Florent


-- 
Florent Guillaume, Director of R&D, Nuxeo
Open Source, Java EE based, Enterprise Content Management (ECM)
http://www.nuxeo.com   http://www.nuxeo.org   +33 1 40 33 79 87

Re: Annoying Eclipse issue on chemistry-soap-server

Posted by Gabriele Columbro <co...@gmail.com>.
Hey guys,
thanks for the answers, see my comments below:


On Mar 31, 2010, at 11:06 AM, Klevenz, Stephan wrote:

> Hi Gab,
>
> I had quite a lot of trouble using m2eclipse and just skipped it.  
> Since I'm using
>
> mvn eclipse:eclipse
>
> everything is fine with Eclipse integration of Maven. This is really  
> simple.

So the good thing why I use m2eclipse is to be able to manage multiple  
modules as a single project so that I can have full control over it  
(e.g. for bulk SVN changes) and for other dependency analysis tools.
IIRC when you mvn eclipse:eclipse a multimodule project you end up  
with a .classpath for each of submodules and I want to avoid that.
Are you able using mvn eclipse:eclipse to have a single project and  
pull up all submodules source folders and dependencies like m2eclipse  
does?

Actually the issue is definitely related to Java5 / Java6 settings for  
my project as I noticed an old reference to JVM5 system library in the  
Eclipse project: unluckily though, when changing that to JVM 6 system  
library, while the original AtuhHandler problem disappear (still  
sorting out other local issue though).


Thanks for the help,
ciao!

Gab



>
> Regards,
> Stephan
>
> -----Original Message-----
> From: Gabriele Columbro [mailto:gabriele.columbro@alfresco.com]
> Sent: Dienstag, 30. März 2010 15:01
> To: chemistry-dev@incubator.apache.org
> Subject: Annoying Eclipse issue on chemistry-soap-server
>
> Hey guys,
> even though my command line Maven build seems happy about our modules
> dependencies and builds fine, I got an annoying glitch in my Eclipse
> error panel,
> for class chemistry/chemistry-soap-server/src/main/java/org/apache/
> chemistry/soap/server/AuthHandler.java
> mentioning at line 80  that "SOAPHeader cannot be resolved to a type"
> and at line 82 that "The type javax.xml.soap.SOAPMessage cannot be
> resolved. It is indirectly referenced from required .class files"
>
> I'm guessing this has something to do with my m2eclipse integration
> and the way it uses the emdedded maven (3.x I believe) to resolve
> transitive dependencies (like this WS related stuff),
> as I repeat build works fine from the cmd line and in Hudson.
>
> I was just wondering if any of you has this issue which keeps
> bothering me in the error pane (I hate red alerts in my code, and
> don't suggest me to use filters plz :) ) and if you found any
> workaround.
>
> Thanks in advance for any suggestion,
> ciao!
>
> Gab
>
>
>
>
>
> -- 
>
> Gabriele Columbro
> Field Consultant, EMEA Professional Services
> Alfresco Software, Ltd. (http://www.alfresco.com)
>
> M: +31 (0)627 565 103
> P: +39 320 161 28 46
> D: +44 (0)1628 876 654
> Skype: gabrielecolumbro
> Blog: http://www.mindthegab.com
>
> Tweet this:  #Alfresco #SpringSource announce Spring Surf Extension
> for web app development http://bit.ly/alfsurf
>
>
>
>
>
>

-- 

Eng. Gabriele Columbro
Alfresco Software, Ltd.

M: +31 (0)627 565 103
P: +39 320 161 28 46
D: +44 (0)1628 876 654
Skype: gabrielecolumbro
Blog: http://www.mindthegab.com




RE: Annoying Eclipse issue on chemistry-soap-server

Posted by "Klevenz, Stephan" <st...@sap.com>.
Hi Gab,

I had quite a lot of trouble using m2eclipse and just skipped it. Since I'm using 

mvn eclipse:eclipse

everything is fine with Eclipse integration of Maven. This is really simple.

Regards,
Stephan

-----Original Message-----
From: Gabriele Columbro [mailto:gabriele.columbro@alfresco.com] 
Sent: Dienstag, 30. März 2010 15:01
To: chemistry-dev@incubator.apache.org
Subject: Annoying Eclipse issue on chemistry-soap-server

Hey guys,
even though my command line Maven build seems happy about our modules  
dependencies and builds fine, I got an annoying glitch in my Eclipse  
error panel,
for class chemistry/chemistry-soap-server/src/main/java/org/apache/ 
chemistry/soap/server/AuthHandler.java
mentioning at line 80  that "SOAPHeader cannot be resolved to a type"
and at line 82 that "The type javax.xml.soap.SOAPMessage cannot be  
resolved. It is indirectly referenced from required .class files"

I'm guessing this has something to do with my m2eclipse integration  
and the way it uses the emdedded maven (3.x I believe) to resolve  
transitive dependencies (like this WS related stuff),
as I repeat build works fine from the cmd line and in Hudson.

I was just wondering if any of you has this issue which keeps  
bothering me in the error pane (I hate red alerts in my code, and  
don't suggest me to use filters plz :) ) and if you found any  
workaround.

Thanks in advance for any suggestion,
ciao!

Gab





-- 

Gabriele Columbro
Field Consultant, EMEA Professional Services
Alfresco Software, Ltd. (http://www.alfresco.com)

M: +31 (0)627 565 103
P: +39 320 161 28 46
D: +44 (0)1628 876 654
Skype: gabrielecolumbro
Blog: http://www.mindthegab.com

Tweet this:  #Alfresco #SpringSource announce Spring Surf Extension  
for web app development http://bit.ly/alfsurf







Re: Annoying Eclipse issue on chemistry-soap-server

Posted by Dominique Pfister <do...@day.com>.
Hi Gabriele,

I once had this problem on a machine whose default Java VM was 1.5, as
opposed to 1.6. Do you know what Java version m2eclipse uses?

Kind regards
Dominique

On Tue, Mar 30, 2010 at 3:01 PM, Gabriele Columbro
<ga...@alfresco.com> wrote:
> Hey guys,
> even though my command line Maven build seems happy about our modules
> dependencies and builds fine, I got an annoying glitch in my Eclipse error
> panel,
> for class
> chemistry/chemistry-soap-server/src/main/java/org/apache/chemistry/soap/server/AuthHandler.java
> mentioning at line 80  that "SOAPHeader cannot be resolved to a type"
> and at line 82 that "The type javax.xml.soap.SOAPMessage cannot be resolved.
> It is indirectly referenced from required .class files"
>
> I'm guessing this has something to do with my m2eclipse integration and the
> way it uses the emdedded maven (3.x I believe) to resolve transitive
> dependencies (like this WS related stuff),
> as I repeat build works fine from the cmd line and in Hudson.
>
> I was just wondering if any of you has this issue which keeps bothering me
> in the error pane (I hate red alerts in my code, and don't suggest me to use
> filters plz :) ) and if you found any workaround.
>
> Thanks in advance for any suggestion,
> ciao!
>
> Gab
>
>
>
>
>
> --
>
> Gabriele Columbro
> Field Consultant, EMEA Professional Services
> Alfresco Software, Ltd. (http://www.alfresco.com)
>
> M: +31 (0)627 565 103
> P: +39 320 161 28 46
> D: +44 (0)1628 876 654
> Skype: gabrielecolumbro
> Blog: http://www.mindthegab.com
>
> Tweet this:  #Alfresco #SpringSource announce Spring Surf Extension for web
> app development http://bit.ly/alfsurf
>
>
>
>
>
>
>

Re: Annoying Eclipse issue on chemistry-soap-server

Posted by Florent Guillaume <fg...@nuxeo.com>.
Myself I don't use m2eclipse but rely on mvn eclipse:eclipse instead
to generate .project files.
This works well for me, the generated source folders are correctly set up.

Florent

2010/3/30 Gabriele Columbro <ga...@alfresco.com>:
> Hey guys,
> even though my command line Maven build seems happy about our modules dependencies and builds fine, I got an annoying glitch in my Eclipse error panel,
> for class chemistry/chemistry-soap-server/src/main/java/org/apache/chemistry/soap/server/AuthHandler.java
> mentioning at line 80  that "SOAPHeader cannot be resolved to a type"
> and at line 82 that "The type javax.xml.soap.SOAPMessage cannot be resolved. It is indirectly referenced from required .class files"
>
> I'm guessing this has something to do with my m2eclipse integration and the way it uses the emdedded maven (3.x I believe) to resolve transitive dependencies (like this WS related stuff),
> as I repeat build works fine from the cmd line and in Hudson.
>
> I was just wondering if any of you has this issue which keeps bothering me in the error pane (I hate red alerts in my code, and don't suggest me to use filters plz :) ) and if you found any workaround.
>
> Thanks in advance for any suggestion,
> ciao!
>
> Gab
>
>
>
>
>
> --
>
> Gabriele Columbro
> Field Consultant, EMEA Professional Services
> Alfresco Software, Ltd. (http://www.alfresco.com)
>
> M: +31 (0)627 565 103
> P: +39 320 161 28 46
> D: +44 (0)1628 876 654
> Skype: gabrielecolumbro
> Blog: http://www.mindthegab.com
>
> Tweet this:  #Alfresco #SpringSource announce Spring Surf Extension for web app development http://bit.ly/alfsurf
>
>
>
>
>
>
>



-- 
Florent Guillaume, Director of R&D, Nuxeo
Open Source, Java EE based, Enterprise Content Management (ECM)
http://www.nuxeo.com   http://www.nuxeo.org   +33 1 40 33 79 87