Skip to main content

help with containers sample

1 reply [Last post]
sphenrie
Offline
Joined: 2009-01-05
Points: 0

I downloaded and followed the instructions to deploy the samples to my resin J2EE container. All of the samples are working except the "Containers" sample app which is giving me a NullPointer exception, see below.

The interesting thing is if I remove either jmaki.dcontainer widget tag in the index.jsp, then the page renders, just without the container content that I removed.

I am seeing this in the stdout as well for all the samples:
"unable to locate resource in webapp or classpath, using the unverified and unaltered Uri: '/resources/system-glue2.js'"

Has anyone seen this problem before or know how I might alter the sample code to fix it? The learning curve is steep enough without also having to debug the sample apps...lol...

Thanks,
Stephen

500 Servlet Exception
java.lang.NullPointerException
at jmaki.runtime.ResourceManager.getWidgetDir(ResourceManager.java:147)
at jmaki.runtime.WidgetCommonRenderer.init(WidgetCommonRenderer.java:77)
at jmaki.runtime.jsp.WidgetTag.doEndTag(WidgetTag.java:128)
at _jsp._containers._index__jsp._jspService(containers/index.jsp:140)
at com.caucho.jsp.JavaPage.service(JavaPage.java:60)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmurray71
Offline
Joined: 2003-07-31
Points: 0

Hii Stephen,

This error occurs if in your config.json if you list a file /resources/ssystem-glue2.js and you do have a file with the name under your "/resources" directory of your web application.

Hope this helps.

-Greg