ConcourseConnect Support

Support
Corporate
PUBLIC PROFILE

Back to topics

Discuss Development

Building and deploying ConcourseConnect

11. 6/24/2009 9:06 AM EDT

I tried, as you mentioned, in eclipse but no success. Then I tried with copy one folder at a time.
Then when I try to run the application (when it was not showing any compile error i.e. red cross), it was not starting Apache Tomcat server. It was saying that server could not be started in 45 seconds.

Then I thought to add one element at a time in web.xml like i added following in web.xml
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<display-name>ConcourseConnect</display-name>
<!-- When a file is not specified -->
<servlet>
<servlet-name>WelcomeServlet</servlet-name>
<servlet-class>com.concursive.connect.web.modules.welcome.servlets.WelcomeServlet</servlet-class>
</servlet>
 


<servlet-mapping>
<servlet-name>WelcomeServlet</servlet-name>
<url-pattern>/WelcomeServlet</url-pattern>
</servlet-mapping>
 
<welcome-file-list>
<welcome-file>WelcomeServlet</welcome-file>
</welcome-file-list>

</web-app>

and when I run the application WelcomeServlet (I added a println and remove rest of the code), it is working and showing println result means server started successfully.
It means due to long web.xml server was not able to start in 45 seconds.

Then I tried with original WelcomeServlet, but got following message
The requested resource () is not available.

Then I added following listener elements in web.xml
<listener>
<listener-class>
com.concursive.connect.web.listeners.ContextListener
</listener-class>
</listener>
<listener>
<listener-class>
com.concursive.connect.web.listeners.SessionListener
</listener-class>
</listener>

but again it is showing "The requested resource () is not available." message.

Please suggest how to proceed further?
Is there any way to know which resource is not available?

I am using Eclipse 3.3.2 in windows XP.

I also installed IntelliJ and try ConcourseConnect application there, but there also I stuck with a compile error.
In file webapps\ConcourseConnect\src\main\java\org\apache\naming\resources\ResourceAttributes.java
saying at line 776 "return new RecyclableNamingEnumeration(attributes);"
cannot find symbol class RecyclableNamingEnumeration

I search in whole directory but unable to find this class.

Please let me know where i am doing wrong..

Thanks
Krishan Babbar

12. 6/25/2009 6:18 AM EDT

Finally I am able to install and run the code.
But on home page I am getting error in center area. Header and footers are coming fine.
I can see the following log message in the log file. Please let me know what can be the cause:
javax.portlet.PortletException
at org.apache.wsrp4j.consumer.proxyportlet.impl.ProxyPortlet.doInit(ProxyPortlet.java:147)
at org.apache.wsrp4j.commons.consumer.util.portlet.PortletFilterChain.doInit(PortletFilterChain.java:78)
at org.apache.wsrp4j.commons.consumer.util.portlet.PortletFilterManager.doInitFilters(PortletFilterManager.java:80)
at org.apache.wsrp4j.commons.consumer.util.portlet.ControllerPortlet.init(ControllerPortlet.java:51)
at org.apache.pluto.core.PortletServlet.init(PortletServlet.java:112)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4149)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4458)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.apache.wsrp4j.commons.exception.WSRPException: The consumer environment could not be instantiated.
at org.apache.wsrp4j.commons.exception.WSRPXHelper.throwX(WSRPXHelper.java:154)
at org.apache.wsrp4j.consumer.proxyportlet.impl.ProxyPortlet.initConsumerEnvironment(ProxyPortlet.java:179)
at org.apache.wsrp4j.consumer.proxyportlet.impl.ProxyPortlet.doInit(ProxyPortlet.java:145)
... 31 more
Caused by: java.lang.NullPointerException
at org.apache.wsrp4j.commons.util.configuration.ConfigurationParametersManager.getParameter(ConfigurationParametersManager.java:77)
at org.apache.wsrp4j.consumer.proxyportlet.impl.ProxyPortlet.initConsumerEnvironment(ProxyPortlet.java:164)
... 32 more

Nested Exception is org.apache.wsrp4j.commons.exception.WSRPException: The consumer environment could not be instantiated.
at org.apache.wsrp4j.commons.exception.WSRPXHelper.throwX(WSRPXHelper.java:154)
at org.apache.wsrp4j.consumer.proxyportlet.impl.ProxyPortlet.initConsumerEnvironment(ProxyPortlet.java:179)
at org.apache.wsrp4j.consumer.proxyportlet.impl.ProxyPortlet.doInit(ProxyPortlet.java:145)
at org.apache.wsrp4j.commons.consumer.util.portlet.PortletFilterChain.doInit(PortletFilterChain.java:78)
at org.apache.wsrp4j.commons.consumer.util.portlet.PortletFilterManager.doInitFilters(PortletFilterManager.java:80)
at org.apache.wsrp4j.commons.consumer.util.portlet.ControllerPortlet.init(ControllerPortlet.java:51)
at org.apache.pluto.core.PortletServlet.init(PortletServlet.java:112)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4149)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4458)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.NullPointerException
at org.apache.wsrp4j.commons.util.configuration.ConfigurationParametersManager.getParameter(ConfigurationParametersManager.java:77)
at org.apache.wsrp4j.consumer.proxyportlet.impl.ProxyPortlet.initConsumerEnvironment(ProxyPortlet.java:164)
... 32 more
net.sf.ehcache.CacheException: Could not fetch object for cache entry with key "portal|index.shtml".
at net.sf.ehcache.constructs.blocking.SelfPopulatingCache.get(SelfPopulatingCache.java:96)
at net.sf.ehcache.constructs.blocking.BlockingCache.get(BlockingCache.java:633)
at com.concursive.connect.cms.portal.utils.DashboardUtils.loadDashboardPage(DashboardUtils.java:77)
at com.concursive.connect.cms.portal.utils.DashboardUtils.loadDashboardPage(DashboardUtils.java:70)
at com.concursive.connect.cms.portal.actions.Portal.executeCommandDefault(Portal.java:131)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.concursive.commons.web.mvc.servlets.ControllerServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at com.concursive.connect.web.modules.welcome.servlets.WelcomeServlet.service(WelcomeServlet.java:116)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at com.concursive.connect.cms.portal.dao.DashboardTemplateList.<init>(DashboardTemplateList.java:103)
at com.concursive.connect.cms.portal.cache.DashboardPageCacheEntryFactory.createEntry(DashboardPageCacheEntryFactory.java:90)
at net.sf.ehcache.constructs.blocking.SelfPopulatingCache.get(SelfPopulatingCache.java:71)
... 30 more

Thanks
Krishan

13. 6/25/2009 9:28 AM EDT

All problems (till this time) has been solved.

Thanks
Krishan Babbar

14. 6/25/2009 9:53 AM EDT
Default user photo

By Matt Rajkowski

Concursive Corporation
Product Design

airplane-icon-100x100.png

Thanks for sticking with the development environment and glad you got past that.

15. 6/25/2009 11:07 AM EDT

Can you give any reference of e-book to understand the Portlet development and also for understanding existing code of ConcourseConnect and develop new module in ConcourseConnect taking maximum benifits of existing functionality.
I am asking this because I did JSP and Servlets few months back and this time I was not in touch with these.

Thanks for your help.

Krishan Babbar

15 results found