Page 1 of 1

Can't get admin up on VPS

Posted: Sat Aug 27, 2011 12:45 pm
by flatchannels
Hi All,

I'm trying Broadleaf Commerce 1.5 with mysql. Everything works fine on my local server including admin. But when I run it on my hosting VPS, the admin page doesn't come up. It stays in the green loading box at around 98% and then very finishes. The main site works fine. No error in server log and no other log found. Anyone know what could be the problem?

Appreciate your help!

Flat

Re: Can't get admin up on VPS

Posted: Sat Aug 27, 2011 1:17 pm
by jefffischer
If you're using the same setup as Broadleaf, you can take advantage of the GWT noserver option. For example, in the pom.xml of your admin module, you can add a <noServer> element to the configuration element of your get-maven-plugin. Then, you can do a "mvn gwt:debug" to get the gwt shell started. Then, in your browser, you can enter the URL to your admin instance on the VPS and append ?gwt.codesvr=localhost:9997 (or change localhost to wherever you have the gwt shell running locally) to the end of your url. Also, in your IDE, you can remote bind to the debugPort (see the gwt-maven-plugin configuration in your pom.xml) and set breakpoints in your gwt code, if desired. Regardless, the main reason for doing this is so that you have the GWT console running, which will allow you to easily see any exceptions that are occurring during admin startup.

Re: Can't get admin up on VPS

Posted: Sat Aug 27, 2011 2:52 pm
by flatchannels
Thank you, Jeff!
There is configurations under gwt-maven-plugin in site/BroadleafCommerceDemo/pom.xml. I don't see it in admin module. I've added <noserver>true</noserver> to it and ran mvn gwt:debug, but got following error:

[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.1.0-1:debug (default-cli) on project BroadleafCommerce: The parameters 'runTarget' for goal org.codehaus.mojo:gwt-maven-plugin:2.1.0-1:debug are missing or invalid -> [Help 1]

I didn't modify pom.xml dependencies except adding mysql-connector. Do I need to add additional dependency?

Appreciate it!

Flat

Re: Can't get admin up on VPS

Posted: Sat Aug 27, 2011 3:00 pm
by jefffischer
If you're literally running the BLC project structure and simply trying to debug a deployed version of the BLC demo, then you can run the gwt-debug ant task in build.xml in the demo project. Everything else I mentioned still stands.

Re: Can't get admin up on VPS

Posted: Sun Aug 28, 2011 12:09 pm
by flatchannels
Hi Jeff,

Thank you for the replies.

I've downloaded latest source from trunk. The only modification is maven home in build.properties. I still got the same problem. I wonder if I missed a step to set up GWT project. The instruction on GWT seems for version 1.1 only. What extra step do I need after building the entire project suite?

One other problem I have is if I use mysql, all tables except for the three payment related tables are dropped during shutting down. Is this by design or by configuration? How do I disable it?

Thank you!