Re: Google Plugin In Spring Source Toolkit seems to be wipping out the project on run.

2010-12-21 Thread Chris


On Nov 28, 2:38 pm, Rajeev Dayal rda...@google.com wrote:

 Yes, such resources will be wiped out. What's actually happening here is

 that GPE is using WTP's smart publish functionality to publish J2EE
 modules  to the target/ directory.

 So, in the source of launching, GPE performs a WTP publish. The WTP publish
 will copy any J2EE modules that it knows about over to the target/
 directory, which means that all of your resources in src/main/webapp will be
 copied over properly. If you're got Maven's integration with WTP installed,
 then the target/WEB-INF/lib directory will contain all of the libraries that
 are in the runtime scope which are defined in your pom.xml file.

 However, the publish is a smart one - so if any resources to be published
 already exist in the target/ directory and are unchanged, the copy of that
 file is not performed. In addition, if any resources are found in the
 target/ directory that the publisher did not mean to create, then they are
 deleted.

 In the next version of GPE, I think we'll consider either:

 1) Allow the user to specify which folders should remain untouched during a
 smart publish
 2) Switch over to a full publish - that will leave resources that are
 unknown alone.


Hi Rajeev, after working with Eclipse, Maven, and GPE 1.4 I've noticed
a few more things:

I'm now working with STS 2.5 (and ... some GWT) and Maven, and I'm
still running into the same problem.   My original problem seems to be
more of a Maven/Eclipse interaction issue.  Eclipse-clean !=
mvn:clean, and sometimes publishing an app to a Spring tc server in
Eclipse (and, btw, to the Jetty server in GPE) it fails to copy over
resources in target/foo that mvn:package is supposed to copy over.

Lesson learned: be sure if you ever do a mvn:clean to do an Eclipse
project clean, and rebuild from Eclipse (and a GWT compile) before
doing a mvn:package .  This should keep the two environments in sync,
and the right things should copy over.

I'd rather not suffer a 12-permutation (tc) GWT compile if I don't
have to, so I hope your recommendations bear fruit.

Thanks,
- C

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Google Plugin In Spring Source Toolkit seems to be wipping out the project on run.

2010-12-21 Thread zixzigma
I had similar problem like Chris.

the problem was Eclipse/M2Eclipse conflict.

M2EClipse would overwrite Eclipse classpath, and
things would work and stop working at random.
especially after mvn clean.

It also affects JUnit,
if you google Eclipse Maven JUnit ClassNotFound,
you come across many issues that are still open

this is nothing new, many posts dating back to 2008 with the same
problem.
many hacks were proposed and I tried them all for two days,
with no luck, I then switched to IntelliJ and everything worked just
fine right away.

the reason I kept pushing for two days to make Eclipse work,
was to take advantage of CodePro Analytix, but unfortunately it is
only available for Eclipse,
and Clover by Atlassian is , well, pricey :)


http://jira.codehaus.org/browse/MECLIPSE-132
https://issues.sonatype.org/browse/MNGECLIPSE-2121
http://rbtech.blogspot.com/2009/09/eclipse-galileo-javalangclassnotfoundex.html
http://blog.andrewbeacock.com/2008/11/classnotfoundexception-when-running.html

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Google Plugin In Spring Source Toolkit seems to be wipping out the project on run.

2010-12-21 Thread zixzigma
similar problem, dating back to 2006 !
http://maven.40175.n5.nabble.com/Keep-getting-quot-Class-not-found-quot-when-running-debugging-JUnit-tests-td133309.html

there are many more, still unresolved !

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Google Plugin In Spring Source Toolkit seems to be wipping out the project on run.

2010-11-28 Thread Rajeev Dayal
On Mon, Nov 22, 2010 at 10:23 AM, Chris crehb...@gmail.com wrote:


 On Nov 19, 7:50 pm, Thomas Broyer t.bro...@gmail.com wrote:
  FWIW, I have *no* problem with Eclipse Helios (3.6, updated to SR1)
  with GPE 1.4.0.v201010280102 and m2eclipse 0.10.2.20100623-1649 on
  Windows XP Pro SP3
  (if I understand correctly the issue, when launching DevMode, my
  index.jsp and other things like that from my war directory –$
  {project.build.directory}/${project.build.finalName}, i.e. target/
  webapp maven module name– would vanish)

 Hi,

 Its not all files in the build output directory - our HTML files and
 any static resources that are kept in 'src/main/webapp' and copied to
 'target/module' are left alone when starting dev mode.  Our
 particular problem is that we had a separate maven resources project
 that was being deployed to 'target/module' during mvn:package, and
 those exploded resources were being deleted when dev mode is starting
 up.

 Yes, such resources will be wiped out. What's actually happening here is
that GPE is using WTP's smart publish functionality to publish J2EE
modules  to the target/ directory.

So, in the source of launching, GPE performs a WTP publish. The WTP publish
will copy any J2EE modules that it knows about over to the target/
directory, which means that all of your resources in src/main/webapp will be
copied over properly. If you're got Maven's integration with WTP installed,
then the target/WEB-INF/lib directory will contain all of the libraries that
are in the runtime scope which are defined in your pom.xml file.

However, the publish is a smart one - so if any resources to be published
already exist in the target/ directory and are unchanged, the copy of that
file is not performed. In addition, if any resources are found in the
target/ directory that the publisher did not mean to create, then they are
deleted.

In the next version of GPE, I think we'll consider either:

1) Allow the user to specify which folders should remain untouched during a
smart publish
2) Switch over to a full publish - that will leave resources that are
unknown alone.


 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Google Plugin In Spring Source Toolkit seems to be wipping out the project on run.

2010-11-22 Thread Chris

On Nov 19, 7:50 pm, Thomas Broyer t.bro...@gmail.com wrote:
 FWIW, I have *no* problem with Eclipse Helios (3.6, updated to SR1)
 with GPE 1.4.0.v201010280102 and m2eclipse 0.10.2.20100623-1649 on
 Windows XP Pro SP3
 (if I understand correctly the issue, when launching DevMode, my
 index.jsp and other things like that from my war directory –$
 {project.build.directory}/${project.build.finalName}, i.e. target/
 webapp maven module name– would vanish)

Hi,

Its not all files in the build output directory - our HTML files and
any static resources that are kept in 'src/main/webapp' and copied to
'target/module' are left alone when starting dev mode.  Our
particular problem is that we had a separate maven resources project
that was being deployed to 'target/module' during mvn:package, and
those exploded resources were being deleted when dev mode is starting
up.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Google Plugin In Spring Source Toolkit seems to be wipping out the project on run.

2010-11-19 Thread Karthik Ramachandran
I'm running into this problem on XP with Maven 2.2.1, STS 2.5.1 Release.

Interesting enough if I run Maven gwt:run everything seems to work fine.
Which suggests there is a bug within GPE as opposed to maven gwt plugin. I
also don't remember this bug occurring with last milestone release of STS.

Karthik

On Thu, Nov 18, 2010 at 7:13 PM, Chris crehb...@gmail.com wrote:


 On Nov 18, 6:03 pm, Rajeev Dayal rda...@google.com wrote:
  Hey Chris,
 
  A few questions:
 
  -what operating system are you on?
  -I noticed that you have the gwt-user.jar and gwt-dev.jar explicitly on
 your
  build classpath. Did you add those entries? If you navigate over to the
  Project Properties - Google - Web Toolkit page, what SDK is selected?
 

 I'm working in Windows XP.  The gwt-*.jar dependencies were
 automatically added after - to answer your last question - I
 configured the 2.1.0 SDK in project properties after upgrading the SDK/
 plugin.  I'm fairly certain gwt-dev.jar shouldn't be a compile-time
 dependency, right?  In any event, building/GWT-compiling work just
 fine, the only problem is starting up dev mode.

 I think I can reconfigure maven to explode the resources zip file to
 src/main/webapp instead of target/module name before compilation so
 this likely won't be a long-term problem, but its still a change from
 the behavior using the 1.3.3 plugin.

 Many thanks,
 - C

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Google Plugin In Spring Source Toolkit seems to be wipping out the project on run.

2010-11-19 Thread Thomas Broyer

On 19 nov, 23:04, Karthik Ramachandran kramachandran.b...@gmail.com
wrote:
 I'm running into this problem on XP with Maven 2.2.1, STS 2.5.1 Release.

 Interesting enough if I run Maven gwt:run everything seems to work fine.
 Which suggests there is a bug within GPE as opposed to maven gwt plugin. I
 also don't remember this bug occurring with last milestone release of STS.

FWIW, I have *no* problem with Eclipse Helios (3.6, updated to SR1)
with GPE 1.4.0.v201010280102 and m2eclipse 0.10.2.20100623-1649 on
Windows XP Pro SP3
(if I understand correctly the issue, when launching DevMode, my
index.jsp and other things like that from my war directory –$
{project.build.directory}/${project.build.finalName}, i.e. target/
webapp maven module name– would vanish)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Google Plugin In Spring Source Toolkit seems to be wipping out the project on run.

2010-11-18 Thread David Chandler
Hi Karthik,

Can you provide more info on what you're seeing? Do you mean STS
deletes files or the project disappears or...?

Thanks,
/dmc

On Thu, Nov 18, 2010 at 10:08 AM, Karthik kramachandran.b...@gmail.com wrote:
 Hi all,

 I playing around with STS, Roo, Maven and GWT.  When I go to run a Roo
 project from inside STS, STS seems to wipe out the entire project.
 Anyone else playing with this particular combo of technologies and
 running into issues?

 Karthik

 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.





-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.com/

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Google Plugin In Spring Source Toolkit seems to be wipping out the project on run.

2010-11-18 Thread Chris


  I playing around with STS, Roo, Maven and GWT.  When I go to run a Roo
  project from inside STS, STS seems to wipe out the entire project.
  Anyone else playing with this particular combo of technologies and
  running into issues?


This is happening to me, too, since I upgraded to GWT 2.1.0 and GPE
1.4.0 - I posted yesterday about the problem:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/d13a6ed3673baf3f#

As soon as you start dev mode, any resource files in the build output
directory (target/module name) that are not also present in src/main/
webapp are deleted.

Thanks,
- C

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Google Plugin In Spring Source Toolkit seems to be wipping out the project on run.

2010-11-18 Thread Rajeev Dayal
Hey Chris,

Can you provide your .classpath file?

What version of STS are you using?


Thanks,
Rajeev

On Thu, Nov 18, 2010 at 5:33 PM, Chris crehb...@gmail.com wrote:



   I playing around with STS, Roo, Maven and GWT.  When I go to run a Roo
   project from inside STS, STS seems to wipe out the entire project.
   Anyone else playing with this particular combo of technologies and
   running into issues?
 

 This is happening to me, too, since I upgraded to GWT 2.1.0 and GPE
 1.4.0 - I posted yesterday about the problem:

 http://groups.google.com/group/google-web-toolkit/browse_thread/thread/d13a6ed3673baf3f#

 As soon as you start dev mode, any resource files in the build output
 directory (target/module name) that are not also present in src/main/
 webapp are deleted.

 Thanks,
 - C

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Google Plugin In Spring Source Toolkit seems to be wipping out the project on run.

2010-11-18 Thread Chris


On Nov 18, 5:41 pm, Rajeev Dayal rda...@google.com wrote:

Hi there Rajeev,

I'm using the following version of STS.  The rest of the applicable
version numbers are in the thread I linked to above.

Version: 2.3.2.RELEASE
Build Id: 201003230009


 Can you provide your .classpath file?

?xml version=1.0 encoding=UTF-8?
classpath
classpathentry kind=src output=target/bisdashboard-0.0.1-SNAPSHOT/
WEB-INF/classes path=src/main/java/
classpathentry excluding=** kind=src output=target/
bisdashboard-0.0.1-SNAPSHOT/WEB-INF/classes path=src/main/resources/

classpathentry kind=src output=target/test-classes path=src/
test/java/
classpathentry excluding=** kind=src output=target/test-
classes path=src/test/resources/
classpathentry kind=con
path=org.eclipse.jdt.launching.JRE_CONTAINER/
org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6/

classpathentry kind=con
path=org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER
attributes
attribute name=org.eclipse.jst.component.dependency 
value=/WEB-
INF/lib/
/attributes
/classpathentry
classpathentry kind=con
path=org.eclipse.jst.j2ee.internal.module.container/
classpathentry kind=con
path=org.eclipse.jst.j2ee.internal.web.container/
classpathentry kind=lib path=C:/springsource_2.3/
sts-2.3.2.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.
2.1.0_2.1.0.v201010280047/gwt-2.1.0/gwt-user.jar
attributes
attribute name=javadoc_location 
value=file:/C:/springsource_2.3/
sts-2.3.2.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.
2.1.0_2.1.0.v201010280047/gwt-2.1.0/doc/javadoc//
/attributes
/classpathentry
classpathentry kind=lib path=C:/springsource_2.3/
sts-2.3.2.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.
2.1.0_2.1.0.v201010280047/gwt-2.1.0/gwt-dev.jar
attributes
attribute name=javadoc_location 
value=file:/C:/springsource_2.3/
sts-2.3.2.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.
2.1.0_2.1.0.v201010280047/gwt-2.1.0/doc/javadoc//
/attributes
/classpathentry
classpathentry kind=output path=target/bisdashboard-0.0.1-
SNAPSHOT/WEB-INF/classes/
/classpath

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Google Plugin In Spring Source Toolkit seems to be wipping out the project on run.

2010-11-18 Thread Rajeev Dayal
Hey Chris,

A few questions:

-what operating system are you on?
-I noticed that you have the gwt-user.jar and gwt-dev.jar explicitly on your
build classpath. Did you add those entries? If you navigate over to the
Project Properties - Google - Web Toolkit page, what SDK is selected?


Thanks,
Rajeev

On Thu, Nov 18, 2010 at 5:50 PM, Chris crehb...@gmail.com wrote:



 On Nov 18, 5:41 pm, Rajeev Dayal rda...@google.com wrote:

 Hi there Rajeev,

 I'm using the following version of STS.  The rest of the applicable
 version numbers are in the thread I linked to above.

 Version: 2.3.2.RELEASE
 Build Id: 201003230009

 
  Can you provide your .classpath file?

 ?xml version=1.0 encoding=UTF-8?
 classpath
classpathentry kind=src
 output=target/bisdashboard-0.0.1-SNAPSHOT/
 WEB-INF/classes path=src/main/java/
classpathentry excluding=** kind=src output=target/
 bisdashboard-0.0.1-SNAPSHOT/WEB-INF/classes path=src/main/resources/
 
classpathentry kind=src output=target/test-classes path=src/
 test/java/
classpathentry excluding=** kind=src output=target/test-
 classes path=src/test/resources/
classpathentry kind=con
 path=org.eclipse.jdt.launching.JRE_CONTAINER/
 org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6/
 
classpathentry kind=con
 path=org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER
attributes
attribute
 name=org.eclipse.jst.component.dependency value=/WEB-
 INF/lib/
/attributes
/classpathentry
classpathentry kind=con
 path=org.eclipse.jst.j2ee.internal.module.container/
classpathentry kind=con
 path=org.eclipse.jst.j2ee.internal.web.container/
classpathentry kind=lib path=C:/springsource_2.3/
 sts-2.3.2.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.
 2.1.0_2.1.0.v201010280047/gwt-2.1.0/gwt-user.jar
attributes
attribute name=javadoc_location
 value=file:/C:/springsource_2.3/
 sts-2.3.2.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.
 2.1.0_2.1.0.v201010280047/gwt-2.1.0/doc/javadoc//
/attributes
/classpathentry
classpathentry kind=lib path=C:/springsource_2.3/
 sts-2.3.2.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.
 2.1.0_2.1.0.v201010280047/gwt-2.1.0/gwt-dev.jar
attributes
attribute name=javadoc_location
 value=file:/C:/springsource_2.3/
 sts-2.3.2.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle.
 2.1.0_2.1.0.v201010280047/gwt-2.1.0/doc/javadoc//
/attributes
/classpathentry
classpathentry kind=output path=target/bisdashboard-0.0.1-
 SNAPSHOT/WEB-INF/classes/
 /classpath

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Google Plugin In Spring Source Toolkit seems to be wipping out the project on run.

2010-11-18 Thread Chris

On Nov 18, 6:03 pm, Rajeev Dayal rda...@google.com wrote:
 Hey Chris,

 A few questions:

 -what operating system are you on?
 -I noticed that you have the gwt-user.jar and gwt-dev.jar explicitly on your
 build classpath. Did you add those entries? If you navigate over to the
 Project Properties - Google - Web Toolkit page, what SDK is selected?


I'm working in Windows XP.  The gwt-*.jar dependencies were
automatically added after - to answer your last question - I
configured the 2.1.0 SDK in project properties after upgrading the SDK/
plugin.  I'm fairly certain gwt-dev.jar shouldn't be a compile-time
dependency, right?  In any event, building/GWT-compiling work just
fine, the only problem is starting up dev mode.

I think I can reconfigure maven to explode the resources zip file to
src/main/webapp instead of target/module name before compilation so
this likely won't be a long-term problem, but its still a change from
the behavior using the 1.3.3 plugin.

Many thanks,
- C

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.