"clean the server" "republish the server" This has worked - thanks to all for your help. Note: I am using m2eclipse and WTP 0.13.0 so it looks like the 'bug' still exists - though I had not seen it in all the time I was using 0.12.1.
--- On Sun, 29/5/11, Jeff Jensen <[email protected]> wrote: From: Jeff Jensen <[email protected]> Subject: Re: [m2e-users] Export / Import -> to workspace. To: "Maven Integration for Eclipse users mailing list" <[email protected]> Date: Sunday, 29 May, 2011, 5:24 We've encountered this problem occasionally - a number of jars "all of a sudden" missing in the WEB-INF/lib dir; clueless as to what causes it (seems to be a build error); happens at a server start even though the prior start worked. Nothing fixes it (e.g. clean build, restart server, restart Eclipse, Tomcat clean working dirs) except the clean & republish or delete and recreate the server. If there is something to look at and report next time it happens, please let us know. We're using: Maven Integration for Eclipse (Required) 0.12.1.20110112-1712 Maven Integration for WTP (Optional) 0.12.0.20110421-1500 On Sat, May 28, 2011 at 4:32 PM, Fred Bricon <[email protected]> wrote: Maybe a WTP deployment hiccup. Have you tried server > Clean and publish again? Restarting eclipse? 2011/5/28 N WEINRONK <[email protected]> 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 <[email protected]> wrote: From: N WEINRONK <[email protected]> Subject: Re: [m2e-users] Export / Import -> to workspace. To: "Maven Integration for Eclipse users mailing list" <[email protected]> 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 <[email protected]> wrote: From: N WEINRONK <[email protected]> Subject: Re: [m2e-users] Export / Import -> to workspace. To: "Maven Integration for Eclipse users mailing list" <[email protected]> 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 <[email protected]> wrote: From: Fred Bricon <[email protected]> Subject: Re: [m2e-users] Export / Import -> to workspace. To: "Maven Integration for Eclipse users mailing list" <[email protected]> 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 <[email protected]> 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 <[email protected]> wrote: From: N WEINRONK <[email protected]> Subject: Re: [m2e-users] Export / Import -> to workspace. To: "Maven Integration for Eclipse users mailing list" <[email protected]> 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 <[email protected]> wrote: From: N WEINRONK <[email protected]> Subject: Re: [m2e-users] Export / Import -> to workspace. To: "Maven Integration for Eclipse users mailing list" <[email protected]> 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 <[email protected]> wrote: From: Igor Fedorenko <[email protected]> Subject: Re: [m2e-users] Export / Import -> to workspace. To: [email protected] 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 [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users -----Inline Attachment Follows----- _______________________________________________ m2e-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users _______________________________________________ m2e-users mailing list [email protected] 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 [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users _______________________________________________ m2e-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users -- "Have you tried turning it off and on again" - The IT Crowd _______________________________________________ m2e-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users -----Inline Attachment Follows----- _______________________________________________ m2e-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________ m2e-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/m2e-users
