When it comes to OpenId, Yahoo has some real trust issues. Getting Yahoo to work with OpenId wasn’t  difficult at all. But when I signed-in to Yahoo from my website , this is the message that greeted me

Warning: Yahoo! cannot verify this website. We recommend you do not share any personal information with this website.

For a second, I was scared to signin to my own website !!!

So far, I have tested OpenId with Google, Yahoo, and MyopenId – this is the only provider I have found which is so touchy. (If this is for a good reason, then why don’t others care as well ???)

Anyway- this is how I fixed this…

Basically, you need to provide an XRD document to the OpenId provider. This blog post is an excellent read on this -

http://blog.nerdbank.net/2008/06/why-yahoo-says-your-openid-site.html

Another good resource I found was http://wilkinsonlab.ca/home/node/31

These two resources cover it all, but in case you are looking for grails or Acegi specific advice- following might help.
Continue reading »

 

Do your users a favor . Use OpenId in your website, rather than having them to create yet another user account.

I haven’t ready any statistics around this, but if I am the so called average user – I guess, I am 75% less likely to register for your website , even if that comes at the cost of having to do without your services.

How I got it working

Getting OpenId to work with Grails wasn’t bad at all.

I used the Acegi security plugin for this – it seems to be the de-facto choice (, at least at the time of this writing).

Continue reading »

 

This is a bare- bones Jboss tutorial

What will you need ?

jboss (obviously duh !!!) You can download from here (I used Jboss 4.0.5 GA )

And ANT to compile,build  and deploy

And 20 minutes of your time

What will we achieve ?

A quick on its feet Jboss tutorial which uses a stateless session bean to say hello to you

Assumptions

You are running your JBoss server on the default port number 1099.

This example was tested on windows XP platform- but should really work elsewhere as well.

Getting Started

Step 1: Download from here.

Step 2: Unzip the file to your file system. Lets say C:\JBossOne

Step 3: Start your JBoss server

Step 4: Open a  command prompt and then Go to the folder C:\JBossOne

Step 5: Edit build.properties and change the jboss.home to confirm to your deployment.

Step 6: Compile, Build the application- by giving the command ant package-ejb

Step 7: Deploy the application by giving the command ant deploy

Step 8: Confirm that the bean has been deployed correctly. It should give something like this on the jboss prompt

18:29:20,359 INFO  [EjbModule] Deploying HelloWorldBean
18:29:20,437 INFO  [ProxyFactory] Bound EJB Home ‘HelloWorldBean’ to jndi ‘Hello
World’
18:29:20,437 INFO  [EJBDeployer] Deployed: file:/C:/jboss_4_0_5/server/default/t
mp/deploy/tmp32046HelloWorld.ear-contents/HelloWorld-ejb.jar
18:29:20,484 INFO  [EARDeployer] Started J2EE application: file:/C:/jboss_4_0_5/
server/default/deploy/HelloWorld.ear

Step 9:Open a new command prompt and then Go to the folder C:\JBossOne

Step 10: Test your application by giving the command ant tests. You should see something like this

C:\Work\MyLabs\JBossOne>ant tests
Buildfile: build.xml

tests:
[junit] Running com.rajivnarula.tutorial.jboss.test.HelloWorldTests
[junit] Testsuite: com.rajivnarula.tutorial.jboss.test.HelloWorldTests
[junit] hey
[junit] log4j:WARN No appenders could be found for logger (org.jboss.securit
y.SecurityAssociation).
[junit] log4j:WARN Please initialize the log4j system properly.
[junit] Hello Boss
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 2.235 sec
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 2.235 sec
[junit]
[junit] ————- Standard Output —————
[junit] hey
[junit] Hello Boss
[junit] ————- —————- —————
[junit] ————- Standard Error —————–
[junit] log4j:WARN No appenders could be found for logger (org.jboss.securit
y.SecurityAssociation).
[junit] log4j:WARN Please initialize the log4j system properly.
[junit] ————- —————- —————

BUILD SUCCESSFUL

Voila !!!. That’s it

If you have trouble downlaoding or get error on running it- please leave a note here and I shall try to help you resolve it.

© 2011 Technology Cafe Suffusion theme by Sayontan Sinha