Ciao,
anche io ho lo stesso problema, con queste versioni:
- CMDBuild 1.3 appena scaricato
- Postgres 9
- Tomcat 6
Dopo aver fatto il deploy del war su tomcat, vado sull'url http://localhost:8080/cmdbuild
Imposto la seguente configurazione:
- crea uno schema shark
- DB di tipo "Demo"
- collegamento al posgres locale alla porta standard 5432 (il collegamento di test riesce correttamente)
quando dò la conferma, il db viene creato (lo vedo da pgadmin), ma mi presenta una lista delle patch da applicare, nonostante CMDBuild sia già all'ultima versione. Segnalo che questo problema NON avviene se invece di "demo" scelgo il db vuoto.
Come suggerito da Paolo, ho messo a DEBUG i log di sql e persistence.
Vi segnalo anche un errore: nel file WEB-INF/conf/log4j.conf, alla riga:
log4j.appender.R.File=${catalina.base}/cmdbuild.log
bisogna correggere il percorso:
log4j.appender.R.File=${catalina.base}/logs/cmdbuild.log
altrimenti il log non viene generato!
Comunque, incollo il cmdbuild.log generato dopo questa correzione:
INFO 2011-01-20 16:08:33 [cmdbuild] Loading common configurations for CMDBuild
INFO 2011-01-20 16:08:33 [cmdbuild] Initialize custom ParameterTransformers
INFO 2011-01-20 16:08:33 [cmdbuild] Transformer for: JSONArray : org.cmdbuild.servlets.utils.transformer.JSONArrayTransformer
INFO 2011-01-20 16:08:33 [cmdbuild] Transformer for: FileItem : org.cmdbuild.servlets.utils.transformer.FileItemTransformer
INFO 2011-01-20 16:08:33 [cmdbuild] Transformer for: JSONObject : org.cmdbuild.servlets.utils.transformer.JSONObjectTransformer
INFO 2011-01-20 16:08:33 [cmdbuild] Initializer custom ParameterBuilders
INFO 2011-01-20 16:08:33 [cmdbuild] Builder for: UserContext: org.cmdbuild.servlets.utils.builder.UserContextParameter
INFO 2011-01-20 16:08:33 [cmdbuild] Builder for: IDomainFactory: org.cmdbuild.servlets.utils.builder.factory.DomainFactoryParameter
INFO 2011-01-20 16:08:33 [cmdbuild] Builder for: ActivityIdentifier: org.cmdbuild.servlets.utils.builder.ActivityIdentifierParameter
INFO 2011-01-20 16:08:33 [cmdbuild] Builder for: ProcessType: org.cmdbuild.servlets.utils.builder.ProcessTypeParameterINFO 2011-01-20 16:08:33 [cmdbuild] Builder for: ITable: org.cmdbuild.servlets.utils.builder.TableParameterINFO 2011-01-20 16:08:33 [cmdbuild] Builder for: IDomain: org.cmdbuild.servlets.utils.builder.DomainParameterINFO 2011-01-20 16:08:33 [cmdbuild] Builder for: ITableFactory: org.cmdbuild.servlets.utils.builder.factory.TableFactoryParameter
INFO 2011-01-20 16:08:33 [cmdbuild] Builder for: ICard: org.cmdbuild.servlets.utils.builder.CardParameterINFO 2011-01-20 16:08:33 [cmdbuild] Builder for: ProcessQuery: org.cmdbuild.servlets.utils.builder.ProcessQueryParameter
INFO 2011-01-20 16:08:33 [cmdbuild] Builder for: IRelation: org.cmdbuild.servlets.utils.builder.RelationParameterINFO 2011-01-20 16:08:33 [cmdbuild] Builder for: ICardQuery: org.cmdbuild.servlets.utils.builder.CardQueryParameter
INFO 2011-01-20 16:08:33 [cmdbuild] Builder for: IRelationFactory: org.cmdbuild.servlets.utils.builder.factory.RelationFactoryParameter
INFO 2011-01-20 16:08:33 [cmdbuild] Builder for: XMLDocument: org.cmdbuild.servlets.utils.builder.XMLDocumentBuilderINFO 2011-01-20 16:08:33 [cmdbuild] Loading scheduled jobs
INFO 2011-01-20 16:08:33 [persist ] Building table cache
WARN 2011-01-20 16:08:33 [cmdbuild] Could not load the scheduled jobs: first start or patch not yet applied?
INFO 2011-01-20 16:10:42 [jsonrpc ] Calling url /utils/gettranslationobject
INFO 2011-01-20 16:10:43 [jsonrpc ] Calling url /utils/listavailabletranslationsINFO 2011-01-20 16:11:47 [jsonrpc ] Calling url /configure/apply
INFO 2011-01-20 16:11:47 [cmdbuild] Creating database
INFO 2011-01-20 16:11:48 [cmdbuild] Creating PL/SQL language
WARN 2011-01-20 16:11:48 [sql ] Cannot create PL/SQL language. Present already?
INFO 2011-01-20 16:11:48 [cmdbuild] Restoring demo structure
INFO 2011-01-20 16:11:59 [cmdbuild] Saving configuration
INFO 2011-01-20 16:12:12 [persist ] Building table cache
DEBUG 2011-01-20 16:12:12 [sql ] SELECT * FROM system_classcatalog
DEBUG 2011-01-20 16:12:12 [persist ] Table Class (34768) inserted into table map
INFO 2011-01-20 16:12:12 [persist ] Found legacy meta-attribute MANAGER for table Activity
DEBUG 2011-01-20 16:12:12 [persist ] Table Activity (34776) inserted into table map
INFO 2011-01-20 16:12:12 [persist ] Found legacy meta-attribute MANAGER for table Item
DEBUG 2011-01-20 16:12:12 [persist ] Table Item (34785) inserted into table map
INFO 2011-01-20 16:12:12 [persist ] Found legacy meta-attribute MANAGER for table Computer
DEBUG 2011-01-20 16:12:12 [persist ] Table Computer (34793) inserted into table map
INFO 2011-01-20 16:12:12 [persist ] Found legacy meta-attribute MANAGER for table Dipendente
DEBUG 2011-01-20 16:12:12 [persist ] Table Dipendente (34810) inserted into table map
INFO 2011-01-20 16:12:12 [persist ] Found legacy meta-attribute MANAGER for table Email
DEBUG 2011-01-20 16:12:12 [persist ] Table Email (34827) inserted into table map
DEBUG 2011-01-20 16:12:12 [persist ] Table Grant (34844) inserted into table map
DEBUG 2011-01-20 16:12:12 [persist ] Table LookUp (34852) inserted into table map
INFO 2011-01-20 16:12:12 [persist ] Found legacy meta-attribute MANAGER for table Menu
DEBUG 2011-01-20 16:12:12 [persist ] Table Menu (34997) inserted into table map
DEBUG 2011-01-20 16:12:12 [persist ] Table Metadata (35022) inserted into table map
INFO 2011-01-20 16:12:12 [persist ] Found legacy meta-attribute MANAGER for table Monitor
DEBUG 2011-01-20 16:12:12 [persist ] Table Monitor (35039) inserted into table map
INFO 2011-01-20 16:12:12 [persist ] Found legacy meta-attribute MANAGER for table PDL
DEBUG 2011-01-20 16:12:12 [persist ] Table PDL (35056) inserted into table map
INFO 2011-01-20 16:12:12 [persist ] Found legacy meta-attribute MANAGER for table Palazzo
DEBUG 2011-01-20 16:12:12 [persist ] Table Palazzo (35073) inserted into table map
DEBUG 2011-01-20 16:12:12 [persist ] Table Patch (35090) inserted into table map
INFO 2011-01-20 16:12:12 [persist ] Found legacy meta-attribute MANAGER for table Periferica
DEBUG 2011-01-20 16:12:12 [persist ] Table Periferica (35107) inserted into table map
INFO 2011-01-20 16:12:12 [persist ] Found legacy meta-attribute MANAGER for table Piano
DEBUG 2011-01-20 16:12:12 [persist ] Table Piano (35124) inserted into table map
DEBUG 2011-01-20 16:12:12 [persist ] Table Report (35141) inserted into table map
INFO 2011-01-20 16:12:12 [persist ] Found legacy meta-attribute MANAGER for table Role
DEBUG 2011-01-20 16:12:12 [persist ] Table Role (35149) inserted into table map
DEBUG 2011-01-20 16:12:12 [persist ] Table Scheduler (35157) inserted into table map
INFO 2011-01-20 16:12:12 [persist ] Found legacy meta-attribute MANAGER for table Software
DEBUG 2011-01-20 16:12:12 [persist ] Table Software (35174) inserted into table map
INFO 2011-01-20 16:12:12 [persist ] Found legacy meta-attribute MANAGER for table Stampante
DEBUG 2011-01-20 16:12:12 [persist ] Table Stampante (35191) inserted into table map
INFO 2011-01-20 16:12:12 [persist ] Found legacy meta-attribute MANAGER for table Stanza
DEBUG 2011-01-20 16:12:12 [persist ] Table Stanza (35208) inserted into table map
INFO 2011-01-20 16:12:12 [persist ] Found legacy meta-attribute MANAGER for table Storage
DEBUG 2011-01-20 16:12:12 [persist ] Table Storage (35225) inserted into table map
INFO 2011-01-20 16:12:12 [persist ] Found legacy meta-attribute MANAGER for table Ufficio
DEBUG 2011-01-20 16:12:12 [persist ] Table Ufficio (35242) inserted into table map
INFO 2011-01-20 16:12:12 [persist ] Found legacy meta-attribute MANAGER for table User
DEBUG 2011-01-20 16:12:12 [persist ] Table User (35259) inserted into table map
DEBUG 2011-01-20 16:12:12 [sql ] SELECT parentid, childid FROM system_treecatalog
DEBUG 2011-01-20 16:12:12 [persist ] Table Stanza (35208) is child of Class (34768)
DEBUG 2011-01-20 16:12:12 [persist ] Table Patch (35090) is child of Class (34768)
DEBUG 2011-01-20 16:12:12 [persist ] Table User (35259) is child of Class (34768)
DEBUG 2011-01-20 16:12:12 [persist ] Table Computer (34793) is child of Item (34785)
DEBUG 2011-01-20 16:12:12 [persist ] Table Software (35174) is child of Item (34785)
DEBUG 2011-01-20 16:12:12 [persist ] Table Piano (35124) is child of Class (34768)
DEBUG 2011-01-20 16:12:12 [persist ] Table Monitor (35039) is child of Item (34785)
DEBUG 2011-01-20 16:12:12 [persist ] Table Periferica (35107) is child of Item (34785)
DEBUG 2011-01-20 16:12:12 [persist ] Table Grant (34844) is child of Class (34768)
DEBUG 2011-01-20 16:12:12 [persist ] Table PDL (35056) is child of Class (34768)
DEBUG 2011-01-20 16:12:12 [persist ] Table Palazzo (35073) is child of Class (34768)
DEBUG 2011-01-20 16:12:12 [persist ] Table Item (34785) is child of Class (34768)
DEBUG 2011-01-20 16:12:12 [persist ] Table Email (34827) is child of Class (34768)
DEBUG 2011-01-20 16:12:12 [persist ] Table Metadata (35022) is child of Class (34768)
DEBUG 2011-01-20 16:12:12 [persist ] Table LookUp (34852) is child of Class (34768)
DEBUG 2011-01-20 16:12:12 [persist ] Table Activity (34776) is child of Class (34768)
DEBUG 2011-01-20 16:12:12 [persist ] Table Scheduler (35157) is child of Class (34768)
DEBUG 2011-01-20 16:12:12 [persist ] Table Dipendente (34810) is child of Class (34768)
DEBUG 2011-01-20 16:12:12 [persist ] Table Storage (35225) is child of Item (34785)
DEBUG 2011-01-20 16:12:12 [persist ] Table Menu (34997) is child of Class (34768)
DEBUG 2011-01-20 16:12:12 [persist ] Table Role (35149) is child of Class (34768)
DEBUG 2011-01-20 16:12:12 [persist ] Table Ufficio (35242) is child of Class (34768)
DEBUG 2011-01-20 16:12:12 [persist ] Table Stampante (35191) is child of Item (34785)
DEBUG 2011-01-20 16:12:12 [sql ] SELECT * FROM system_attributecatalog WHERE classid='35090' ORDER BY attributeindex, dbindex
DEBUG 2011-01-20 16:12:12 [persist ] Attribute Patch.Id
DEBUG 2011-01-20 16:12:12 [persist ] Attribute Patch.IdClass
DEBUG 2011-01-20 16:12:12 [persist ] Attribute Patch.Status
DEBUG 2011-01-20 16:12:12 [persist ] Attribute Patch.User
DEBUG 2011-01-20 16:12:12 [persist ] Attribute Patch.BeginDate
DEBUG 2011-01-20 16:12:12 [persist ] Attribute Patch.Code
INFO 2011-01-20 16:12:12 [persist ] Found legacy meta-attribute COLOR for attribute Patch.Code
DEBUG 2011-01-20 16:12:12 [persist ] Attribute Patch.Description
INFO 2011-01-20 16:12:12 [persist ] Found legacy meta-attribute COLOR for attribute Patch.Description
DEBUG 2011-01-20 16:12:12 [persist ] Attribute Patch.Notes
DEBUG 2011-01-20 16:12:12 [sql ] SELECT "Patch"."Notes" AS "Patch_Notes", "Patch"."User" AS "Patch_User", "Patch"."Status" AS "Patch_Status", "Patch"."Description" AS "Patch_Description", "Patch"."BeginDate" AS "Patch_BeginDate", "Patch"."Id" AS "Patch_Id", "Patch"."Code" AS "Patch_Code", '"Patch"'::regclass::int4 AS "Patch_IdClass" FROM "Patch" AS "Patch" ORDER BY "Patch"."Code" DESC, "Patch"."Id" ASC OFFSET 0 LIMIT 1
INFO 2011-01-20 16:12:12 [jsonrpc ] Calling url /utils/gettranslationobject
INFO 2011-01-20 16:12:12 [jsonrpc ] Calling url /configure/getpatches
Ho evidenziato in grassetto in Warning che forse può essere di interesse per il problema.
Qualche idea?
Grazie,
Federica.
Previously Tecnoteca wrote:
Se si tratta di una nuova installazione, il sistema non dovrebbe presentare alcuna patch da installare, ed è sintomo che il database non è stato creato correttamente (non trova la tabella delle patch e ipotizza che il sistema sia ad una versione precedente all'introduzione del patch manager).
Consiglio di fermare Tomcat, cancellare la work directory, cancellare il DB già creato, rieseguire il deploy di CMDBuild in modo da sovrascrivere i file di configurazione (oppure commentare le righe in WEB-INF/conf/database.conf) e rieseguire la configurazione.
Casomai non andasse di nuovo a buon fine, è possibile aumentare il livello di log (in particolare SQL a DEBUG) nel file WEB-INF/conf/log4j.conf. Potrebbe essere utile aumentare a DEBUG anche i log di tipo PERSISTENCE in modo da vedere che classi vengono caricate...
INFO 2010-12-13 09:37:36 [persist ] Building table cache
DEBUG 2010-12-13 09:37:36 [persist ] Table Class (356130) inserted into table map
...
Paolo