Title: unable to integrate JSF2.2 page with REST endpoint class even with code written by you tried on Netbeans IDE8.1 using glassfish4.1.. · Issue #22 · javaee-samples/javaee7-hol · GitHub
Open Graph Title: unable to integrate JSF2.2 page with REST endpoint class even with code written by you tried on Netbeans IDE8.1 using glassfish4.1.. · Issue #22 · javaee-samples/javaee7-hol
X Title: unable to integrate JSF2.2 page with REST endpoint class even with code written by you tried on Netbeans IDE8.1 using glassfish4.1.. · Issue #22 · javaee-samples/javaee7-hol
Description: web.xml javax.faces.PROJECT_STAGE Development javax.faces.CLIENT_WINDOW_MODE url Open Graph Description: web.xml javax.faces.PROJECT_STAGE Development javax.faces.CLIENT_WINDOW_MODE url X Description: web.xml javax.faces.PROJECT_STAGE Development javax.faces.CLIENT_WINDOW_MODE url <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.Faces...
Opengraph URL: https://github.com/javaee-samples/javaee7-hol/issues/22
X: @github
Domain: patch-diff.githubusercontent.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"unable to integrate JSF2.2 page with REST endpoint class even with code written by you tried on Netbeans IDE8.1 using glassfish4.1..","articleBody":"web.xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cweb-app version=\"3.1\" xmlns=\"http://xmlns.jcp.org/xml/ns/javaee\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd\"\u003e\n \u003ccontext-param\u003e\n \u003cparam-name\u003ejavax.faces.PROJECT_STAGE\u003c/param-name\u003e\n \u003cparam-value\u003eDevelopment\u003c/param-value\u003e\n \u003c/context-param\u003e\n \u003ccontext-param\u003e\n \u003cparam-name\u003ejavax.faces.CLIENT_WINDOW_MODE\u003c/param-name\u003e\n \u003cparam-value\u003eurl\u003c/param-value\u003e\n \u003c/context-param\u003e\n\n```\n\u003cservlet\u003e\n \u003cservlet-name\u003eFaces Servlet\u003c/servlet-name\u003e\n \u003cservlet-class\u003ejavax.faces.webapp.FacesServlet\u003c/servlet-class\u003e\n \u003cload-on-startup\u003e1\u003c/load-on-startup\u003e\n\u003c/servlet\u003e\n\u003cservlet-mapping\u003e\n \u003cservlet-name\u003eFaces Servlet\u003c/servlet-name\u003e\n \u003curl-pattern\u003e/faces/*\u003c/url-pattern\u003e\n\u003c/servlet-mapping\u003e\n\u003cservlet\u003e\n\u003cservlet-name\u003ecom.mycompany.movieplex7.rest.ApplicationConfig\u003c/servlet-name\u003e\n\u003cload-on-startup\u003e1\u003c/load-on-startup\u003e\n\u003c/servlet\u003e\n```\n\n\u003cservlet-mapping\u003e\n\u003cservlet-name\u003ecom.mycompany.movieplex7.rest.ApplicationConfig\u003c/servlet-name\u003e\n\u003curl-pattern\u003e/webresources/*\u003c/url-pattern\u003e\n\u003c/servlet-mapping\u003e\n \u003csession-config\u003e\n \u003csession-timeout\u003e\n 30\n \u003c/session-timeout\u003e\n \u003c/session-config\u003e\n \u003cwelcome-file-list\u003e\n \u003cwelcome-file\u003efaces/index.xhtml\u003c/welcome-file\u003e\n \u003c/welcome-file-list\u003e\n\u003c/web-app\u003e\n\nbooking.xhtml\n\u003cbody\u003e\n\n```\n \u003cui:composition template=\"./../WEB-INF/template.xhtml\"\u003e\n\n \u003cui:define name=\"content\"\u003e\n \u003ch2\u003ePick a Movie\u003c/h2\u003e\n \u003ch:form prependId=\"false\"\u003e\n \u003ch:selectOneRadio value=\"#{booking.movieId}\" layout=\"pageDirection\" required=\"true\"\u003e\n \u003cf:selectItems value=\"#{movieFacadeREST.all}\" var=\"movie\" itemValue=\"#{movie.id}\" itemLabel=\"movie.name\"/\u003e\n \u003c/h:selectOneRadio\u003e\n\n \u003ch:commandButton id=\"shows\" value=\"Pick a time\" action=\"showtimes\"/\u003e\n \u003c/h:form\u003e\n \u003c/ui:define\u003e\n\n \u003c/ui:composition\u003e\n```\n\nMovieFacadeREST\npackage com.mycompany.movieplex7.rest;\n\nimport com.mycompany.movieplex7.entities.Movie;\nimport java.util.List;\nimport javax.ejb.Stateless;\nimport javax.persistence.EntityManager;\nimport javax.persistence.PersistenceContext;\nimport javax.ws.rs.Consumes;\nimport javax.ws.rs.DELETE;\nimport javax.ws.rs.GET;\nimport javax.ws.rs.POST;\nimport javax.ws.rs.PUT;\nimport javax.ws.rs.Path;\nimport javax.ws.rs.PathParam;\nimport javax.ws.rs.Produces;\nimport javax.ws.rs.core.MediaType;\n\n/**\n *\n- @author justme\n */\n @Stateless\n @Path(\"movie\")\n public class MovieFacadeREST extends AbstractFacade\u003cMovie\u003e {\n \n @PersistenceContext(unitName = \"movieplex7PU\")\n private EntityManager em;\n \n public MovieFacadeREST() {\n super(Movie.class);\n }\n \n @POST\n @Override\n @Consumes({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})\n public void create(Movie entity) {\n super.create(entity);\n }\n \n @PUT\n @Path(\"{id}\")\n @Consumes({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})\n public void edit(@PathParam(\"id\") Integer id, Movie entity) {\n super.edit(entity);\n }\n \n @DELETE\n @Path(\"{id}\")\n public void remove(@PathParam(\"id\") Integer id) {\n super.remove(super.find(id));\n }\n \n @GET\n @Path(\"{id}\")\n @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})\n public Movie find(@PathParam(\"id\") Integer id) {\n return super.find(id);\n }\n \n @GET\n @Override\n @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})\n public List\u003cMovie\u003e findAll() {\n return super.findAll();\n }\n \n @GET\n @Path(\"{from}/{to}\")\n @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})\n public List\u003cMovie\u003e findRange(@PathParam(\"from\") Integer from, @PathParam(\"to\") Integer to) {\n return super.findRange(new int[]{from, to});\n }\n \n @GET\n @Path(\"count\")\n @Produces(MediaType.TEXT_PLAIN)\n public String countREST() {\n return String.valueOf(super.count());\n }\n \n @Override\n protected EntityManager getEntityManager() {\n return em;\n }\n\n}\n\nApplicationConfig\npackage com.mycompany.movieplex7.rest;\n\nimport java.util.Set;\nimport javax.ws.rs.core.Application;\n\n/**\n *\n- @author justme\n */\n @javax.ws.rs.ApplicationPath(\"webresources\")\n public class ApplicationConfig extends Application {\n \n @Override\n public Set\u003cClass\u003c?\u003e\u003e getClasses() {\n Set\u003cClass\u003c?\u003e\u003e resources = new java.util.HashSet\u003c\u003e();\n addRestResourceClasses(resources);\n return resources;\n }\n \n /**\n - Do not modify addRestResourceClasses() method.\n - It is automatically populated with\n - all resources defined in the project.\n - If required, comment out calling this method in getClasses().\n */\n private void addRestResourceClasses(Set\u003cClass\u003c?\u003e\u003e resources) {\n resources.add(com.mycompany.movieplex7.rest.MovieFacadeREST.class);\n resources.add(com.mycompany.movieplex7.rest.SalesFacadeREST.class);\n resources.add(com.mycompany.movieplex7.rest.ShowTimingFacadeREST.class);\n resources.add(com.mycompany.movieplex7.rest.TheaterFacadeREST.class);\n resources.add(com.mycompany.movieplex7.rest.TimeslotFacadeREST.class);\n resources.add(org.glassfish.movieplex7.json.MovieReader.class);\n resources.add(org.glassfish.movieplex7.json.MovieWriter.class);\n }\n\n}\n\nPom.xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cproject xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\"\u003e\n \u003cmodelVersion\u003e4.0.0\u003c/modelVersion\u003e\n\n```\n\u003cgroupId\u003ecom.mycompany\u003c/groupId\u003e\n\u003cartifactId\u003emovieplex7\u003c/artifactId\u003e\n\u003cversion\u003e1.0-SNAPSHOT\u003c/version\u003e\n\u003cpackaging\u003ewar\u003c/packaging\u003e\n\n\u003cname\u003emovieplex7\u003c/name\u003e\n\n\u003cproperties\u003e\n \u003cendorsed.dir\u003e${project.build.directory}/endorsed\u003c/endorsed.dir\u003e\n \u003cproject.build.sourceEncoding\u003eUTF-8\u003c/project.build.sourceEncoding\u003e\n\u003c/properties\u003e\n\n\u003cdependencies\u003e\n \u003cdependency\u003e\n \u003cgroupId\u003eorg.eclipse.persistence\u003c/groupId\u003e\n \u003cartifactId\u003eeclipselink\u003c/artifactId\u003e\n \u003cversion\u003e2.5.2\u003c/version\u003e\n \u003cscope\u003eprovided\u003c/scope\u003e\n \u003c/dependency\u003e\n \u003cdependency\u003e\n \u003cgroupId\u003eorg.eclipse.persistence\u003c/groupId\u003e\n \u003cartifactId\u003eorg.eclipse.persistence.jpa.modelgen.processor\u003c/artifactId\u003e\n \u003cversion\u003e2.5.2\u003c/version\u003e\n \u003cscope\u003eprovided\u003c/scope\u003e\n \u003c/dependency\u003e\n \u003cdependency\u003e\n \u003cgroupId\u003ejavax\u003c/groupId\u003e\n \u003cartifactId\u003ejavaee-web-api\u003c/artifactId\u003e\n \u003cversion\u003e7.0\u003c/version\u003e\n \u003cscope\u003eprovided\u003c/scope\u003e\n \u003c/dependency\u003e\n\u003c/dependencies\u003e\n\n\u003cbuild\u003e\n \u003cplugins\u003e\n \u003cplugin\u003e\n \u003cgroupId\u003eorg.apache.maven.plugins\u003c/groupId\u003e\n \u003cartifactId\u003emaven-compiler-plugin\u003c/artifactId\u003e\n \u003cversion\u003e3.1\u003c/version\u003e\n \u003cconfiguration\u003e\n \u003csource\u003e1.7\u003c/source\u003e\n \u003ctarget\u003e1.7\u003c/target\u003e\n \u003ccompilerArguments\u003e\n \u003cendorseddirs\u003e${endorsed.dir}\u003c/endorseddirs\u003e\n \u003c/compilerArguments\u003e\n \u003c/configuration\u003e\n \u003c/plugin\u003e\n \u003cplugin\u003e\n \u003cgroupId\u003eorg.apache.maven.plugins\u003c/groupId\u003e\n \u003cartifactId\u003emaven-war-plugin\u003c/artifactId\u003e\n \u003cversion\u003e2.3\u003c/version\u003e\n \u003cconfiguration\u003e\n \u003cfailOnMissingWebXml\u003efalse\u003c/failOnMissingWebXml\u003e\n \u003c/configuration\u003e\n \u003c/plugin\u003e\n \u003cplugin\u003e\n \u003cgroupId\u003eorg.apache.maven.plugins\u003c/groupId\u003e\n \u003cartifactId\u003emaven-dependency-plugin\u003c/artifactId\u003e\n \u003cversion\u003e2.6\u003c/version\u003e\n \u003cexecutions\u003e\n \u003cexecution\u003e\n \u003cphase\u003evalidate\u003c/phase\u003e\n \u003cgoals\u003e\n \u003cgoal\u003ecopy\u003c/goal\u003e\n \u003c/goals\u003e\n \u003cconfiguration\u003e\n \u003coutputDirectory\u003e${endorsed.dir}\u003c/outputDirectory\u003e\n \u003csilent\u003etrue\u003c/silent\u003e\n \u003cartifactItems\u003e\n \u003cartifactItem\u003e\n \u003cgroupId\u003ejavax\u003c/groupId\u003e\n \u003cartifactId\u003ejavaee-endorsed-api\u003c/artifactId\u003e\n \u003cversion\u003e7.0\u003c/version\u003e\n \u003ctype\u003ejar\u003c/type\u003e\n \u003c/artifactItem\u003e\n \u003c/artifactItems\u003e\n \u003c/configuration\u003e\n \u003c/execution\u003e\n \u003c/executions\u003e\n \u003c/plugin\u003e\n \u003c/plugins\u003e\n\u003c/build\u003e\n```\n\n\u003c/project\u003e\n\nI have already tried this example three times but everytime its getting stuck with same problem...\n\nNext the JSF2.2 fileuploadexample is also not working I have tried atleast twice once with my own code and second time I used your code as mentioned over here plz help me with both the issues\n","author":{"url":"https://github.com/ankitshende","@type":"Person","name":"ankitshende"},"datePublished":"2016-08-18T16:26:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/22/javaee7-hol/issues/22"}
route-pattern /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) route-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:0754fa46-728f-7af6-adc0-6ed6766e63f8 current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id E5D0:DB76B:4173722:58B8031:6972091A html-safe-nonce 5d5469d6001f9cd9b5d1ab0bf9efa08b8e77d1dbd6cd9d783e5ad525ebab15fd visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUQwOkRCNzZCOjQxNzM3MjI6NThCODAzMTo2OTcyMDkxQSIsInZpc2l0b3JfaWQiOiI0NDExNzMxODU5MjI2MTAyMDQyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= visitor-hmac 80e96f74a54cd6205b6eb2c71040f45e00152dbbd7d0ff030d3e48a51901d217 hovercard-subject-tag issue:171943938 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/javaee-samples/javaee7-hol/22/issue_layout twitter:image https://opengraph.githubassets.com/c3a6dddbb2c962fa99efba40270b91ffd930f91f9671c91ea2cb93e95eec10d5/javaee-samples/javaee7-hol/issues/22 twitter:card summary_large_image og:image https://opengraph.githubassets.com/c3a6dddbb2c962fa99efba40270b91ffd930f91f9671c91ea2cb93e95eec10d5/javaee-samples/javaee7-hol/issues/22 og:image:alt web.xml javax.faces.PROJECT_STAGE Development javax.faces.CLIENT_WINDOW_MODE url og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username ankitshende hostname github.com expected-hostname github.com None 453de246939b1e04d711e109432e2df10933270413df93b7a8f8f1df8dda7f18 turbo-cache-control no-preview go-import github.com/javaee-samples/javaee7-hol git https://github.com/javaee-samples/javaee7-hol.git octolytics-dimension-user_id 6052086 octolytics-dimension-user_login javaee-samples octolytics-dimension-repository_id 12604856 octolytics-dimension-repository_nwo javaee-samples/javaee7-hol octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 12604856 octolytics-dimension-repository_network_root_nwo javaee-samples/javaee7-hol turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release 12756e5bdb9000be815bbf20a1acc7935638e596 ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.