{"id":134,"date":"2013-12-22T06:09:32","date_gmt":"2013-12-21T20:09:32","guid":{"rendered":"http:\/\/blog.wingsofhermes.org\/?p=134"},"modified":"2013-12-22T06:12:13","modified_gmt":"2013-12-21T20:12:13","slug":"weld-001301-on-glassfish","status":"publish","type":"post","link":"https:\/\/blog.wingsofhermes.org\/?p=134","title":{"rendered":"WELD-001301 on Glassfish"},"content":{"rendered":"<p>Just ran into a great error on upgrading to Glassfish 4.\u00a0 Couple of references to it from Google but no solution.<\/p>\n<p>Glassfish log:<\/p>\n<p><em>[2013-12-22T07:02:51.014+1100] [glassfish 4.0] [SEVERE] [] [javax.enterprise.system.core] [tid: _ThreadID=36 _ThreadName=admin-listener(4)] [timeMillis: 1387656171014] [levelValue: 1000] [[<\/em><br \/>\n<em>\u00a0 Exception while loading the app : CDI deployment failure:WELD-001301 Annotation @org.glassfish.api.admin.RestEndpoints(value=[@org.glassfish.api.admin.RestEndpoint(description=disable-secure-admin, path=disable-secure-admin, opType=POST, params=[], useForAuthorization=false, configBean=interface com.sun.enterprise.config.serverbeans.Domain)]) is not a qualifier<\/em><br \/>\n<em>org.jboss.weld.exceptions.IllegalArgumentException: WELD-001301 Annotation @org.glassfish.api.admin.RestEndpoints(value=[@org.glassfish.api.admin.RestEndpoint(description=disable-secure-admin, path=disable-secure-admin, opType=POST, params=[], useForAuthorization=false, configBean=interface com.sun.enterprise.config.serverbeans.Domain)]) is not a qualifier<\/em><\/p>\n<p>Turns out I had some modules from Glassfish included into a library in the project so I could compile some EJBs.\u00a0 Turns out as well that including that library in the deployed EAR is a bad idea :).<\/p>\n<p>Simply told Netbeans not to package it in the Project Properties -&gt; Libraries page and all was good again.<\/p>\n<p>Simple error &#8211; only put it here because I couldn&#8217;t find anything on the net.\u00a0 Had to do the hard yards myself.\u00a0 Hate that!<\/p>\n<p>Oh yes &#8211; and you have to clean and build otherwise the library doesn&#8217;t get cleaned out from the build directory.\u00a0 (I know it&#8217;s obvious &#8211; but it messed me up for a while.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just ran into a great error on upgrading to Glassfish 4.\u00a0 Couple of references to it from Google but no solution. Glassfish log: [2013-12-22T07:02:51.014+1100] [glassfish 4.0] [SEVERE] [] [javax.enterprise.system.core] [tid: _ThreadID=36 _ThreadName=admin-listener(4)] [timeMillis: 1387656171014] [levelValue: 1000] [[ \u00a0 Exception while loading the app : CDI deployment failure:WELD-001301 Annotation @org.glassfish.api.admin.RestEndpoints(value=[@org.glassfish.api.admin.RestEndpoint(description=disable-secure-admin, path=disable-secure-admin, opType=POST, params=[], useForAuthorization=false, configBean=interface com.sun.enterprise.config.serverbeans.Domain)])&hellip; <span class=\"clear\"><\/span><a href=\"https:\/\/blog.wingsofhermes.org\/?p=134\" class=\"more-link read-more\" rel=\"bookmark\">Continue Reading <span class=\"screen-reader-text\">WELD-001301 on Glassfish<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[16,15,1],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pX0hd-2a","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.wingsofhermes.org\/index.php?rest_route=\/wp\/v2\/posts\/134"}],"collection":[{"href":"https:\/\/blog.wingsofhermes.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.wingsofhermes.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.wingsofhermes.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.wingsofhermes.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=134"}],"version-history":[{"count":2,"href":"https:\/\/blog.wingsofhermes.org\/index.php?rest_route=\/wp\/v2\/posts\/134\/revisions"}],"predecessor-version":[{"id":137,"href":"https:\/\/blog.wingsofhermes.org\/index.php?rest_route=\/wp\/v2\/posts\/134\/revisions\/137"}],"wp:attachment":[{"href":"https:\/\/blog.wingsofhermes.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.wingsofhermes.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.wingsofhermes.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}