HelloJazzWebUI Tutorial 404 Error
Hello,
I've been following the tutorial for developing a Jazz WebUI given here: https://jazz.net/wiki/bin/view/WebUIBook/HelloJazzWebUI
However, when I actually access the page at http://localhost:9080/example/HelloWorld I get a 404 error with:
Problem accessing /example/HelloWorld. Reason: ProxyServlet: /example/HelloWorld
Powered by Jetty://
I setup the environment I'm using originally following the instructions from the RTC Extensions tutorial given here: https://jazz.net/library/article/1000
I've since tried a variety of different Eclipse versions and machines. I've done this with the downloadable attached code as well as writing it myself from scratch. The plug-ins I'm using are grabbed from the RTC-SDK download at the bottom of the page here: https://jazz.net/downloads/rational-team-concert/releases/4.0?p=allDownloads
Here is what my Console shows as well:
osgi> 16:18:15,120 [Start Level Event Dispatcher] INFO com.ibm.team.server.embedded.jetty.Activator - JSP Support is available
2014-06-26 16:18:15.146:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
16:18:15,152 [Start Level Event Dispatcher] INFO com.ibm.team.server.embedded.jetty.Activator - Adding WebApp for contextRoot = /example path = C:\JazzWebUI\WS4\com.example.embedded.webapp\WebContent
16:18:15,171 [Start Level Event Dispatcher] INFO com.ibm.team.server.embedded.jetty.Activator - Server starting
2014-06-26 16:18:15.171:INFO::jetty-6.1.x
2014-06-26 16:18:15.244:INFO::Started SocketConnector@0.0.0.0:9080
2014-06-26 16:18:15.361:INFO::Started SslSocketConnector@0.0.0.0:9443
16:18:15,361 [Start Level Event Dispatcher] INFO com.ibm.team.server.embedded.jetty.Activator - Server started
Any ideas of what is going wrong and how I can get my page to display?
showing 5 of 24
show 19 more comments
|
Be the first one to answer this question!
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.
Comments
Adding TRACE to the log gives me 3 additional lines of info in the console:
Well I'm pretty sure I found the problem but no solution.
The servlet class org.eclipse.equinox.http.servlet.HttpServiceServlet doesn't exist. I can't find any version of it anywhere. Currently I'm seeing if there is some replacement package I can just switch it out with, but I have very little working knowledge on these topics.
Nope, my previous inclination was incorrect. The package definitely exists.
Won't help you much, but I ran the example wit the same setup on jetty from the zip code provided as down load at the end of the page. It worked for me. So I assume you have a typo or some other problem somewhere.
Are you missing some dependency somewhere?
I don't think so. The first project com.example.embedded.webapp requires org.eclipse.equinoxx.http.servlet and the second project com.example.hello requires net.jazz.ajax.
Although, I have tried both with and without those dependencies as well. I get the same end result 404 page, but without them I get a lot more warnings such as:
Also the package com.ibm.team.server.embedded.jetty is required as well. Forgot to mention above.
Did you base your Launch for this on the existing jetty launch?
@Bevan Li
Did you find a solution for your issue? I am asking because a have the same problem as well.
Just tried it with 5.0 and the download file and I have the same issue. I will look at it.
first of all, the launch provided with the download is missing required bundles. If you validate, that becomes apparent. You can let the launch UI fix this and hen at least the startup seems to run without exceptions.
Hi Ralph, thanks, I really appreciate your help.
But I still can't access the application.
Did you succeed in running the application? If yes, have you changed something to get it up and running?
Lukas,
I just realized that I ran another example (there is one that runs inside RTC/the dashboards). I tried this example https://jazz.net/wiki/bin/view/WebUIBook/HelloJazzWebUI with 4.0.1 and I see exactly what you see - same error.
I am not skilled enough at the moment to get it fixed. I will try to figure out what the issue is, but there is no log output whatsoever. I will try to find someone who could help.
Hi Ralph,
That would be awesome. Thanks in advance.
One side note: I'm running this example on 5.0.
If it runs on 4.x it will likely run on 5.x. Anyway, I will try to find a contact that can help with 4.x and 5.x.
Sorry, I never got the example to work.
I ended up switching to this tutorial instead: https://jazz.net/wiki/bin/view/Main/JAFTutorial
Sorry I do not have any useful information, I may come back to this tutorial later to try and learn more.
Hi Ralph and Bevan
Congrats! I can't see an image. You could upload to dropbox or something similar and provide the link here.
I wasn't able to get mine to work using your configuration. Did you use the embedded webapp from the first tutorial? If I don't include it in your launch configuration I get the error:
HTTP ERROR: 404
Problem accessing /example/app. Reason:
Powered by Jetty://
If I do include it, I get this instead:
HTTP ERROR: 503
Problem accessing /example/app. Reason:
Powered by Jetty://
I should also mention that if I do include it I get the same exception as before:
I am using Eclipse Kepler on Windows 7 64Bit. My Jazz Server is the one you can download on the Jazz Foundation 5.0 download page
I have published both projects in a zip file on OneDrive, I am interested to hear whether you are able to get it up and running or not.
One more thing I might have to add is that I have set the Jazz Application Framework (JAF) as my target definition in eclipse
Unfortunately it is still not working for me even using your full project files. I get the 404 error:
Problem accessing /example/app. Reason:
I tried using Eclipse 4.4 and then downloaded 4.3 to try in the same version as you. I am indeed using Windows 7 64bit and I went ahead and grabbed JRE5 as per your setup as well. I am not sure what else to do at this point.
As an aside, I also get this warning:
The import org.apache.http.HttpEntity is never used