[Yanel-dev] resource type build

Prabodh Upreti pupreti at yahoo.com
Thu Jul 2 16:29:32 CEST 2009


Problem is solved.=A0 My mistake. I have entered the wrong namespace in res=
ource.xml.

>> Which documentation are you refering to? (Just asking so we can fix it :=
)...)

>I guess you mean

>http://www.yanel.org/en/documentation/best-practices/rapid-development-of-=
components.html

yes.

I now understand more about how the resources are stored/configured.

Thanks.

Prabodh



________________________________
From: Michael Wechner <michael.wechner at wyona.com>
To: yanel-development at wyona.com
Sent: Thursday, July 2, 2009 8:57:04 AM
Subject: Re: [Yanel-dev] resource type build

Guillaume D=E9flache schrieb:
> Prabodh Upreti schrieb:
>> Hello Guillaume
> =

> Hi all! ;)
> =

> =

>> I would like to setup my build so that I can just build the resource ins=
tead of the full build. According to the documentation I should be able to =
run:
> =

> Which documentation are you refering to? (Just asking so we can fix it :)=
...)

I guess you mean

http://www.yanel.org/en/documentation/best-practices/rapid-development-of-c=
omponents.html
> =

> =

>> ./build.sh -f src/contributions/resources/forgotpw/build.xml
>>=A0 This says compiled fine eventhough there are errors in the the code. =
When I run the full build I am able to see errors.
> =

> That's probably because this does not do anything ATM, see http://lists.w=
yona.org/pipermail/yanel-development/2009-May/003549.html (and http://lists=
.wyona.org/pipermail/yanel-development/2009-April/003544.html for the begin=
ning of the discussion). Please feel free to chime in there and give your o=
pinion.
> =

> Basically for now you have to use:
> ./build.sh -f src/contributions/resources/forgotpw/build.xml compile

some resources do not need this, because these are not using the generic bu=
ild process and hence have a default target, which
can be for example "compile"

Also in most cases you need to copy the built library by hand to

local/apache-tomcat-5.5.20/webapps/yanel/WEB-INF/lib/

and restart your tomcat if not configured otherwise.

I think we should add this info also to the documentation ;-)
> =

> =

>> How do I setup an easy build process for the new resource?
> =

> See above, and if I get some free time I'll have a look at auto-deploymen=
t of resource-type, which is the only thing missing to make a no-fuss "refr=
esh" default target for resource-types.
> =

> =

>> Also, I am getting following error:
>>=A0 java.lang.Exception: Unknown resource type: <{http://www.wyona.org/ya=
nel/resource/1.0}forgotpw/>
>>=A0 org.wyona.yanel.core.ResourceTypeRegistry.getResourceTypeDefinition(R=
esourceTypeRegistry.java:217) =

>>=A0 org.wyona.yanel.core.ResourceManager.getResource(ResourceManager.java=
:85) =

>>=A0 org.wyona.yanel.core.ResourceManager.getResource(ResourceManager.java=
:120) =

>>=A0 org.wyona.yanel.servlet.YanelServlet.getResource(YanelServlet.java:86=
2)
>> I understand resource is not being dectected here.=A0 I can see the =

> =

> Correct.
> =

> =

>> resource listed under https://localhost:8443/yanel/ which tells me that =
it is configured correctly.=A0 As per Michael's earlier threads, I also wen=
t and added the resource under
>>=A0 /yanel/trunk/src/realms/from-scratch-realm-template/resource-types.xm=
l <http://svn.wyona.com/repos/public/yanel/trunk/src/realms/from-scratch-re=
alm-template/resource-types.xml> =


I think it's better to make this a resource available to all realms by addi=
ng to

YANEL_HOME/src/resources

and

YANEL_HOME/conf/resource-types.xml

(similar to the 404 resource type)
>>=A0 Where else should I check?=A0 Thank you.
> =

> I think your RT is correctly referenced in the configuration files but so=
mehow did not got loaded Java-wise. Please check that a yanel-resource-forg=
otpw-0.0.1-dev-rXXX.jar or something is present in WEB-INF/lib or else the =
logs in build/logs/log4j-cnode1.log for errors.

agreed. Just to be sure you may want to build clean and build again, wherea=
s the above should actually help to figure it out

HTH

Michael
> =

> Cheers,
>=A0 =A0 Guillaume

-- Yanel-development mailing list Yanel-development at wyona.com
http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development



      =

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wyona.com/pipermail/yanel-development/attachments/20090702/3dde=
eafe/attachment.htm


More information about the Yanel-development mailing list