From: Pillai, A. <ain...@ca...> - 2004-03-15 14:07:41
|
I did try after running the ccm hostinit command as well. What is the exact ccm hostinit command for adding a new content type? Is it the same as setting up the entire system (i.e. 'ccm hostinit-bundle --name aplaws-standard --container=resin http=port:8080')? Ainga -----Original Message----- From: Daniel P. Berrange [mailto:ber...@re...] Sent: 15 March 2004 14:04 To: Pillai, Ainga Cc: apl...@li... Subject: Re: [Aplaws-devel] Deploying content type on production server On Mon, Mar 15, 2004 at 01:56:58PM -0000, Pillai, Ainga wrote: > Hi, > > Installed a content type RPM on our production server. Running 'ccm load > mycontenttype' loads the content into the database and completes > successfully. However, when starting the server using 'ccm start' I get a > ClassNotFoundException for the content type initializer. > > But the command 'ccm which uk.gov.camden.mycontenttypeinitializer' returns > the name of the correct jar file and location of the class. > > The file /etc/ccm/ccm.classpath does contain the jar files of my content > type. You've almost certainly not run 'ccm hostinit' after loading the contnet type. The 'ccm.classpath' file is only used for command line tools. WHen running in a servlet container, the normal classpath rules apply - ie it'll look in the various WEB-INF/lib directories. Dan. -- |=- Daniel P. Berrange - ber...@re... -=| |=- Red Hat, 338 Euston Road, London, NW1 3BT. +44 (0)7977 267 243 -=| |=- -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=| |