Return-Path: Delivered-To: apmail-incubator-click-dev-archive@minotaur.apache.org Received: (qmail 69213 invoked from network); 27 Apr 2009 21:14:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Apr 2009 21:14:54 -0000 Received: (qmail 35568 invoked by uid 500); 27 Apr 2009 21:14:54 -0000 Delivered-To: apmail-incubator-click-dev-archive@incubator.apache.org Received: (qmail 35549 invoked by uid 500); 27 Apr 2009 21:14:54 -0000 Mailing-List: contact click-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: click-dev@incubator.apache.org Delivered-To: mailing list click-dev@incubator.apache.org Received: (qmail 35541 invoked by uid 99); 27 Apr 2009 21:14:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Apr 2009 21:14:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Apr 2009 21:14:51 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BB03E234C4B3 for ; Mon, 27 Apr 2009 14:14:30 -0700 (PDT) Message-ID: <625183449.1240866870764.JavaMail.jira@brutus> Date: Mon, 27 Apr 2009 14:14:30 -0700 (PDT) From: "Bob Schellink (JIRA)" To: click-dev@incubator.apache.org Subject: [jira] Commented: (CLK-540) ClassCastException in XmlConfigService In-Reply-To: <1459566714.1240865430360.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CLK-540?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1270338= 0#action_12703380 ]=20 Bob Schellink commented on CLK-540: ----------------------------------- Hi Luiz, Seems like a Java ClassLoader issue. Are you upgrading from an earlier vers= ion of Click or is this a clean install? Can you check that there is not a Click jar somewhere in your container lib= folder. For Tomcat 6 this folder is "\lib" regards bob > ClassCastException in XmlConfigService > -------------------------------------- > > Key: CLK-540 > URL: https://issues.apache.org/jira/browse/CLK-540 > Project: Click > Issue Type: Bug > Components: core > Affects Versions: 2.1.0 > Environment: Windows XP Professional, > eclipse ganymede, > jdk1.6.0, > tried to run with jetty 6 and tomcat 6. > Reporter: Luiz Eduardo Martins Rodrigues > Priority: Critical > Fix For: 2.1.0 > > Original Estimate: 168h > Remaining Estimate: 168h > > java.lang.ClassCastException: org.apache.click.control.Table cannot be ca= st to org.apache.click.Control > =09at org.apache.click.service.XmlConfigService.deployControls(XmlConfigS= ervice.java:1041) > =09at org.apache.click.service.XmlConfigService.deployFiles(XmlConfigServ= ice.java:1095) > =09at org.apache.click.service.XmlConfigService.onInit(XmlConfigService.j= ava:226) > =09at org.apache.click.ClickServlet.initConfigService(ClickServlet.java:1= 562) > =09at org.apache.click.ClickServlet.init(ClickServlet.java:178) > =09at br.ufpr.hc.infra.hibernate.HibernateClickServlet.init(HibernateClic= kServlet.java:27) > =09at javax.servlet.GenericServlet.init(GenericServlet.java:211) > =09at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.j= ava:433) > =09at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:= 256) > =09at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.jav= a:40) > =09at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.= java:612) > =09at org.mortbay.jetty.servlet.Context.startContext(Context.java:139) > =09at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.j= ava:1216) > =09at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.jav= a:509) > =09at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:4= 47) > =09at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.jav= a:40) > =09at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.jav= a:117) > =09at org.mortbay.jetty.Server.doStart(Server.java:222) > =09at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.jav= a:40) > =09at runjettyrun.Bootstrap.main(Bootstrap.java:76) > at the same time, I=C2=B4ve created a main method inside the project with= these lines: > String classname =3D "org.apache.click.control.Table"; > Class deployClass =3D ClickUtils.classForName(classname); > Control control =3D (Control) deployClass.newInstance(); > and it worked... --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.