Hi Hugh,Yes, you do indeed need hibernate amongst other things - but it should already be in the download you put into Tomcat. So its not that its missing as such... but clearly something isn't right here.
Is MySQL on port 3306? The hibernate config for Wookie points at jdbc:mysql://localhost:3306/widgetdb
Still a bit baffled there's a "no class def found" error there, though...
S On 14 Oct 2009, at 14:27, Hugh Barnard wrote:
Hi folksIt's (obviously) more fun to do 'stuff' than do what I -had- to do thismorning so:Apache Tomcat/5.5 1.6.0_16-b01 Sun Microsystems Inc. Linux 2.6.24-24- rt i386 1. Installed packages for mysql, webapps and admin. Tomcat works, lookshealthy, comes up on 8180 from the package though, surprise... 2. Also, most of the directories need to be owned by tomcat55. 3. Next: MySQL 5.0.51a-3ubuntu5.4, widget database set up works fine. 4. Modify tomcat-users.xml: <role rolename="widgetadmin"/> <role rolename="manager"/> <role rolename="tomcat"/> <role rolename="admin"/> <role rolename="role1"/> <user username="hbarnard" password="****" roles="admin,manager"/> <user username="tomcat" password="tomcat" roles="tomcat"/> <user username="both" password="tomcat" roles="tomcat,role1"/> <user username="java" password="java" roles="widgetadmin"/> <user username="role1" password="tomcat" roles="role1"/> 5. Download and unpack wookie_for_tomcat_20090623.zip, copy wookie subdirectory into webapps and lo: /wookie <http://localhost:8080/wookie> Wookie Widget Server false 0<http://localhost:8080/manager/html/sessions?path=/wookie> Start <http://localhost:8080/manager/html/start?path=/wookie> StopReload Undeploy<http://localhost:8080/manager/html/undeploy?path=/wookie >There it falls apart: FAIL - Application at context path /wookie could not be started 6. I've stuck some DEBUG log4j logging into this and it looks like (I'm a pretty indifferent Java person) that I need (at least) hibernate? DEBUG http-8080-Processor25 org.apache.catalina.loader.WebappClassLoader - Could not clean fields for class org.hibernate.persister.collection.BasicCollectionPersister java.lang.NoClassDefFoundError: org.hibernate.persister.collection.AbstractCollectionPersister at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Class.java:2291) at java.lang.Class.getDeclaredFields(Class.java:1743)at org .apache .catalina .loader.WebappClassLoader.clearReferences(WebappClassLoader.java:1602) at org .apache .catalina.loader.WebappClassLoader.stop(WebappClassLoader.java:1499) at org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java: 734) at org.apache.catalina.core.StandardContext.stop(StandardContext.java: 4398) at org.apache.catalina.core.StandardContext.start(StandardContext.java: 4246) at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java: 1173) at org .apache .catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java: 545) at org .apache .catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java: 105)at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) etc...I think this would be a 'quick' way through for personal testing, but, of course there's a certain amount of tension between java things and debianpackaging, something I suffer from with Perl too.Will come back to this. Would anyone enjoy the log file, in the broadestsense of 'enjoy'? Best regards Hugh -- http://www.hughbarnard.org http://www.big-wave-heuristics.com/ http://www.hackney-environment-network.org.uk/
smime.p7s
Description: S/MIME cryptographic signature
