[Building Sakai] problem at changing sam's toolid and packages
Bhanu Teja Motupalli
bhanu1607 at rediffmail.com
Thu Jan 17 20:24:46 PST 2013
Hi All,
I am trying to convert the complete sam 2.6.3 to another project in a single
tomcate instance. For this i have done the following changes.
1. Changed the toolid in tool folder and web.xml
2. Changed the all packages names for all app,api,impl,sevices and etc,.
3. Changed the all pom.xml sam dependencies.
4. Changed packages and paths in all spring xmls and hibernate.xml.
Now, i am getting an exception like "ClassCastException" for
PersistenceService class in getInstance method. But it is trying to convert
the same class. I have checked in getInstance method whether the returning
object is an instance of PersistenceService class or not, the result is not
an instance of PersistenceService object. but when i print the object, it is
looking like the instence of the PersistenceService.
For the old sam, it is working very much fine. After converting the package
name we are getting this exception. All package names are changes properly.
Please find the bellow Exception report and suggest me how can i over come
this problem. This Exception is coming at time of deploying the war file.
This is a very urgent issue. Please help me.
2013-01-17 19:19:52,778 INFO main org.sakaiproject.jsf.util.JsfTool - init:
default: jsf/index/mainIndex path:
2013-01-17 19:19:52,778 ERROR main
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/qb] -
StandardWrapper.Throwable
java.lang.ClassCastException:
org.sakaiproject.tool.qb.assessment.services.PersistenceService cannot be
cast to
org.sakaiproject.tool.qb.assessment.services.PersistenceService
at
org.sakaiproject.tool.qb.assessment.services.PersistenceService.getInstance(PersistenceService.java:66)
at
org.sakaiproject.tool.assessment.ui.web.action.InitAction.init(InitAction.java:65)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:884)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:737)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1203)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
2013-01-17 19:19:52,778 ERROR main
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/qb] -
Servlet /qb threw load() exception
java.lang.ClassCastException:
org.sakaiproject.tool.qb.assessment.services.PersistenceService cannot be
cast to
org.sakaiproject.tool.qb.assessment.services.PersistenceService
at
org.sakaiproject.tool.qb.assessment.services.PersistenceService.getInstance(PersistenceService.java:66)
at
org.sakaiproject.tool.assessment.ui.web.action.InitAction.init(InitAction.java:65)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:884)
at
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:737)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1203)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
2013-01-17 19:19:52,809 INFO main org.apache.catalina.startup.HostConfig -
Deploying web application archive reportstool-tool.war
Thanks and Regards
Bhanu Teja M.
--
View this message in context: http://old.nabble.com/problem-at-changing-sam%27s-toolid-and-packages-tp34916288p34916288.html
Sent from the Sakai - Development mailing list archive at Nabble.com.
More information about the sakai-dev
mailing list