Archive

Archive for September, 2007

Bamboo Rocks!!

September 15th, 2007 No comments

Its been more than a week since I installed Bamboo CI server and got it running. I am very impressed with it and for some reason, I feel it is more intuitive than both Continuum and Cruise Control.

I used their “Standalone distribution” and as advertised, it virtually requires no setup. I strongly recommend to check out their five minute installation guide before starting the installation. This guide and their documentation claims that Bamboo automatically detects Builders present in the system. Weirdly, that didn’t happen during my installation.

Another interesting thing I noticed is that when Bamboo runs maven builder, maven uses the settings.xml configuration under <maven_home>\conf and completely ignores the settings.xml file under <user_home>\.m2. I am not sure if this is a Bamboo “thing” and since I had my repository and mirror information configured in <user_home>\.m2\settings.xml, my initial build failed.

I was also little confused when specifying the “Clover XML directory” location for my plan. The documentation asks to input the name of the directory (including path) where XML file is generated. After little experimentation, I got it working using “Ant” style pattern (eg., **/target/site/clover/clover.xml).

Even though I ran into couple gotchas initially, I think its a breeze working with Bamboo.

Categories: Continous Integration Tags:

ClassNotFoundException: org.hibernate.hql.ast.HqlToken in Weblogic

September 5th, 2007 11 comments

Hibernate’s migration guide mentions that WebLogic uses a different version of ANTLR causing this exception.

A work around for this problem (differnet from what Hibernate mentions) is to set the “prefer-web-inf-classes” element in weblogic.xml to true.

       <weblogic-web-app>
               ....
          <container-descriptor>
              <prefer-web-inf-classes>true</prefer-web-inf-classes>
         </container-descriptor>
               ....
       </weblogic-web-app>

I encountered this problem several months ago while running under WebLogic 8.x. Interestingly, it still exists in WebLogic 10.x server.

Update for Ear files: When deploying the application as an ear file on WebLogic 10.x server, add the following to weblogic-application.xml file:

   <prefer-application-packages>
		<package-name>antlr.*</package-name>
	</prefer-application-packages>

The weblogic-application.xml file should be under META-INF folder of the ear file.

Categories: Solutions Log Tags: