Details
-
Bug
-
Resolution: Done
-
Critical
-
WCM 5.0 SP2
-
None
-
Sp2 17509
Description
Someone changed the default name for the Jahia default virtual site ("mySite" with "mysite" + name with "My Site" becomes "mySite", etc...). The problem is that all our test DB (case sensitive) are encoded with the old default names (and certainly lots of our customers are also stil using the default site for test purpose). So when reusing an old DB, you can not access any more to your templates.
For example with the 10'000 pages DB on PG, I got the following error. Even by changing the name of the template directory and rebooting does not solve the problem. So what should I do?
INFO: Server startup in 38953 ms
2007-06-08 15:18:38,062: INFO [org.apache.struts.tiles.TilesRequestProcessor] - Tiles definition factory found for request processor ''.
2007-06-08 15:18:38,125: ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/jahia].[jsp]] - "Servlet.service()" pour la servlet jsp a lancΘ une exception
java.lang.NoClassDefFoundError: org/apache/jsp/jsp/jahia/templates/mySite/corporate_005fportal_005ftemplates/eventlistener_jsp (wrong name: org/apache/jsp/jsp/jahia/templates/mysite/corporate_005fportal_005ftemplates/eventlistener_jsp)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:133)
at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:65)
at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:596)
at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:147)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:315)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
at org.jahia.services.fetchers.JahiaFetcherBaseService.fetchServlet(JahiaFetcherBaseService.java:113)
at org.jahia.services.fetchers.JahiaFetcherBaseService$$FastClassByCGLIB$$f46e2225.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:661)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:80)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:606)
at org.jahia.services.fetchers.JahiaFetcherBaseService$$EnhancerByCGLIB$$ba67c6b0.fetchServlet(<generated>)
at org.jahia.services.events.JSPEventListener.dispatchToJSP(JSPEventListener.java:107)
at org.jahia.services.events.JSPEventListener.pageLoaded(JSPEventListener.java:197)
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.jahia.registries.JahiaListenersRegistry.wakeupListeners(JahiaListenersRegistry.java:230)
at org.jahia.services.events.JahiaEventGeneratorBaseService.fireLoadPage(JahiaEventGeneratorBaseService.java:235)
at org.jahia.services.events.JahiaEventGeneratorBaseService$$FastClassByCGLIB$$15089916.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:661)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:80)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:606)
at org.jahia.services.events.JahiaEventGeneratorBaseService$$EnhancerByCGLIB$$d73cdc33.fireLoadPage(<generated>)
at org.jahia.engines.core.Core_Engine.processCore(Core_Engine.java:157)
at org.jahia.engines.core.Core_Engine.handleActions(Core_Engine.java:111)
at org.jahia.operations.valves.EngineValve.invoke(EngineValve.java:136)
at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
at org.jahia.operations.valves.J2ProcessActionValve.invoke(J2ProcessActionValve.java:144)
at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
at org.jahia.operations.valves.CacheReadValve.invoke(CacheReadValve.java:65)
at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
at org.jahia.operations.valves.PageAccessCheckValve.invoke(PageAccessCheckValve.java:64)
at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
at org.jahia.operations.valves.OperationModeCheckValve.invoke(OperationModeCheckValve.java:83)
at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
at org.jahia.operations.valves.SiteCheckValve.invoke(SiteCheckValve.java:78)
at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
at org.jahia.operations.valves.EsiFragmentCacheReadValve.invoke(EsiFragmentCacheReadValve.java:326)
at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
at org.jahia.operations.valves.EsiUrlCookieCheckValve.invoke(EsiUrlCookieCheckValve.java:313)
at org.jahia.pipelines.impl.GenericPipeline.invokeNext(GenericPipeline.java:208)
at org.jahia.pipelines.impl.GenericPipeline.invoke(GenericPipeline.java:195)
at org.jahia.operations.OperationManager.handleOperations(OperationManager.java:100)
at org.jahia.bin.JahiaAction.execute(JahiaAction.java:72)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.jahia.bin.JahiaRequestProcessor.process(JahiaRequestProcessor.java:82)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.jahia.bin.Jahia.process(Jahia.java:1612)
at org.jahia.bin.Jahia.service(Jahia.java:841)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:703)
at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:670)
at org.jahia.jsp.jahia.war.jsp.index_jsp._jspService(index_jsp.java:44)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)