vwjugow

chat picketlink 4

May 28th, 2014
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.67 KB | None | 0 0
  1. (14:17:43) pedroigor: ping
  2. (14:22:10) vwjuicew: pong
  3. (14:23:48) pedroigor: I'm getting some errors when building picketlink-issue
  4. (14:23:50) pedroigor: mvn install -Dmaven.test.skip=true -Denvironment=dev -Pjetty
  5. (14:24:28) vwjuicew: yes, which ones
  6. (14:25:27) pedroigor: let me run again
  7. (14:27:03) pedroigor: http://pastebin.com/br3Pqc3Q
  8. (14:27:50) vwjuicew: MM I think that has to do with Java version, are you using 1.6 ?
  9. (14:28:01) pedroigor: tried with 1.6 and 1.7
  10. (14:28:42) vwjuicew: ok, give me a sec, I'll ask somebody that has already fought this in the past
  11. (14:32:45) vwjuicew: maybe your maven is using a different java version. mvn --version and java -version give you the same java version ?
  12. (14:33:19) pedroigor: do I need to used 1.6 or 1.7 ?
  13. (14:34:31) vwjuicew: I use 1.7
  14. (14:34:56) vwjuicew: in the pom.xml is has 1.7 as java version
  15. (14:35:10) vwjuicew: you can try to set it to 1.6 in the pom
  16. (14:35:21) vwjuicew: and use 1.6
  17. (14:43:12) pedroigor: still failing ..
  18. (14:43:57) vwjuicew: what's your output for mvn --version and java -version ?
  19. (14:48:51) pedroigor: Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 12:22:22-0300)
  20. (14:48:53) pedroigor: Maven home: /pedroigor/java/tools/apache-maven
  21. (14:48:55) pedroigor: Java version: 1.7.0_45, vendor: Oracle Corporation
  22. (14:48:57) pedroigor: Java home: /pedroigor/java/sdk/jdk1.7.0_45/jre
  23. (14:48:59) pedroigor: Default locale: en_US, platform encoding: UTF-8
  24. (14:49:01) pedroigor: OS name: "linux", version: "3.14.4-200.fc20.x86_64", arch: "amd64", family: "unix"
  25. (14:49:03) pedroigor: =================
  26. (14:49:07) pedroigor: java version "1.7.0_55"
  27. (14:49:09) pedroigor: OpenJDK Runtime Environment (fedora-2.4.7.0.fc20-x86_64 u55-b13)
  28. (14:49:11) pedroigor: OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)
  29. (14:50:47) vwjuicew: could you try chaging your JAVA_HOME to the 1.7.0._45 from Oracle ?
  30. (14:51:11) vwjuicew: export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_45
  31. (14:51:53) pedroigor: did that ...
  32. (14:52:47) vwjuicew: and you still get OpenJDK when doing java -version ?
  33. (14:53:00) vwjuicew: give a sec then
  34. (14:53:20) pedroigor: no, now it is oracle
  35. (14:54:39) vwjuicew: ok, and you still get the error :/ ?
  36. (14:55:32) pedroigor: yes
  37. (14:58:54) vwjuicew: :S sorry if this sounds stupid or desperate, but can you try a mvn clean, and try again haha
  38. (14:59:07) pedroigor: i did that already :)
  39. (14:59:19) pedroigor: is it working for you, right ?
  40. (14:59:51) vwjuicew: yes, we only had that problem when running the application once, never compiling
  41. (15:00:12) vwjuicew: it happened to us when we compile with one version, but tried to run it with other
  42. (15:00:30) pedroigor: I'm going to build using a fresh maven repo ..
  43. (15:00:47) vwjuicew: mm ok, hope that helps
  44. (15:19:26) vwjuicew: no luck right? maybe changing your PATH ?
  45. (15:19:40) pedroigor: maven is downaloding the whole internet :)
  46. (15:19:46) pedroigor: downloading
  47. (15:19:56) vwjuicew: hahah
  48. (15:20:02) pedroigor: give me a few more minutes ..
  49. (15:20:23) vwjuicew: I'll have to commit something anyways
  50. (15:20:32) vwjuicew: it just failed after I downloaded the jars again
  51. (15:23:19) pedroigor: what is failing ?
  52. (15:23:25) pedroigor: build ?
  53. (15:28:23) vwjuicew: yes, something about errai
  54. (15:32:07) pedroigor: the same erro as mine ?
  55. (15:32:10) pedroigor: error
  56. (15:33:08) vwjuicew: no
  57. (15:37:15) vwjuicew: did you get it again ?
  58. (15:37:40) vwjuicew: go a git pull origin master though, I've just pushed something
  59. (15:50:36) pedroigor: almost finish ...
  60. (15:50:41) pedroigor: ok
  61. (15:52:30) vwjuicew: did it compile ?
  62. (15:52:45) pedroigor: going to fetch your changes now
  63. (15:54:02) pedroigor: looks fine now ...
  64. (15:54:14) pedroigor: you were hidden the candy, han ?
  65. (15:54:16) pedroigor: :)
  66. (15:55:46) pedroigor: how do I change the datasource ?
  67. (15:55:52) vwjuicew: haha no, I don't know why it's working now
  68. (15:56:07) vwjuicew: hm for jetty theres a file
  69. (15:56:34) vwjuicew: src/jetty/WEB-INf/jetty-env.xml
  70. (15:56:53) vwjuicew: and for jboss, you need to set it in the standalone.xml
  71. (15:57:04) pedroigor: can you change to use hsqldb instead ?
  72. (15:57:53) vwjuicew: hm let me try
  73. (16:06:18) vwjuicew: ok, trying it out
  74. (16:09:37) pedroigor: got it :)
  75. (16:09:42) pedroigor: btw, r u using linux ?
  76. (16:09:57) vwjuicew: yes
  77. (16:10:05) vwjuicew: I've pushed it already
  78. (16:10:15) pedroigor: how do you install the gwt dev plugin ?
  79. (16:10:39) pedroigor: is it only available for firefox ?
  80. (16:10:52) vwjuicew: ohh, no, for chrome too
  81. (16:11:21) pedroigor: Sorry, the GWT Developer Plugin no longer works with Chrome on Linux
  82. (16:11:28) vwjuicew: https://chrome.google.com/webstore/detail/gwt-developer-plugin/jpjpnpmbddbjkfaccnmhnkdgjideieim?hl=en
  83. (16:12:08) pedroigor: NPAPI plugins are not supported. ?
  84. (16:13:06) vwjuicew: hm yeah I think I had some troubles with it
  85. (16:13:12) vwjuicew: let me google a little bit more
  86. (16:13:21) pedroigor: trying something here ..
  87. (16:13:24) pedroigor: too
  88. (16:16:33) pedroigor: i think it worked now ..
  89. (16:16:35) pedroigor: let me test
  90. (16:17:00) vwjuicew: ok
  91. (16:17:38) pedroigor: it as added, but still asks for the plugin when trying:
  92. (16:17:40) pedroigor: http://127.0.0.1:8888/App.html?gwt.codesvr=127.0.0.1:9997
  93. (16:21:08) vwjuicew: https://code.google.com/p/google-web-toolkit/issues/detail?id=7778#c5 ?
  94. (16:27:59) pedroigor: what is your chrome version ?
  95. (16:28:03) pedroigor: and firefox ?
  96. (16:29:37) vwjuicew: I donт use firefox
  97. (16:29:52) vwjuicew: but you can try, it should work as well
  98. (16:30:06) vwjuicew: you just have to change a line in the App.gwt.xml file, so let me know
  99. (16:30:21) vwjuicew: my chrome Version 34.0.1847.137
  100. (16:30:36) pedroigor: humm ... mine is 35
  101. (16:30:39) pedroigor: let me downgrade
  102. (16:32:14) vwjuicew: hm I don't think that'll help :/ try firefox
  103. (16:32:25) pedroigor: ok
  104. (16:37:27) pedroigor: ok
  105. (16:37:44) pedroigor: need to change App.gwt.xml
  106. (16:37:58) pedroigor: <set-property name="user.agent" value="gecko1_8" /> ?
  107. (16:38:30) vwjuicew: yes, and you can comment "safari" so it takes less time to compile
  108. (16:38:44) pedroigor: may I ask you something ?
  109. (16:38:48) vwjuicew: yes
  110. (16:39:01) pedroigor: why are you guys using gwt and errai ? any specific requirement ?
  111. (16:39:23) vwjuicew: no, errai nees gwt, for what I understand
  112. (16:39:26) vwjuicew: needs*
  113. (16:39:29) pedroigor: yeah ..
  114. (16:39:44) vwjuicew: oh, you mean, why don't we use, jsf or some other ?
  115. (16:39:58) pedroigor: actually, just why you are using gwt :)
  116. (16:40:10) pedroigor: btw, got the login page !
  117. (16:40:29) vwjuicew: yey, so now I don't know how to generate a user in hte hsqsl
  118. (16:40:39) vwjuicew: let me try add the register page
  119. (16:40:42) vwjuicew: so you can create users
  120. (16:46:59) vwjuicew: we use gwt because errai works on top of it, we need it so errai works. At least that's what I know
  121. (16:47:05) pedroigor: i know your issue
  122. (16:47:14) pedroigor: jetty is not resolving the EntityManager
  123. (16:47:25) pedroigor: i mean, injecting when using @PersistenceContext
  124. (16:47:38) vwjuicew: oh, but I instantiated manually
  125. (16:47:51) pedroigor: yeah, that is also giving an error
  126. (16:48:03) pedroigor: telling that could not find the datasource in jndi ..
  127. (16:48:05) pedroigor: etc ..
  128. (16:51:04) vwjuicew: mm I don't get that. did you pull the hsqldb changes ?
  129. (16:51:13) pedroigor: let me get yours ..
  130. (16:52:36) pedroigor: another issue is ..
  131. (16:52:59) pedroigor: you are using the same EM
  132. (16:53:12) pedroigor: and producing it only during startup ..
  133. (16:53:27) pedroigor: i think you need a fresh one each time the app requests one ..
  134. (16:53:36) vwjuicew: the picketlink one ?
  135. (16:53:41) vwjuicew: yeah maybe
  136. (16:53:42) pedroigor: yes
  137. (16:53:58) pedroigor: how are you doing with the pu-magick ?
  138. (16:54:15) vwjuicew: it's in commonDAO.java
  139. (16:54:25) vwjuicew: we get a new one
  140. (16:54:45) vwjuicew: only when we delete some entity
  141. (16:55:00) vwjuicew: we had issues over a month ago, and right now is stable
  142. (16:55:43) vwjuicew: we had only one I think and we tried getting a new one each time, but that also brought us some problem
  143. (16:56:02) pedroigor: you need something like OpenEntityManagerInViewFilter ..
  144. (16:56:35) pedroigor: the worst case ..
  145. (16:56:49) pedroigor: I know how to handle that ... the only problem is manage transactions ...
  146. (16:59:13) pedroigor: why u need a UserDAO
  147. (16:59:15) pedroigor: ?
  148. (16:59:23) pedroigor: you can just use PL IDM ?
  149. (16:59:45) vwjuicew: we had that from before
  150. (17:00:10) vwjuicew: AND we don't completely understand PL yet so many things may be wrong
  151. (17:00:29) pedroigor: i see ..
  152. (17:03:52) pedroigor: which class is invoked when you hit the login button ?
  153. (17:04:57) vwjuicew: ok, so that is an errai security class, which calls picketlink
  154. (17:05:21) vwjuicew: (I've just pushed changes so you can create a user, and after creating it, it shows the login page below)
  155. (17:05:40) pedroigor: ok
  156. (17:17:18) vwjuicew: when login is clicked, PicketlinkAuthenticationService#login is called
  157. (17:17:40) pedroigor: ok
  158. (17:17:41) vwjuicew: and that calls out MagickAuthenticator :P
  159. (17:17:48) pedroigor: there are some strange behaviors ...
  160. (17:17:51) pedroigor: like ..
  161. (17:18:07) pedroigor: everytime you hit login the IDM configuration is initialized over and over again ..
  162. (17:18:15) vwjuicew: hm
  163. (17:18:16) pedroigor: ideally, this should be done once ..
  164. (17:18:30) vwjuicew: yeah, I think that's out fault
  165. (17:18:38) vwjuicew: the code is in MagickAuthenticator
  166. (17:18:48) pedroigor: I've removed this authc ..
  167. (17:18:52) pedroigor: I don't think you need it ..
  168. (17:19:07) vwjuicew: yeah I know, you told me in the post
  169. (17:19:44) vwjuicew: but didn't had time to understand and configure IDM to check passwords like BCrypt
  170. (17:25:57) pedroigor: also ..
  171. (17:26:23) pedroigor: how do you get the EntityManagerFactory built during the app startup ?
  172. (17:26:31) pedroigor: I'm not a jetty expert :)
  173. (17:27:14) pedroigor: is possible to run this app in EAP ?
  174. (17:28:21) vwjuicew: impossible on jetty I think.
  175. (17:28:33) vwjuicew: you mean the @Startup from ejb ?
  176. (17:28:41) vwjuicew: that doesn't work with jetty
  177. (17:29:17) pedroigor: is possible to run this app using EAP 6 ?
  178. (17:29:23) vwjuicew: I use a wildfly :/
  179. (17:29:28) pedroigor: cool
  180. (17:29:28) vwjuicew: didn't try with 6
  181. (17:29:32) pedroigor: how do I do ?
  182. (17:29:36) pedroigor: just deploy the war ?
  183. (17:29:51) vwjuicew: you need to compile with -Pjboss7
  184. (17:29:58) vwjuicew: and do a mvn clean before
  185. (17:30:25) pedroigor: and to deploy ?
  186. (17:30:34) vwjuicew: yes, just deploy the war, and you won't need gwt dev mode
  187. (17:31:22) pedroigor: i think that would help ..
  188. (17:32:10) vwjuicew: and you can add all the @startup @singleton @localBean you want haha
  189. (17:32:59) pedroigor: are you going to use wildfly or jetty in production ?
  190. (17:33:14) vwjuicew: we use jboss
  191. (17:33:19) pedroigor: nice
  192. (17:34:04) vwjuicew: jetty for dev because it's a little faster for redeploying and currently debug on server side isn't working in jboss, but it worked before.
  193. (17:35:54) pedroigor: which version of wildfly ?
  194. (17:36:05) pedroigor: getting some errors when deploying ..
  195. (17:36:43) vwjuicew: mm 7.1.1
  196. (17:37:23) vwjuicew: JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
  197. (17:39:13) vwjuicew: you don't have access here right ? https://bitbucket.org/magick/wildfly/src
  198. (17:39:46) pedroigor: actually, this is AS 7.1.1, not wildfly ..
  199. (17:39:52) pedroigor: is a old version of JBoss AS
  200. (17:40:11) pedroigor: man ...
  201. (17:40:29) vwjuicew: ups sry, we have it as wildfly in the repo
  202. (17:40:43) pedroigor: first of all, you need to decide the target container ...
  203. (17:40:59) pedroigor: specially if you consider how transactions are managed
  204. (17:41:08) pedroigor: you are using resource local
  205. (17:41:47) pedroigor: and it seems you don't have a solution to manage them (begin/commit/rollback) automatically ..
  206. (17:41:57) pedroigor: but you need to do that by yourself, am i right ?
  207. (17:41:58) vwjuicew: nope
  208. (17:42:03) vwjuicew: yes
  209. (17:43:24) pedroigor: is possible to intercept all requests in errai from an interceptor or filter or whatever ?
  210. (17:44:34) vwjuicew: http requests? hm I guess haven't done that so far
  211. (17:45:31) pedroigor: did you see this ?
  212. (17:45:33) pedroigor: https://github.com/errai/errai/tree/master/errai-demos/errai-jpa-demo-todo-list
  213. (17:45:53) vwjuicew: yes
  214. (17:47:57) pedroigor: it works ?
  215. (17:49:42) vwjuicew: I haven't deployed it
  216. (17:50:01) vwjuicew: it should...
  217. (17:53:47) vwjuicew: actually I spent more time looking at this demo in the past. https://github.com/errai/errai/tree/master/errai-demos/errai-security-demo
  218. (17:53:47) vwjuicew: and not that much with the one you just gave. I don't remember seeing all that picketlink stuff in the example so I must have missed it
Advertisement
Add Comment
Please, Sign In to add comment