Connexxion : Connecting Life with Technology

Byte by Byte Impressions on Technology, People and Process !

Archive for May, 2008

QuickTip: java.lang.RuntimeException: java.util.zip.ZipException

Posted by vikashazrati on Sunday, May 25, 2008

Recently we were trying to deploy a EJB3 .ear to the Jboss 4.3GA application server when we started getting this exception.

org.jboss.deployment.DeploymentException: exception in init of file:/D:/jboss-4.3.0.GA/server/default/deploy/esl_dist.ear/conf.jar
; - nested throwable: (java.lang.RuntimeException: java.util.zip.ZipException: error in opening zip file)
        at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53)
        at org.jboss.deployment.MainDeployer.init(MainDeployer.java:901)
        at org.jboss.deployment.MainDeployer.init(MainDeployer.java:895)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
        at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

Luckily for us we did not have to spend too much time trying to sort it out. This exception occurs when the app server is not able to open the archive that you have created. In our case we had created the archive with winrar and the size of the archive was 95KB. When we created the archive again with Winzip the size war 107KB and this time deployment to the app server worked like a dream!

Posted in Java | No Comments »

QuickTip : annotations are not supported in -source 1.3

Posted by vikashazrati on Tuesday, May 13, 2008

If you are using Maven 2 and you see this issue when you are building your applications then easy way out is to add the following snippet to your pom.xml


<build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>
    </plugins>
  </build>

Another tip: For posting source code on wordpress click here

Posted in Java | No Comments »

First Agile Workshop at Ghaziabad

Posted by vikashazrati on Wednesday, May 7, 2008

Ghaziabad, quoted amongst the top ten most dynamic cities, got its first brush with Agile when a full day workshop was conducted at the Raj Kumar Goel Institute of Technology on May 03′ 2008.

It was amazing to see the interest in the academic community to introduce Agile in their way of working. It was a second such conference that I attended after the Agile Goa 2007. There were representations from nearly 30 colleges, well mixed with people from the industry. We are told by the college authorities that there were 150+ registrations for the event with 125 people attending the conference.

Read the rest of this entry »

Posted in Agile | Tagged: , , , , | No Comments »