Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (14:17:43) pedroigor: ping
- (14:22:10) vwjuicew: pong
- (14:23:48) pedroigor: I'm getting some errors when building picketlink-issue
- (14:23:50) pedroigor: mvn install -Dmaven.test.skip=true -Denvironment=dev -Pjetty
- (14:24:28) vwjuicew: yes, which ones
- (14:25:27) pedroigor: let me run again
- (14:27:03) pedroigor: http://pastebin.com/br3Pqc3Q
- (14:27:50) vwjuicew: MM I think that has to do with Java version, are you using 1.6 ?
- (14:28:01) pedroigor: tried with 1.6 and 1.7
- (14:28:42) vwjuicew: ok, give me a sec, I'll ask somebody that has already fought this in the past
- (14:32:45) vwjuicew: maybe your maven is using a different java version. mvn --version and java -version give you the same java version ?
- (14:33:19) pedroigor: do I need to used 1.6 or 1.7 ?
- (14:34:31) vwjuicew: I use 1.7
- (14:34:56) vwjuicew: in the pom.xml is has 1.7 as java version
- (14:35:10) vwjuicew: you can try to set it to 1.6 in the pom
- (14:35:21) vwjuicew: and use 1.6
- (14:43:12) pedroigor: still failing ..
- (14:43:57) vwjuicew: what's your output for mvn --version and java -version ?
- (14:48:51) pedroigor: Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 12:22:22-0300)
- (14:48:53) pedroigor: Maven home: /pedroigor/java/tools/apache-maven
- (14:48:55) pedroigor: Java version: 1.7.0_45, vendor: Oracle Corporation
- (14:48:57) pedroigor: Java home: /pedroigor/java/sdk/jdk1.7.0_45/jre
- (14:48:59) pedroigor: Default locale: en_US, platform encoding: UTF-8
- (14:49:01) pedroigor: OS name: "linux", version: "3.14.4-200.fc20.x86_64", arch: "amd64", family: "unix"
- (14:49:03) pedroigor: =================
- (14:49:07) pedroigor: java version "1.7.0_55"
- (14:49:09) pedroigor: OpenJDK Runtime Environment (fedora-2.4.7.0.fc20-x86_64 u55-b13)
- (14:49:11) pedroigor: OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)
- (14:50:47) vwjuicew: could you try chaging your JAVA_HOME to the 1.7.0._45 from Oracle ?
- (14:51:11) vwjuicew: export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_45
- (14:51:53) pedroigor: did that ...
- (14:52:47) vwjuicew: and you still get OpenJDK when doing java -version ?
- (14:53:00) vwjuicew: give a sec then
- (14:53:20) pedroigor: no, now it is oracle
- (14:54:39) vwjuicew: ok, and you still get the error :/ ?
- (14:55:32) pedroigor: yes
- (14:58:54) vwjuicew: :S sorry if this sounds stupid or desperate, but can you try a mvn clean, and try again haha
- (14:59:07) pedroigor: i did that already :)
- (14:59:19) pedroigor: is it working for you, right ?
- (14:59:51) vwjuicew: yes, we only had that problem when running the application once, never compiling
- (15:00:12) vwjuicew: it happened to us when we compile with one version, but tried to run it with other
- (15:00:30) pedroigor: I'm going to build using a fresh maven repo ..
- (15:00:47) vwjuicew: mm ok, hope that helps
- (15:19:26) vwjuicew: no luck right? maybe changing your PATH ?
- (15:19:40) pedroigor: maven is downaloding the whole internet :)
- (15:19:46) pedroigor: downloading
- (15:19:56) vwjuicew: hahah
- (15:20:02) pedroigor: give me a few more minutes ..
- (15:20:23) vwjuicew: I'll have to commit something anyways
- (15:20:32) vwjuicew: it just failed after I downloaded the jars again
- (15:23:19) pedroigor: what is failing ?
- (15:23:25) pedroigor: build ?
- (15:28:23) vwjuicew: yes, something about errai
- (15:32:07) pedroigor: the same erro as mine ?
- (15:32:10) pedroigor: error
- (15:33:08) vwjuicew: no
- (15:37:15) vwjuicew: did you get it again ?
- (15:37:40) vwjuicew: go a git pull origin master though, I've just pushed something
- (15:50:36) pedroigor: almost finish ...
- (15:50:41) pedroigor: ok
- (15:52:30) vwjuicew: did it compile ?
- (15:52:45) pedroigor: going to fetch your changes now
- (15:54:02) pedroigor: looks fine now ...
- (15:54:14) pedroigor: you were hidden the candy, han ?
- (15:54:16) pedroigor: :)
- (15:55:46) pedroigor: how do I change the datasource ?
- (15:55:52) vwjuicew: haha no, I don't know why it's working now
- (15:56:07) vwjuicew: hm for jetty theres a file
- (15:56:34) vwjuicew: src/jetty/WEB-INf/jetty-env.xml
- (15:56:53) vwjuicew: and for jboss, you need to set it in the standalone.xml
- (15:57:04) pedroigor: can you change to use hsqldb instead ?
- (15:57:53) vwjuicew: hm let me try
- (16:06:18) vwjuicew: ok, trying it out
- (16:09:37) pedroigor: got it :)
- (16:09:42) pedroigor: btw, r u using linux ?
- (16:09:57) vwjuicew: yes
- (16:10:05) vwjuicew: I've pushed it already
- (16:10:15) pedroigor: how do you install the gwt dev plugin ?
- (16:10:39) pedroigor: is it only available for firefox ?
- (16:10:52) vwjuicew: ohh, no, for chrome too
- (16:11:21) pedroigor: Sorry, the GWT Developer Plugin no longer works with Chrome on Linux
- (16:11:28) vwjuicew: https://chrome.google.com/webstore/detail/gwt-developer-plugin/jpjpnpmbddbjkfaccnmhnkdgjideieim?hl=en
- (16:12:08) pedroigor: NPAPI plugins are not supported. ?
- (16:13:06) vwjuicew: hm yeah I think I had some troubles with it
- (16:13:12) vwjuicew: let me google a little bit more
- (16:13:21) pedroigor: trying something here ..
- (16:13:24) pedroigor: too
- (16:16:33) pedroigor: i think it worked now ..
- (16:16:35) pedroigor: let me test
- (16:17:00) vwjuicew: ok
- (16:17:38) pedroigor: it as added, but still asks for the plugin when trying:
- (16:17:40) pedroigor: http://127.0.0.1:8888/App.html?gwt.codesvr=127.0.0.1:9997
- (16:21:08) vwjuicew: https://code.google.com/p/google-web-toolkit/issues/detail?id=7778#c5 ?
- (16:27:59) pedroigor: what is your chrome version ?
- (16:28:03) pedroigor: and firefox ?
- (16:29:37) vwjuicew: I donт use firefox
- (16:29:52) vwjuicew: but you can try, it should work as well
- (16:30:06) vwjuicew: you just have to change a line in the App.gwt.xml file, so let me know
- (16:30:21) vwjuicew: my chrome Version 34.0.1847.137
- (16:30:36) pedroigor: humm ... mine is 35
- (16:30:39) pedroigor: let me downgrade
- (16:32:14) vwjuicew: hm I don't think that'll help :/ try firefox
- (16:32:25) pedroigor: ok
- (16:37:27) pedroigor: ok
- (16:37:44) pedroigor: need to change App.gwt.xml
- (16:37:58) pedroigor: <set-property name="user.agent" value="gecko1_8" /> ?
- (16:38:30) vwjuicew: yes, and you can comment "safari" so it takes less time to compile
- (16:38:44) pedroigor: may I ask you something ?
- (16:38:48) vwjuicew: yes
- (16:39:01) pedroigor: why are you guys using gwt and errai ? any specific requirement ?
- (16:39:23) vwjuicew: no, errai nees gwt, for what I understand
- (16:39:26) vwjuicew: needs*
- (16:39:29) pedroigor: yeah ..
- (16:39:44) vwjuicew: oh, you mean, why don't we use, jsf or some other ?
- (16:39:58) pedroigor: actually, just why you are using gwt :)
- (16:40:10) pedroigor: btw, got the login page !
- (16:40:29) vwjuicew: yey, so now I don't know how to generate a user in hte hsqsl
- (16:40:39) vwjuicew: let me try add the register page
- (16:40:42) vwjuicew: so you can create users
- (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
- (16:47:05) pedroigor: i know your issue
- (16:47:14) pedroigor: jetty is not resolving the EntityManager
- (16:47:25) pedroigor: i mean, injecting when using @PersistenceContext
- (16:47:38) vwjuicew: oh, but I instantiated manually
- (16:47:51) pedroigor: yeah, that is also giving an error
- (16:48:03) pedroigor: telling that could not find the datasource in jndi ..
- (16:48:05) pedroigor: etc ..
- (16:51:04) vwjuicew: mm I don't get that. did you pull the hsqldb changes ?
- (16:51:13) pedroigor: let me get yours ..
- (16:52:36) pedroigor: another issue is ..
- (16:52:59) pedroigor: you are using the same EM
- (16:53:12) pedroigor: and producing it only during startup ..
- (16:53:27) pedroigor: i think you need a fresh one each time the app requests one ..
- (16:53:36) vwjuicew: the picketlink one ?
- (16:53:41) vwjuicew: yeah maybe
- (16:53:42) pedroigor: yes
- (16:53:58) pedroigor: how are you doing with the pu-magick ?
- (16:54:15) vwjuicew: it's in commonDAO.java
- (16:54:25) vwjuicew: we get a new one
- (16:54:45) vwjuicew: only when we delete some entity
- (16:55:00) vwjuicew: we had issues over a month ago, and right now is stable
- (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
- (16:56:02) pedroigor: you need something like OpenEntityManagerInViewFilter ..
- (16:56:35) pedroigor: the worst case ..
- (16:56:49) pedroigor: I know how to handle that ... the only problem is manage transactions ...
- (16:59:13) pedroigor: why u need a UserDAO
- (16:59:15) pedroigor: ?
- (16:59:23) pedroigor: you can just use PL IDM ?
- (16:59:45) vwjuicew: we had that from before
- (17:00:10) vwjuicew: AND we don't completely understand PL yet so many things may be wrong
- (17:00:29) pedroigor: i see ..
- (17:03:52) pedroigor: which class is invoked when you hit the login button ?
- (17:04:57) vwjuicew: ok, so that is an errai security class, which calls picketlink
- (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)
- (17:05:40) pedroigor: ok
- (17:17:18) vwjuicew: when login is clicked, PicketlinkAuthenticationService#login is called
- (17:17:40) pedroigor: ok
- (17:17:41) vwjuicew: and that calls out MagickAuthenticator :P
- (17:17:48) pedroigor: there are some strange behaviors ...
- (17:17:51) pedroigor: like ..
- (17:18:07) pedroigor: everytime you hit login the IDM configuration is initialized over and over again ..
- (17:18:15) vwjuicew: hm
- (17:18:16) pedroigor: ideally, this should be done once ..
- (17:18:30) vwjuicew: yeah, I think that's out fault
- (17:18:38) vwjuicew: the code is in MagickAuthenticator
- (17:18:48) pedroigor: I've removed this authc ..
- (17:18:52) pedroigor: I don't think you need it ..
- (17:19:07) vwjuicew: yeah I know, you told me in the post
- (17:19:44) vwjuicew: but didn't had time to understand and configure IDM to check passwords like BCrypt
- (17:25:57) pedroigor: also ..
- (17:26:23) pedroigor: how do you get the EntityManagerFactory built during the app startup ?
- (17:26:31) pedroigor: I'm not a jetty expert :)
- (17:27:14) pedroigor: is possible to run this app in EAP ?
- (17:28:21) vwjuicew: impossible on jetty I think.
- (17:28:33) vwjuicew: you mean the @Startup from ejb ?
- (17:28:41) vwjuicew: that doesn't work with jetty
- (17:29:17) pedroigor: is possible to run this app using EAP 6 ?
- (17:29:23) vwjuicew: I use a wildfly :/
- (17:29:28) pedroigor: cool
- (17:29:28) vwjuicew: didn't try with 6
- (17:29:32) pedroigor: how do I do ?
- (17:29:36) pedroigor: just deploy the war ?
- (17:29:51) vwjuicew: you need to compile with -Pjboss7
- (17:29:58) vwjuicew: and do a mvn clean before
- (17:30:25) pedroigor: and to deploy ?
- (17:30:34) vwjuicew: yes, just deploy the war, and you won't need gwt dev mode
- (17:31:22) pedroigor: i think that would help ..
- (17:32:10) vwjuicew: and you can add all the @startup @singleton @localBean you want haha
- (17:32:59) pedroigor: are you going to use wildfly or jetty in production ?
- (17:33:14) vwjuicew: we use jboss
- (17:33:19) pedroigor: nice
- (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.
- (17:35:54) pedroigor: which version of wildfly ?
- (17:36:05) pedroigor: getting some errors when deploying ..
- (17:36:43) vwjuicew: mm 7.1.1
- (17:37:23) vwjuicew: JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
- (17:39:13) vwjuicew: you don't have access here right ? https://bitbucket.org/magick/wildfly/src
- (17:39:46) pedroigor: actually, this is AS 7.1.1, not wildfly ..
- (17:39:52) pedroigor: is a old version of JBoss AS
- (17:40:11) pedroigor: man ...
- (17:40:29) vwjuicew: ups sry, we have it as wildfly in the repo
- (17:40:43) pedroigor: first of all, you need to decide the target container ...
- (17:40:59) pedroigor: specially if you consider how transactions are managed
- (17:41:08) pedroigor: you are using resource local
- (17:41:47) pedroigor: and it seems you don't have a solution to manage them (begin/commit/rollback) automatically ..
- (17:41:57) pedroigor: but you need to do that by yourself, am i right ?
- (17:41:58) vwjuicew: nope
- (17:42:03) vwjuicew: yes
- (17:43:24) pedroigor: is possible to intercept all requests in errai from an interceptor or filter or whatever ?
- (17:44:34) vwjuicew: http requests? hm I guess haven't done that so far
- (17:45:31) pedroigor: did you see this ?
- (17:45:33) pedroigor: https://github.com/errai/errai/tree/master/errai-demos/errai-jpa-demo-todo-list
- (17:45:53) vwjuicew: yes
- (17:47:57) pedroigor: it works ?
- (17:49:42) vwjuicew: I haven't deployed it
- (17:50:01) vwjuicew: it should...
- (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
- (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