Page 1 of 1

Running the Demo Site through Eclipse

Posted: Fri Sep 30, 2011 2:33 pm
by partyk1d24
Ok I am banging my head here, I know it has to be something simple.

I have m2Eclipse w/ WTP Integration installed and Google Plugin.

When I run mvn clean package eclipse:eclipse gwt:eclipse -e I get a build success but when I try to deploy to a Tomcat server using WTP I get a CNF exception for a Spring class.

Code: Select all

java.lang.ClassNotFoundException: org.springframework.web.util.Log4jConfigListener
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1664)
   at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1509)
   at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:406)
        ....


I figure it has to be some problem with the configuration of eclipse but any help would be great

Re: Running the Demo Site through Eclipse

Posted: Sat Oct 08, 2011 3:42 am
by bgaillard
Hi,

I think you can follow this guide : http://www.broadleafcommerce.org/forum/viewtopic.php?f=7&t=400 to have a clean install of eclise.

When I run mvn clean package eclipse:eclipse gwt:eclipse -e I get a build success but when I try to deploy to a Tomcat server using WTP I get a CNF exception for a Spring class.


I think the best choice to deploy the Broadleaf demo site in Eclipse is with Maven plugins and not by using WTP Tomcat Server functionalities.

Personally I've installed Eclipse Indigo (instead of Hellios) with M2Eclipse http://eclipse.org/m2e/download/ and perform the following things :
- In Eclipse Indigo make a checkout on https://broadleaf.svn.sourceforge.net/svnroot/broadleaf/trunk/BroadleafCommerce.
- On the 'BroadleafCommerce' project : File -> Import -> Maven -> Existing Maven Projects -> Next. Select everything and click finish.
- On the 'BroadleafCommerce' project create an M2Eclipse Plugin build configuration with 'mvn clean install' (Right click -> Run As -> Maven build... -> Goals => 'clean install' -> Apply & Run)
- Then go to the 'broadleaf-demo' project and create an M2Eclipse Plugin build configuration with 'mvn jetty:run' (Right click -> Run As -> Maven build... -> Goals => 'jetty:run' -> Apply & Run).

Go to http://localhost:8080/broadleafdemo/welcome.htm and http://localhost:8080/broadleafdemo/admin.html

Good luck,

Baptiste

Re: Running the Demo Site through Eclipse

Posted: Mon Oct 10, 2011 9:32 am
by karthikguru
hI ,
cAN YOU TELL HOW TO PERFORM AND scm CHECKOUT USING iNDIGO.i'M NOT GETTING ANYTHING IN THE SCM URL dropdown ?

Re: Running the Demo Site through Eclipse

Posted: Mon Oct 10, 2011 10:06 am
by karthikguru
Ive figured it out ..... it's bcoz of conflicts in the Subclipse plugins ... uninstalled everythin and performed a fresh install ... it's working now.

Re: Running the Demo Site through Eclipse

Posted: Mon Oct 24, 2011 1:14 pm
by sbitra
After following the instructions posted in this thread and launched store thru link http://localhost:8080/broadleafdemo/store and clicked coffee, I have received the following error.

HTTP ERROR 500

Problem accessing /broadleafdemo/store/coffee. Reason:

IOException occurred reading text
Caused by:

org.hibernate.HibernateException: IOException occurred reading text


And also when I launched http://localhost:8080/broadleafdemo/login.jsp, I am getting log in error with id as admin and pwd admin (also tried with blc_admin).

Unable to login:

Bad credentials


Also, in project explorer, I see almost all the apps have red cross as if there is some kind of error but when I expand I see errors in USPSRequestBuilder and USPSResponseBuilder.java, cybersource.service,cybersource.service.payment and CyberSourceTaxServiceImpl.java

Please advise.

Thank you in advance for your help.