struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Martin <e...@ericmmartin.com>
Subject Re: Building 2.0.11 from source (struts-2.0.11-src.zip)
Date Thu, 29 Nov 2007 16:47:46 GMT

Thanks Ted. I checked out:
http://svn.apache.org/repos/asf/struts/struts2/trunk

And will work from that.

Thanks,
Eric



Ted Husted wrote:
> 
> Yes, there are issues with the source distributions. I'm not sure if
> anyone's opened a ticket.
> 
> The best approach is to check the source out from Subversion, and then
> run Maven.
> 
>  * http://struts.apache.org/dev/builds.html
> 
> There are tags for all the releases, if you don't want the head for
> some reason.
> 
>  * http://svn.apache.org/viewvc/struts/struts2/tags/STRUTS_2_0_11/
> 
> -Ted
> 
> On Nov 29, 2007 10:58 AM, Eric Martin <eric@ericmmartin.com> wrote:
>>
>> I downloaded the 2.0.11 source zip
>> (http://download.nextag.com/apache/struts/source/struts-2.0.11-src.zip)
>> and
>> when I tried to build, I got the following errors:
>>
>> compile:
>>     [mkdir] Created dir: C:\struts-2.0.11\build\classes
>>     [javac] Compiling 416 source files to C:\struts-2.0.11\build\classes
>>     [javac]
>> C:\struts-2.0.11\src\core\src\main\java\org\apache\struts2\TestNGStrutsTestCase.java
>> :27: package org.testng.annotations does not exist
>>     [javac] import org.testng.annotations.AfterTest;
>>     [javac]                              ^
>>     [javac]
>> C:\struts-2.0.11\src\core\src\main\java\org\apache\struts2\TestNGStrutsTestCase.java
>> :28: package org.testng.annotations does not exist
>>     [javac] import org.testng.annotations.BeforeTest;
>>     [javac]                              ^
>>     [javac]
>> C:\struts-2.0.11\src\core\src\main\java\org\apache\struts2\portlet\servlet\PortletHt
>> tpSession.java:30: warning: [deprecation]
>> javax.servlet.http.HttpSessionContext in javax.servlet
>> .http has been deprecated
>>     [javac] import javax.servlet.http.HttpSessionContext;
>>     [javac]                          ^
>>     [javac]
>> C:\struts-2.0.11\src\core\src\main\java\org\apache\struts2\portlet\servlet\PortletHt
>> tpSession.java:113: warning: [deprecation]
>> javax.servlet.http.HttpSessionContext in javax.servle
>> t.http has been deprecated
>>     [javac]     public HttpSessionContext getSessionContext() {
>>     [javac]            ^
>>     [javac]
>> C:\struts-2.0.11\src\core\src\main\java\org\apache\struts2\TestNGStrutsTestCase.java
>> :38: cannot find symbol
>>     [javac] symbol  : class BeforeTest
>>     [javac] location: class org.apache.struts2.TestNGStrutsTestCase
>>     [javac]     @BeforeTest
>>     [javac]      ^
>>     [javac]
>> C:\struts-2.0.11\src\core\src\main\java\org\apache\struts2\TestNGStrutsTestCase.java
>> :52: cannot find symbol
>>     [javac] symbol  : class AfterTest
>>     [javac] location: class org.apache.struts2.TestNGStrutsTestCase
>>     [javac]     @AfterTest
>>     [javac]      ^
>>     [javac]
>> C:\struts-2.0.11\src\core\src\main\java\org\apache\struts2\config\StrutsXmlConfigura
>> tionProvider.java:151: warning: [deprecation] toURL() in java.io.File has
>> been deprecated
>>     [javac]                 url = file.toURL();
>>     [javac]                           ^
>>     [javac]
>> C:\struts-2.0.11\src\core\src\main\java\org\apache\struts2\portlet\servlet\PortletHt
>> tpSession.java:182: warning: [deprecation] removeValue(java.lang.String)
>> in
>> javax.servlet.http.H
>> ttpSession has been deprecated
>>     [javac]     public void removeValue(String name) {
>>     [javac]                 ^
>>     [javac]
>> C:\struts-2.0.11\src\core\src\main\java\org\apache\struts2\portlet\servlet\PortletHt
>> tpSession.java:164: warning: [deprecation]
>> putValue(java.lang.String,java.lang.Object) in javax.
>> servlet.http.HttpSession has been deprecated
>>     [javac]     public void putValue(String name, Object value) {
>>     [javac]                 ^
>>     [javac]
>> C:\struts-2.0.11\src\core\src\main\java\org\apache\struts2\portlet\servlet\PortletHt
>> tpSession.java:131: warning: [deprecation] getValueNames() in
>> javax.servlet.http.HttpSession has
>>  been deprecated
>>     [javac]     public String[] getValueNames() {
>>     [javac]                     ^
>>     [javac]
>> C:\struts-2.0.11\src\core\src\main\java\org\apache\struts2\portlet\servlet\PortletHt
>> tpSession.java:122: warning: [deprecation] getValue(java.lang.String) in
>> javax.servlet.http.Http
>> Session has been deprecated
>>     [javac]     public Object getValue(String name) {
>>     [javac]                   ^
>>     [javac]
>> C:\struts-2.0.11\src\core\src\main\java\org\apache\struts2\portlet\servlet\PortletHt
>> tpSession.java:113: warning: [deprecation] getSessionContext() in
>> javax.servlet.http.HttpSession
>>  has been deprecated
>>     [javac]     public HttpSessionContext getSessionContext() {
>>     [javac]                               ^
>>     [javac]
>> C:\struts-2.0.11\src\core\src\main\java\org\apache\struts2\portlet\servlet\PortletSe
>> rvletContext.java:202: warning: [deprecation]
>> log(java.lang.Exception,java.lang.String) in javax
>> .servlet.ServletContext has been deprecated
>>     [javac]     public void log(Exception exception, String msg) {
>>     [javac]                 ^
>>     [javac]
>> C:\struts-2.0.11\src\core\src\main\java\org\apache\struts2\portlet\servlet\PortletSe
>> rvletContext.java:180: warning: [deprecation] getServletNames() in
>> javax.servlet.ServletContext
>> has been deprecated
>>     [javac]     public Enumeration getServletNames() {
>>     [javac]                        ^
>>     [javac]
>> C:\struts-2.0.11\src\core\src\main\java\org\apache\struts2\portlet\servlet\PortletSe
>> rvletContext.java:188: warning: [deprecation] getServlets() in
>> javax.servlet.ServletContext has
>> been deprecated
>>     [javac]     public Enumeration getServlets() {
>>     [javac]                        ^
>>     [javac]
>> C:\struts-2.0.11\src\core\src\main\java\org\apache\struts2\portlet\servlet\PortletSe
>> rvletContext.java:165: warning: [deprecation]
>> getServlet(java.lang.String)
>> in javax.servlet.Serv
>> letContext has been deprecated
>>     [javac]     public Servlet getServlet(String name) throws
>> ServletException {
>>     [javac]                    ^
>>     [javac]
>> C:\struts-2.0.11\src\core\src\main\java\org\apache\struts2\portlet\servlet\PortletSe
>> rvletRequest.java:246: warning: [deprecation]
>> isRequestedSessionIdFromUrl()
>> in javax.servlet.htt
>> p.HttpServletRequest has been deprecated
>>     [javac]     public boolean isRequestedSessionIdFromUrl() {
>>     [javac]                    ^
>>     [javac]
>> C:\struts-2.0.11\src\core\src\main\java\org\apache\struts2\portlet\servlet\PortletSe
>> rvletRequest.java:446: warning: [deprecation]
>> getRealPath(java.lang.String)
>> in javax.servlet.Ser
>> vletRequest has been deprecated
>>     [javac]     public String getRealPath(String path) {
>>     [javac]                   ^
>>     [javac]
>> C:\struts-2.0.11\src\core\src\main\java\org\apache\struts2\portlet\servlet\PortletSe
>> rvletResponse.java:105: warning: [deprecation]
>> setStatus(int,java.lang.String) in javax.servlet.
>> http.HttpServletResponse has been deprecated
>>     [javac]     public void setStatus(int sc, String sm) {
>>     [javac]                 ^
>>     [javac]
>> C:\struts-2.0.11\src\core\src\main\java\org\apache\struts2\portlet\servlet\PortletSe
>> rvletResponse.java:65: warning: [deprecation]
>> encodeRedirectUrl(java.lang.String) in javax.servl
>> et.http.HttpServletResponse has been deprecated
>>     [javac]     public String encodeRedirectUrl(String url) {
>>     [javac]                   ^
>>     [javac]
>> C:\struts-2.0.11\src\core\src\main\java\org\apache\struts2\portlet\servlet\PortletSe
>> rvletResponse.java:73: warning: [deprecation] encodeUrl(java.lang.String)
>> in
>> javax.servlet.http.
>> HttpServletResponse has been deprecated
>>     [javac]     public String encodeUrl(String url) {
>>     [javac]                   ^
>>     [javac] Note: Some input files use unchecked or unsafe operations.
>>     [javac] Note: Recompile with -Xlint:unchecked for details.
>>     [javac] 4 errors
>>     [javac] 17 warnings
>>
>> BUILD FAILED
>>
>> =====================================================
>>
>> I realize many of these are just deprecation errors, but the rest of the
>> errors were caused because the testng jar is not in the lib directory for
>> the src download. After adding testng, I was able to build.
>>
>> I didn't see any notes anywhere about it, so I just thought I'd mention
>> it.
>>
>> Thanks,
>> Eric
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Building-2.0.11-from-source-%28struts-2.0.11-src.zip%29-tf4898061.html#a14029865
Sent from the Struts - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message