Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Resource does not exist error during custom viewlet loading

01:44:52,640 [990919440@qtp-443685490-20] ERROR net.jazz.ajax.servlets.StyleSheetServlet            - GET https://localhost:7443/jazz/web/_style/
?exclude=B~C~D~E~F~G~H~I~J~K~L~M~N~P~U~W~Y~h~i~j~k~l~m~n&include=com.ibm.research.userprofile.web.ui.internal.page.ResourceViewlet.js&_proxyURL=%2Fjazz&locale=en-usHEADER: Host = localhost:7443
HEADER: User-Agent = Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20100101 Firefox/12.0
HEADER: Accept = text/css,*/*;q=0.1
HEADER: Accept-Language = en-us,en;q=0.5
HEADER: Accept-Encoding = gzip, deflate
HEADER: Connection = keep-alive
HEADER: Referer = https://localhost:7443/jazz/web/projects/RTC%20RO%20Scrum
HEADER: Cookie = SaveStateCookie=undefined%2Ccom.ibm.team.dashboard.category%2Ccom.ibm.team.dashboard.category~%23_~%23com.ibm.team.dashboard.server.saveTeamDashboard; JazzFormAuth=Form; net-jazz-ajax-cookie-rememberUserId=; JSESSIONID=utjruov733yu18fg7n8g2aenq
Parameter: locale = [en-us]
Parameter: include = [com.ibm.research.userprofile.web.ui.internal.page.ResourceViewlet.js]
Parameter: _proxyURL = [/jazz]
Parameter: exclude = [B~C~D~E~F~G~H~I~J~K~L~M~N~P~U~W~Y~h~i~j~k~l~m~n]

java.lang.IllegalArgumentException: Resource does not exist: com.ibm.research.userprofile.web.ui.internal.page.ResourceViewlet.js
    at net.jazz.ajax.model.Resource.resolve(Resource.java:193)
    at net.jazz.ajax.model.Resource.resolveAll(Resource.java:206)
    at net.jazz.ajax.servlets.AbstractResourceServlet.createOperation(AbstractResourceServlet.java:37)
    at net.jazz.ajax.servlets.AbstractResourceServlet.doGet(AbstractResourceServlet.java:47)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at net.jazz.ajax.servlets.LoggingHttpServlet.service(LoggingHttpServlet.java:34)
    at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
    at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
    at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:67)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)

0 votes



4 answers

Permanent link
Some more info:

I checked the package structure specified in plugin.xml and it was fine. So, am not sure what is causing this "resource not found" for the custom viewlet loading. Can some one help please?

0 votes


Permanent link
Hello Vinay,
       Have you checked how to write a HelloWorldViewlet  details on our development wiki @ https://jazz.net/wiki/bin/view/Main/DashboardHelloWorldViewlet.
       If not, I would encourage you to check this out.
-Sree

0 votes


Permanent link
Hi Sreedhar,

Yes, I've tried that hello world viewlet but I get the same problem. So, my guess is that it has nothing to do with  the syntax of viewlet but more to do with the configuration aspects. I have checked the package structure and the stuff that goes into plugin.xml and it all seems fine.

Thanks
 -Vinay

0 votes


Permanent link
The root cause of the issue was actually a syntax error in the javascript file for the viewlet that was preventing our server from parsing it and resolving the resource. In situations like this, the syntax error in the javascript file should also show up in the log, so we are working with Vinay to identify why the earlier error wasn't logged. I will provide a further update here if this becomes clear.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jun 01 '12, 4:25 p.m.

Question was seen: 7,558 times

Last updated: Jun 06 '12, 9:48 a.m.

Confirmation Cancel Confirm