Site 404s with error is not (correctly) mounted for portnumber '0' and contextpath ''

112 views
Skip to first unread message

Alasdair Macrae

unread,
Oct 14, 2015, 5:44:00 AM10/14/15
to Hippo Community
Using Hippo CMS version 10 - I have re-created my site that used to run on 7.9. Locally the site works as expected but when I deploy it to a test server I get a 404 page and the following error:

14.10.2015 10:16:28 WARN  http-nio-8080-exec-17 [ResolvedVirtualHostImpl.matchMount:100] Virtual Host '<SERVER ADDRESS>' is not (correctly) mounted for portnumber '0' and contextpath '': We cannot return a ResolvedMount. Return null


I have ensured my hst:hosts configuration for the server is set to the correct address and nothing appears out of place there.


I am trying to view the site at http://<SERVER ADDRESS>:8080/site



Any help would be greatly appreciated :)

Mahesh Acharya

unread,
Oct 14, 2015, 5:56:17 AM10/14/15
to hippo-c...@googlegroups.com
Hi Alasdair

Do you have a correct host entry in "hst:hosts" for the test server?
for example, if you are test server name is "test.server.com" then you
will need an "hst:host" entry for that address, which will look
something like below.

hst:hosts
+test-server [hst:virtualhostgroup]
+com [hst:virtualhost]
+server [hst:virtualhost]
+test [hst:virtualhost]
+hst:root [hst:mount]


With this in place, you should be able to access
http://test.server.com:8080/site

More documentation on "hst:host" configuration can be found here [1]


[1]
http://www.onehippo.org/library/concepts/hst-configuration-model/hosts-configuration.html

Regards

Mahesh
> --
> Hippo Community Group: The place for all discussions and announcements about
> Hippo CMS (and HST, repository etc. etc.)
>
> To post to this group, send email to hippo-c...@googlegroups.com
> RSS:
> https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
> ---
> You received this message because you are subscribed to the Google Groups
> "Hippo Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to hippo-communi...@googlegroups.com.
> Visit this group at http://groups.google.com/group/hippo-community.
> For more options, visit https://groups.google.com/d/optout.



--
Mahesh R. ACHARYA
Solution Architect | Mobile: 781-640-5559 | Email: m.ac...@onehippo.com
Boston - 71 Summer Street, Boston, MA 02110
Amsterdam - Oosteinde 11, 1017 WT Amsterdam

US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
http://www.onehippo.com/

Ard Schrijvers

unread,
Oct 14, 2015, 5:56:49 AM10/14/15
to hippo-c...@googlegroups.com
On Wed, Oct 14, 2015 at 11:44 AM, Alasdair Macrae
<alasdair.j...@gmail.com> wrote:
> Using Hippo CMS version 10 - I have re-created my site that used to run on
> 7.9. Locally the site works as expected but when I deploy it to a test
> server I get a 404 page and the following error:

On test it hits a different host group below /hst:hst/hst:hosts so you
might have to check out whether the correct configuration is present
for '<SERVER ADDRESS>'

>
> 14.10.2015 10:16:28 WARN http-nio-8080-exec-17
> [ResolvedVirtualHostImpl.matchMount:100] Virtual Host '<SERVER ADDRESS>' is
> not (correctly) mounted for portnumber '0' and contextpath '': We cannot
> return a ResolvedMount. Return null

Most likely during the building of the HST model you already get a
warning about *why* the mount below <SERVER ADDRESS> could not be
correctly loaded. Check out those logs first and fix the indicated
problems

Regards Ard


>
>
> I have ensured my hst:hosts configuration for the server is set to the
> correct address and nothing appears out of place there.
>
>
> I am trying to view the site at http://<SERVER ADDRESS>:8080/site
>
>
>
> Any help would be greatly appreciated :)
>
> --
> Hippo Community Group: The place for all discussions and announcements about
> Hippo CMS (and HST, repository etc. etc.)
>
> To post to this group, send email to hippo-c...@googlegroups.com
> RSS:
> https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
> ---
> You received this message because you are subscribed to the Google Groups
> "Hippo Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to hippo-communi...@googlegroups.com.
> Visit this group at http://groups.google.com/group/hippo-community.
> For more options, visit https://groups.google.com/d/optout.



--
Hippo Netherlands, Oosteinde 11, 1017 WT Amsterdam, Netherlands
Hippo USA, Inc.- 745 Atlantic Ave, Eight Floor, Boston MA 02111,
United states of America.

US +1 877 414 4776 (toll free)
Europe +31(0)20 522 4466
www.onehippo.com

Alasdair Macrae

unread,
Oct 14, 2015, 6:10:48 AM10/14/15
to Hippo Community
Hey Mahesh,

Checked my hst setup - looks fine to me. So the server address is (with key words swapped):

http://<name>-web-qa2.<product>.<company>.network:8080/site

The hst:host config is set as:


+ qa2-group
+ newtwork
 + <company>
+ <product>
+ <name>-web-qa2
- hst:root 
 
 
That to me would appear correct? :)

Alasdair Macrae

unread,
Oct 14, 2015, 6:20:41 AM10/14/15
to Hippo Community
Only found the one warning but it is to do with:

[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.<COMPANY>.<NAME>:<PRODUCT>-web-bootstrap-configuration:jar -> duplicate declaration of version ${project.version} @ line 43, column 17


So I doubt this is related.

Reply all
Reply to author
Forward
0 new messages