cancel
Showing results for 
Search instead for 
Did you mean: 

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

Not applicable
Hi everybody Smiley Happy
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
1 REPLY 1

Not applicable
I finally found how to solve this famous jlan problem searching every forum I could Smiley Happy

In order to make this working, you must have an Alfresco installed on your machine. Then :
Pick up the :
    C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\lib\alfresco-jlan-embed.jar
    C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\lib\alfresco-webscript-framework.jar
    add it to the "SDK FirstFoundationClient" project.
place those two jar in every projects that doesn't work with the jlan by the way, I didn't test them all yet Smiley Happy