0

I'm trying to run some sample but I cannot find this class:

org.alfresco.web.scripts.*

Could you help me to find JARs for Java-backed web scripts? I downloaded the Alfresco SDK but I can't find it on alfresco-web-client-3.4.b.jar

It's really freaking me out! Thanks for your time!

Andrea

Andrea Girardi
  • 4,337
  • 13
  • 69
  • 98

2 Answers2

4

Hi I guess you need the new package since 3.3 : org.springframework.extensions.webscripts.*

Take a look at this Wiki and you will see that the package you're referring to is no longer being used.

Tahir Malik
  • 6,623
  • 15
  • 22
  • Thanks for the help. I found it and fixed. Any idea why when I restart tomcat the exception java.lang.NoClassDefFoundError: org/springframework/extensions/webscripts/DeclarativeWebScript is raised? – Andrea Girardi Sep 20 '11 at 11:03
  • 1
    Hi, I normally use AbstractWebScript, but you could take a look at the the following jar: alfresco-enterprise-sdk-3.4.0\lib\server\dependencies\spring-surf\spring-webscripts-1.0.0.CI-SNAPSHOT.jar. You could check which spring-webscripts-*. jar is deployed on your tomcat. – Tahir Malik Sep 20 '11 at 11:27
  • Found, the jar imported on class have to be copyed to tomcat/shared/lib folder – Andrea Girardi Sep 20 '11 at 11:42
0

The org.alfresco.repo.web.scripts package is in the Remote API jar, eg alfresco-remote-api-4.0.a.jar .

That's not the package you asked about (it's org.alfresco.repo.web.scripts rather than org.alfresco.web.scripts) but I think it's the one you want, as I can't spot the latter in the codebase from a quick check...

Gagravarr
  • 47,320
  • 10
  • 111
  • 156