struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colin Sampaleanu <co...@Bspark.com>
Subject RE: Building Struts: 12 Errors!
Date Tue, 12 Sep 2000 19:16:46 GMT
You almost certainly are pointing to a Servlet 2.1 implementation, not 2.2.
getAttribute and other related 'attribute' functions were only added in 2.2.
2.1 used 'value'.

You can either get a current servlet jar, or an entire j2ee.jar, which will
contain ejb interfaces as well...


> -----Original Message-----
> From: julia.reynolds@healthstream.com
> [mailto:julia.reynolds@healthstream.com]
> Sent: September 12, 2000 8:44 AM
> To: struts-user@jakarta.apache.org
> Subject: Re: Building Struts: 12 Errors!
> 
> 
> I wish it were so!  I did a Java -version just to be sure, and got:
> 
> 
> E:\PowerTier600\tool>java -version
> java version "1.2.2"
> Classic VM (build JDK-1.2.2_005, native threads, symcjit)
> 
> Could I somehow have an old version of servlet.jar?  If so, 
> where is the new
> one?
> 
> Julia
> 
> Robert Leland wrote:
> 
> > I don't know struts but I do know JDK.
> >
> > You are using a 1.1.X JDK and you need to compile
> > with 1.2.2 or better
> >
> > -----Original Message-----
> > From: Julia Reynolds [mailto:julia.reynolds@healthstream.com]
> > Sent: Tuesday, September 12, 2000 7:34 AM
> > To: struts-user@jakarta.apache.org
> > Subject: Building Struts: 12 Errors!
> >
> > Hi,
> >
> > I am trying to build the struts source distribution and am 
> having some
> > problems.
> >
> > I have downloaded all of the prerequisite software and I 
> have cusomized the
> > environment variables that I am supposed to customize.  
> However, I get the
> > following errors.  I even downloaded the Struts version of 
> the ServletAPI
> > servlet.jar
> > to make sure I had everything in sync.  Can anyone give me 
> a clue as to how
> > to fix this?  The error messages are below:
> >
> > Julia
> >
> >     [javac] Compiling 86 source files to
> > E:\struts\build\struts\library\classes
> >     [javac]
> > E:\struts\jakarta-struts\src\share\org\apache\struts\action\ActionBa
> >
> > se.java:135: Method getAttribute(java.lang.String) not 
> found in interface
> > javax.
> >
> > servlet.http.HttpSession.
> >     [javac]     Locale locale = (Locale) 
> session.getAttribute(LOCALE_KEY);
> >     [javac]                                                  ^
> >     [javac]
> > E:\struts\jakarta-struts\src\share\org\apache\struts\action\ActionBa
> >
> > se.java:155: Method setAttribute(java.lang.String, 
> java.util.Locale) not
> > found i
> >
> > n interface javax.servlet.http.HttpSession.
> >     [javac]     session.setAttribute(LOCALE_KEY, locale);
> >     [javac]                         ^
> >     [javac]
> > E:\struts\jakarta-struts\src\share\org\apache\struts\action\ActionBa
> >
> > se.java:206: Method removeAttribute(java.lang.String) not 
> found in interface
> > jav
> >
> > ax.servlet.http.HttpServletRequest.
> >     [javac]         request.removeAttribute(ERROR_KEY);
> >     [javac]                                ^
> >     [javac]
> > E:\struts\jakarta-struts\src\share\org\apache\struts\action\ActionSe
> >
> > rvlet.java:293: Wrong number of arguments in constructor.
> >     [javac]         throw new UnavailableException
> >     [javac]               ^
> >     [javac]
> > E:\struts\jakarta-struts\src\share\org\apache\struts\action\ActionSe
> >
> > rvlet.java:505: Wrong number of arguments in constructor.
> >     [javac]         throw new UnavailableException
> >     [javac]               ^
> >     [javac]
> > E:\struts\jakarta-struts\src\share\org\apache\struts\action\ActionSe
> >
> > rvlet.java:541: Wrong number of arguments in constructor.
> >     [javac]         throw new UnavailableException
> >     [javac]               ^
> >     [javac]
> > E:\struts\jakarta-struts\src\share\org\apache\struts\action\ActionSe
> >
> > rvlet.java:587: Wrong number of arguments in constructor.
> >     [javac]         throw new UnavailableException
> >     [javac]               ^
> >     [javac]
> > E:\struts\jakarta-struts\src\share\org\apache\struts\action\ActionSe
> >
> > rvlet.java:734: Method getAttribute(java.lang.String) not 
> found in interface
> > jav
> >
> > ax.servlet.http.HttpSession.
> >     [javac]                 (ActionForm)
> > session.getAttribute(formAttribute);
> >     [javac]                                                  ^
> >     [javac]
> > E:\struts\jakarta-struts\src\share\org\apache\struts\action\ActionSe
> >
> > rvlet.java:747: Method setAttribute(java.lang.String,
> > org.apache.struts.action.A
> >
> > ctionForm) not found in interface javax.servlet.http.HttpSession.
> >     [javac]                     session.setAttribute(formAttribute,
> > formInstance
> >
> > );
> >     [javac]                                         ^
> >     [javac]
> > E:\struts\jakarta-struts\src\share\org\apache\struts\taglib\bean\Hea
> >
> > derTag.java:168: Method getHeaders(java.lang.String) not 
> found in interface
> > java
> >
> > x.servlet.http.HttpServletRequest.
> >     [javac]       ((HttpServletRequest)
> > pageContext.getRequest()).getHeaders(nam
> >
> > e);
> >     [javac]
> > ^
> >     [javac]
> > E:\struts\jakarta-struts\src\share\org\apache\struts\taglib\Link1Tag
> >
> > .java:360: Method getContextPath() not found in interface
> > javax.servlet.http.Htt
> >
> > pServletRequest.
> >     [javac]         href = request.getContextPath() + 
> forward.getPath();
> >     [javac]                                      ^
> >     [javac]
> > E:\struts\jakarta-struts\src\share\org\apache\struts\taglib\LinkTag.
> >
> > java:359: Method getContextPath() not found in interface
> > javax.servlet.http.Http
> >
> > ServletRequest.
> >     [javac]         href = request.getContextPath() + 
> forward.getPath();
> >     [javac]                                      ^
> >     [javac] 12 errors
> >
> > BUILD FAILED
> >
> > build.xml:51: Compile failed
> 
> --
>   H e a l t h S t r e a m,   I n c.
>   Julia Reynolds - Systems Developer
>   209 10th Ave. South Ste. 450 - Nashville, TN 37203
>   phone: (615) 301-3220 - fax: (615) 301-3200
> 
>   email: Julia.Reynolds@HealthStream.com
>   Web Site: http://www.cmecourses.com
> 
> 

Mime
View raw message