# HTTP 404 - /myZK/

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 retag edit

## 4 Replies

9393 3 7 16
http://www.oxitec.de/

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>

.  .  .



best
Stephan

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.

9393 3 7 16
http://www.oxitec.de/

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.

PeterKuo
481 2

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 :)

[hide preview]