Ben,

Oooops! Corrected - however the updated web.xml still results in the same exception at:

...
Caused by: java.lang.NullPointerException
at org.stripesstuff.stripersist.Stripersist.getEntityManagerFactory(Stripersist.java:401) at org.stripesstuff.stripersist.Stripersist.getEntityManager(Stripersist.java:495)
...

with web.xml as follows:

   <listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class><!-- Automatically loads: /WEB-INF/applicationContext.xml -->
   </listener>

   <filter>
       <filter-name>StripesFilter</filter-name>
<filter-class>net.sourceforge.stripes.controller.StripesFilter</filter-class>
       ...
       <init-param>
           <param-name>Interceptor.Classes</param-name>
           <param-value>
               org.stripesstuff.stripersist.Stripersist,
               net.sourceforge.stripes.integration.spring.SpringInterceptor
           </param-value>
        </init-param>
       <init-param>
           <param-name>Extension.Packages</param-name>
           <param-value>
               org.lightagents.ui.stripes.extensions,
               org.lightagents.ui.stripes.reload.extensions,
           </param-value>
       </init-param>

--Nikolaos




Ben Gunter wrote:
You've specified a package name (org.stripesstuff.stripersist) in Interceptor.Classes where it requires a class name (org.stripesstuff.stripersist.Stripersist).

On Wed, May 26, 2010 at 11:21 PM, Nikolaos Giannopoulos <nikol...@brightminds.org <mailto:nikol...@brightminds.org>> wrote:

    Ben,

    Thanks for the reply.  I tweaked the web.xml as you suggested as
    follows:

       <listener>

    
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class><!--
    Automatically loads:  /WEB-INF/applicationContext.xml -->
       </listener>

       <filter>
           <filter-name>StripesFilter</filter-name>

    
<filter-class>net.sourceforge.stripes.controller.StripesFilter</filter-class>
           ...
           <init-param>
               <param-name>Interceptor.Classes</param-name>
               <param-value>
                   org.stripesstuff.stripersist,
net.sourceforge.stripes.integration.spring.SpringInterceptor
               </param-value>
            </init-param>
           <init-param>
               <param-name>Extension.Packages</param-name>
               <param-value>
                   org.lightagents.ui.stripes.extensions,
                   org.lightagents.ui.stripes.reload.extensions
               </param-value>
           </init-param>

    However I am still getting the same exception (see below this time
    though with debug logging enabled and more than just the exception).

    Could it be that the Interceptor.Classes list only guarantees the
    order
    of "execution" but not "initialization".

    Any other ideas????

    --Nikolaos


------------------------------------------------------------------------------

_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to