{"id":1113,"date":"2017-07-31T22:33:37","date_gmt":"2017-07-31T13:33:37","guid":{"rendered":"http:\/\/esoro.jp\/?p=1113"},"modified":"2017-07-31T22:52:43","modified_gmt":"2017-07-31T13:52:43","slug":"managedbean%e3%81%8c%e9%9d%9e%e6%8e%a8%e5%a5%a8%e3%81%ab%e3%81%aa%e3%81%a3%e3%81%a6%e3%81%84%e3%81%9f","status":"publish","type":"post","link":"https:\/\/esoro.jp\/?p=1113","title":{"rendered":"ManagedBean\u304c\u975e\u63a8\u5968\u306b\u306a\u3063\u3066\u3044\u305f"},"content":{"rendered":"<p> JavaEE\u3067JSF2\u3068JAX-RS\u3092\u4f7f\u3063\u305f\u7c21\u5358\u306a\u696d\u52d9Web\u30a2\u30d7\u30ea\u3092\u4f5c\u3063\u3066\u3044\u305f\u3093\u3067\u3059\u304c\u3001\u305d\u308c\u307e\u3067\u4f5c\u3063\u3066\u3044\u305f\u958b\u767a\u74b0\u5883\u306e\u307e\u307eWebLogic\u3067\u30ed\u30fc\u30ab\u30eb\u30c6\u30b9\u30c8\u3057\u3066\u3042\u308b\u7a0b\u5ea6\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u5f8c\u306b\u3001\u3055\u3059\u304c\u306b\u3053\u306e\u898f\u6a21\u306eAP\u306bWebLogic\u3092\u7528\u610f\u3059\u308b\u306e\u306f\u7121\u7406\uff01\u3068\u3044\u3046\u4e8b\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u524d\u306b\u3061\u3087\u3063\u3068\u5225\u4ef6\u3067\u4f7f\u3063\u3066\u307f\u305fglashfish\u5b9f\u88c5\u306epayaramicro\u3067\u52d5\u304f\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u307f\u307e\u3057\u305f\u3002<br \/>\n\u3000\u307e\u305a\u3001\u666e\u901a\u306bweblogic\u3067\u52d5\u304b\u3057\u3066\u3044\u305fwar\u3092payara\u306b\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u3068\u4e0b\u8a18\u30a8\u30e9\u30fc\u3067\u5931\u6557\u3057\u307e\u3059\u30fb\u30fb<\/p>\n<p>[[FATAL] No injection source found for a parameter of type public javax.ws.rs.core.Response<\/p>\n<p>\u3000\u6b63\u76f4\u3042\u307e\u308a\u610f\u8b58\u3057\u3066\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u3001\u3084\u3063\u3071\u308aweblogic\u306b\u306a\u308b\u3068\u5185\u5305\u3057\u3066\u3044\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u4f9d\u5b58\u3057\u3084\u3059\u304f\u3001\u3061\u3083\u3093\u3068\u5185\u90e8\u3092\u7406\u89e3\u3057\u3066\u3044\u306a\u3044\u3068\u4f55\u304c\u4f5c\u7528\u3057\u3066\u52d5\u4f5c\u3057\u3066\u3044\u308b\u304b\u304c\u89e3\u308a\u306b\u304f\u3044\u3067\u3059\u3002\u3002<br \/>\n\u3000\u30a8\u30e9\u30fc\u3092\u898b\u308b\u9650\u308a\u3001jax-rs\u95a2\u9023\u3067\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3044\u308b\u6a21\u69d8\u3002<br \/>\n\u3044\u308d\u3044\u308d\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u7f6e\u304d\u63db\u3048\u3066\u3044\u304f\u3068\u3001\u65e2\u306bManagedBean\u304c\u975e\u63a8\u5968\u306b\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3060\u3002\u3002<br \/>\n\u7d50\u679cpom.xml\u306f\u4e0b\u8a18\u306b\u306a\u308a<\/p>\n<pre class=\"lang:xhtml decode:true \" title=\"pom.xml\" >&lt;!-- https:\/\/mvnrepository.com\/artifact\/javax.servlet\/javax.servlet-api --&gt;\r\n&lt;dependency&gt;\r\n    &lt;groupId&gt;javax.servlet&lt;\/groupId&gt;\r\n    &lt;artifactId&gt;javax.servlet-api&lt;\/artifactId&gt;\r\n    &lt;version&gt;3.1.0&lt;\/version&gt;\r\n    &lt;scope&gt;provided&lt;\/scope&gt;\r\n&lt;\/dependency&gt;\r\n&lt;!-- https:\/\/mvnrepository.com\/artifact\/javax.faces\/javax.faces-api --&gt;\r\n&lt;dependency&gt;\r\n    &lt;groupId&gt;javax.faces&lt;\/groupId&gt;\r\n    &lt;artifactId&gt;javax.faces-api&lt;\/artifactId&gt;\r\n    &lt;version&gt;2.3&lt;\/version&gt;\r\n    &lt;scope&gt;provided&lt;\/scope&gt;\r\n&lt;\/dependency&gt;\r\n&lt;!-- https:\/\/mvnrepository.com\/artifact\/javax.enterprise\/cdi-api --&gt;\r\n&lt;dependency&gt;\r\n    &lt;groupId&gt;javax.enterprise&lt;\/groupId&gt;\r\n    &lt;artifactId&gt;cdi-api&lt;\/artifactId&gt;\r\n    &lt;version&gt;2.0&lt;\/version&gt;\r\n    &lt;scope&gt;provided&lt;\/scope&gt;\r\n&lt;\/dependency&gt;\r\n&lt;!-- https:\/\/mvnrepository.com\/artifact\/org.glassfish.jersey.containers\/jersey-container-servlet --&gt;\r\n&lt;dependency&gt;\r\n    &lt;groupId&gt;org.glassfish.jersey.containers&lt;\/groupId&gt;\r\n    &lt;artifactId&gt;jersey-container-servlet&lt;\/artifactId&gt;\r\n    &lt;version&gt;2.25.1&lt;\/version&gt;\r\n&lt;\/dependency&gt;<\/pre>\n<p>@ManagedBean\u3092@Named\u306b\u7f6e\u304d\u63db\u3048\u3001SessionScoped\u3092javax.enterprise.context\u306b\u5909\u3048\u305f\u308a\u3057\u3066\u3001\u3088\u3046\u3084\u304fpayara\u3067\u52d5\u304f\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3000\u3067\u3001\u3068\u308a\u3042\u3048\u305a\u52d5\u304b\u3059\u3053\u3068\u306f\u3067\u304d\u305f\u3068\u306f\u8a00\u3048\u3001\u4eca\u3084Web\u30a2\u30d7\u30ea\u3092\u7a4d\u6975\u7684\u306bJavaEE\u3067\u5b9f\u88c5\u3059\u308b\u7406\u7531\u304c\u5c11\u306a\u304f\u306a\u3063\u3066\u3044\u308b\u6c17\u304c\u3057\u307e\u3059\u3002Wab\u30a2\u30d7\u30ea\u306a\u3089php\u3068\u304bruby on Rails\u3067\u306e\u5927\u898f\u6a21\u30b5\u30a4\u30c8\u306e\u69cb\u7bc9\u4e8b\u4f8b\u304c\u305f\u304f\u3055\u3093\u3042\u308a\u307e\u3059\u3002\u901f\u5ea6\u7684\u306a\u30a2\u30c9\u30d0\u30f3\u30c6\u30fc\u30b8\u3082\u4eca\u3068\u306a\u3063\u3066\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u3088\u308a\u6b86\u3069\u611f\u3058\u3089\u308c\u306a\u3044\u3067\u3059\u3057\u3001\u305d\u306e\u5b9f\u88c5\u5bfe\u8c61\u306e\u30b7\u30b9\u30c6\u30e0\u306b\u4f55\u7b49\u304b\u306e\u5236\u7d04\u3084\u30ec\u30ac\u30b7\u30fc\u306a\u7406\u7531\u304c\u7d61\u3093\u3067\u306a\u3044\u3068\u6562\u3048\u3066JavaEE\u3092\u9078\u629e\u3059\u308b\u7406\u7531\u306f\u4f55\u3060\u308d\u3046\uff1fJavaEE\u304c\u3044\u307e\u3044\u3061\u666e\u53ca\u3057\u306a\u3044\u306e\u306f\u7d50\u5c40\u306e\u6240\u3001\u5404\u5b9f\u88c5\u306f\u30d9\u30f3\u30c0\u30fc\u6b21\u7b2c\u3068\u306a\u3063\u3066\u3044\u308b\u4e8b\u304c\u7d50\u679c\u7684\u306b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b5\u30fc\u30d0\u306e\u5b9f\u88c5\u6b21\u7b2c\u3068\u306a\u3063\u3066\u3057\u307e\u3044\u3001Java\u3068\u3057\u3066\u6700\u5927\u306e\u9b45\u529b\u3067\u3042\u308b\uff08\u3068\u7b46\u8005\u306f\u601d\u3063\u3066\u3044\u308b\uff09OS\u3092\u8d85\u3048\u305f\u4e00\u8cab\u6027\u3068\u3044\u3046\u3082\u306e\u304c\u3001\u5404AP\u30b5\u30fc\u30d0\u304c\u5185\u5305\u3057\u3066\u3044\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u30d0\u30e9\u30d0\u30e9\u3067\u3042\u308b\u4e8b\u306b\u3088\u308a\u3001\u6d88\u3048\u5931\u305b\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u3088\u3046\u306a\u6c17\u304c\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>JavaEE\u3067JSF2\u3068JAX-RS\u3092\u4f7f\u3063\u305f\u7c21\u5358\u306a\u696d\u52d9Web\u30a2\u30d7\u30ea\u3092\u4f5c\u3063\u3066\u3044\u305f\u3093 &hellip; <a href=\"https:\/\/esoro.jp\/?p=1113\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,6],"tags":[],"_links":{"self":[{"href":"https:\/\/esoro.jp\/index.php?rest_route=\/wp\/v2\/posts\/1113"}],"collection":[{"href":"https:\/\/esoro.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/esoro.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/esoro.jp\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/esoro.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1113"}],"version-history":[{"count":0,"href":"https:\/\/esoro.jp\/index.php?rest_route=\/wp\/v2\/posts\/1113\/revisions"}],"wp:attachment":[{"href":"https:\/\/esoro.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/esoro.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/esoro.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}