Jacek,
Added printStackTrace()'s in Petstore and found the following problem when
shows up as
GeneralFailureException
Thanks,
dims
javax.naming.NamingException: No such mbean:
jmx://6f7ce9:fa3361c2a2:-8000:srida01l:1/geronimo.j2ee:J2eeType=SessionBean,name=ShoppingControllerEJB?getEJBLocalHome
[Root exception is javax.management.InstanceNotFoundException: MBeanServer
cannot find MBean with
ObjectName geronimo.j2ee:J2eeType=SessionBean,name=ShoppingControllerEJB]
at
com.sun.j2ee.blueprints.servicelocator.web.ServiceLocator.getLocalHome(ServiceLocator.java:116)
at
com.sun.j2ee.blueprints.petstore.controller.web.PetstoreComponentManager.getShoppingController(PetstoreComponentManager.java:128)
at
com.sun.j2ee.blueprints.petstore.controller.web.PetstoreComponentManager.getShoppingCart(PetstoreComponentManager.java:143)
at
com.sun.j2ee.blueprints.petstore.controller.web.PetstoreComponentManager.sessionCreated(PetstoreComponentManager.java:107)
at
org.mortbay.jetty.servlet.AbstractSessionManager.newHttpSession(AbstractSessionManager.java:203)
at
org.mortbay.jetty.servlet.ServletHandler.newHttpSession(ServletHandler.java:411)
at
org.mortbay.jetty.servlet.ServletHttpRequest.newSession(ServletHttpRequest.java:524)
at
org.mortbay.jetty.servlet.ServletHttpRequest.getSession(ServletHttpRequest.java:512)
at
org.mortbay.jetty.servlet.ServletHttpRequest.getSession(ServletHttpRequest.java:562)
at
com.sun.j2ee.blueprints.signon.web.SignOnFilter.doFilter(SignOnFilter.java:126)
at
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:516)
at
com.sun.j2ee.blueprints.encodingfilter.web.EncodingFilter.doFilter(EncodingFilter.java:77)
at
org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter(WebApplicationHandler.java:516)
at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:468)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:488)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1732)
at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:555)
--- Jacek Laskowski <[EMAIL PROTECTED]> wrote:
> Davanum Srinivas wrote:
>
> > if i drop all the jars in WEB-INF/lib, i can get past the
> > "java.lang.NoClassDefFoundError:
> > com/sun/j2ee/blueprints/servicelocator/ServiceLocatorException" problem.
>
> Hey Dims,
>
> I'd recommend to put the jars to target/geronimo-DEV/lib directory.
> Although it seems to be the same as all jars are finally included in
> "geronimo.system:role=ClassSpace,name=System", but it's not been tested.
>
> > but am getting another problem.
> >
> > [java] 16:27:32,435 DEBUG [ServletHandler] EXCEPTION
> > [java] com.sun.j2ee.blueprints.waf.exceptions.GeneralFailureException
> > [java] at
> >
>
com.sun.j2ee.blueprints.petstore.controller.web.PetstoreComponentManager.getShoppingController(PetstoreComponentManager.java:135)
>
> It perhaps boils down to either incorrect WEB-INF/geronimo-web.xml or
> META-INF/geronimo-ra.xml.
>
> I can't join IRC tonight, thus if you faced another issue send it to me
> and I respond tomorrow morning (CET). Besides, there's a bug with the
> way transactions are handled in web apps, so we have to wait for Dave J.
>
> The exception is attached in case someone wants to look into it. Once
> you see the exception we're together ;-)
>
> > Thanks,
> > dims
>
> Jacek
>
=====
Davanum Srinivas - http://webservices.apache.org/~dims/