error while loading gridsphere

View: New views
1 Messages — Rating Filter:   Alert me  

error while loading gridsphere

by gayathri namala :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have been working on gridsphere for a couple of days. I am using  gridsphere 3.0.8, tomcat 5.5.25 and ant 1.7.0. I could install and load a hello world portlet. I tried  downloading another project and compiling the source code by storing the necessary library files in the lib directory of gridsphere(not the one in the projects folder). Though the build was successful I was getting the following error when I tried loading it.

GridSphere portal failed to initialize!


Unable to create a dispatcher for portlet: JSR Portlet Servlet Make sure the servletName: PortletServlet is the servlet-name defined in web.xml Stack Trace:
javax.portlet.PortletException: Unable to create a dispatcher for portlet: JSR Portlet Servlet Make sure the servletName: PortletServlet is the servlet-name defined in web.xml at org.gridsphere.portletcontainer.impl.PortletWebApplicationLoader.(PortletWebApplicationLoader.java:70) at org.gridsphere.services.core.registry.impl.PortletManagerServiceImpl.initPortletWebApplication(PortletManagerServiceImpl.java:220) at org.gridsphere.services.core.registry.impl.PortletManagerServiceImpl.initAllPortletWebApplications(PortletManagerServiceImpl.java:214) at org.gridsphere.servlets.GridSphereFilter.doFilter(GridSphereFilter.java:133) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595)

 
 
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
             version="1.0"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
    <portlet>
        <!-- place portlet description here -->
        <description xml:lang="en">This Portlet is a sample</description>
        <!-- place unique portlet name here -->
        <portlet-name>SamplePortlet</portlet-name>
        <display-name xml:lang="en">Hello Portlet</display-name>
        <!-- place your portlet class name here -->
        <portlet-class>org.gridsphere.hello.portlets.UserPortalClient</portlet-class>
        <expiration-cache>60</expiration-cache>
        <!-- place any initialization params here -->
        <!-- place supported modes here -->
        <supports>
            <mime-type>text/html</mime-type>
            <portlet-mode>edit</portlet-mode>
            <portlet-mode>help</portlet-mode>
        </supports>

        <supported-locale>en</supported-locale>
        <portlet-info>
            <title>A Sample Portlet</title>
            <short-title>Sample</short-title>
            <keywords>sample</keywords>
        </portlet-info>
        <!-- place portlet preferences here -->

    </portlet>
    <custom-portlet-mode>
        <description xml:lang="en">Pre-defined custom portlet mode CONFIGURE</description>
        <portlet-mode>CONFIGURE</portlet-mode>
    </custom-portlet-mode>
    <user-attribute>
        <description xml:lang="en">User Name</description>
        <name>user.name</name>
    </user-attribute>
    <user-attribute>
        <description xml:lang="en">User Id</description>
        <name>user.id</name>
    </user-attribute>
    <user-attribute>
        <description xml:lang="en">User Full Name</description>
 <name>user.name.full</name>
    </user-attribute>
    <user-attribute>
        <description xml:lang="en">User E-Mail</description>
        <name>user.email</name>
    </user-attribute>
    <user-attribute>
        <description xml:lang="en">Company Organization</description>
        <name>user.organization</name>
    </user-attribute>
    <user-attribute>
        <description xml:lang="en">Last Login Time</description>
        <name>user.lastlogintime</name>
    </user-attribute>
    <user-attribute>
        <description xml:lang="en">Timezone</description>
        <name>user.timezone</name>
    </user-attribute>
    <user-attribute>
        <description xml:lang="en">Preferred Locale</description>
        <name>user.locale</name>
    </user-attribute>
    <user-attribute>
        <description xml:lang="en">Preferred Theme</description>
        <name>user.theme</name>
    </user-attribute>
    <!--
        <security-constraint>
            <portlet-collection>
                <portlet-name>TimeZoneClock</portlet-name>
            </portlet-collection>
            <user-data-constraint>
                <transport-guarantee>CONFIDENTIAL</transport-guarantee>
            </user-data-constraint>
        </security-constraint>
    -->
</portlet-app>


_______________________________________________
Gridsphere-dev mailing list
Gridsphere-dev@...
http://lists.gridsphere.org/mailman/listinfo/gridsphere-dev