Wednesday, May 21, 2008

Eclipse template shortcuts

Recently I found some convenient methods to improve progamming typing in Eclipse with java,

type them and then press the "Enter" key and you will be suprised how fast you can be :)

some of the mosted used are:

sysout

new

private

public

for

if

......

Tuesday, May 6, 2008

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dwr:controller'.

Recently I am trying to use the DWR library, since my company is behind the firewall, Eclipse is not able to access the dwr schema. so when I decleared the dwr namespace in the spring configuration file:
xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.directwebremoting.org/schema/spring-dwr http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd">

I got the cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dwr:controller'. error in my Eclipse 3.3 version.

Inspired by the http://www.jroller.com/habuma/entry/fixing_spring_modules_xsd_errors

I download the http://www.directwebremoting.org/schema/spring-dwr-2.0.xsd and put it into my dwr.jar file and defined an entry in Web and XML" -> "XML Catalog".

The annoying error is gone :)