Re: Issues running Tuscany applications in Geronimo 2.1.3

2008-09-29 Thread Luciano Resende
Thanks. that solved the problem !!!

On Sun, Sep 28, 2008 at 6:49 PM, Kevan Miller [EMAIL PROTECTED] wrote:

 On Sep 26, 2008, at 3:47 AM, Luciano Resende wrote:

 I'm trying to bringup a Tuscany application in Geronimo 2.1.3, and
 after fixing some TLD issues and JAXB dependency conflict issues, I
 still can't successfully start my Tuscany application (e.g
 calculator-ws-webapp) and the logs are showing the following
 classCastException. Any ideas and possible workarounds ?

 Luciano,
 I've created TUSCANY-2622
 (https://issues.apache.org/jira/browse/TUSCANY-2622) and attached a patch to
 the geronimo-web.xml deployment plan being used by the
 alert-aggregator-webapp. The patch removes inverse-classloading and uses
 hidden-classes filters, instead.

 I ran tests with the updated deployment plan, and things seemed to work
 pretty well for me.

 --kevan





-- 
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/


Inverse Classloading versus Hidden Class, was Re: Issues running Tuscany applications in Geronimo 2.1.3

2008-09-29 Thread Luciano Resende
Hi Kevan

   Your suggestion on TUSCANY-2622 is to stop using the inverse class
loading, and start to list some of the dependencies in the hidden
class section of the geronimo deployment descriptor. Although it
allows me to make progress with some of my tests, I was wondering what
has caused the inverse classloading configuration to stop working.

On Sun, Sep 28, 2008 at 11:02 PM, Luciano Resende [EMAIL PROTECTED] wrote:
 Thanks. that solved the problem !!!

 On Sun, Sep 28, 2008 at 6:49 PM, Kevan Miller [EMAIL PROTECTED] wrote:

 On Sep 26, 2008, at 3:47 AM, Luciano Resende wrote:

 I'm trying to bringup a Tuscany application in Geronimo 2.1.3, and
 after fixing some TLD issues and JAXB dependency conflict issues, I
 still can't successfully start my Tuscany application (e.g
 calculator-ws-webapp) and the logs are showing the following
 classCastException. Any ideas and possible workarounds ?

 Luciano,
 I've created TUSCANY-2622
 (https://issues.apache.org/jira/browse/TUSCANY-2622) and attached a patch to
 the geronimo-web.xml deployment plan being used by the
 alert-aggregator-webapp. The patch removes inverse-classloading and uses
 hidden-classes filters, instead.

 I ran tests with the updated deployment plan, and things seemed to work
 pretty well for me.

 --kevan





 --
 Luciano Resende
 Apache Tuscany, Apache PhotArk
 http://people.apache.org/~lresende
 http://lresende.blogspot.com/




-- 
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/


Re: Issues running Tuscany applications in Geronimo 2.1.3

2008-09-28 Thread Kevan Miller


On Sep 26, 2008, at 3:47 AM, Luciano Resende wrote:


I'm trying to bringup a Tuscany application in Geronimo 2.1.3, and
after fixing some TLD issues and JAXB dependency conflict issues, I
still can't successfully start my Tuscany application (e.g
calculator-ws-webapp) and the logs are showing the following
classCastException. Any ideas and possible workarounds ?


Luciano,
I've created TUSCANY-2622 (https://issues.apache.org/jira/browse/TUSCANY-2622 
) and attached a patch to the geronimo-web.xml deployment plan being  
used by the alert-aggregator-webapp. The patch removes inverse- 
classloading and uses hidden-classes filters, instead.


I ran tests with the updated deployment plan, and things seemed to  
work pretty well for me.


--kevan



Issues running Tuscany applications in Geronimo 2.1.3

2008-09-26 Thread Luciano Resende
I'm trying to bringup a Tuscany application in Geronimo 2.1.3, and
after fixing some TLD issues and JAXB dependency conflict issues, I
still can't successfully start my Tuscany application (e.g
calculator-ws-webapp) and the logs are showing the following
classCastException. Any ideas and possible workarounds ?

00:38:06,718 ERROR [[WARModules]] Servlet.service() for servlet
WARModules threw exception
java.lang.ClassCastException:
org.apache.geronimo.management.geronimo.WebModule$$EnhancerByCGLIB$$9e1a30c9$$FastClassByCGLIB$$481d4fa0
at net.sf.cglib.reflect.FastClass$Generator.create(FastClass.java:64)
at net.sf.cglib.reflect.FastClass.create(FastClass.java:46)
at net.sf.cglib.reflect.FastClass.create(FastClass.java:39)
at 
org.apache.geronimo.kernel.basic.BasicProxyManager$ManagedProxyFactory.init(BasicProxyManager.java:203)
at 
org.apache.geronimo.kernel.basic.BasicProxyManager.createProxyFactory(BasicProxyManager.java:78)
at 
org.apache.geronimo.kernel.basic.BasicProxyManager.createProxy(BasicProxyManager.java:116)
at 
org.apache.geronimo.console.util.KernelManagementHelper.getModuleForConfiguration(KernelManagementHelper.java:524)
at 
org.apache.geronimo.console.util.PortletManager.getModule(PortletManager.java:368)
at 
org.apache.geronimo.console.configmanager.ConfigManagerPortlet.doView(ConfigManagerPortlet.java:230)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
at 
org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:208)
at org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:139)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
at 
org.apache.pluto.core.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:167)
at 
org.apache.pluto.core.DefaultPortletInvokerService.render(DefaultPortletInvokerService.java:101)
at 
org.apache.pluto.core.PortletContainerImpl.doRender(PortletContainerImpl.java:173)
at 
org.apache.pluto.driver.tags.PortletTag.doStartTag(PortletTag.java:152)
at 
jsp.WEB_002dINF.themes.portlet_002dskin_jsp._jspService(portlet_002dskin_jsp.java:87)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
at 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
at 
jsp.WEB_002dINF.themes.default_002dtheme_jsp._jspx_meth_c_005fforEach_005f0(default_002dtheme_jsp.java:196)
at 
jsp.WEB_002dINF.themes.default_002dtheme_jsp._jspService(default_002dtheme_jsp.java:101)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at 
org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:151)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 

Re: Issues running Tuscany applications in Geronimo 2.1.3

2008-09-26 Thread Donald Woods

Can you give more details on the app?
What if any jars are included in it?
Did you create a Geronimo deployment plan?  If so, can you attach it 
along with the sample app?



-Donald


Luciano Resende wrote:

I'm trying to bringup a Tuscany application in Geronimo 2.1.3, and
after fixing some TLD issues and JAXB dependency conflict issues, I
still can't successfully start my Tuscany application (e.g
calculator-ws-webapp) and the logs are showing the following
classCastException. Any ideas and possible workarounds ?

00:38:06,718 ERROR [[WARModules]] Servlet.service() for servlet
WARModules threw exception
java.lang.ClassCastException:
org.apache.geronimo.management.geronimo.WebModule$$EnhancerByCGLIB$$9e1a30c9$$FastClassByCGLIB$$481d4fa0
at net.sf.cglib.reflect.FastClass$Generator.create(FastClass.java:64)
at net.sf.cglib.reflect.FastClass.create(FastClass.java:46)
at net.sf.cglib.reflect.FastClass.create(FastClass.java:39)
at 
org.apache.geronimo.kernel.basic.BasicProxyManager$ManagedProxyFactory.init(BasicProxyManager.java:203)
at 
org.apache.geronimo.kernel.basic.BasicProxyManager.createProxyFactory(BasicProxyManager.java:78)
at 
org.apache.geronimo.kernel.basic.BasicProxyManager.createProxy(BasicProxyManager.java:116)
at 
org.apache.geronimo.console.util.KernelManagementHelper.getModuleForConfiguration(KernelManagementHelper.java:524)
at 
org.apache.geronimo.console.util.PortletManager.getModule(PortletManager.java:368)
at 
org.apache.geronimo.console.configmanager.ConfigManagerPortlet.doView(ConfigManagerPortlet.java:230)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
at 
org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:208)
at org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:139)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
at 
org.apache.pluto.core.DefaultPortletInvokerService.invoke(DefaultPortletInvokerService.java:167)
at 
org.apache.pluto.core.DefaultPortletInvokerService.render(DefaultPortletInvokerService.java:101)
at 
org.apache.pluto.core.PortletContainerImpl.doRender(PortletContainerImpl.java:173)
at 
org.apache.pluto.driver.tags.PortletTag.doStartTag(PortletTag.java:152)
at 
jsp.WEB_002dINF.themes.portlet_002dskin_jsp._jspService(portlet_002dskin_jsp.java:87)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
at 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
at 
jsp.WEB_002dINF.themes.default_002dtheme_jsp._jspx_meth_c_005fforEach_005f0(default_002dtheme_jsp.java:196)
at 
jsp.WEB_002dINF.themes.default_002dtheme_jsp._jspService(default_002dtheme_jsp.java:101)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at 
org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:151)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
at 

Re: Issues running Tuscany applications in Geronimo 2.1.3

2008-09-26 Thread Kevan Miller


On Sep 26, 2008, at 9:27 AM, Donald Woods wrote:


Can you give more details on the app?
What if any jars are included in it?
Did you create a Geronimo deployment plan?  If so, can you attach it  
along with the sample app?


I think this is a Tuscany deomo app and, IIRC, it's using inverse- 
classloading, which probably accounts for the ClassCastException. I  
have their demos. Will validate that I can reproduce later today...


--kevan