portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bock, Richard" <richard.b...@siemens.com>
Subject AW: [jira] Commented: (JS2-353) JetspeedServletContainer throws ServletException when called for jetspeed web app context
Date Wed, 07 Sep 2005 08:03:01 GMT
Hi David,

We get an exception, may be the web.xml of jetspeed is not configured properly in our M3 release
we use. The web.xml starts the servlet 

  <servlet>
    <servlet-name>JetspeedContainer</servlet-name>
    <display-name>Jetspeed Container</display-name>
    <description>MVC Servlet for Jetspeed Portlet Applications</description>
    <servlet-class>org.apache.jetspeed.container.JetspeedContainerServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>
  
    <!-- Define Velocity template compiler -->
    <servlet>
        <servlet-name>velocity</servlet-name>
        <servlet-class>org.apache.jetspeed.velocity.JetspeedVelocityViewServlet</servlet-class>
        <init-param>
            <param-name>org.apache.velocity.toolbox</param-name>
            <param-value>/WEB-INF/toolbox.xml</param-value>
        </init-param>
        <init-param>
            <param-name>org.apache.velocity.properties</param-name>
            <param-value>/WEB-INF/velocity.properties</param-value>
        </init-param>
        <init-param>
            <param-name>org.apache.jetspeed.cache.size</param-name>
            <param-value>50</param-value>
        </init-param>
        <init-param>
            <param-name>org.apache.jetspeed.cache.validation.interval</param-name>
            <param-value>10000</param-value>
        </init-param>
        <load-on-startup>10</load-on-startup>
    </servlet>


The servlet JetspeedContainer will check for the parameters set for the portlet. As it gets
started with web.xml of jetspeed there are currently no parameters set. I guess as jetspeed
itself does not support portlets in the webapp. In this case a null pointer exception occurs.

My first guess is, that we just need to remove the JetspeedContainer, in case jetspeed is
not supporting itself as portlet. In case I am wrong a check in the JetspeedContainer is required.


-----Urspr√ľngliche Nachricht-----
Von: David Sean Taylor (JIRA) [mailto:jetspeed-dev@portals.apache.org] 
Gesendet: Mittwoch, 7. September 2005 09:49
An: Bock, Richard
Betreff: [jira] Commented: (JS2-353) JetspeedServletContainer throws ServletException when
called for jetspeed web app context

    [ http://issues.apache.org/jira/browse/JS2-353?page=comments#action_12322812 ] 

David Sean Taylor commented on JS2-353:
---------------------------------------

The context for the jetspeed webapp is /jetspeed
Are you speaking of the entry in the portlet registry?

<portal>

Are you trying to render portlets in the /jetspeed context.
Im not sure if I follow....


> JetspeedServletContainer throws ServletException when called for jetspeed web app context
> -----------------------------------------------------------------------------------------
>
>          Key: JS2-353
>          URL: http://issues.apache.org/jira/browse/JS2-353
>      Project: Jetspeed 2
>         Type: Improvement
>   Components: Container
>     Versions: 2.0-M3
>  Environment: any
>     Reporter: Richard Bock
>     Priority: Minor

>
> there is no context defined for the jetspeed web app as it is not a porlet application
itself. In this case a servlet exception is thrown in JetspeedServletContainer init method.
Is the ServletException really required or is there a workaround that avoids the Exception?
> Reason:  When analysing Tomcat error logs this is usually some sort of confusion with
customers and system test as it causes a Servlet Exception and the first attempt is something
is wrong ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message