Re: [Hypercontent-users] Running Hypercontent in Tomcat 5
Brought to you by:
alexvigdor
From: Alex V. <av...@co...> - 2005-07-27 16:55:19
|
Hi Chad, OK, well the ThreadDeath is something I haven't seen before, but = I=20 think we can safely ignore it for now, as it appears to be happening=20 during the Shutdown phase. The fact remains that the log error and the=20= behavior you're seeing very much indicate a failure to find the cache=20 directory at startup. Just to clarify, the "hypercontent.properties" file that needs = to be=20 changed is the one under webapps/hyper/WEB-INF/classes/properties;=20 although if you are using the HC2 ant script to compile the classes,=20 you should change the copy under "source" as well, since it gets copied=20= over during a build. The abs-server-base change is fine, as long as that is a real address=20 you can type into a browser to get to the server. One possible way to debug the problem would be to create a little test=20= class you can execute on the server with something like java.io.File root =3D new=20 java.io.File("/opt/jakarta-tomcat-5.0.28/webapps/hyper/cache"); System.out.println(root.isDirectory()); Based on the exception that's being thrown, one would presume this=20 would print false; based on your stated configuration, once would=20 presume this should print true. I think that conflict makes this a=20 good square one. -Alex On Jul 27, 2005, at 11:58 AM, Chad Lauber wrote: > Hi Alex, > > I have been restarting the Tomcat server, not just restarting the > webapp. Reload is set to 'False' on this context. This is the path > to the cache directory: > > /opt/jakarta-tomcat-5.0.28/webapps/hyper/cache > > Permissions are set to 777. > > Here is the hypercontent.properties file: > > I also changed abs-server-base...maybe that is messing it up? > > # The base server URL : should contain host, port and context, but NOT > a trailing slash > abs-server-base =3D http://10.0.0.190:8080/hyper > > # local disk directory where ONLY this instance of HyperContent can > store cache files > cache_dir =3D /opt/jakarta-tomcat-5.0.28/webapps/hyper/cache > > # Compression can knock 50% off the storage space needed for the=20 > cache, but can > # use up to 50% more processing time per each cache put. Cache gets > can benefit from > # the smaller number of bytes to retrieve from disk. It should have a=20= > quite low > # performance impact either way in the grand scheme of things, it just > saves space. > # Value should be true or false > cache_compress =3D false > > # how often should the configurationfactory check the filesystem for > new projects > org.hypercontent.project.ConfigurationFactory.refresh =3D 10000 > > # maximum number of milliseconds to cache file modification dates > # This impacts how quickly changes to repository data will ripple up > through the content server > # and invalidate cached data > last_mod_max_stale_millis =3D 2000 > > #WorkStore implementation > org.hypercontent.workflow.WorkStore =3D > org.hypercontent.workflow.impl.SerializingWorkStore > > #QueueStore implementation > org.hypercontent.workflow.QueueStore =3D > org.hypercontent.workflow.impl.SerializingQueueStore > > #SMTP host for outgoing workflow messages > mail.smtp.host=3Dsmtp.univ.edu > > #Default from address for workflow emails > mail.default.from=3Dw...@un... > > #Message on authentication failure > mesage.login.failure =3D Login attempt unsuccesful > > > > On 7/26/05, Alex Vigdor <av...@co...> wrote: >> Chad, >> The stack trace immediately preceding >> >> INFO 2005-07-26 14:35:27,239 HyperContent initiating startup at Tue >> Jul 26 14:35:27 EDT 2005 on thread main >> >> Indicates that the server was still unable to find the cache=20 >> directory. >> All the thread death errors, from some posts online, may be related >> to tomcat if you're stopping/starting the webapp without >> stopping/starting the whole server, or if you have auto-reloading set >> on the context. >> >> -Alex >> >> >> On Jul 26, 2005, at 2:48 PM, Chad Lauber wrote: >> >>> Oops...only inculed part of the log...please find the most current >>> hypercontent log attached. >>> >>> Chad >>> >>> On 7/25/05, Alex Vigdor <av...@co...> wrote: >>>> Hi Chad, >>>> You need to set the property "cache_dir" in >>>> hypercontent.properties to >>>> a valid directory for HyperContent's disk caching. I'll add a more >>>> informative error message to this extent for the upcoming beta4 >>>> release; I guess that stack trace is a little cryptic! >>>> >>>> -Alex >>>> >>>> On Jul 25, 2005, at 1:38 PM, Chad Lauber wrote: >>>> >>>>> Hi Alex, >>>>> >>>>> Here are the logs along with the server.xml. One thought I had is >>>>> that Tomcat is set up to automatically deploy web applications,=20 >>>>> which >>>>> might be causing the problem. >>>>> >>>>> Thanks, >>>>> >>>>> Chad >>>>> >>>>> On 7/18/05, Alex Vigdor <av...@co...> wrote: >>>>>> HI Chad, >>>>>> Perhaps you could attach a copy of your log, so we can get=20= >>>>>> a >>>>>> better >>>>>> idea of what is happening. >>>>>> >>>>>> -Alex >>>>>> >>>>>> On Jul 18, 2005, at 12:13 PM, Chad Lauber wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> For some reason I get a "Page can not be displayed" error when >>>>>>> trying >>>>>>> to access hypercontent from a context with in and existing = Tomcat >>>>>>> 5. >>>>>>> >>>>>>> Here is the Projects.xml file with the path to the bootstrap >>>>>>> directory >>>>>>> edited to reflect the location on this system: >>>>>>> >>>>>>> <?xml version=3D"1.0" encoding=3D"UTF-8"?>^M<filesystem-def >>>>>>> name=3D"HyperContent Projects Repository" type=3D"local">^M = <argument >>>>>>> index=3D"0" >>>>>>> value=3D"/opt/hypercontent2.0b3/hypercontent2/repositories/ >>>>>>> bootstrap"/ >>>>>>>> ^M >>>>>>> <argument index=3D"1" value=3D"autocreate"/>^M <argument >>>>>>> index=3D"2" >>>>>>> value=3D"enable-metadata"/>^M</filesystem-def>^M >>>>>>> >>>>>>> >>>>>>> I changed the permissions on that directory to 777, restarted >>>>>>> Tomcat, >>>>>>> but still nothing. >>>>>>> >>>>>>> Any ideas or insight would be appreciated. >>>>>>> >>>>>>> Thanks, >>>>>>> >>>>>>> Chad >>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------- >>>>>>> SF.Net email is sponsored by: Discover Easy Linux Migration >>>>>>> Strategies >>>>>>> from IBM. Find simple to follow Roadmaps, straightforward=20 >>>>>>> articles, >>>>>>> informative Webcasts and more! Get everything you need to get up=20= >>>>>>> to >>>>>>> speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id=16492&op=CCk >>>>>>> _______________________________________________ >>>>>>> Hypercontent-users mailing list >>>>>>> Hyp...@li... >>>>>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------- >>>>>> SF.Net email is sponsored by: Discover Easy Linux Migration >>>>>> Strategies >>>>>> from IBM. Find simple to follow Roadmaps, straightforward=20 >>>>>> articles, >>>>>> informative Webcasts and more! Get everything you need to get up=20= >>>>>> to >>>>>> speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id=16492&opclick >>>>>> _______________________________________________ >>>>>> Hypercontent-users mailing list >>>>>> Hyp...@li... >>>>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>>>>> >>>>> <hyper_logs.tar> >>>> >>>> >>>> ------------------------------------------------------- >>>> SF.Net email is sponsored by: Discover Easy Linux Migration=20 >>>> Strategies >>>> from IBM. Find simple to follow Roadmaps, straightforward articles, >>>> informative Webcasts and more! Get everything you need to get up to >>>> speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id=16492&opclick >>>> _______________________________________________ >>>> Hypercontent-users mailing list >>>> Hyp...@li... >>>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>>> >>> <hypercontent.log> >> >> >> ------------------------------------------------------- >> SF.Net email is sponsored by: Discover Easy Linux Migration = Strategies >> from IBM. Find simple to follow Roadmaps, straightforward articles, >> informative Webcasts and more! Get everything you need to get up to >> speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id=16492&opclick >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id=16492&op=CCk > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |