cancel
Showing results for 
Search instead for 
Did you mean: 

Installation in OC4J with Oracle

cesarariza
Champ in-the-making
Champ in-the-making
Dear All,

I want to deploy the  Alfresco .war file in OC4J with Oracle, so I made some obvious changes in the configuration files and others:

1. Create the database (schema) in oracle, create the user.
2. Copy the jdbc diver to the app-lib in oc4j
3. Change repository.properties file:
  - db.driver=oracle.jdbc.driver.OracleDriver
  - db.url=jdbcSmiley Surprisedracle:thin:@myserver*:1521Smiley FrustratedID*
    * the real ones.
4. Change the hibernate-cfg.properties:
  - hibernate.dialect=org.hibernate.dialect.OracleDialect
5. Repack and deploy

And I receive the following errors:

[12-ene-2007 11:21:13] Operation failed with error: Error creating bean with name 'schemaBootstrap' defined in class path resource [alfresco/bootstrap-context.xml]: Can't resolve reference to bean '&sessionFactory' while setting property 'localSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [alfresco/hibernate-context.xml]: Initialization of bean failed; nested exception is org.hibernate.HibernateException: Dialect class not found: org.hibernate.dialect.OracleDialect

But the hibernate-3.1.3.jar file is in the applib directory of oc4j.

Any clue to solve the error?

Thanks.
2 REPLIES 2

cesarariza
Champ in-the-making
Champ in-the-making
Well I found the solution in a previous post:

http://forums.alfresco.com/viewtopic.php?t=798

cesarariza
Champ in-the-making
Champ in-the-making
Now,

I have those errors:

[12-ene-2007 13:38:11] Operation failed with error: Error creating bean with name 'schemaBootstrap' defined in class path resource [alfresco/bootstrap-context.xml]: Can't resolve reference to bean 'patch.schemaUpdateScript-V1.4-1' while setting property 'applyUpdateScriptPatches[0]'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'patch.schemaUpdateScript-V1.4-1' defined in file [C:\oc4j\j2ee\home\applications\alfresco\alfresco\WEB-INF\classes\alfresco\patch\patch-services-context.xml]: Can't resolve reference to bean 'patchComponent' while setting property 'patchService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'patchComponent' defined in file [C:\oc4j\j2ee\home\applications\alfresco\alfresco\WEB-INF\classes\alfresco\patch\patch-services-context.xml]: Can't resolve reference to bean 'descriptorComponent' while setting property 'descriptorService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'descriptorComponent' defined in class path resource [alfresco/bootstrap-context.xml]: Can't resolve reference to bean 'systemBootstrap' while setting property 'systemBootstrap'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemBootstrap' defined in class path resource [alfresco/bootstrap-context.xml]: Can't resolve reference to bean 'nodeService' while setting property 'nodeService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeService' defined in class path resource [alfresco/node-services-context.xml]: Can't resolve reference to bean 'dbNodeService' while setting property 'defaultBinding'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbNodeService' defined in class path resource [alfresco/node-services-context.xml]: Can't resolve reference to bean 'dictionaryService' while setting property 'dictionaryService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dictionaryBootstrap' defined in class path resource [alfresco/core-services-context.xml]: Initialization of bean failed; nested exception is java.util.MissingResourceException: Can't find bundle for base name alfresco.messages.patch-service, locale es_ES
….

Any solution?