[OFBiz] Dev - Possible bug with <virtual-host> elements in webapp
configurations
Helmut Eggebert
helmuteggebert at hotmail.com
Thu Feb 17 10:30:15 EST 2005
Hi Users,
I posted to the user list two days ago with the subject line MultiStores
missing images and css but I have taken a few more cracks at it and I now
think its a bug rather than a config problem. With 3.2tag I had missing
images and css but now with HEAD/trunk I get blank pages.
Following David's advice here
http://lists.ofbiz.org/pipermail/dev/2005-February/007864.html I replaced my
3.2tag install with a svn HEAD/trunk install. Then I proceeded to try each
of these methods of virtual hosting and combinations of the two:
http://ofbizwiki.go-integral.com/Wiki.jsp?page=SSSMultiStores3
http://ofbizwiki.go-integral.com/Wiki.jsp?page=SSSMultiStores11
However, some of these methods don't seem to work. My current theory is
that both of these worked with Jetty but with Tomcat only the
SSSMultiStores11 is working. The SSSMultiStores3 method, which involves
adding one or more <virtual-host host-name="www.foo1.com"/> (being careful
to close it with </webapp>, etc) elements to your webapp configuration does
not seem to work in Tomcat.
SSSMultiStores11 works fine as long as there are no <virtual-host> elements
in any webapp configurations. I followed SSSMultiStores11 exactly and had
http://localhost:8080/ecommerce1 running a different store and catalog than
http://localhost:8080/ecommerce2 on the same OFBiz HEAD/trunk instance.
However, when I tried the method with adding a <virtual-host> element to an
additional webapp configuration, this is what I get:
http://localhost:8080/ecommerce1 -> fine as long as no vh in its seperate
webapp config
http://localhost:8080/ecommerce2 -> fine as long as no vh in its seperate
webapp config
http://www.foo1.com/ecommerce -> blank page with this vh in its seperate
webapp config
http://www.foo2.com/ecommerce -> blank page with this vh in its seperate
webapp config
Then I tried removing the webapp configs with vh elements in them and
creating new components for these vitual hosts. To create new components,
I:
1) copied the ecommerce component, renamed the directory
2) edited ofbiz-component.xml in the component to change the name such as
<ofbiz-component name="ecommerce-foo1">
3) added the appropriate line in component-load.xml such as <load-component
component-location="${ofbiz.home}/components/ecommerce-foo1"/>
4) added the <virtual-host host-name="www.foo1.com"/>
I still get a blank page. When a url such as http://www.foo1.com/ecommerce
is used the index.jsp does not do a redirect, no session is created, and the
servlet does not do a setup, etc.
This post relates to this thread with Al Byers, Joe Eckard and Tim Massey:
http://lists.ofbiz.org/pipermail/users/2004-April/003687.html
In that thread, it seemed that Al got it working but that was in April on
Jetty. Has anybody got this working with the newest version?
Thanks in advance.
_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee®
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
More information about the Dev
mailing list