<div><div>$B$3$s$K$A$O!#(B</div><div><br></div><div>JSP$B$+$i(BEL$B<0;H$C$F(BFunction$B$r8F$S=P$7$F$$$^$9$,!"$=$N(BFunction$BFb$N=hM}$K$F(B</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>final S2Container container = SingletonS2ContainerFactory.getContainer();</div>

<div><span class="Apple-tab-span" style="white-space:pre">                </span>HogeService hogeService = container.getComponent(HogeService.class);</div><div><br></div><div>$B$r<B9T$7$F(BService$B%/%i%9$rDL$8$F(BDB$B$K%"%/%;%9$7$h$&$H$7$F$$$^$9$,!"2<5-$N$h$&$K(BClassCastException$B$,H/@8$7$^$9!#(B</div>

<div>(getComponent$B$N7k2L$,!"(BHogeService$B$N%$%s%9%?%s%9$G$J$$!)(B)</div><div>java.lang.ClassCastException: jp.xxx.xxx.service.HogeService$$EnhancedByS2AOP$$8ee5c0 cannot be cast to jp.xxx.xxx.service.HogeService</div><div><br></div><div>$BH/@8$9$k$N$O5/F08e!"=i2s$N(B1$B2s$N$_$G!":FEY$=$N%Z!<%8$r<B9T$9$k$HF1$8%m%8%C%/$,@.8y$7$^$9!JM=DjDL$jF0:n$9$k!K(B</div>

<div><br></div><div>$B$A$J$_$K!"(BFunction$B$r;HMQ$7$F$$$k(BJSP$B$KBP$9$k(BAction$BFb$G$O!"IaDL$K(BService$B$r(BDI$B$7$F;HMQ$7$F$$$^$9$,FC$KLdBj$OH/@8$7$F$$$^$;$s!#(B</div><div><br></div><div>$B$I$J$?$+?4Ev$?$j$,$"$kJ}!"2r7hJ}K!$r65$($F$/$@$5$$!#(B</div></div><div>$B$h$m$7$/$*4j$$$7$^$9!#(B</div><div><br></div>-- <br><p>$B%(%\%k%V%"%$%F%#%o!<%/%93t<02q<R(B<br>

$B@t0f!!F)(B<br>toru izui &lt;<a href="mailto:toru_izui@evolveit.jp" target="_blank">toru_izui@evolveit.jp</a>&gt;<br><a href="http://www.evolveit.jp/" target="_blank">http://www.evolveit.jp</a><br></p>