On 2/11/08, Rob Hills <[EMAIL PROTECTED]> wrote:
>
> Hi Michael,
>
> Michael Horwitz wrote:
> > On 2/11/08, *Rob Hills* <[EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>> wrote:
> >
> >     Thanks for the reply.  I suspect something I'm doing with my user
> >     class
> >     is messing with the Service layer logic, but it's a bit tricky to
> work
> >     out.  It'd be really handy to be able to trace from my code into the
> >     userManager.saveUser() method, but I'm having difficulty getting
> >     there.
> >     I'm using Eclipse, by default, is the Appfuse source available to
> >     Eclipse to trace through?  If not, is there anything I can put in my
> >     pom.xml to make that happen?  I've hunted through the site and
> >     Googled a
> >     bit but haven't been able to find any description of how to do this.
> >     It'd make a good FAQ IMHO, so I'm happy to add that to the Eclipse
> >     page
> >     (or the FAQ page) once I find out how to do it.
> >
> >
> > If you created your project using mvn eclipse:eclipse this should
> > already happen - just make sure the following is in your project pom.xml
> :
> >
> >            <plugin>
> >                 <artifactId>maven-eclipse-plugin</artifactId>
> Thanks for the reply.  I checked and I have exactly that in my Pom.xml.
> I guess the problem now is to get inside the UserManagerImpl class and
> set a breakpoint somewhere.  Tracing from my classes takes me off into
> Spring proxy-land and despite large numbers of "step into" steps, I seem
> forever lost in a maze of reflection, never to touch down into something
> concrete!  Is there a way I can actually open the source for the
> UserManagerImpl class?  I can find the binary class easily enough in my
> lib, but I can't locate the source anywhere. I've hunted through my
> maven repository and can only find the binary jars there :-(  I'd have
> thought the source jar(s) would be there somewhere if my pom.xml was
> pulling it in, so maybe I'm looking in the wrong place.


There are two ways to do this:

1) Press Ctrl + Shift + T and open UserManagerImpl.
2) Navigate into the binary file under Referenced Libraries and click on
UserManagerImpl.class

Both methods will open the source file if it has been properly associated
with the library. If you want to check, simply right click on the
appfuse-service-2.0.1.jar entry under Referenced Libraries, click on
properties and check that the Java Source Attachment points to a valid
source jar file in your local repository.

Mike

TIA,
>
> Rob Hills
> Waikiki, Western Australia
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to