Tuesday, May 29, 2012

Jboss 7 configuration to reflect jsp modification without redeployment

Add <configuration> entry in standalone.xml

<subsystem xmlns="urn:jboss:domain:web:1.0" default-virtual-server="default-host">
...
    <configuration>
        <jsp-configuration development="true"/>
    </configuration>
</subsystem>



Temporary files can be found in standalone/tmp/vfs

Sunday, May 13, 2012

Soln for the exception - Specified VM install not found: type Standard VM, name java-6-openjdk, on building a project in Eclipse


On trying to build a project in Eclipse, a dialogue appears, showing the exception - "Specified VM install not found: type Standard VM, name java-6-openjdk" .

The solution is :
Delete the "[proj_name].launch" file in the location [workspace]/.metadata/.plugins/org.eclipse.debug.core/.launches

Os: Ubuntu 10
Eclipse : Indigo


Wednesday, May 2, 2012

Automatic comments generation in eclipse

In eclipse, it can be configured to generate the comments automatically.

Go to Windows -> Preferences -> Java -> Code style -> Code Templates in eclipse.

Here we can configure the comment formats to be generated automatically.

Otherwise, click the "import" button and select the tempalte xml file (click here for a sample template xml ).

On creating a new java class, check the "Generate Comments" checkbox(find it at the bottom of the wizard window) .

To add the comment template, for a method, right click on method name -> Source -> Generate element comment (Shift + Alt  + j).