click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luiz Eduardo Martins Rodrigues (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CLK-540) ClassCastException in XmlConfigService
Date Thu, 30 Apr 2009 14:19:31 GMT

    [ https://issues.apache.org/jira/browse/CLK-540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704641#action_12704641
] 

Luiz Eduardo Martins Rodrigues commented on CLK-540:
----------------------------------------------------

Hi,
thanks for answering.

You are right, I'm upgrading from click 1.5.1.
The strange thing is that is says "org.apache.click.control.Table cannot be
cast to org.apache.click.Control".
See the package, is the same.

Im using Jetty 6 and eclipse Ganimed.
The strange thing is that with some old installations of Europa that we have
on your network,
the error does not happen.

I'll check the jars again!!
Thanks!





-- 
Eduardo Rodrigues


> 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 cast to org.apache.click.Control
> 	at org.apache.click.service.XmlConfigService.deployControls(XmlConfigService.java:1041)
> 	at org.apache.click.service.XmlConfigService.deployFiles(XmlConfigService.java:1095)
> 	at org.apache.click.service.XmlConfigService.onInit(XmlConfigService.java:226)
> 	at org.apache.click.ClickServlet.initConfigService(ClickServlet.java:1562)
> 	at org.apache.click.ClickServlet.init(ClickServlet.java:178)
> 	at br.ufpr.hc.infra.hibernate.HibernateClickServlet.init(HibernateClickServlet.java:27)
> 	at javax.servlet.GenericServlet.init(GenericServlet.java:211)
> 	at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:433)
> 	at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:256)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
> 	at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:612)
> 	at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
> 	at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1216)
> 	at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:509)
> 	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:447)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
> 	at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
> 	at org.mortbay.jetty.Server.doStart(Server.java:222)
> 	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
> 	at runjettyrun.Bootstrap.main(Bootstrap.java:76)
> at the same time, I´ve created a main method inside the project with these lines:
> String classname = "org.apache.click.control.Table";
> Class deployClass = ClickUtils.classForName(classname);
> Control control = (Control) deployClass.newInstance();
> and it worked...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message