Also, check if the class "kz.bee.kudos.sms.schedule.solution.Schedule"
is in your classpath.
Looks like a classloading/classpath problem.
Op 30-04-12 16:18, Geoffrey De Smet schreef:
Can you check the xstream and drools-core versions in your classpath
and
compare it by the ones in the drools-planner zip in the binaries directory?
They should be equal or higher, but definitely not lower.
Op 30-04-12 16:15, Nurlan schreef:
> 20:05:51,468 ERROR [STDERR]
> com.thoughtworks.xstream.converters.ConversionException: Cannot load java
> class kz.bee.kudos.sms.schedule.solution.Schedule :
> kz.bee.kudos.sms.schedule.solution.Schedule
> ---- Debugging information ----
> message : Cannot load java class
> kz.bee.kudos.sms.schedule.solution.Schedule
> cause-exception : java.lang.ClassNotFoundException
> cause-message : kz.bee.kudos.sms.schedule.solution.Schedule
> class : java.lang.Class
> required-type : java.lang.Class
> converter-type :
> com.thoughtworks.xstream.converters.SingleValueConverterWrapper
> wrapped-converter :
> com.thoughtworks.xstream.converters.extended.JavaClassConverter
> line number : 4
> class[1] : org.drools.planner.config.solver.SolverConfig
> converter-type[1] :
> com.thoughtworks.xstream.converters.reflection.ReflectionConverter
> version : null
> -------------------------------
> 20:05:51,482 ERROR [STDERR] at
>
com.thoughtworks.xstream.converters.extended.JavaClassConverter.fromString(JavaClassConverter.java:46)
> 20:05:51,482 ERROR [STDERR] at
>
com.thoughtworks.xstream.converters.SingleValueConverterWrapper.fromString(SingleValueConverterWrapper.java:41)
> 20:05:51,482 ERROR [STDERR] at
>
com.thoughtworks.xstream.converters.SingleValueConverterWrapper.unmarshal(SingleValueConverterWrapper.java:49)
> 20:05:51,482 ERROR [STDERR] at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
> 20:05:51,482 ERROR [STDERR] at
>
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
> 20:05:51,482 ERROR [STDERR] at
>
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
> 20:05:51,482 ERROR [STDERR] at
>
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:351)
> 20:05:51,482 ERROR [STDERR] at
>
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:302)
> 20:05:51,507 ERROR [STDERR] at
>
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:230)
> 20:05:51,507 ERROR [STDERR] at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
> 20:05:51,507 ERROR [STDERR] at
>
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
> 20:05:51,507 ERROR [STDERR] at
>
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
> 20:05:51,507 ERROR [STDERR] at
>
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
> 20:05:51,507 ERROR [STDERR] at
> com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
> 20:05:51,507 ERROR [STDERR] at
>
com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
> 20:05:51,507 ERROR [STDERR] at
> com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1035)
> 20:05:51,507 ERROR [STDERR] at
> com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1019)
> 20:05:51,508 ERROR [STDERR] at
> com.thoughtworks.xstream.XStream.fromXML(XStream.java:895)
> 20:05:51,508 ERROR [STDERR] at
> org.drools.planner.config.XmlSolverFactory.configure(XmlSolverFactory.java:95)
> 20:05:51,508 ERROR [STDERR] at
> org.drools.planner.config.XmlSolverFactory.configure(XmlSolverFactory.java:85)
> 20:05:51,508 ERROR [STDERR] at
> org.drools.planner.config.XmlSolverFactory.configure(XmlSolverFactory.java:78)
> 20:05:51,508 ERROR [STDERR] at
> org.drools.planner.config.XmlSolverFactory.<init>(XmlSolverFactory.java:62)
> 20:05:51,508 ERROR [STDERR] at
> kz.bee.kudos.sms.schedule.ScheduleGenerator.init(ScheduleGenerator.java:69)
> 20:05:51,508 ERROR [STDERR] at
> kz.bee.kudos.sms.schedule.ScheduleGenerator.generate(ScheduleGenerator.java:323)
> 20:05:51,508 ERROR [STDERR] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 20:05:51,508 ERROR [STDERR] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 20:05:51,508 ERROR [STDERR] at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 20:05:51,508 ERROR [STDERR] at
> java.lang.reflect.Method.invoke(Method.java:597)
> 20:05:51,509 ERROR [STDERR] at
> org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
> 20:05:51,509 ERROR [STDERR] at
>
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32)
> 20:05:51,509 ERROR [STDERR] at
>
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
> 20:05:51,509 ERROR [STDERR] at
>
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
> 20:05:51,509 ERROR [STDERR] at
>
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
> 20:05:51,509 ERROR [STDERR] at
> org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
> 20:05:51,509 ERROR [STDERR] at
>
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
> 20:05:51,509 ERROR [STDERR] at
>
org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:51)
> 20:05:51,509 ERROR [STDERR] at
>
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
> 20:05:51,509 ERROR [STDERR] at
>
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
> 20:05:51,509 ERROR [STDERR] at
>
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
> 20:05:51,509 ERROR [STDERR] at
> org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
> 20:05:51,510 ERROR [STDERR] at
>
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
> 20:05:51,510 ERROR [STDERR] at
> org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
> 20:05:51,510 ERROR [STDERR] at
>
kz.bee.kudos.sms.schedule.ScheduleGenerator_$$_javassist_seam_16.generate(ScheduleGenerator_$$_javassist_seam_16.java)
> 20:05:51,510 ERROR [STDERR] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 20:05:51,510 ERROR [STDERR] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 20:05:51,510 ERROR [STDERR] at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 20:05:51,510 ERROR [STDERR] at
> java.lang.reflect.Method.invoke(Method.java:597)
> 20:05:51,510 ERROR [STDERR] at
> org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:335)
> 20:05:51,510 ERROR [STDERR] at
> org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:280)
> 20:05:51,510 ERROR [STDERR] at
> org.jboss.el.parser.AstMethodSuffix.getValue(AstMethodSuffix.java:59)
> 20:05:51,510 ERROR [STDERR] at
> org.jboss.el.parser.AstMethodSuffix.invoke(AstMethodSuffix.java:65)
> 20:05:51,510 ERROR [STDERR] at
> org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
> 20:05:51,510 ERROR [STDERR] at
> org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
> 20:05:51,511 ERROR [STDERR] at
> org.jboss.seam.core.Expressions$2.invoke(Expressions.java:221)
> 20:05:51,511 ERROR [STDERR] at
> org.jboss.seam.navigation.Pages.callAction(Pages.java:708)
> 20:05:51,511 ERROR [STDERR] at
> org.jboss.seam.navigation.Pages.preRender(Pages.java:331)
> 20:05:51,511 ERROR [STDERR] at
> org.jboss.seam.jsf.SeamPhaseListener.preRenderPage(SeamPhaseListener.java:560)
> 20:05:51,511 ERROR [STDERR] at
>
org.jboss.seam.jsf.SeamPhaseListener.beforeRenderResponse(SeamPhaseListener.java:471)
> 20:05:51,511 ERROR [STDERR] at
> org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:147)
> 20:05:51,511 ERROR [STDERR] at
> org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:117)
> 20:05:51,511 ERROR [STDERR] at
> com.sun.faces.lifecycle.Phase.handleBeforePhase(Phase.java:214)
> 20:05:51,511 ERROR [STDERR] at
> com.sun.faces.lifecycle.Phase.doPhase(Phase.java:96)
> 20:05:51,511 ERROR [STDERR] at
> com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
> 20:05:51,511 ERROR [STDERR] at
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
> 20:05:51,511 ERROR [STDERR] at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> 20:05:51,511 ERROR [STDERR] at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 20:05:51,512 ERROR [STDERR] at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
> 20:05:51,512 ERROR [STDERR] at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
> 20:05:51,512 ERROR [STDERR] at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
> 20:05:51,512 ERROR [STDERR] at
> org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
> 20:05:51,512 ERROR [STDERR] at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> 20:05:51,512 ERROR [STDERR] at
> org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
> 20:05:51,512 ERROR [STDERR] at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> 20:05:51,512 ERROR [STDERR] at
> org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
> 20:05:51,512 ERROR [STDERR] at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> 20:05:51,512 ERROR [STDERR] at
> org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
> 20:05:51,512 ERROR [STDERR] at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> 20:05:51,512 ERROR [STDERR] at
> org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
> 20:05:51,512 ERROR [STDERR] at
> org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
> 20:05:51,512 ERROR [STDERR] at
> org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
> 20:05:51,513 ERROR [STDERR] at
> org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
> 20:05:51,513 ERROR [STDERR] at
> org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
> 20:05:51,513 ERROR [STDERR] at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> 20:05:51,513 ERROR [STDERR] at
> org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
> 20:05:51,513 ERROR [STDERR] at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> 20:05:51,513 ERROR [STDERR] at
> org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
> 20:05:51,513 ERROR [STDERR] at
> org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
> 20:05:51,513 ERROR [STDERR] at
> org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
> 20:05:51,513 ERROR [STDERR] at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 20:05:51,513 ERROR [STDERR] at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 20:05:51,513 ERROR [STDERR] at
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> 20:05:51,513 ERROR [STDERR] at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> 20:05:51,513 ERROR [STDERR] at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> 20:05:51,513 ERROR [STDERR] at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
> 20:05:51,513 ERROR [STDERR] at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> 20:05:51,514 ERROR [STDERR] at
>
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
> 20:05:51,514 ERROR [STDERR] at
>
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
> 20:05:51,514 ERROR [STDERR] at
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
> 20:05:51,514 ERROR [STDERR] at
>
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
> 20:05:51,514 ERROR [STDERR] at
>
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
> 20:05:51,514 ERROR [STDERR] at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> 20:05:51,514 ERROR [STDERR] at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> 20:05:51,514 ERROR [STDERR] at
>
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
> 20:05:51,514 ERROR [STDERR] at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> 20:05:51,514 ERROR [STDERR] at
>
org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.internalProcess(ActiveRequestResponseCacheValve.java:74)
> 20:05:51,514 ERROR [STDERR] at
>
org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:47)
> 20:05:51,514 ERROR [STDERR] at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
> 20:05:51,514 ERROR [STDERR] at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
> 20:05:51,514 ERROR [STDERR] at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:599)
> 20:05:51,514 ERROR [STDERR] at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
> 20:05:51,514 ERROR [STDERR] at java.lang.Thread.run(Thread.java:680)
> 20:05:51,515 ERROR [STDERR] Caused by: java.lang.ClassNotFoundException:
> kz.bee.kudos.sms.schedule.solution.Schedule
> 20:05:51,515 ERROR [STDERR] at
> java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> 20:05:51,515 ERROR [STDERR] at
> java.security.AccessController.doPrivileged(Native Method)
> 20:05:51,515 ERROR [STDERR] at
> java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> 20:05:51,515 ERROR [STDERR] at
> java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> 20:05:51,515 ERROR [STDERR] at
> java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> 20:05:51,515 ERROR [STDERR] at
>
com.thoughtworks.xstream.core.util.CompositeClassLoader.loadClass(CompositeClassLoader.java:129)
> 20:05:51,516 ERROR [STDERR] at
>
com.thoughtworks.xstream.core.util.ClassLoaderReference.loadClass(ClassLoaderReference.java:31)
> 20:05:51,516 ERROR [STDERR] at
>
com.thoughtworks.xstream.converters.extended.JavaClassConverter.loadClass(JavaClassConverter.java:67)
> 20:05:51,516 ERROR [STDERR] at
>
com.thoughtworks.xstream.converters.extended.JavaClassConverter.fromString(JavaClassConverter.java:44)
> 20:05:51,516 ERROR [STDERR] ... 110 more
> 20:05:51,516 INFO [STDOUT] Start solving ...
>
>
> --
> View this message in context:
http://drools.46999.n3.nabble.com/drools-planner-in-seam-2-2-2-final-show...
> Sent from the Drools: User forum mailing list archive at
Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
>