Alfresco 2.0 - Unable to run FirstFoundationClient example
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2007 10:37 AM
Hi all.
After installed Alfresco 2.0 I tried to run the FirstFoundationClient example configured against MySQL database.
Unfortunately, the following error occured due to (apparently) the Virtual server bean.
Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'VirtServerRegistry' defined in class path resource [alfresco/core-services-context.xml]: Bean class [org.alfresco.mbeans.VirtServerRegistry] not found; nested exception is java.lang.ClassNotFoundException: org.alfresco.mbeans.VirtServerRegistry
java.lang.ClassNotFoundException: org.alfresco.mbeans.VirtServerRegistry
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:108)
at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(BeanDefinitionReaderUtils.java:65)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:426)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:392)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitions(DefaultXmlBeanDefinitionParser.java:307)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.registerBeanDefinitions(DefaultXmlBeanDefinitionParser.java:191)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:295)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:223)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:173)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:148)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.importBeanDefinitionResource(DefaultXmlBeanDefinitionParser.java:325)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitions(DefaultXmlBeanDefinitionParser.java:298)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.registerBeanDefinitions(DefaultXmlBeanDefinitionParser.java:191)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:295)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:223)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:173)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:148)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:81)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:269)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:87)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:72)
at org.alfresco.util.ApplicationContextHelper.getApplicationContext(ApplicationContextHelper.java:40)
at org.alfresco.sample.FirstFoundationClient.main(FirstFoundationClient.java:62)
My questions are the following:
1) what is the virtual server?;
2) should I start both the Alfresco server and the virtual server to avoid these errors?;
3) Does the SVN code work or is it better to use only the SDK?
Many thanks,
Sergio
After installed Alfresco 2.0 I tried to run the FirstFoundationClient example configured against MySQL database.
Unfortunately, the following error occured due to (apparently) the Virtual server bean.
Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'VirtServerRegistry' defined in class path resource [alfresco/core-services-context.xml]: Bean class [org.alfresco.mbeans.VirtServerRegistry] not found; nested exception is java.lang.ClassNotFoundException: org.alfresco.mbeans.VirtServerRegistry
java.lang.ClassNotFoundException: org.alfresco.mbeans.VirtServerRegistry
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:108)
at org.springframework.beans.factory.support.BeanDefinitionReaderUtils.createBeanDefinition(BeanDefinitionReaderUtils.java:65)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:426)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:392)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitions(DefaultXmlBeanDefinitionParser.java:307)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.registerBeanDefinitions(DefaultXmlBeanDefinitionParser.java:191)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:295)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:223)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:173)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:148)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.importBeanDefinitionResource(DefaultXmlBeanDefinitionParser.java:325)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.parseBeanDefinitions(DefaultXmlBeanDefinitionParser.java:298)
at org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.registerBeanDefinitions(DefaultXmlBeanDefinitionParser.java:191)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:295)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:223)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:173)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:148)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:113)
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:81)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:269)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:87)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:72)
at org.alfresco.util.ApplicationContextHelper.getApplicationContext(ApplicationContextHelper.java:40)
at org.alfresco.sample.FirstFoundationClient.main(FirstFoundationClient.java:62)
My questions are the following:
1) what is the virtual server?;
2) should I start both the Alfresco server and the virtual server to avoid these errors?;
3) Does the SVN code work or is it better to use only the SDK?
Many thanks,
Sergio
Labels:
- Labels:
-
Archive
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2007 05:51 AM
Hi,
I'm happy to see there's someone else from Italy posting here
.
Anyway, I brutally checked Alfresco's .jar files, just check TOMCAT_HOME\webapps\alfresco\WEB-INF\lib\alfresco-mbeans.jar you can check if you have or not the .class file, if you have it, then is a virtual server issue (don't really know how to fix it, I have another issue related to the virtual server).
Another thing, check the core-services-context.xml file, find -> VirtServerRegistry in it and read the comment at the bean definition, may be usefull.
If I manage to configure the virtual tomcat I'll check personally the issue (I can't even start Alfresco 2.0… :?)
Cheers dal Granducato di Toscana
I'm happy to see there's someone else from Italy posting here

Anyway, I brutally checked Alfresco's .jar files, just check TOMCAT_HOME\webapps\alfresco\WEB-INF\lib\alfresco-mbeans.jar you can check if you have or not the .class file, if you have it, then is a virtual server issue (don't really know how to fix it, I have another issue related to the virtual server).
Another thing, check the core-services-context.xml file, find -> VirtServerRegistry in it and read the comment at the bean definition, may be usefull.
If I manage to configure the virtual tomcat I'll check personally the issue (I can't even start Alfresco 2.0… :?)
Cheers dal Granducato di Toscana


Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2007 08:38 AM
Hi there,
I'm having exactly the same problem… and don't have any clue on how to solve it. :cry:
Since it is a while ago since this problem is posted, I was wondering if anyone has found a solution in the meantime.
I'm having exactly the same problem… and don't have any clue on how to solve it. :cry:
Since it is a while ago since this problem is posted, I was wondering if anyone has found a solution in the meantime.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-14-2007 02:39 AM
Got something working! But not the SDK which can be downloaded as a zip file. I got so many problems with it that I switched to the SVN repository. Checked it out and got that one running fairly quick.
Nice to have the SDK available for download as a zip, but there are so many problems getting the simplest example running that it is not leave a very good 'first impression'. In bug tracking I read that some of the issues I had were 'solved in SDK'… but I guess it should be the SVN version of the SDK and not the zip.
Nice to have the SDK available for download as a zip, but there are so many problems getting the simplest example running that it is not leave a very good 'first impression'. In bug tracking I read that some of the issues I had were 'solved in SDK'… but I guess it should be the SVN version of the SDK and not the zip.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2007 02:51 PM
Here are the workarounds i used to get the JCR sample to work with the SDK zip from the website, not from svn.
First, you'll need to get all of the eclipse projects to compile. This requires fixing the build path of the "SDK AlfrescoEmbedded" project to use the right versions of the dependent jars that ships with the JDK. Most of them should be in that project already. After doing this, running the JCR sample gave me the exception in the OP.
The second thing i needed to do was add the alfresco-mbeans.jar which i had in the following location:
The last thing i needed was some configuration files. I copied from
Hope that helps someone.
First, you'll need to get all of the eclipse projects to compile. This requires fixing the build path of the "SDK AlfrescoEmbedded" project to use the right versions of the dependent jars that ships with the JDK. Most of them should be in that project already. After doing this, running the JCR sample gave me the exception in the OP.
The second thing i needed to do was add the alfresco-mbeans.jar which i had in the following location:
- C:\alfresco\tomcat\webapps\alfresco\WEB-INF\lib
The last thing i needed was some configuration files. I copied from
- C:\alfresco\virtual-tomcat\conf
- C:\alfresco\sdk\samples\JCRSamples\source\alfresco
- alfresco-jmxrmi.access
alfresco-jmxrmi.password
alfresco-shared.properties
alfresco-virtserver.properties
alfresco-virtserver-context.xml
Hope that helps someone.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-16-2007 06:25 AM
The final SDK 2.0 will not have these problems.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2007 12:45 PM
When Alfresco 2.0 final will be released ?
According to the roadmap should be Mid Feb., but I think it is already delayed, any new date?
According to the roadmap should be Mid Feb., but I think it is already delayed, any new date?
