$BAPH*$H?=$7$^$9!#(B<br>$B$*@$OC$K$J$C$F$*$j$^$9!#(B<br>$B0J2<$N%W%m%@%/%H$rMQ$$$F!"%F%9%HE*$K%7%9%F%`$r9=C[$7$FJY6/$7$F(B<div id="mb_0">$B$*$j$^$9!#(B<br><br>Seasar2.4.10<br>
teeda1.0.7<br>
S2DAO1.0.43<br>
<br>
$B8=:_(BDB$B$K@\B3$7!"8!:w=hM}$r9T$$!"$=$N7k2L$K$h$C$F<!2hLL$K8!:w7k2L$rI=<($9$k!"(B<br>$B$b$7$/$O%(%i!<%a%C%;!<%8$rI=<($9$k=hM}$rAH$s$G$$$^$9!#(B<br>$B7o?t$,#07o$N>l9g$O(Bnull$B$rJV$7!"#17o0J>e$N>l9g$O%j%9%H$r%;%C%H$7!"(Bhtml$BL>$rJV5Q$9$k$H$$$&=hM}$r(B<br>
$B9T$$$?$$$N$G$9$,!"#1EY(B return null $B$GLa$C$?8e!":FEY8!:w=hM}$r9T$C$?>l9g0J2<$N%(%i!<$H$J$j$^$9!#(B<br>
<br>
org.seasar.framework.container.ComponentNotFoundRuntimeException:
[ESSR0046]$B%3%s%]!<%M%s%H(B(interface example.dbaccess.hoge.HogeDAO)$B$,8+$D$+$j$^$;$s(B<br>
<br>
$B%(%i!<%a%C%;!<%8$rI=<($9$k>l9g$K$b(B return html$BL>!!$r9T$($P!":F8!:w$O2DG=$G$9$,!"%(%i!<%a%C%;!<%8$,I=<($5$l$^$;$s!#(B<br>
<br>
$B$I$N$h$&$K$9$l$P2r7h$G$-$k$N$+$465<(4j$($J$$$G$7$g$&$+!)(B<br>
$B$h$m$7$/$*4j$$CW$7$^$9!#(B<br>
<br>$B0J2<$K!"%5%s%W%k$r<($7$^$9!#(B<br><br> private static final String PATH = "example/dbaccess/hoge/HogeDAO.dicon"; <br> public String doSearch() { <br> S2Container container = null; <br> try {
<br> container = S2ContainerFactory.create(PATH);<br> container.init();<br><br> HogeDAO dao = (HogeDAO) container<br> .getComponent(HogeDAO.class);
<br> hogeItems = dao.getAllList();<br> <br> if (ip_TblItems.size() == 0) {<br> FacesMessageUtil.addErrorMessage("E0000001");<br> return null;
<br> } <br> } finally { <br> container.destroy(); <br> } <br> return "hoge"; <br> } <br><br></div>