{"action":"opened","issue":{"url":"https://api.github.com/repos/payara/Payara/issues/2817","repository_url":"https://api.github.com/repos/payara/Payara","labels_url":"https://api.github.com/repos/payara/Payara/issues/2817/labels{/name}","comments_url":"https://api.github.com/repos/payara/Payara/issues/2817/comments","events_url":"https://api.github.com/repos/payara/Payara/issues/2817/events","html_url":"https://github.com/payara/Payara/issues/2817","id":329180684,"node_id":"MDU6SXNzdWUzMjkxODA2ODQ=","number":2817,"title":"MicroConfig is not resolved in JSP","user":{"login":"jeyvison","id":2052262,"node_id":"MDQ6VXNlcjIwNTIyNjI=","avatar_url":"https://avatars0.githubusercontent.com/u/2052262?v=4","gravatar_id":"","url":"https://api.github.com/users/jeyvison","html_url":"https://github.com/jeyvison","followers_url":"https://api.github.com/users/jeyvison/followers","following_url":"https://api.github.com/users/jeyvison/following{/other_user}","gists_url":"https://api.github.com/users/jeyvison/gists{/gist_id}","starred_url":"https://api.github.com/users/jeyvison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeyvison/subscriptions","organizations_url":"https://api.github.com/users/jeyvison/orgs","repos_url":"https://api.github.com/users/jeyvison/repos","events_url":"https://api.github.com/users/jeyvison/events{/privacy}","received_events_url":"https://api.github.com/users/jeyvison/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-04T19:11:33Z","updated_at":"2018-06-04T19:11:33Z","closed_at":null,"author_association":"NONE","body":"# Description #\r\n----------\r\nHello Folks, I'm trying to use MicroProfile(Especifically MicroConfig) in JSP using Payara Full.\r\n\r\nThis is how my **build.gradle** file looks like:\r\n\r\n```\r\nplugins {\r\n    id 'java'\r\n    id 'war'\r\n}\r\n\r\ngroup 'testPayara'\r\nversion '1.0-SNAPSHOT'\r\n\r\nsourceCompatibility = 1.8\r\n\r\nrepositories {\r\n    mavenCentral()\r\n}\r\n\r\ndependencies {\r\n    providedCompile 'org.eclipse.microprofile:microprofile:1.2'\r\n    providedCompile group: 'javax', name: 'javaee-api', version: '8.0'\r\n\r\n}\r\n```\r\n\r\nMy **JSP**:\r\n```\r\n\r\n<%@ page import=\"org.eclipse.microprofile.config.ConfigProvider\" %><%--\r\n  Created by IntelliJ IDEA.\r\n  User: jeyvison\r\n  Date: 1/6/18\r\n  Time: 17:18\r\n  To change this template use File | Settings | File Templates.\r\n--%>\r\n<%@ page contentType=\"text/html;charset=UTF-8\" language=\"java\" %>\r\n<html>\r\n  <head>\r\n    <title>$Title$</title>\r\n  </head>\r\n  Hello\r\n\r\n  <%=ConfigProvider.getConfig().getValue(\"teste\", Integer.class)%>\r\n  </body>\r\n</html>\r\n```\r\n\r\nMy **microprofile-config.properties**\r\n\r\n`teste=10`\r\n\r\n\r\n## Expected Outcome\r\n\r\nThe JSP should show **Hello 10** in the browser\r\n\r\n## Current Outcome\r\n\r\nThe JSP shows me the following error:\r\n\r\n```\r\norg.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP\r\n\r\nPWC6199: Generated servlet error:\r\npackage org.eclipse.microprofile.config does not exist\r\n\r\nPWC6197: An error occurred at line: 15 in the jsp file: /index.jsp\r\nPWC6199: Generated servlet error:\r\ncannot find symbol\r\n  symbol:   variable ConfigProvider\r\n  location: class org.apache.jsp.index_jsp \r\n```\r\n\r\n## Steps to reproduce (Only for bug reports) \r\n\r\nRun the attached sample and acesse the following URL:\r\n\r\n**http://localhost:8080/testPayara-1.0-SNAPSHOT/**\r\n\r\n\r\n### Samples\r\n\r\nSee Sample [here](https://drive.google.com/file/d/1dfMmb3n8UeqxdvCTYGzrICngeDYxJ5Cc/view?usp=sharing)\r\n\r\n## Context (Optional)\r\n\r\nThe code `ConfigProvider.getConfig().getValue(\"teste\", Integer.class)` works in Java classes. The problem is the JSP.\r\n\r\n## Environment ##\r\n\r\n- **Payara Version**: 5.181\r\n- **Edition**: Full\r\n- **JDK Version**: 1.8.0_171 Oracle\r\n- **Operating System**: MacOS\r\n- **Database**: Oracle\r\n\r\n"}}
{"actor":{"display_login":"jeyvison"}}