Re: NoSuchMethodException: $Proxy18.find()

2007-03-06 Thread abpicol
Another way to grant this to work is make the Action implement an interface that has the desired method. So, ... create an interface ... interface I1 { String find(); } ... in your Action class declaration ... class MyStrutsAction implements I1 extends ActionSupport { ... } WHY TH

Re: NoSuchMethodException: $Proxy18.find()

2007-03-06 Thread Paul Benedict
Congrats! Adam Ruggles wrote: I found the solution to this and I wanted to post it on the list. adding proxy-target-class="true" fixes it. proxy-target-class="true" /> Adam Ruggles wrote: Creating a service object seems to have worked. Now I'm going to have to re-think using action support

Re: NoSuchMethodException: $Proxy18.find()

2007-03-05 Thread Adam Ruggles
I found the solution to this and I wanted to post it on the list. adding proxy-target-class="true" fixes it. proxy-target-class="true" /> Adam Ruggles wrote: Creating a service object seems to have worked. Now I'm going to have to re-think using action support. This project is not complicat

Re: NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Adam Ruggles
Creating a service object seems to have worked. Now I'm going to have to re-think using action support. This project is not complicated enough to warrant another layer. Thanks for your help. Paul Benedict wrote: Adam, I have never seen anyone attach Spring transactional logic to an action

[OT] Re: NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Dave Newton
--- Paul Benedict <[EMAIL PROTECTED]> wrote: > I have never seen anyone attach Spring transactional > logic to an action, and called DAOs straight from the > action. That's not good practice, because it mashes > web, business, and data layers all in one place. Here's my question/comment: to me it

Re: NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Adam Ruggles
I'll give that a try, thanks. Paul Benedict wrote: Adam, I have never seen anyone attach Spring transactional logic to an action, and called DAOs straight from the action. That's not good practice, because it mashes web, business, and data layers all in one place. I wouldn't blame struts h

Re: NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Paul Benedict
Adam, I have never seen anyone attach Spring transactional logic to an action, and called DAOs straight from the action. That's not good practice, because it mashes web, business, and data layers all in one place. I wouldn't blame struts here (yet). I'd first move your code into a service ob

Re: NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Adam Ruggles
Yes, I tried both methods. For whatever reason when I extend ActionSupport it no longer works. Dave Newton wrote: Does it do the same thing if you don't explicitly declare the bean (put the classname directly in the struts.xml file)? Just curious... I don't have direct experience with what yo

Re: NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Dave Newton
Does it do the same thing if you don't explicitly declare the bean (put the classname directly in the struts.xml file)? Just curious... I don't have direct experience with what you're doing. --- Adam Ruggles <[EMAIL PROTECTED]> wrote: > Ok I think I found the problem. If I remove the > "extends

Re: NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Adam Ruggles
Ok I think I found the problem. If I remove the "extends ActionSupport" it works without any problems. I know "extends ActionSupport" works with Webwork 2, is this a bug or a change in implementation? Adam Ruggles wrote: I am following the guide here http://cwiki.apache.org/S2WIKI/struts-2-s

NoSuchMethodException: $Proxy18.find()

2007-02-25 Thread Adam Ruggles
I am following the guide here http://cwiki.apache.org/S2WIKI/struts-2-spring-2-jpa-ajax.html For some reason when trying to map a method other than execute I recieve the following error: - Servlet.service() for servlet default threw exception java.lang.NoSuchMethodException: $Proxy18.find() B