What I was looking for was how to start up a local debugging session.  I'm
probably not using the right terms.    I wanted to launch tomcat from within
NetBeans, which I believe then uses shared memory to communicate with
tomcat.  This should be as simple as clicking on the big "debug main
project" button, or right-clicking on the project folder and picking "debug
project"

Except it isn't, because mevenide and appfuse don't really like each other. 
mevenide's embedded maven is a snapshot taken around 2.0.4, while appfuse
relies on 2.0.6 features.  mevenide works around this by allowing you to
specify an external Maven instance *unless you are launching a J2EE
project*, which apparently is what I'm doing when I attempt to start a
debugging session.  

To be more clear, clicking on the above button launches this:

    org.codehaus.mevenide:netbeans-deploy-plugin:RELEASE:deploy

which fails with this:

    Error resolving version for 'org.codehaus.mojo:appfuse-maven-plugin':
Plugin requires Maven version 2.0.6

because of this:

WARNING: J2EE deployment within Netbeans requires running the build within
the same VM as the IDE.
WARNING: Automatically falling back to embedded Maven despite project setup.

So here's the non-trivial way of doing it:

1) Build/deploy/whatever your project.  Just don't hit the big debug button.

2) Go to Tools | Servers and make sure a tomcat server is configured.  Under
its startup tab, select "shared memory name", and copy the default name

3) Go to Services tab | Servers | Tomcat | right click, select Start in
Debug Mode 

4) Go to Run | Attach Debugger... | select JPDA Debugger.  Select
SharedMemoryAttach for the connector.  Paste into the Name field the shared
memory name you copied, and then click OK

Enjoy your debugging.  Using sockets as you suggest also works.

Now, if someone knows a way to turn all that into a big button for me to
push, I'd appreciate it. 


-- 
View this message in context: 
http://www.nabble.com/Debugging-in-Netbeans-6.0---Appfuse-2.0.1--tp14407698s2369p14677418.html
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to