Home | May 2008 >>

Testing a web service

During the last two weeks I've been busy building a web service at work. It's the first web service for the company I work at as well as the first web service I've ever built so it's been fun to learn a couple of new things.

The work flow consists of a couple of steps, one of them being a connection to another service performing a payment of a credit card if it's a credit card order. I wanted to be sure that it could sustain a fair load and went googling for that kind of tool.

I found soapUI and it's great! It took a couple of hours, but after that I had a call to the web service up and running. A test that asserted a valid soap response as well as a XPath expression that counted the number of messages returned and checked them for correct return codes. Also a load test running tests for both invoice and credit card payments. Really powerful and cool I must say.

Not only that, it also got a good documentation which makes setting up a project really smooth. I will definitely recommend that we buy the Pro version for the next web service project!

Read more...

Tomcat 6 Windows service

tomcat6w.exe access denied

I installed Tomcat 6 at work the other day. The server is a windows server running our software. Most of the developers don't have admin access to it.

I installed tomcat as a service and choose to have it running at startup. It didn't take long before one of my fellow developers without admin access logged in and got this error message.

Very strange. He had full access to the Tomcat directory and tomcat6w.exe, the Tomcat monitor process that was giving him the error dialog. A colleague (thanks Oscar) pointed out that tomcat6w.exe probably was trying to contact the service. Of course! Since tomcat6w was running with the logged in user's privileges and the tomcat service was running as System the monitor program didn't have enough access.

Suggestion: don't install (I don't actually think I did that, so it might be automatic) the monitor program for people without access to the service.

Read more...

Tapestry 5 and GWT - part 2

Putting it all together

In this part I describe how to make GWT put several instances of it's application on one page with backing of Tapestry 5 and with some javascript in between to connect the dots.

If you're already familiar with Tapestry 5 and GWT this part is probably enough.

Putting it all together

Read more...

Tapestry 5 and GWT - part 1

GWT inside Tapestry 5 components with NetBeans support

This is a simple tutorial describing how to get my two favourite web "frameworks" (I guess GWT rather wants to be called a toolkit) Tapestry 5 and GWT to work together.

I'm using NetBeans and while this isn't specific to NetBeans, there is a hint or two for people using NetBeans.

This is the first part and deals with the basics of setting up GWT, Tapestry 5 and configuring NetBeans. The result will be a Tapestry 5/GWT web application without content. You can skip directly to part 2 (to be published in a few days) of you got this covered...

Read more...

First post

Blogs blogs blogs... aren't there enough? Well, I had done all the work to find out how to combine Tapestry 5 and GWT and I thought back at all the times earlier when I did similar things... researching, testing, getting things to work. It took me a couple of hours this time and it will probably take a couple of hours for others to figure it out as well. Hey... perhaps I could help a few people by publishing what I learned. Even if no other person what so ever has any use for it I guess it's good for me to have these things written down...

Read more...