AnsweredAssumed Answered

Exception mgrating alfresco 2.9 to alfresco 3.2

Question asked by grosisimo on Aug 3, 2009
Hi

I'm trying to migrate alfresco 2.9 to alfresco 3.2.
I have already solved the amv_issuer_ids table problem during schema auto upgrade, but now i'm facing another exception.
When starting alfresco, it throws:

2009-08-03 10:33:49 User:System ERROR [web.context.ContextLoader] Context initialization failed
org.alfresco.service.namespace.NamespaceException: A namespace prefix is not registered for uri http://www.alfresco.org/model/forum/1.0
        at org.alfresco.cmis.mapping.CMISMapping.buildPrefixEncodedString(CMISMapping.java:411)
        at org.alfresco.cmis.mapping.CMISMapping.getCmisTypeId(CMISMapping.java:347)
        at org.alfresco.cmis.mapping.CMISMapping.getCmisTypeId(CMISMapping.java:388)
        at org.alfresco.cmis.dictionary.CMISStrictDictionaryService.createTypeDefs(CMISStrictDictionaryService.java:72)
        at org.alfresco.cmis.dictionary.CMISStrictDictionaryService.createDefinitions(CMISStrictDictionaryService.java:52)
        at org.alfresco.cmis.dictionary.CMISAbstractDictionaryService.init(CMISAbstractDictionaryService.java:391)
        at org.alfresco.cmis.dictionary.CMISAbstractDictionaryService.afterDictionaryInit(CMISAbstractDictionaryService.java:465)
        at org.alfresco.cmis.dictionary.CMISAbstractDictionaryService.onBootstrap(CMISAbstractDictionaryService.java:483)
        at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:62)
        at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
        at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:246)
        at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:617)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:355)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:189)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
        at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:69)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
03/08/2009 10:33:49 org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart

This happens before deploying mobile.war (just as info in case this helps somehow).
And then, after deploying share.war it throws:
INFO: Acceso ilegal: esta instancia de aplicaci´+¢n web ya ha sido parada.  Could not load org.alfresco.jlan.smb.mailslot.win32.Win32NetBIOSHostAnnouncer.  La eventual traza de pila que sigue ha sido motivada por un error lanzado con motivos de depuraci´+¢n as´+¢ como para intentar terminar el hilo que motiv´+¢ el acceso ilegal y no tiene impacto funcional.
java.lang.IllegalStateException
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1273)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at org.alfresco.jlan.smb.server.ThreadedCifsConnectionsHandler.initializeHandler(ThreadedCifsConnectionsHandler.java:339)
        at org.alfresco.jlan.smb.server.SMBServer.run(SMBServer.java:512)
        at java.lang.Thread.run(Thread.java:619)
Exception in thread "CIFS Server" java.lang.NoClassDefFoundError: org/alfresco/jlan/smb/mailslot/win32/Win32NetBIOSHostAnnouncer
        at org.alfresco.jlan.smb.server.ThreadedCifsConnectionsHandler.initializeHandler(ThreadedCifsConnectionsHandler.java:339)
        at org.alfresco.jlan.smb.server.SMBServer.run(SMBServer.java:512)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: org.alfresco.jlan.smb.mailslot.win32.Win32NetBIOSHostAnnouncer
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        … 3 more

Sorry about the language. It's configured in spanish.
Just in case you need it, spanish sentences mean:
"INFO: Acceso ilegal: esta instancia de aplicaci´+¢n web ya ha sido parada." = "Illegal acess: Application instance has been stopped"
"La eventual traza de pila que sigue ha sido motivada por un error lanzado con motivos de …" = "Exception stacktrace is:"

org.alfresco.jlan.smb.mailslot.win32.Win32NetBIOSHostAnnouncer class exists and is packaged in alfresco-jlan-embed-3.2.jar file.

After starting up, i can't access alfresco web client. It throws a 404 error when trying to access http://localhost:<port>/alfresco, but not for http://localhost:<port>/share.

Thanks in advance

Outcomes