AnsweredAssumed Answered

[SOLVED] Where to place the jlan jar for SDK 3 ?

Question asked by showky on Feb 19, 2009
Latest reply on Feb 23, 2009 by showky
Hi everybody :)
I've installed Alfresco Labs 3, and it runs perfectly.

As a developer, I downloaded the SDK 3 to see how it works, what I can do with it, etc. I followed the wiki about it. It seems that few people manage to make the SDK 3 working…For me, I've put the alfresco-jlan.jar in few directories, and added it as a "external jar" in the SDK AlfrescoEmbedded and the SDK FirstFoundationClient project.

Still, I've got the exception when running the SDK FirstFoundationClient project :
Exception in thread "main" java.lang.NoClassDefFoundError: org/alfresco/jlan/server/config/CoreServerConfigSection
   at org.alfresco.filesys.ServerConfigurationBean.processCoreServerConfig(ServerConfigurationBean.java:2447)
   at org.alfresco.filesys.ServerConfigurationBean.init(ServerConfigurationBean.java:511)
   at org.alfresco.filesys.ServerConfigurationBean.onApplicationEvent(ServerConfigurationBean.java:3098)
   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.refresh(AbstractApplicationContext.java:355)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:91)
   at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:75)
   at org.alfresco.util.ApplicationContextHelper.getApplicationContext(ApplicationContextHelper.java:55)
   at org.alfresco.sample.FirstFoundationClient.main(FirstFoundationClient.java:69)
Caused by: java.lang.ClassNotFoundException: org.alfresco.jlan.server.config.CoreServerConfigSection
   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:307)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
   … 12 more

Nevertheless, the project start to compile. It seems that this alfresco-jlan.jar must be placed in several directories. The question is : which ?

Ideally, does someone know a drill to make this SDK working with this jar ?

Thanks for your help !

Benoit

Outcomes