[Geoserver-devel] debug gs in eclipse with tomcat 6.0

Hi:
I want to debug the gs in the eclipse since I add some breakpoints in the codes.
I found that I can change the web-app module to a dynamic web project by modify the project facets of this module, then I can use the command " debug on server " to run the gs in the web container, however it fails.
Then I go to the geoserver document for answer and I found the something here:
http://docs.geoserver.org/2.0.0/developer/maven-guide/index.html#running-the-web-module-with-jetty

It tell me about run gs with jetty, and it notes that :

**cd geoserver_1.7.x/src/web**

**mvn jetty:run**

Note

This command must be run from the web module, it will fail if run from elsewhere.

So I wonder if I shoud run the gs in under the web directory, however I found that I can not change the web module to a dynamic web project, why?
Then how to debug the gs with tomcat in the IDE (eclipse)?

2009/12/15 maven apache <apachemaven0@anonymised.com>

Hi:
I want to debug the gs in the eclipse since I add some breakpoints in the codes.
I found that I can change the web-app module to a dynamic web project by modify the project facets of this module, then I can use the command " debug on server " to run the gs in the web container, however it fails.
Then I go to the geoserver document for answer and I found the something here:
http://docs.geoserver.org/2.0.0/developer/maven-guide/index.html#running-the-web-module-with-jetty

It tell me about run gs with jetty, and it notes that :

**cd geoserver_1.7.x/src/web**

**mvn jetty:run**

Note

This command must be run from the web module, it will fail if run from elsewhere.

So I wonder if I shoud run the gs in under the web directory, however I found that I can not change the web module to a dynamic web project, why?

The project and the error message:http://imagebin.org/75561

Then how to debug the gs with tomcat in the IDE (eclipse)?

Are you following the steps in the developers’ guide? http://docs.geoserver.org/2.0.x/en/developer/quickstart/index.html#generate-eclipse-project-files-with-maven shows exactly how to do this. Note that it is a bit more complicated than just having eclipse search for source files in the SVN checkout directory.

2009/12/15 David Winslow <dwinslow@anonymised.com>

On 12/15/2009 08:30 AM, maven apache wrote:

2009/12/15 maven apache <apachemaven0@anonymised.com.403…>

Hi:
I want to debug the gs in the eclipse since I add some breakpoints in the codes.
I found that I can change the web-app module to a dynamic web project by modify the project facets of this module, then I can use the command " debug on server " to run the gs in the web container, however it fails.
Then I go to the geoserver document for answer and I found the something here:
http://docs.geoserver.org/2.0.0/developer/maven-guide/index.html#running-the-web-module-with-jetty

It tell me about run gs with jetty, and it notes that :

<b>cd geoserver_1.7.x/src/web

mvn jetty:run</b>

Note

This command must be run from the web module, it will fail if run from elsewhere.

So I wonder if I shoud run the gs in under the web directory, however I found that I can not change the web module to a dynamic web project, why?

The project and the error message:http://imagebin.org/75561

Then how to debug the gs with tomcat in the IDE (eclipse)?


------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
[http://p.sf.net/sfu/google-dev2dev](http://p.sf.net/sfu/google-dev2dev)
  

_______________________________________________
Geoserver-devel mailing list
[Geoserver-devel@lists.sourceforge.net](mailto:Geoserver-devel@lists.sourceforge.net)
[https://lists.sourceforge.net/lists/listinfo/geoserver-devel](https://lists.sourceforge.net/lists/listinfo/geoserver-devel)
  

Are you following the steps in the developers’ guide? http://docs.geoserver.org/2.0.x/en/developer/quickstart/index.html#generate-eclipse-project-files-with-maven shows exactly how to do this. Note that it is a bit more complicated than just having eclipse search for source files in the SVN checkout directory.

Yes, I followed it .I have imported the sources to eclipse successfully.


David Winslow
OpenGeo - http://opengeo.org/

Then are the steps under ‘Run GeoServer Under Eclipse’ not working for you? Perhaps I am misreading your email.