Page 1 of 1

Administration Blank Page

Posted: Fri Jul 01, 2011 10:28 am
by karim.hj
Hi,

I have downloaded the code from the trunk and launch the demo. I got a blank page after login.

You can reproduce the symptom by using the nightly build SNAPSHOT1.5M2


Any idea ?

Re: Administration Blank Page

Posted: Fri Jul 01, 2011 10:36 am
by jefffischer
I'm lost -are you using the nightly snapshot binaries from the BLC nexus or are you working from the source retrieved from SourceForge subversion? What are the steps you're taking to that end up with an undesirable result? More information required...

Re: Administration Blank Page

Posted: Fri Jul 01, 2011 1:57 pm
by karim.hj
I imported the maven project into Eclipse from SourceForge subversion.
https://broadleaf.svn.sourceforge.net/s ... fCommerce/
Image
Image

I removed test code between

Code: Select all

<executions></executions
> from integration/pom.xml .

I opened Windows Console:

Code: Select all

mvn install -X  > mvn.log


Code: Select all

[...]
[DEBUG] Installing org.broadleafcommerce:distribute:1.5.0-M2-SNAPSHOT/maven-metadata.xml to ...
[DEBUG] Installing org.broadleafcommerce:distribute/maven-metadata.xml to ...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] BroadleafCommerce ................................. SUCCESS [0.282s]
[INFO] core .............................................. SUCCESS [0.015s]
[INFO] BroadleafCommerceInstrument ....................... SUCCESS [1.313s]
[INFO] core .............................................. SUCCESS [0.015s]
[INFO] BroadleafCommerceOpenAdminPlatform ................ SUCCESS [4.922s]
[INFO] BroadleafCommerceProfile .......................... SUCCESS [6.938s]
[INFO] BroadleafCommerceProfileWeb ....................... SUCCESS [4.203s]
[INFO] BroadleafCommerceFramework ........................ SUCCESS [8.969s]
[INFO] BroadleafCommerceFrameworkWeb ..................... SUCCESS [5.250s]
[INFO] module ............................................ SUCCESS [0.015s]
[INFO] BroadleafCommerceUSPSSchemas ...................... SUCCESS [8.969s]
[INFO] BroadleafCommerceUSPS ............................. SUCCESS [2.203s]
[INFO] BroadleafCommerceAdminModule ...................... SUCCESS [3.328s]
[INFO] site .............................................. SUCCESS [0.000s]
[INFO] BroadleafCommerceDemo ............................. SUCCESS [43.469s]
[INFO] BroadleafCommerceDemoLauncher ..................... SUCCESS [1.375s]
[INFO] BroadleafCommerceCyberSourceAPI ................... SUCCESS [17.953s]
[INFO] BroadleafCommerceCyberSource ...................... SUCCESS [2.375s]
[INFO] integration ....................................... SUCCESS [0.813s]
[INFO] distribute ........................................ SUCCESS [0.015s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS


I launched an embedded db:

Code: Select all

java -classpath [1.5M1Directory]/lib/demo/hsqldb/hsqldb/1.8.0.10/hsqldb-1.8.0.10.jar org.hsqldb.Server -database.0 file:data/broadleaf -dbname.0 broadleaf

No error

I used Eclipse to launch BroadleafCommerceDemo and add JRE memory settings

Code: Select all

-Xmx512M -XX:MaxPermSize=512M
:
http://img803.imageshack.us/img803/5431 ... hot115.jpg

No [ERROR] in start logs
Front is running , but after the login page comes a blank page. (few lines in html code)
Image

--------------

I reproduce the bug by replacing demo 1.5M1.war file by 1.5M2 SNAPSHOT war

Re: Administration Blank Page

Posted: Fri Jul 01, 2011 2:29 pm
by jefffischer
1. Create the maven project (just like you did) from Subversion
2. Do a maven clean. Then do a project clean on all projects in Eclipse. Then build the whole thing again. You don't have to remove the test code from the pom.xml. If you want to run the build and skip tests then do "mvn install -Dmaven.test.skip=true". This should get you to a clean slate.
3. There is a build.xml in the broadleaf-demo project. Mount this build.xml in your ant view in Eclipse.
4. Run the start-db ant task from the ant view.
5. Run the jetty-demo task from the ant view.

Once jetty has finished launching, open your browser and clear your cache. Go to http://localhost:8080/broadleafdemo for the coffee store demo and http://localhost:8080/broadleafdemo/admin.html for the admin site.

Re: Administration Blank Page

Posted: Sun Jul 03, 2011 3:28 pm
by karim.hj
OK, I followed the steps and it worked.

Image