Derek
Posts: 3
|
Posted: 08/10/2008, 12:54 PM |
|
I installed CodeCharge 4 and generated a simple application with the wizard to test the setup. Compile fails and I get many errors of the type:
[javac] C:\DOCUME~1\ADMINI~1.HOM\LOCALS~1\Temp\~expost_aid_survey\CCSBuild\src\com\codecharge\util\StyleChooser.java:80: cannot find symbol
[javac] symbol : method getResourceAsStream(java.lang.String)
[javac] location: interface javax.servlet.ServletContext
[javac] InputStream is = ContextStorage.getContext().getResourceAsStream("/Styles/"+value+"/Style.css");
[javac] ^
[javac] C:\DOCUME~1\ADMINI~1.HOM\LOCALS~1\Temp\~expost_aid_survey\CCSBuild\src\com\codecharge\util\filters\CacheFilter.java:58: cannot find symbol
[javac] symbol : method setAttribute(java.lang.String,com.codecharge.util.cache.ICache)
[javac] location: interface javax.servlet.ServletContext
[javac] config.getServletContext().setAttribute(Names.CACHE_INSTANCE, cache);
[javac] ^
[javac] C:\DOCUME~1\ADMINI~1.HOM\LOCALS~1\Temp\~expost_aid_survey\CCSBuild\src\survey_list\survey_listAction.java:33: cannot find symbol
[javac] symbol : method setAttribute(java.lang.String,com.codecharge.components.Page)
[javac] location: interface javax.servlet.http.HttpServletRequest
[javac] req.setAttribute( "survey_listModel", page );
[javac] ^
[javac] C:\DOCUME~1\ADMINI~1.HOM\LOCALS~1\Temp\~expost_aid_survey\CCSBuild\src\survey_list\survey_listView.java:25: cannot find symbol
[javac] symbol : method setAttribute(java.lang.String,java.lang.String)
[javac] location: interface javax.servlet.http.HttpServletRequest
[javac] req.setAttribute(Names.TEMPLATE_ENCODING, "windows-1252");
[javac] ^
I've checked my classpaths and have included
servlet-api.jar, jsp-api.jar and jsdk.jar
Java SDK home points to: C:\Program Files\Java\jdk1.6.0_07
Java Ant home points to: C:\Program Files\apache-ant-1.7.1
Please help and thank you in advance.
|
|
|
Derek
Posts: 3
|
Posted: 08/10/2008, 9:34 PM |
|
I have resolved this issue by adding servlet.jar to my classpath.
|
|
|
|