0

HTTP 404 - /myZK/

asked 2010-02-16 13:22:30 +0800

jamarroquinm gravatar image jamarroquinm
6 1

After repeating the installation processes several times, over two different machines and expending several hours (my weekend included), I still had the response HTTP 404 - /myZK/ when I tried to call the app using “http://localhost:8080/myZK/” in the URL… it was driving me crazy …suddenly I just come up with the idea of using the whole url “http://localhost:8080/myZK/index.zul” and it worked.

I know it is certainly not the way it was supposed to work, and there is probably a problem there but, at least, I can start learning this technology. I imagine the same happens with the demo app. I’ll keep you posted on this.

Hope this save some problems to others as newbie as me.

Alex

delete flag offensive retag edit

4 Replies

Sort by » oldest newest

answered 2010-02-16 13:51:26 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2010-02-16 13:52:00 +0800

Definitively a false configuration!

Append the following lines in your web.xml

web.xml


        .  .  .

	<!-- ====================================================== -->
	<!--                      MISCELLANEOUS                     -->
	<!-- ====================================================== -->
	<welcome-file-list>
		<welcome-file>index.zul</welcome-file>
		<welcome-file>index.zhtml</welcome-file>
	</welcome-file-list>

        .  .  .

and your http://localhost:8080/myZK/ works.

best
Stephan

link publish delete flag offensive edit

answered 2010-02-16 15:47:13 +0800

jamarroquinm gravatar image jamarroquinm
6 1

Terry, thanks!

I just added these lines to the web.xml file and worked the way it was supposed to. Let me tell you that I (and I think most of who are new to ZK) just copy-pasted the web.xml file from the quickstart pdf document that comes with the zk-bin zip bundle; and this information you just give here is not present in that document.

And just for the sake of completeness (because I said I would tell about the demo) I installed the demo file and it worked just fine at the first time… couldn’t be happier. Let’s move to the eclipse and add-ins installation.

Regards,

Alex.

link publish delete flag offensive edit

answered 2010-02-16 16:59:56 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2010-02-16 17:04:51 +0800

Hi Alex,

welcome to ZK community.

Nice that's it's worked now as you wished,
I don't know it's missing in the sample web.xml, but this is not a zk dependend setting.
It's a normal setting for a web.xml, that the index.htm or index.html is taken as a startpage if no page are addressed in the Url.
In this case just a index.zul or index.zhtml. That's all.

Hope the zk team append this few lines in the pdf.

best
Stephan

PS: Have fun with zk.

link publish delete flag offensive edit

answered 2010-02-22 21:55:55 +0800

PeterKuo gravatar image PeterKuo
481 2

updated 2010-02-22 21:57:10 +0800

That's one of the reason I like to use wiki.
(Although pdf is inevitable at some case, after all, it's more easy to read a printout when you lying on the bed)

You may issue a bug record. It can help us to track it.
Though I just knocked my colleague's cell, and told him to modify it :)

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-02-16 13:22:30 +0800

Seen: 1,340 times

Last updated: Feb 22 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More