1. The massage cause by servlet.jar or something like
that being in WEB-INF/libraries - remove it from
there.

2. IP might be unavailable if Tomcat is a worker
behind Apache.

--- Istvan Zakar <[EMAIL PROTECTED]> wrote:

> Hello again!
> 
> I have just noticed the following message in the
> Tomcat log:
> 
> validateJarFile(servlet-api.jar) - jar not loaded.
> See Servlet Spec
> 2.3, section 9.7.2. Offending class:
> javax/servlet/Servlet.class
> 
> Could it cause my problem. If the servlet class not
> loaded, how can it
> display the ip address?
> 
> BRG,
>    Istvan
> 2005/12/8, Istvan Zakar <[EMAIL PROTECTED]>:
> > I have this function for an insert component to
> display the ip fot test:
> >
> > public String getIp(){
> >                
>
System.out.println(getRequestCycle().getRequestContext().getRequest().getRemoteAddr());
> >                 return
>
getRequestCycle().getRequestContext().getRequest().getRemoteAddr();
> >         }
> >
> > The my problem is the following: I'm testing it
> from to IP, when I
> > load the page from the second IP I see the fist IP
> address on the
> > page, in InternetExplorer after a refresh I can
> see the right address.
> >
> > But I need the correct IP when the page is loaded,
> what am I doing wrong?
> >
> > BRG,
> >    Istvan
> >
> > 2005/12/8, Frank Russo <[EMAIL PROTECTED]>:
> > > cycle.getRequestContext() is deprecated in 4.0.
> > >
> > > Is there a way to do that in 4, moving forward?
> > >
> > > Frank Russo
> > > Senior Developer
> > > FX Alliance, LLC
> > >
> > > > -----Original Message-----
> > > > From: Patrick Casey
> [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, December 08, 2005 3:26 PM
> > > > To: 'Tapestry users'
> > > > Subject: RE: Clinets IP
> > > >
> > > >
> > > >
> > > >
>
cycle.getRequestContext().getRequest().getRemoteAddr();
> > > >
> > > > > -----Original Message-----
> > > > > From: Istvan Zakar
> [mailto:[EMAIL PROTECTED]
> > > > > Sent: Thursday, December 08, 2005 12:23 PM
> > > > > To: tapestry-user@jakarta.apache.org
> > > > > Subject: Clinets IP
> > > > >
> > > > > Hello!
> > > > >
> > > > > My application should display a littlebit
> different content
> > > > depending
> > > > > on the client's IP. Is there an easy way to
> figure out the
> > > > IP address?
> > > > >
> > > > > BRG,
> > > > >    Istvan
> > > > >
> > > > >
> > > >
>
---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > > > For additional commands, e-mail:
> > > > [EMAIL PROTECTED]
> > > >
> > > >
> > > >
> > > >
> > > >
>
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > >
> > >
> >
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


Konstantin Ignatyev




PS: If this is a typical day on planet earth, humans will add fifteen million 
tons of carbon to the atmosphere, destroy 115 square miles of tropical 
rainforest, create seventy-two miles of desert, eliminate between forty to one 
hundred species, erode seventy-one million tons of topsoil, add 2,700 tons of 
CFCs to the stratosphere, and increase their population by 263,000

Bowers, C.A.  The Culture of Denial:  Why the Environmental Movement Needs a 
Strategy for Reforming Universities and Public Schools.  New York:  State 
University of New York Press, 1997: (4) (5) (p.206)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to