Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Export / Import -> to workspace.

Maybe a WTP deployment hiccup. Have you tried server > Clean and publish again? Restarting eclipse?

2011/5/28 N WEINRONK <nweinronk@xxxxxxxxxxxxxx>

Just going though this again I need to add one other thing.
 
Under \workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\project\WEB-INF\lib

There is a lib directory (my mistake) but it only has one jar in it - mysql-connector-java.5.1.14.jar
 
When in my 'Maven dependencies' there are 65 jars of which mysql-connector-java.5.1.14 is one.
 
Nigel
 
 
 
--- On Sat, 28/5/11, N WEINRONK <nweinronk@xxxxxxxxxxxxxx> wrote:

From: N WEINRONK <nweinronk@xxxxxxxxxxxxxx>
Subject: Re: [m2e-users] Export / Import -> to workspace.
To: "Maven Integration for Eclipse users mailing list" <m2e-users@xxxxxxxxxxx>
Date: Saturday, 28 May, 2011, 19:13


 
I have looked under project / properties / 'deployment assembly' but I see source 'maven dependencies' with deploy path 'web-inf'/lib'.
 
So still confused as what to do.
 
Nigel

--- On Sat, 28/5/11, N WEINRONK <nweinronk@xxxxxxxxxxxxxx> wrote:

From: N WEINRONK <nweinronk@xxxxxxxxxxxxxx>
Subject: Re: [m2e-users] Export / Import -> to workspace.
To: "Maven Integration for Eclipse users mailing list" <m2e-users@xxxxxxxxxxx>
Date: Saturday, 28 May, 2011, 18:02

Thanks I am using WTP so I have looked there and I can see a directory for my project and ROOT.
 
Under my project I can see (the standard stuff) including WEB-INF.
 
but interestingly no 'WEB-INF/lib' - which is where the jars are if I look back to the equivalent place in my working Galileo setup.
 
So this looks like the problem - but how to fix it ?
 
Thanks again,
 
Nigel

--- On Sat, 28/5/11, Fred Bricon <fbricon@xxxxxxxxx> wrote:

From: Fred Bricon <fbricon@xxxxxxxxx>
Subject: Re: [m2e-users] Export / Import -> to workspace.
To: "Maven Integration for Eclipse users mailing list" <m2e-users@xxxxxxxxxxx>
Date: Saturday, 28 May, 2011, 17:18

Can you check the directory were the project is actually deployed on your server? See if some jars are missing?
If you use tomcat via WTP, default location would be <workspaces>/.metadata/.plugins/org.eclipse.wst.server.core/tmp<some number>/wtpwebapps

regards,

Fred Bricon


2011/5/28 N WEINRONK <nweinronk@xxxxxxxxxxxxxx>

So I am now very confused.
 
Some history.
 
I have exported a working project from Eclipse Galileo - not including .classpath/.settings/.project
to a non Eclipse workspace directory.
 
I have moved that project directory into the Eclipse Helios workspace.
 
I have imported that project as an 'existing maven project'.
 
I have cleaned the project.
 
I can maven:clean and maven:install the project - both successfully.
 
I have updated the 'maven dependencies' and 'project configuration'.
 
But when I 'run on server' I get.
 
java.lang.ClassNotFoundException
: org.springframework.web.context.ContextLoaderListener
 
If I look at the project / properties / java build path / libraries under 'maven dependencies' I can see spring-web jar with org.springframework.web.context.ContextLoaderListener
 
 Note: m2eclipse and WTP - 0.13.0
 
 
 Any pointers on the way to go - gratefully received.
 

--- On Sat, 28/5/11, N WEINRONK <nweinronk@xxxxxxxxxxxxxx> wrote:

From: N WEINRONK <nweinronk@xxxxxxxxxxxxxx>
Subject: Re: [m2e-users] Export / Import -> to workspace.
To: "Maven Integration for Eclipse users mailing list" <m2e-users@xxxxxxxxxxx>
Date: Saturday, 28 May, 2011, 14:55


Also now getting java.lang.ClassNotFoundException
when again jar is in the 'maven dependencies' but the usual 'clean' / 'update dependencies' does not help.
 
Nigel

--- On Sat, 28/5/11, N WEINRONK <nweinronk@xxxxxxxxxxxxxx> wrote:

From: N WEINRONK <nweinronk@xxxxxxxxxxxxxx>
Subject: Re: [m2e-users] Export / Import -> to workspace.
To: "Maven Integration for Eclipse users mailing list" <m2e-users@xxxxxxxxxxx>
Date: Saturday, 28 May, 2011, 14:29

 
Thanks I will give this a go.
 
One other question I have now started to get a NoClassDefFoundError error when 'run on server' is done.
 
However I can see the jar in the Maven dependencies.
 
I have tried the usual 'clean' / update dependencies etc. but no luck.
 
Any advice here ?
 
Thanks,
 
 


--- On Sat, 28/5/11, Igor Fedorenko <igor@xxxxxxxxxxxxxx> wrote:

From: Igor Fedorenko <igor@xxxxxxxxxxxxxx>
Subject: Re: [m2e-users] Export / Import -> to workspace.
To: m2e-users@xxxxxxxxxxx
Date: Saturday, 28 May, 2011, 12:48

You can move projects to the new workspace location before importing them.

--
Regards,
Igor


On 11-05-28 06:03 AM, Nigel Weinronk wrote:
> To solve a problem I have had to move from Eclipse Galileo to Eclipse
> Helios.
>
> My project in Eclipse Galileo was inside the workspace directory.
>
> I exported it to a non Eclipse directory.
>
> I imported it as a ‘Maven project’ into Eclipse Helios.
>
> This leaves the project directory outside the workspace directory.
>
> Is there a way to move this back into the workspace directory ?
>
> Thanks as usual
>
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users

-----Inline Attachment Follows-----


_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users

_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users




--
"Have you tried turning it off and on again" - The IT Crowd

-----Inline Attachment Follows-----

_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users

_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users




--
"Have you tried turning it off and on again" - The IT Crowd

Back to the top