Page 1 of 1

admin 3.0 with broadleaf 2.0.2.

Posted: Tue Jun 25, 2013 4:45 pm
by jonjon
How could we use admin 3.0 with broadleaf 2.0.2 GA?...

If we upgrade to 3.0.3 broadleaf, any change with database ?

Thanks

Re: admin 3.0 with broadleaf 2.0.2.

Posted: Tue Jun 25, 2013 7:39 pm
by anikanchan
Admin 3.0 code is moving away from GWT to Spring so it is kind of difficult to use it with BL 2.0.2. GA. I have not noticed any DB changes but it would be nice to have proper documentation, if any.

Re: admin 3.0 with broadleaf 2.0.2.

Posted: Tue Jun 25, 2013 11:23 pm
by jonjon
Thanks...
As I run admin 3.0...there is some error:
----------------
SEVERE: Exception sending context initialized event to listener instance of class org.broadleafcommerce.common.web.extensibility.MergeContextLoaderListener
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 1489 in XML document from resource loaded from byte array is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'sec:http'.
---------------

Here is my config:
-------
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:sec="http://www.springframework.org/schema/security"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/b ... ns-3.2.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/c ... xt-3.2.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/s ... ty-3.1.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/u ... il-3.2.xsd">

<context:component-scan base-package="org.broadleafcommerce.profile.web.core.security"/>
<context:component-scan base-package="org.broadleafcommerce.core.web.order.security"/>

<!-- Resources do not need security -->
<sec:http pattern="/**/*.css" security="none" />
<sec:http pattern="/**/*.js" security="none" />
<sec:http pattern="/img/**" security="none" />
<sec:http pattern="/favicon.ico" security="none" />
<sec:http pattern="/robots.txt" security="none" />
<sec:http pattern="/login" security="none" />
<sec:http pattern="/forgotUsername" security="none" />
<sec:http pattern="/forgotPassword" security="none" />
<sec:http pattern="/changePassword" security="none" />
<sec:http pattern="/resetPassword" security="none" />
<sec:http pattern="/sendResetPassword" security="none" />
...
----------

Any thoughts?..
Thanks

Re: admin 3.0 with broadleaf 2.0.2.

Posted: Wed Jun 26, 2013 9:42 am
by phillipuniverse
You cannot use Admin 3.0 with older versions of Broadleaf. I guess it's feasible that it COULD work, but we would never recommend doing something like that and it definitely would not be supported.

For migration notes from 2.0 to 3.0, see http://docs.broadleafcommerce.org/dev/2 ... ation.html. Near the bottom under 'Data Migration' there is an ant task (included out of the box with DemoSite 2.2 and above) that will generate an update SQL script suitable to run against your database.