Martin, You are missing what I am saying. If you look in the pom for xwork-core, there is a configuration for the 'maven-shade-plugin.' This configuration sort of 'steals' those classes from commons-lang and puts them into xwork-core's jar file. It also changes the package on the class so that the class can live inside of xwork-core's jar file and not cause duplicate class exceptions if someone uses commons-lang in their own projects. Since this happens inside of maven, if you're development environment isn't delegating compilation to maven, it will fail.
//Copying dev@ in case anyone else is seeing a similar problem. -Wes c2ad2c7528fd1e494f5eb866db9ed7c7d8ba12cd On Thu, Sep 24, 2009 at 9:37 AM, Martin Gainty <mgai...@hotmail.com> wrote: > i just pinged commons-lang to see which version commons-lang has xwork > StringUtils > > STRUTS_2_1_8\core\src\main\java\org\apache\struts2\components\ServletUrlRenderer.java:[98,16] > cannot find symbol symbol : variable StringUtils > location: class org.apache.struts2.components.ServletUrlRenderer > > import org.apache.commons.lang.xwork.StringUtils; > > if they dont report back I'll see if i can dig it out of the eclipse-xwork > plugin > > its in xwork-2.1.4 > but not in xwork-2.1.6 > > thanks > Martin Gainty > ______________________________________________ > Jogi és Bizalmassági kinyilatkoztatás/Verzicht und > Vertraulichkeitanmerkung/Note de déni et de confidentialité > > Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy > jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése > nem megengedett. Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi > alkalmazhatósága sincs. Mivel az electronikus üzenetek könnyen > megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet > tartalma miatt. > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht > dient lediglich dem Austausch von Informationen und entfaltet keine > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > destinataire prévu, nous te demandons avec bonté que pour satisfaire > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie > de ceci est interdite. Ce message sert à l'information seulement et n'aura > pas n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > >> Date: Thu, 24 Sep 2009 09:18:24 -0400 >> Subject: Re: 2.1.8 >> From: w...@wantii.com >> To: mgai...@hotmail.com >> >> Martin, >> >> The 'bundles' module is most definitely there - >> >> http://svn.apache.org/repos/asf/struts/struts2/tags/STRUTS_2_1_8/ >> >> About adding xwork to the core pom file, >> com.opensymphony:xwork-core:2.1.6 is the first dependency in the >> 'dependencies' section. Are you sure that what you are trying to >> compile from is an up-to-date sandbox from SVN? Run 'svn stat' from >> your struts2 checkout and make sure. Are you compiling with Maven, or >> an IDE? StringUtils is shaded in during the xwork build, so I suspect >> that IDEs without proper Maven support (Eclipse sans m2eclipse plugin) >> might not see the StringUtils class. >> >> -Wes >> >> 2009/9/24 Martin Gainty <mgai...@hotmail.com>: >> > 2 things >> > >> > bundles folder was missing so >> > i copied struts-2.1.7\current\struts2\bundles to struts-2.1.8\bundles >> > struts-2.1.8\src\bundles >> > >> > StringUtils was missing in org.apache.struts2.components.Text >> > after i mvn install:install-file xwork i added this to the bottom of >> > /core/pom.xml >> > <!-- MCG --> >> > <dependency> >> > <groupId>com.opensymphony</groupId> >> > <artifactId>xwork-core</artifactId> >> > <version>2.1.4</version> >> > </dependency> >> > <!-- MCG --> >> > >> > Martin Gainty >> > ______________________________________________ >> > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité >> > >> > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene >> > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede >> > unbefugte >> > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese >> > Nachricht >> > dient lediglich dem Austausch von Informationen und entfaltet keine >> > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von >> > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. >> > >> > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas >> > le >> > destinataire prévu, nous te demandons avec bonté que pour satisfaire >> > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la >> > copie >> > de ceci est interdite. Ce message sert à l'information seulement et >> > n'aura >> > pas n'importe quel effet légalement obligatoire. Étant donné que les >> > email >> > peuvent facilement être sujets à la manipulation, nous ne pouvons >> > accepter >> > aucune responsabilité pour le contenu fourni. >> > >> > >> > >> > ________________________________ >> > Lauren found her dream laptop. Find the PC that’s right for you. >> >> >> >> -- >> Wes Wannemacher >> >> Head Engineer, WanTii, Inc. >> Need Training? Struts, Spring, Maven, Tomcat... >> Ask me for a quote! > > ________________________________ > Microsoft brings you a new way to search the web. Try Bing™ now -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org