• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Fixed
  • ehcache
  • hhuynh
  • Reporter: kkannaiy
  • April 20, 2010
  • 0
  • Watchers: 0
  • July 28, 2010
  • April 21, 2010

Attachments

Description

Steps:

Install the http://kong/output/release-kits/ehcache/ehcache-2.1.0-beta-distribution.tar.gz Navigate samples\colorcache -> start the sample server -> started successfully start the sample -> started successfully hit http://localhost:9080/colorcache

Actual: HTTP ERROR: 404

Problem accessing /ColorCache/. Reason:

NOT_FOUND

from the client log:

2010-04-20 15:57:42,890 [15218962@qtp-27379847-1] FATAL com.terracottatech.console - The default TIM repository does not exist.

You should set the value of the com.tc.l1.modules.repositories system property to declare a valid default TIM repository. Or, make sure that the following path resolves to a directory:

  E:\Dubbo\ehcache-2.1.0-beta\terracotta\platform\modules

2010-04-20 15:57:42,906 [15218962@qtp-27379847-1] FATAL com.tc.object.bytecode.hook.impl.DSOContextImpl - Exception thrown org.osgi.framework.BundleException: The default TIM repository does not exist.

You should set the value of the com.tc.l1.modules.repositories system property to declare a valid default TIM repository. Or, make sure that the following path resolves to a directory:

  E:\Dubbo\ehcache-2.1.0-beta\terracotta\platform\modules

   
at com.tc.plugins.ModulesLoader.initModules(ModulesLoader.java:137)
at com.tc.object.bytecode.hook.impl.DSOContextImpl.<init>(DSOContextImpl.java:171)
at com.tc.object.bytecode.hook.impl.DSOContextImpl.createContext(DSOContextImpl.java:156)
at com.tc.object.bytecode.hook.impl.DSOContextImpl.createStandaloneContext(DSOContextImpl.java:141)
at net.sf.ehcache.terracotta.StandaloneL1Boot.call(StandaloneL1Boot.java:221)
at net.sf.ehcache.terracotta.StandaloneL1Boot.call(StandaloneL1Boot.java:40)
at net.sf.ehcache.terracotta.StandaloneTerracottaClusteredInstanceFactory.<init>(StandaloneTerracottaClusteredInstanceFactory.java:137)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at net.sf.ehcache.util.ClassLoaderUtil.createNewInstance(ClassLoaderUtil.java:92)
at net.sf.ehcache.TerracottaClusteredInstanceHelper.newClusteredInstanceFactory(TerracottaClusteredInstanceHelper.java:103)
at net.sf.ehcache.CacheManager.init(CacheManager.java:310)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:280)
at org.terracotta.ColorCache.<clinit>(ColorCache.java:15)
at org.apache.jsp.index\_jsp.<init>(org.apache.jsp.index\_jsp:11)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:193)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:380)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:334)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
at org.mortbay.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:465)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:380)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:865)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)

Comments

Hung Huynh 2010-04-21

needed to include “platform” folder in ehcache kit for terracotta to work properly

Kalai Kannaiyan 2010-04-21

Verified with latest ehcache 2.1.0-beta kit, the ehcache colorcache is working fine as expected. But hibernate sample failed to launch the page with HTTP ERROR: 404

Problem accessing /Events. Reason:

NOT_FOUND

Hung Huynh 2010-04-21

it was changed to lower case http://localhost:9081/events

Kalai Kannaiyan 2010-04-21

hibernate sample is working fine with lowercase url

Can you update the README.txt to reflect this changes?

Also noticed for hibernate sample, the command console message is displaying color cache sample url.

kkannaiy@kkannapc /Dubbo/ehcache-2.1.0-beta/samples/hibernate $ bin/start-sample.bat Deploying events.war… Done. Starting Jetty 9081…

Go to: http://localhost:9081/ColorCache Starting Jetty 9082…

Go to: http://localhost:9082/ColorCache