cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco / Orbeon

idroji
Champ in-the-making
Champ in-the-making
Hi,

I am trying to integrate Orbeon XML processing language and Alfresco using JCR API. I've installed Alfresco:
jdk 1.4.2_08
Tomcat 5.5
Alfresco 1.2

I am able to access the web client and create some spaces and content.
Then I would like to access the repository programatically via JCR. So I have compiled the SimpleExample.java but when I am calling:

ApplicationContext context = new ClassPathXmlApplicationContext("classpath:alfresco/jcr-context.xml");

I've got the following message. Do you have any idea about my problem??
Thanks in advance,
Jordi


- Loading XML bean definitions from class path resource [alfresco/jcr-context.xml]
- Loading XML bean definitions from class path resource [alfresco/application-context.xml]
- Loading XML bean definitions from class path resource [alfresco/core-services-context.xml]
- JDK 1.4+ collections available
- Commons Collections 3.x available
- Loading XML bean definitions from class path resource [alfresco/public-services-context.xml]
- Loading XML bean definitions from class path resource [alfresco/public-services-security-context.xml]
- Loading XML bean definitions from class path resource [alfresco/cache-context.xml]
- Loading XML bean definitions from class path resource [alfresco/model-specific-services-context.xml]
- Loading XML bean definitions from class path resource [alfresco/action-services-context.xml]
- Loading XML bean definitions from class path resource [alfresco/rule-services-context.xml]
- Loading XML bean definitions from class path resource [alfresco/node-services-context.xml]
- Loading XML bean definitions from class path resource [alfresco/scheduled-jobs-context.xml]
- Loading XML bean definitions from class path resource [alfresco/network-protocol-context.xml]
- Loading XML bean definitions from class path resource [alfresco/content-services-context.xml]
- Loading XML bean definitions from class path resource [alfresco/hibernate-context.xml]
- Loading XML bean definitions from class path resource [alfresco/ownable-services-context.xml]
- Loading XML bean definitions from class path resource [alfresco/template-services-context.xml]
- Loading XML bean definitions from class path resource [alfresco/index-recovery-context.xml]
- Loading XML bean definitions from class path resource [alfresco/authority-services-context.xml]
- Loading XML bean definitions from class path resource [alfresco/authentication-services-context.xml]
- Loading XML bean definitions from class path resource [alfresco/bootstrap-context.xml]
- Loading XML bean definitions from file [C:\Tmira\tmTV\CMS\alfresco\alfresco-src-1.2.0\projects\repository\config\alfresco\patch\patch-services-context.xml]
- Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=5041714]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [repository-properties,dataSource,transactionComponent,methodCallLogAdvice,resourceBundles,mailService,indexerComponent,indexerComponent_PerformanceMonitorAdvice,searchService,indexerAndSearcherFactory,categoryService,luceneIndexerAndSearcherFactory,luceneCategoryService,luceneIndexLock,lockService,versionService,versionNodeService,versionCounterDaoService,versionBootstrap,versionableAspect,namespaceDAO,dictionaryModelType,dictionaryDAO,dictionaryService,namespaceService,dictionaryModelBootstrap,dictionaryBootstrap,extension.dictionaryBootstrap,dictionaryRepositoryBootstrap,copyService,checkOutCheckInService,workingCopyAspect,discussableAspect,policyBehaviourFilter,policyComponent,LuceneFullTextSearchIndexer,luceneIndexBackupComponent,threadPoolExecutor,queryRegisterComponent,viewParser,importerComponent,storeImporter,userStoreImporter,systemStoreImporter,spacesStoreImporter,versionStoreImporter,exporterComponent,auditableAspect,referenceableAspect,configurableService,ehCacheManager,transactionalEHCacheManager,nullPermissionSharedCache,nullPermissionCache,userToAuthoritySharedCache,userToAuthorityCache,permissionsAccessSharedCache,permissionsAccessCache,nodeOwnerSharedCache,nodeOwnerCache,permissionService,permissionServiceImpl,ownerDynamicAuthority,lockOwnerDynamicAuthority,permissionsDAO,permissionsModelDAO,roleVoter,groupVoter,aclEntryVoter,accessDecisionManager,afterAcl,afterInvocationManager,NamespaceService_security,DictionaryService_security,NodeService_security,ContentService_security,MimetypeService_security,SearchService_security,CategoryService_security,CopyService_security,LockService_security,VersionService_security,CheckoutCheckinService_security,RuleService_security,ImporterService_security,ActionService_security,PermissionService_security,AuthorityService_security,AuthenticationService_security,OwnableService_security,PersonService_security,TemplateService_security,AlfrescoServiceDescriptor,ServiceRegistry,ServiceRegistry_descriptor,exceptionTranslator,DescriptorService,DescriptorService_descriptor,NamespaceService,NamespaceService_transaction,NamespaceService_descriptor,DictionaryService,DictionaryService_transaction,DictionaryService_descriptor,NodeService,NodeService_transaction,NodeService_descriptor,ContentService,ContentService_transaction,ContentService_descriptor,MimetypeService,MimetypeService_descriptor,SearchService,SearchService_transaction,SearchService_descriptor,CategoryService,CategoryService_transaction,CategoryService_descriptor,CopyService,CopyService_transaction,CopyService_descriptor,LockService,LockService_transaction,LockService_descriptor,VersionService,VersionService_transaction,VersionService_descriptor,CheckoutCheckinService,CheckoutCheckinService_transaction,CheckoutCheckinService_descriptor,RuleService,RuleService_transaction,RuleService_descriptor,ImporterService,ImporterService_transaction,ImporterService_descriptor,ExporterService,ExporterService_transaction,ExporterService_descriptor,ActionService,ActionService_transaction,ActionService_descriptor,PermissionService,PermissionService_transaction,PermissionService_descriptor,AuthorityService,AuthorityService_transaction,AuthorityService_descriptor,OwnableService,OwnableService_transaction,OwnableService_descriptor,PersonService,PersonService_transaction,PersonService_descriptor,AuthenticationService,AuthenticationService_transaction,AuthenticationService_descriptor,TemplateService,TemplateService_transaction,TemplateService_descriptor,FileFolderService,FileFolderService_transaction,fileFolderService,actionService,asynchronousActionExecutionQueue,actionsAspect,actionResourceBundles,action-condition-evaluator,no-condition,compare-property-value,compare-mime-type,in-category,is-subtype,has-aspect,has-version-history,action-executer,composite-action,create-version,add-features,specialise-type,link-category,simple-workflow,transform,transform-image,copy,move,check-in,check-out,mail,set-property-value,extract-metadata,import,export,ruleService,rulesAspect,ruleResourceBundles,rule-type-base,inbound,outbound,rule-trigger-base,on-create-node-trigger,on-update-node-trigger,on-property-update-trigger,on-delete-node-trigger,on-create-child-association-trigger,on-delete-child-association-trigger,on-create-association-trigger,on-delete-association-trigger,on-content-update-trigger,on-content-create-trigger,nodeDaoServiceImpl,dbNodeDaoServiceTxnRegistration,nodeDaoService,nodeService,dbNodeService,dbNodeService_PerformanceMonitorAdvice,nodeIndexer,integrityChecker,ftsIndexerTrigger,tempFileCleanerTrigger,contentStoreCleanerTrigger,indexRecoveryTrigger,indexBackupTrigger,ehCacheTracerJob,schedulerFactory,fileServersConfigSource,fileServersConfigService,fileServerConfigurationBase,contentDiskDriver,cifsHelper,fileContentStore,deletedContentStore,deletedContentBackupListener,contentStoreCleaner,contentService,mimetypeConfigService,mimetypeService,metadataExtracterRegistry,baseMetadataExtracter,org.alfresco.repo.content.metadata.PdfBoxMetadataExtracter,org.alfresco.repo.content.metadata.OfficeMetadataExtracter,org.alfresco.repo.content.metadata.HtmlMetadataExtracter,org.alfresco.repo.content.metadata.MP3MetadataExtracter,org.alfresco.repo.content.metadata.OpenDocumentMetadataExtracter,org.alfresco.repo.content.metadata.UnoMetadataExtracter,contentTransformerRegistry,baseContentTransformer,transformer.StringExtracter,transformer.BinaryPassThrough,transformer.PdfBox,transformer.Poi,transformer.TextMining,transformer.HtmlParser,transformer.OpenOffice,transformer.complex.OpenOffice.PdfBox,transformer.ImageMagick,hibernateConfigProperties,cacheStrategiesPlaceholderConfigurer,sessionFactory,transactionManager,ownableService,templateService,freeMarkerProcessor,indexRecoveryComponent,authorityService,authenticationManager,daoAuthenticationProvider,authenticatedAuthenticationPassthroughProvider,alfDaoImpl,authenticationDao,passwordEncoder,authenticationService,authenticationServiceImpl,authenticationComponent,authenticationComponentImpl,personService,ticketComponent,userBootstrap,systemBootstrap,spacesBootstrap,descriptorComponent,patchExecuter,fileServerConfiguration,cifsServer,ftpServer,startupLog,PatchService,PatchService_transaction,patchDaoComponent,patchComponent,basePatch,patch.sample.01,patch.sample.02,patch.savedSearches.Base,bootstrapSpacesMessageSource,patch.savedSearchesFolder,patch.savedSearchesPermission,patch.updatePermissionData,patch.guestUser,patch.fixNodeSerializableValues,patch.updateGuestPermission,patch.guestPersonPermission,patch.spacesRootPermission,patch.categoryRootPermission,JCR.Repository,JCR.DictionaryBootstrap]; root of BeanFactory hierarchy
- 306 beans defined in application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=5041714]
- Loading properties file from class path resource [alfresco/repository.properties]
- Loading properties file from class path resource [alfresco/version.properties]
- Loading properties file from class path resource [alfresco/domain/transaction.properties]
- Loading properties file from class path resource [alfresco/domain/cache-strategies.properties]
- Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@1238785]
- Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@1270107]
- Loading properties file from class path resource [alfresco/domain/hibernate-cfg.properties]
- Hibernate 3.1.2
Exception: Error creating bean with name 'userBootstrap' defined in class path resource [alfresco/bootstrap-context.xml]: Can't resolve reference to bean 'transactionComponent' while setting property 'transactionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionComponent' defined in class path resource [alfresco/core-services-context.xml]: Can't resolve reference to bean 'transactionManager' while setting property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [alfresco/hibernate-context.xml]: Can't resolve reference to bean 'sessionFactory' while setting property 'sessionFactory'; 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.springframework.beans.FatalBeanException: Could not instantiate class [org.hibernate.cfg.Configuration]; constructor threw exception; nested exception is java.lang.ExceptionInInitializerError: null
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userBootstrap' defined in class path resource [alfresco/bootstrap-context.xml]: Can't resolve reference to bean 'transactionComponent' while setting property 'transactionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionComponent' defined in class path resource [alfresco/core-services-context.xml]: Can't resolve reference to bean 'transactionManager' while setting property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [alfresco/hibernate-context.xml]: Can't resolve reference to bean 'sessionFactory' while setting property 'sessionFactory'; 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.springframework.beans.FatalBeanException: Could not instantiate class [org.hibernate.cfg.Configuration]; constructor threw exception; nested exception is java.lang.ExceptionInInitializerError: null
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionComponent' defined in class path resource [alfresco/core-services-context.xml]: Can't resolve reference to bean 'transactionManager' while setting property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [alfresco/hibernate-context.xml]: Can't resolve reference to bean 'sessionFactory' while setting property 'sessionFactory'; 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.springframework.beans.FatalBeanException: Could not instantiate class [org.hibernate.cfg.Configuration]; constructor threw exception; nested exception is java.lang.ExceptionInInitializerError: null
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in class path resource [alfresco/hibernate-context.xml]: Can't resolve reference to bean 'sessionFactory' while setting property 'sessionFactory'; 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.springframework.beans.FatalBeanException: Could not instantiate class [org.hibernate.cfg.Configuration]; constructor threw exception; nested exception is java.lang.ExceptionInInitializerError: null
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.springframework.beans.FatalBeanException: Could not instantiate class [org.hibernate.cfg.Configuration]; constructor threw exception; nested exception is java.lang.ExceptionInInitializerError: null
org.springframework.beans.FatalBeanException: Could not instantiate class [org.hibernate.cfg.Configuration]; constructor threw exception; nested exception is java.lang.ExceptionInInitializerError: null
java.lang.ExceptionInInitializerError
   at org.hibernate.cfg.Configuration.reset(Configuration.java:162)
   at org.hibernate.cfg.Configuration.<init>(Configuration.java:178)
   at org.hibernate.cfg.Configuration.<init>(Configuration.java:182)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
   at java.lang.reflect.Constructor.newInstance(Unknown Source)
   at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:172)
   at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
   at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newConfiguration(LocalSessionFactoryBean.java:774)
   at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:580)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1059)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:176)
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:105)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1013)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:824)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:345)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:176)
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:105)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1013)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:824)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:345)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:176)
   at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:105)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1013)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:824)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:345)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:203)
   at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:614)
   at org.springframework.context.support.AbstractApplicationContext.registerListeners(AbstractApplicationContext.java:496)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:317)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:87)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:72)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:63)
   at pack1.SimpleExample.main(SimpleExample.java:53)
Caused by: java.lang.NullPointerException
   at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:144)
   at org.hibernate.cfg.Environment.<clinit>(Environment.java:491)
   … 44 more
2 REPLIES 2

webworks2000
Champ in-the-making
Champ in-the-making
Did you ever fix this??

kevinr
Star Contributor
Star Contributor
>jdk 1.4.2_08

Alfresco requires JDK 1.5/6

Thanks,

Kevin