ConcourseConnect Support

Support
Corporate
PUBLIC PROFILE

Back to topics

Discuss Development

Building and deploying ConcourseConnect

You need to be logged in to post messages

Building and deploying ConcourseConnect

5/15/2009 9:17 AM EDT
Default user photo

By Matt Rajkowski

Concursive Corporation
Product Design

airplane-icon-100x100.png

With 1.0 now available, we're seeking developer build feedback. Have you packaged ConcourseConnect and deployed the .war? Any issues? Anything confusing?

1. 6/3/2009 8:22 AM EDT
Default user photo

By binh ly

I got error on Step 5 when deploy ConcourseConnect although I finished fill in all the required textboxes.

Create the administrator account
An error occurred while trying to verify the account, the following error was provided: null

Rgs

2. 6/3/2009 9:32 AM EDT
Default user photo

By Matt Rajkowski

Concursive Corporation
Product Design

airplane-icon-100x100.png

Not sure about your specific scenario... Linux/Mac/Windows? Java Version? Database Version?

Make sure you use Sun Java 5 or 6 and a reasonably new PostgreSQL like 8.3. If using Linux, make sure that Sun Java is truly being used and sometimes there are issues when using the Linux vendor's Apache Tomcat.

Any info you can provide would be helpful -- you can also look in the Tomcat log and see if there is a stack trace which describes the error.

Also, please make sure you are using the latest ConcourseConnect, which is 1.0.1 today.

3. 6/9/2009 3:00 AM EDT

I had the same error. my Os is windowsXP, and DB is postgresql-8.3.4.

I got the following error info in 5th configuration step.
"An error occurred while trying to verify the account, the following error was provided: null"

and later, I found the promp in "Setup.java".

try
db = getConnection(context);
if (SetupUtils.isAdminInstalled(db))
return "SetupAdminCompleteOK";
}
} catch (Exception e)
context.getRequest().setAttribute("actionError",
"An error occurred while trying to verify the account, the " +
"following error was provided: " + e.getMessage());
return "SetupConfigureAdminERROR";
} finally
freeConnection(context, db);
}

Would you confirm what's wrong?

4. 6/16/2009 1:45 PM EDT
Default user photo

By Matt Rajkowski

Concursive Corporation
Product Design

airplane-icon-100x100.png

It appears that the database connection is null. The connection information is stored in against your browser session during setup, and in particular you should see:
initializeConnectionElement(context);
right above the try block.

1) Do you have cookies enabled?
2) Are you using Connect 1.0.1 or later? I recall that the initializeConnectionElement was added around 1.0.
3) The next release will have additional logging information during this method by adding: LOG.error("configureAdmin", e); to the exception catch. Perhaps that will confirm the connection being null.

I'll try under Windows with the similar config and see what happens.

5. 6/22/2009 7:07 AM EDT

It looks good and installed successfully here.
I have queries and an issue. Here are all:
Issue:
Getting a blank alert box (Javascript). I have two groups. I go to view all groups. When I clicked on my second group, then it display group page but also shows an alert box without any message.

My queries are:
1. I am unable to see the jsp/servlet code. Will you not provide these codes?
2. How can I add a new form element in any existing form say registration page? I/any client may want to add any specific field in any form is there any way to do so?
3. What if I want to remove any specific link from left side portlet "Let's Get Started" without removing that category. Say I don't want to show "Add Product" but products should be there as site category.
4. What if I want to add any new form/module? I mean I can't see any code and architecture you are using. How can I develop my own module using some of your basic functionality? Right now I am not able to see the basic functionality.
5. What if I want to create an e-commerce site. Like if I want to sale products and want to have online payment system? Can I use any of your module/portlet or do I need to create it?

Hope query makes sense and can be answered.

Thanks
Krishan Babbar

6. 6/22/2009 10:44 AM EDT
Default user photo

By Matt Rajkowski

Concursive Corporation
Product Design

airplane-icon-100x100.png

Hello Krishan, glad things got installed.

As for the issue, it appears that if you do not have a Google API Map Key configured properly, that javascript error is being sent from Google. Since just today, that box appears blank for me too on unregistered systems so I think that is a Google issue. If you want maps to display, then check the Google Map key you are using, or comment out the setting in Connect's build.properties file to hide the maps completely.

Some answers to your questions...

1) The connect.war file comes already compiled for performance, so the source JSPs are not included. You can download the complete source code, modify the JSPs there, then re-compile the .war. The source is in the Subversion repository and is located through both Sourceforge.net and Google Code which we link to right from the ConcourseConnect product page. Using Subversion will allow you to track your changes easier.

2) Yes - depending on the particular form. Some forms are tied closely to a JavaBean, database table and API mapping so those would take more care.

3) There is a master XML file in the precompiled .war and the source called dashboards_en_US.xml; this file is one of the key elements in organizing a Connect site. You can move portlets around and you can alter the permissions of links and such. In particular, Products is configured in that only ConcourseConnect Administrators can add a product. There is an attribute isAdmin="true" which sets that. There is also a rule so that only admins will see the "Add a Product" link.

4) A couple of thoughts for developing your own form or module -- First, read through the ConcourseConnect Wiki. You will find information on the Architecture and Scalability, Customization & Integration, as well as Developer Guidelines. (those last two are incomplete but coming soon). Second, depending on your skillset (java?) you will have to decide what changes to make and where, and how to support them going forward. Finally, if you are serious about using ConcourseConnect for your sites, consider training from Concursive, we're looking to get monthly sessions going so please inquire with Contact Us. There are so many customization options and it may be worth it to get a review from the core team so make things easy for you.

5) While there are remnants of an E-commerce system in the code, specially Authorize.net credit card processing, a full set of product catalog tables and an integrated Ordering system, they haven't been revisited with nor made site-wide in ConcourseConnect. This was previous Team Elements code that would be nice to move forward or leverage. The challenge to using the existing code would be to adapt the new Products and Services module to it as the existing code was setup as a standalone module and didn't interface with any of the profile listings in Connect. So, to answer your question it would be best to create a new module, using portlets, and those portlets can either use some of the key existing OM code or migrate it. If you're up for the challenge and would like some pointers, then we could discuss this further.

7. 6/23/2009 5:55 AM EDT

Thanks Matt,

I have downloaded the code.
But I am unable to run the application from this source.
Can I have any step by step instructions for running the source code using Eclipse?
When I open the source code with Eclipse it is taking time to compile/build the project and gives error (like heap error something) after few minutes.

Please help in this regard.

Thanks
Krishan Babbar

8. 6/23/2009 8:45 AM EDT
Default user photo

By Matt Rajkowski

Concursive Corporation
Product Design

airplane-icon-100x100.png

I'll see if a developer can respond to this. I still use IntelliJ so I could only speculate.

9. 6/23/2009 10:23 AM EDT
Default user photo

By Matt Rajkowski

Concursive Corporation
Product Design

airplane-icon-100x100.png

Here's what I found out (thanks Nandan!):

In case of the heap error message for eclipse: Eclipse throws this error message when there is insufficient memory for jre(java.exe or javaw.exe) instance of eclipse to keep up the tomcat server. To solve this problem additional memory can be specified manually instead of the default the one.

1. Go to Window->Preferences->Java-installed jre's
2. Then select the installed jre reference and click Edit button
3. Add the following values to Default VM Arguments
-Xms256m -Xmx512m (or the amount of memory you want)

Eclipse will then process tomcat with those values.

Also Nandan just today got the error on Step 5 when deploying ConcourseConnect through Eclipse.. When he switched eclipse to debug mode to trace it the error went off. He thinks when tomcat got restarted while switching to debug mode that might have had something to remove the error.

Hope that helps track down a few things.

10. 6/23/2009 10:33 AM EDT

Thanks Matt and Nandan,

I will check with this.

15 results found