You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Th...@nepatec.de on 2005/04/06 09:16:25 UTC

problem with sourcen of the struts-bridge

hi !

i have a struts-portlet-application which works fine.
it's include the portals-bridges-struts-0.2.jar.

if i want to debug an see what happend in the bridge
i includes the java-files aof the bridge:

package org.apache.portals.bridges.struts and following..

also i included the 
org.apache.portals.bridges.common.ServletContextProvider class because
the StrutsPortlet need it.

when i start the application now i get a exception from the StrutsPortlet 
in line 140.

coming from this if-statement:

        Object obj = clazz.newInstance();
                    if (ServletContextProvider.class.isInstance(obj))
                    {
                        servletContextProvider = (ServletContextProvider) 
obj;
                    }
                    else
                        throw new PortletException("class not found");

it goes into the else.
but i dont understand the problem at the moment.
why is obj not a instance of ServletContextProvider?


it would be very nice if someone could help me.

thomas