cancel
Showing results for 
Search instead for 
Did you mean: 

SVN Quickstart Error

amus
Champ in-the-making
Champ in-the-making
Hi,

I'm trying to build quick start of svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/modules/wcmquickstart/build.xml.
But I have an error:


Buildfile: C:\scr\alfresco\HEAD\root\modules\wcmquickstart\build.xml
clean-wcmquickstart-module:
   [delete] Deleting directory C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\build\classes
clean-wcmquickstart-module:
compile-wcmquickstart-module:
    [mkdir] Created dir: C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\build\classes
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\utils.xml:24: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 92 source files to C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\build\classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\benchmark\WebSiteRandomGeneratorTest.java:35: error: package org.springframework.test.context does not exist
    [javac] import org.springframework.test.context.ContextConfiguration;
    [javac]                                        ^
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\benchmark\WebSiteRandomGeneratorTest.java:36: error: package org.springframework.test.context.junit4 does not exist
    [javac] import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
    [javac]                                               ^
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\benchmark\WebSiteRandomGeneratorTest.java:37: error: package org.springframework.test.context.transaction does not exist
    [javac] import org.springframework.test.context.transaction.TransactionConfiguration;
    [javac]                                                    ^
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\benchmark\WebSiteRandomGeneratorTest.java:45: error: cannot find symbol
    [javac] @ContextConfiguration(locations = { "classpath:alfresco/module/org_alfresco_module_wcmquickstart/benchmark/website-generator-context.xml"})
    [javac]  ^
    [javac]   symbol: class ContextConfiguration
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\benchmark\WebSiteRandomGeneratorTest.java:46: error: cannot find symbol
    [javac] @TransactionConfiguration(defaultRollback=true, transactionManager="transactionManager")
    [javac]  ^
    [javac]   symbol: class TransactionConfiguration
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\benchmark\WebSiteRandomGeneratorTest.java:44: error: cannot find symbol
    [javac] @RunWith(SpringJUnit4ClassRunner.class)
    [javac]          ^
    [javac]   symbol: class SpringJUnit4ClassRunner
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\webscript\WebscriptTest.java:162: error: cannot find symbol
    [javac]       Response rsp = sendRequest(new GetRequest(url), 200);
    [javac]       ^
    [javac]   symbol:   class Response
    [javac]   location: class WebscriptTest
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\webscript\WebscriptTest.java:162: error: cannot find symbol
    [javac]       Response rsp = sendRequest(new GetRequest(url), 200);
    [javac]                                      ^
    [javac]   symbol:   class GetRequest
    [javac]   location: class WebscriptTest
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\webscript\WebscriptTest.java:185: error: cannot find symbol
    [javac]         Response rsp = sendRequest(new GetRequest(url), 200);
    [javac]         ^
    [javac]   symbol:   class Response
    [javac]   location: class WebscriptTest
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\webscript\WebscriptTest.java:185: error: cannot find symbol
    [javac]         Response rsp = sendRequest(new GetRequest(url), 200);
    [javac]                                        ^
    [javac]   symbol:   class GetRequest
    [javac]   location: class WebscriptTest
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\webscript\WebscriptTest.java:226: error: cannot find symbol
    [javac]         rsp = sendRequest(new GetRequest(url), 200);
    [javac]                               ^
    [javac]   symbol:   class GetRequest
    [javac]   location: class WebscriptTest
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\webscript\WebscriptTest.java:242: error: cannot find symbol
    [javac]         rsp = sendRequest(new GetRequest(url2), 200);
    [javac]                               ^
    [javac]   symbol:   class GetRequest
    [javac]   location: class WebscriptTest
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\webscript\WebscriptTest.java:276: error: cannot find symbol
    [javac]         rsp = sendRequest(new GetRequest(url), 200);
    [javac]                               ^
    [javac]   symbol:   class GetRequest
    [javac]   location: class WebscriptTest
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\webscript\WebscriptTest.java:290: error: cannot find symbol
    [javac]         rsp = sendRequest(new GetRequest(url2), 200);
    [javac]                               ^
    [javac]   symbol:   class GetRequest
    [javac]   location: class WebscriptTest
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\webscript\WebscriptTest.java:313: error: cannot find symbol
    [javac]         rsp = sendRequest(new GetRequest(url3), 200);
    [javac]                               ^
    [javac]   symbol:   class GetRequest
    [javac]   location: class WebscriptTest
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\webscript\WebscriptTest.java:342: error: cannot find symbol
    [javac]         Response resp = sendRequest(new GetRequest(url + "&preview=true"), 200);      
    [javac]         ^
    [javac]   symbol:   class Response
    [javac]   location: class WebscriptTest
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\webscript\WebscriptTest.java:342: error: cannot find symbol
    [javac]         Response resp = sendRequest(new GetRequest(url + "&preview=true"), 200);      
    [javac]                                         ^
    [javac]   symbol:   class GetRequest
    [javac]   location: class WebscriptTest
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\webscript\WebscriptTest.java:345: error: cannot find symbol
    [javac]         resp = sendRequest(new GetRequest(url), 200);
    [javac]                                ^
    [javac]   symbol:   class GetRequest
    [javac]   location: class WebscriptTest
    [javac] 18 errors
    [javac] 1 warning

BUILD FAILED
C:\scr\alfresco\HEAD\root\modules\wcmquickstart\build.xml:61: The following error occurred while executing this line:
C:\scr\alfresco\HEAD\root\modules\wcmquickstart\utils.xml:24: Compile failed; see the compiler error output for details.

Total time: 7 seconds

:?
I don't  have an idea how I can solve this error.
This is my first week with Alfresco and in a month I'm going to work with this tool.
So, I need to understand all I can of Alfresco.
7 REPLIES 7

jpotts
World-Class Innovator
World-Class Innovator
I agree that you should be able to build the project without an error, and perhaps someone will give you some advice on fixing that. But if you need to come up to speed quickly, I suggest using the binary builds until you do something that forces you to compile. You'll find that when you use the extension mechanism, the need to do a compile becomes quite rare.

You can get the latest stable Community build here:
http://wiki.alfresco.com/wiki/Download_Community_Edition

Or download the nightly build here:
http://dev.alfresco.com/downloads/nightly/dist/

Jeff

PS. I'm going to move this post to Web Content Services, which is a group of WCM related solutions that includes Web QuickStart.

amus
Champ in-the-making
Champ in-the-making
Good morning:

Thanks jpotts, I was working with Alfresco Community with quickstart and works fine.
But, I need start to see all under alfesco to make future customizations. And build quiskstart see how it work, I think is good way to make my customer modules.
BTW, I'm trying to build Quiskstart with C:\HEAD\root\build.xml and I can generate "alfresco-wcmquickstart-4.2.a.jar" and "alfresco-community-wcmqs-4.2.a.amp",
but I get this error on the creation of war file:


Buildfile: C:\HEAD\root\build.xml
init:
     [echo] user.home = C:\Users\aldo.ulate
     [echo] version.number = 4.2.a
compile-wcmquickstart:
    [mkdir] Created dir: C:\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\build\classes
    [javac] Compiling 92 source files to C:\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\build\classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
    [javac] 1 warning
package-wcmquickstart-jar:
    [mkdir] Created dir: C:\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\build\dist
      [jar] Building jar: C:\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\build\dist\alfresco-wcmquickstart-4.2.a.jar
package-wcmquickstart-extension:
      [zip] Building zip: C:\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\build\dist\alfresco-community-wcmqs-4.2.a.amp
package-wcmquickstart-war:
     [echo] Installing WCM Quick Start module into WAR…
     [java] C:\HEAD\root\macros.xml:245: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.7.0_04\bin\java": CreateProcess error=206, The filename or extension is too long
     [java]    at org.apache.tools.ant.taskdefs.Java.fork(Java.java:798)
     [java]    at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:214)
     [java]    at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
     [java]    at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
     [java]    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     [java]    at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
     [java]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     [java]    at java.lang.reflect.Method.invoke(Unknown Source)
     [java]    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     [java]    at org.apache.tools.ant.Task.perform(Task.java:348)
     [java]    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
     [java]    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     [java]    at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
     [java]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     [java]    at java.lang.reflect.Method.invoke(Unknown Source)
     [java]    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     [java]    at org.apache.tools.ant.Task.perform(Task.java:348)
     [java]    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
     [java]    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     [java]    at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
     [java]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     [java]    at java.lang.reflect.Method.invoke(Unknown Source)
     [java]    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     [java]    at org.apache.tools.ant.Task.perform(Task.java:348)
     [java]    at org.apache.tools.ant.Target.execute(Target.java:392)
     [java]    at org.apache.tools.ant.Target.performTasks(Target.java:413)
     [java]    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
     [java]    at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
     [java]    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
     [java]    at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
     [java]    at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
     [java]    at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
     [java]    at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)
     [java] Caused by: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.7.0_04\bin\java": CreateProcess error=206, The filename or extension is too long
     [java]    at java.lang.ProcessBuilder.start(Unknown Source)
     [java]    at java.lang.Runtime.exec(Unknown Source)
     [java]    at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:862)
     [java]    at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:481)
     [java]    at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495)
     [java]    at org.apache.tools.ant.taskdefs.Java.fork(Java.java:791)
     [java]    … 32 more
     [java] Caused by: java.io.IOException: CreateProcess error=206, The filename or extension is too long
     [java]    at java.lang.ProcessImpl.create(Native Method)
     [java]    at java.lang.ProcessImpl.<init>(Unknown Source)
     [java]    at java.lang.ProcessImpl.start(Unknown Source)
     [java]    … 38 more
     [java] Java Result: -1
clean-webclient-tomcat-deploy:
-deploy-tomcat-common:

BUILD FAILED
C:\HEAD\root\build.xml:547: Directory does not exist: C:\HEAD\root\${env.TOMCAT_HOME}\lib

Total time: 1 minute 47 seconds

All help is very appreciated thanks.

jpotts
World-Class Innovator
World-Class Innovator
I'm fairly sure JDK 1.7 is not supported for either building or running Alfresco. It isn't listed on our supported stacks:
http://www.alfresco.com/services/subscription/supported-platforms

Also, make sure you've defined $TOMCAT_HOME in a local environment variable. This wiki page lists that as well as a few other environment variables you should set:
https://wiki.alfresco.com/wiki/Alfresco_SVN_Development_Environment

Jeff

amus
Champ in-the-making
Champ in-the-making
With JDK 6 U31 X64 with ..\HEAD\root\build.xml same error.
I think this error is related with a bug on eclipse for this http://stackoverflow.com/questions/10519558/createprocess-error-206-the-filename-or-extension-is-too...

But with ..\HEAD\root\modules\wcmquickstart\build.xml I get a new error:  Smiley Very Happy


Buildfile: C:\scr\alfresco\HEAD\root\modules\wcmquickstart\build.xml
clean-wcmquickstart-module:
   [delete] Deleting directory C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\build\classes
clean-wcmquickstart-module:
compile-wcmquickstart-module:
    [mkdir] Created dir: C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\build\classes
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\utils.xml:23: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 92 source files to C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\build\classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\webscript\WebscriptTest.java:162: error: cannot find symbol
    [javac]       Response rsp = sendRequest(new GetRequest(url), 200);
    [javac]       ^
    [javac]   symbol:   class Response
    [javac]   location: class WebscriptTest
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\webscript\WebscriptTest.java:162: error: cannot find symbol
    [javac]       Response rsp = sendRequest(new GetRequest(url), 200);
    [javac]                                      ^
    [javac]   symbol:   class GetRequest
    [javac]   location: class WebscriptTest
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\webscript\WebscriptTest.java:185: error: cannot find symbol
    [javac]         Response rsp = sendRequest(new GetRequest(url), 200);
    [javac]         ^
    [javac]   symbol:   class Response
    [javac]   location: class WebscriptTest
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\webscript\WebscriptTest.java:185: error: cannot find symbol
    [javac]         Response rsp = sendRequest(new GetRequest(url), 200);
    [javac]                                        ^
    [javac]   symbol:   class GetRequest
    [javac]   location: class WebscriptTest
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\webscript\WebscriptTest.java:226: error: cannot find symbol
    [javac]         rsp = sendRequest(new GetRequest(url), 200);
    [javac]                               ^
    [javac]   symbol:   class GetRequest
    [javac]   location: class WebscriptTest
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\webscript\WebscriptTest.java:242: error: cannot find symbol
    [javac]         rsp = sendRequest(new GetRequest(url2), 200);
    [javac]                               ^
    [javac]   symbol:   class GetRequest
    [javac]   location: class WebscriptTest
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\webscript\WebscriptTest.java:276: error: cannot find symbol
    [javac]         rsp = sendRequest(new GetRequest(url), 200);
    [javac]                               ^
    [javac]   symbol:   class GetRequest
    [javac]   location: class WebscriptTest
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\webscript\WebscriptTest.java:290: error: cannot find symbol
    [javac]         rsp = sendRequest(new GetRequest(url2), 200);
    [javac]                               ^
    [javac]   symbol:   class GetRequest
    [javac]   location: class WebscriptTest
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\webscript\WebscriptTest.java:313: error: cannot find symbol
    [javac]         rsp = sendRequest(new GetRequest(url3), 200);
    [javac]                               ^
    [javac]   symbol:   class GetRequest
    [javac]   location: class WebscriptTest
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\webscript\WebscriptTest.java:342: error: cannot find symbol
    [javac]         Response resp = sendRequest(new GetRequest(url + "&preview=true"), 200);      
    [javac]         ^
    [javac]   symbol:   class Response
    [javac]   location: class WebscriptTest
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\webscript\WebscriptTest.java:342: error: cannot find symbol
    [javac]         Response resp = sendRequest(new GetRequest(url + "&preview=true"), 200);      
    [javac]                                         ^
    [javac]   symbol:   class GetRequest
    [javac]   location: class WebscriptTest
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\source\java\org\alfresco\module\org_alfresco_module_wcmquickstart\webscript\WebscriptTest.java:345: error: cannot find symbol
    [javac]         resp = sendRequest(new GetRequest(url), 200);
    [javac]                                ^
    [javac]   symbol:   class GetRequest
    [javac]   location: class WebscriptTest
    [javac] 12 errors
    [javac] 1 warning

BUILD FAILED
C:\scr\alfresco\HEAD\root\modules\wcmquickstart\build.xml:61: The following error occurred while executing this line:
C:\scr\alfresco\HEAD\root\modules\wcmquickstart\utils.xml:23: Compile failed; see the compiler error output for details.

Total time: 6 seconds

All references now are correctly read for the compiler because the imports don't have errors.
This error could be a missed reference…
Or I don't know if is incorrect compile this file on this folder and only is right compile the root file…
I'm going to search the reference of this class.

Also, I just defined $TOMCAT_HOME and I appreciate your help Jeff.
Thanks.

jpotts
World-Class Innovator
World-Class Innovator
Response.java and GetRequest.java should be in:
/projects/core/source/java/org/alfresco/httpclient/

And if you've compiled that, you should have a JAR called:
alfresco-core-4.0.x.jar

Looking at the wcmquickstart build.xml, they define a classpath like:
      <path id="classpath.compile">
         <fileset dir="alfresco/war/WEB-INF/lib">
            <include name="**/*.jar" />
            <!– Avoid compile-time dependencies against optional components, e.g. log4j –>
            <exclude name="optional/**" />
         </fileset>
      </path>

So is your alfresco-core-4.0.x.jar in that directory?

Jeff

amus
Champ in-the-making
Champ in-the-making
Good morning:

Yes, I was trying with:

- alfresco-core-4.0.d.jar
- alfresco-core-4.0.e.jar
- alfresco-core-4.2.a.jar

and the error still showing.


But if I replace these imports:

import org.springframework.extensions.webscripts.TestWebScriptServer.GetRequest;
import org.springframework.extensions.webscripts.TestWebScriptServer.Response;

with:

import org.springframework.extensions.webscripts.TestWebScriptServer.*;

the compiler said package "org.springframework.extensions.webscripts.TestWebScriptServer does not exist"

And If add replace in all lines:

- GetRequest  with org.springframework.extensions.webscripts.TestWebScriptServer.GetRequest
- Response with org.springframework.extensions.webscripts.TestWebScriptServer.Response


I get another error:


Buildfile: C:\scr\alfresco\HEAD\root\modules\wcmquickstart\build.xml
clean-wcmquickstart-module:
   [delete] Deleting directory C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\build\classes
clean-wcmquickstart-module:
compile-wcmquickstart-module:
    [mkdir] Created dir: C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\build\classes
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\utils.xml:23: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 92 source files to C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartmodule\build\classes
    [javac] An exception has occurred in the compiler (1.6.0_31). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport)  after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report.  Thank you.
    [javac] java.lang.NullPointerException
    [javac]    at com.sun.tools.javac.comp.Flow.visitNewClass(Flow.java:1125)
    [javac]    at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1257)
    [javac]    at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:33)
    [javac]    at com.sun.tools.javac.comp.Flow.scanExpr(Flow.java:500)
    [javac]    at com.sun.tools.javac.comp.Flow.scanExprs(Flow.java:510)
    [javac]    at com.sun.tools.javac.comp.Flow.visitApply(Flow.java:1116)
    [javac]    at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1210)
    [javac]    at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:33)
    [javac]    at com.sun.tools.javac.comp.Flow.scanExpr(Flow.java:500)
    [javac]    at com.sun.tools.javac.comp.Flow.visitVarDef(Flow.java:737)
    [javac]    at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:691)
    [javac]    at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:33)
    [javac]    at com.sun.tools.javac.comp.Flow.scanStat(Flow.java:484)
    [javac]    at com.sun.tools.javac.comp.Flow.scanStats(Flow.java:492)
    [javac]    at com.sun.tools.javac.comp.Flow.visitBlock(Flow.java:747)
    [javac]    at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:739)
    [javac]    at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:33)
    [javac]    at com.sun.tools.javac.comp.Flow.scanStat(Flow.java:484)
    [javac]    at com.sun.tools.javac.comp.Flow.visitMethodDef(Flow.java:693)
    [javac]    at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:639)
    [javac]    at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:33)
    [javac]    at com.sun.tools.javac.comp.Flow.visitClassDef(Flow.java:641)
    [javac]    at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:575)
    [javac]    at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:33)
    [javac]    at com.sun.tools.javac.comp.Flow.analyzeTree(Flow.java:1256)
    [javac]    at com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1099)
    [javac]    at com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1073)
    [javac]    at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:768)
    [javac]    at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:730)
    [javac]    at com.sun.tools.javac.main.Main.compile(Main.java:353)
    [javac]    at com.sun.tools.javac.main.Main.compile(Main.java:279)
    [javac]    at com.sun.tools.javac.main.Main.compile(Main.java:270)
    [javac]    at com.sun.tools.javac.Main.compile(Main.java:69)
    [javac]    at com.sun.tools.javac.Main.main(Main.java:54)

BUILD FAILED
C:\scr\alfresco\HEAD\root\modules\wcmquickstart\build.xml:61: The following error occurred while executing this line:
C:\scr\alfresco\HEAD\root\modules\wcmquickstart\utils.xml:23: Compile failed; see the compiler error output for details.

Total time: 6 seconds


Thanks.

amus
Champ in-the-making
Champ in-the-making
Hi,

Good news  Smiley Very Happy,  Finally I can build quick start.
I'm only run root build.xml

It is very easy, on "Targets" tab remove all checks except "deploy-wcmquickstartwebapp-tomcat".

This is the result:


Buildfile: C:\scr\alfresco\HEAD\root\build.xml
init:
     [echo] user.home = C:\Users\aldo.ulate
     [echo] version.number = 4.2.a
compile-wcmquickstart-clientapi:
    [mkdir] Created dir: C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartclientapi\build\classes
    [javac] Compiling 82 source files to C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartclientapi\build\classes
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartclientapi\source\java\org\alfresco\wcm\client\impl\AbstractCmisContentStream.java:74: warning: [deprecation] getStream() in org.alfresco.wcm.client.ContentStream has been deprecated
    [javac]     public InputStream getStream()
    [javac]                        ^
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartclientapi\source\java\org\alfresco\wcm\client\impl\CachingContentStreamImpl.java:120: warning: [deprecation] getStream() in org.alfresco.wcm.client.ContentStream has been deprecated
    [javac]     public InputStream getStream()
    [javac]                        ^
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartclientapi\source\java\org\alfresco\wcm\client\impl\ContentStreamCmisRenditionImpl.java:37: warning: [deprecation] getStream() in org.alfresco.wcm.client.ContentStream has been deprecated
    [javac]     public InputStream getStream()
    [javac]                        ^
    [javac] 3 warnings
package-wcmquickstart-clientapi:
    [mkdir] Created dir: C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartclientapi\build\dist
      [jar] Building jar: C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartclientapi\build\dist\alfresco-wcmqs-clientapi-4.2.a.jar
compile-webeditor:
package-webeditor-taglib-jar:
      [jar] Building jar: C:\scr\alfresco\HEAD\root\projects\web-editor\build\dist\alfresco-webeditor-taglib-4.2.a.jar
compile-wcmquickstart-webapp:
    [mkdir] Created dir: C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartwebsite\build\classes
    [javac] Compiling 28 source files to C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartwebsite\build\classes
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartwebsite\source\java\org\alfresco\wcm\client\exceptionresolver\RepositoryExceptionResolver.java:120: warning: [deprecation] PageView(org.springframework.extensions.surf.WebFrameworkServiceRegistry) in org.springframework.extensions.surf.mvc.PageView has been deprecated
    [javac]                     PageView view = new PageView(requestContext.getServiceRegistry());
    [javac]                                     ^
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartwebsite\source\java\org\alfresco\wcm\client\exceptionresolver\RepositoryExceptionResolver.java:163: warning: [deprecation] getModelObjectService() in org.springframework.extensions.surf.WebFrameworkServiceRegistry has been deprecated
    [javac]         return webFrameworkServiceRegistry.getModelObjectService().getPage(pageId);
    [javac]                                           ^
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartwebsite\source\java\org\alfresco\wcm\client\viewresolver\DynamicPageViewResolver.java:98: warning: [deprecation] getServiceRegistry() in org.springframework.extensions.surf.mvc.AbstractWebFrameworkViewResolver has been deprecated
    [javac]             PageView pageView = new PageView(getServiceRegistry());
    [javac]                                              ^
    [javac] C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartwebsite\source\java\org\alfresco\wcm\client\viewresolver\DynamicPageViewResolver.java:98: warning: [deprecation] PageView(org.springframework.extensions.surf.WebFrameworkServiceRegistry) in org.springframework.extensions.surf.mvc.PageView has been deprecated
    [javac]             PageView pageView = new PageView(getServiceRegistry());
    [javac]                                 ^
    [javac] 4 warnings
package-wcmquickstart-webapp:
    [mkdir] Created dir: C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartwebsite\build\dist
      [jar] Building jar: C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartwebsite\build\dist\alfresco-wcmqs-webapp-4.2.a.jar
assemble-webeditor-jar:
package-webeditor-jar:
assemble-wcmquickstart-webapp:
    [mkdir] Created dir: C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartwebsite\build\assemble
     [copy] Copying 285 files to C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartwebsite\build\assemble
     [copy] Copying 20 files to C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartwebsite\build\assemble\WEB-INF\classes
     [copy] Copied 9 empty directories to 1 empty directory under C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartwebsite\build\assemble\WEB-INF\classes
     [copy] Copying 5 files to C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartwebsite\build\assemble\WEB-INF\classes
     [copy] Copying 1 file to C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartwebsite\build\assemble\WEB-INF\classes\alfresco\messages
     [copy] Copying 93 files to C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartwebsite\build\assemble\WEB-INF\lib
package-wcmquickstart-webapp-war:
      [war] Building war: C:\scr\alfresco\HEAD\root\modules\wcmquickstart\wcmquickstartwebsite\build\dist\wcmqs.war
deploy-wcmquickstartwebapp-tomcat:
     [copy] Copying 1 file to C:\scr\alfresco\HEAD\root\${env.APP_TOMCAT_HOME}\webapps
BUILD SUCCESSFUL
Total time: 1 minute 20 seconds



I get some warnings of deprecation and I need to add APP_TOMCAT_HOME but it is easy to solve thanks!!  Smiley Very Happy