You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Geoffrey Van Nuffelen <ge...@cora.be> on 2001/03/09 10:06:17 UTC

"Like" with peers.

Hi all,

I'm working with peers. 
I would like to do a "LIKE" sql statement, but I don't find the function (the option) tod do this with the object "Criteria".

The the goal is to do this : 

Select nmclient where nmclient like 'Ab%';

with the methods of peers I do this : 

Criteria crit = new Criteria();
crit.add( ClientPeer.NMCLIENT, name , crit.LIKE.toString());

but I receive this error msg : 
"Select.java": Error #: 304 : reference to add is ambiguous; both method add(java.lang.String, java.lang.Object, java.lang.String) in class org.apache.turbine.util.db.Criteria and method add(java.lang.String, java.lang.String, java.lang.Object) in class org.apache.turbine.util.db.Criteria match at line 33, column 22.

Ok it's ambiguous... but what I have to do ???


Can you help me ?
Thanks in advance,
Have a nice day...

Geoffrey...
Belgium.



 



Re: TDK 1.1a11 Still have a (in)Finite redirect problem!

Posted by Didier Dubois <di...@idbsoft.ch>.
Ok! 
Thanks for those invaluable tips! 

Going back to hack.....
Didier

Sean Legassick wrote:
> 
> In message <3A...@idbsoft.ch>, Didier Dubois
> <di...@idbsoft.ch> writes
> >So Which TDK, Turbine or something should we use now????
> >Is it possible to run the latest TDK using Jserv as usual??
> >
> >Sorry for the questions, but I feel a little bit lost among Turbine,
> >TDK, Jserv, mod_jk, mod_webapp, Catalina, Tomacat and friends!
> 
> Use the TDK to develop your app. Then right now to deploy with Apache,
> your best bit is to install Tomcat 3.2.1 and use mod_jk to connect it to
> Apache. Then you can just drop in the webapp out of the TDK webapps
> directory and it will work...
> 
> --
> Sean Legassick
> sean@informage.net
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org

-- 
mailto:didier.dubois@idbsoft.ch	 http://www.idbsoft.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: TDK 1.1a11 Still have a (in)Finite redirect problem!

Posted by Sean Legassick <se...@informage.net>.
In message <3A...@idbsoft.ch>, Didier Dubois 
<di...@idbsoft.ch> writes
>So Which TDK, Turbine or something should we use now????
>Is it possible to run the latest TDK using Jserv as usual??
>
>Sorry for the questions, but I feel a little bit lost among Turbine,
>TDK, Jserv, mod_jk, mod_webapp, Catalina, Tomacat and friends!

Use the TDK to develop your app. Then right now to deploy with Apache, 
your best bit is to install Tomcat 3.2.1 and use mod_jk to connect it to 
Apache. Then you can just drop in the webapp out of the TDK webapps 
directory and it will work...


-- 
Sean Legassick
sean@informage.net

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: TDK 1.1a11 Still have a (in)Finite redirect problem!

Posted by Didier Dubois <di...@idbsoft.ch>.
Hmmm I see!

So Which TDK, Turbine or something should we use now????
Is it possible to run the latest TDK using Jserv as usual??

Sorry for the questions, but I feel a little bit lost among Turbine,
TDK, Jserv, mod_jk, mod_webapp, Catalina, Tomacat and friends!

Thanks again for your patience
Didier.

Sean Legassick wrote:
> 
> In message <3A...@idbsoft.ch>, Didier Dubois
> <di...@idbsoft.ch> writes
> >Ok. What is the correct module to use to connect Apache and tomcat 4.0?
> 
> mod_webapp (e.g. warp) is the only choice.
> 
> However as Jon said this is alpha quality code, and particularly it
> doesn't handle sessions at all at the moment. Remember Tomcat 4.0 ain't
> released yet...
> 
> Sean
> 
> --
> Sean Legassick
> sean@informage.net
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org

-- 
mailto:didier.dubois@idbsoft.ch	 http://www.idbsoft.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: TDK 1.1a11 Still have a (in)Finite redirect problem!

Posted by Sean Legassick <se...@informage.net>.
In message <3A...@idbsoft.ch>, Didier Dubois 
<di...@idbsoft.ch> writes
>Ok. What is the correct module to use to connect Apache and tomcat 4.0?

mod_webapp (e.g. warp) is the only choice.

However as Jon said this is alpha quality code, and particularly it 
doesn't handle sessions at all at the moment. Remember Tomcat 4.0 ain't 
released yet...

Sean

-- 
Sean Legassick
sean@informage.net

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: TDK 1.1a11 Still have a (in)Finite redirect problem!

Posted by Jon Stevens <jo...@latchkey.com>.
on 3/9/01 2:00 AM, "Didier Dubois" <di...@idbsoft.ch> wrote:

> Ok. What is the correct module to use to connect Apache and tomcat 4.0?
> 
> Did.

That is all there is right now.

I haven't been using 4.0 behind apache at all.

-jon

-- 
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: TDK 1.1a11 Still have a (in)Finite redirect problem!

Posted by Didier Dubois <di...@idbsoft.ch>.
Jon Stevens wrote:
> 
> on 3/9/01 1:34 AM, "Didier Dubois" <di...@idbsoft.ch> wrote:
> 
> > This could be something related to the 'Infinite redirect' problem,
> > noticed previously?
> > Could someone could help to fix this?
> > Any other idea?
> >
> > Regards,
> > Didier
> 
> Since things work fine without mod_warp, I would assume that it is a problem
> in mod_warp which is *alpha* quality code.
> 
> -jon
> 

Ok. What is the correct module to use to connect Apache and tomcat 4.0?

Did.

-- 
mailto:didier.dubois@idbsoft.ch	 http://www.idbsoft.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: TDK 1.1a11 Still have a (in)Finite redirect problem!

Posted by Jon Stevens <jo...@latchkey.com>.
on 3/9/01 1:34 AM, "Didier Dubois" <di...@idbsoft.ch> wrote:

> This could be something related to the 'Infinite redirect' problem,
> noticed previously?
> Could someone could help to fix this?
> Any other idea?
> 
> Regards,
> Didier

Since things work fine without mod_warp, I would assume that it is a problem
in mod_warp which is *alpha* quality code.

-jon

-- 
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/ymtd/ymtd.html>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


TDK 1.1a11 Still have a (in)Finite redirect problem!

Posted by Didier Dubois <di...@idbsoft.ch>.
Dear all,

It seems we have a problem using TDK 1.1a11 with Apache.
And it seems to be related to the famous (in)finite redirect.

- I installed TDK, and created a 'test' application but when I call: 
http://kite/test/servlet/test [kite is the name of my machine of course]

I get a page saying:
"""
mod_webapp(warp) error

Cannot switch to passive mode 
"""

and the url beacame something like:  
http://kite/test/servlet/test/redirected/true%3Bjsessionid%3DA460D55120E580B1D2D25504F0E1A494%3Bjsessionid%3D040379A060F2C494D575F2B8F2C3F0F2%3Bjsessionid%3D9163945767498106C172D5032628A4E6%3Bjsessionid%3DB952D454A0007052C3E8B84302E2A7D3%3Bjsessionid%3DB0844100E34087B8C623B1B2B4A5D390%3Bjsessionid%3D31796042385165E4D320F4C450D1A7D7%3Bjsessionid%3DF504E2E27557C6D2A652C7D027379310%3Bjsessionid%3DE6A9C00301E6128520046102A16115B3%3Bjsessionid%3DB453800531190514A09372908941E3D3%3Bjsessionid%3DD968E579A1F3D1B6907210960699F6F9%3Bjsessionid%3D1452F59043122004B0568324E0D81475%3Bjsessionid%3D187202C4C520E7620056B7D1C2E20619%3Bjsessionid%3DA2F3C0F2B21215E8D9498900265262E5%3Bjsessionid%3D77F9C2B3B5A0B367C7557320F8A12007%3Bjsessionid%3D031092A433A274752609789464E39418%3Bjsessionid%3D41720424F3E5821555B964D9D833E270%3Bjsessionid%3D534043D3B2A1B07749540304E20575F5%3Bjsessionid%3D04E2A5F3820112F1C0E4595210C15160%3Bjsessionid%3D3985C54437C161B5C847C5F6C16292E0%3Bjsessionid%3DB0988859746123B0!
343551E68113D434%3Bjsessionid%3D42B79652D630178504C3E46301752242%3Bjsessionid%3D90C420F9313547C0C2B355F49326E072%3Bjsessionid%3DE525B3C883667053C0672453F410E030%3Bjsessionid%3D831363E3620642C0A024919162D3B403%3Bjsessionid%3DD05006E1D371719054A881A370000550%3Bjsessionid%3DA4C6E4A9A5397937B465984913C5B424%3Bjsessionid%3D350954A8C0726861D562616875B7E023%3Bjsessionid%3D010496C763087214A04001F90609B1D5%3Bjsessionid%3DD233B37434959391D46175F4C0148603%3Bjsessionid%3D89652524F40264E74215D6F2D3A0B378%3Bjsessionid%3DB275E7B2A60485E1841648667609B4D1%3Bjsessionid%3D09D5C9C050974684802040B6D75262B0%3Bjsessionid%3D521527B3758498A45733A4A80461A1F2%3Bjsessionid%3DB03832E2729561E156B4E30196907224%3Bjsessionid%3D6744C148E274E3B4792486F13190F435%3Bjsessionid%3DD0C49208D58010213081A7D504B57355%3Bjsessionid%3D74F33020956165732060825285A88305%3Bjsessionid%3D923406123885D1E3C572237284F24513%3Bjsessionid%3D34334472B024B5E5E6A93010E086D204%3Bjsessionid%3DE09423A662F217D5E1A40431238304A4%3Bjsessionid!
%3DF3B6C3A66075D2D545A368B3790632A2%3Bjsessionid%3D35733020E5A1C6D17367B0906732F821%3Bjsessionid%3D7525721035B076835025B1A1F39513F5%3Bjsessionid%3D41A4E1931044E04865564446C0E82193%3Bjsessionid%3D5073B7442040139586D2710261A25920;jsessionid=B05850A2D8D6C3A079C450445291D159


The Apache logs are extremlley wordy! (needless to say), but one could
find the message 'NO RID (-1)' in error_log [comming from the function
wa_warp_recv in wa_provider_wrap.c of webapp]
May be this could help an Apache guru?


Furthermore, it worth notice:
- Sample servlets from Tomcat work correctly.: Apache + Webapp + Tomcat
.link is Ok.
- Directs call from 8080 port work correctly
[http://kite:8080/test/servlet/test]. My application is correctly
runnning.

This could be something related to the 'Infinite redirect' problem,
noticed previously?
Could someone could help to fix this?
Any other idea?

Regards,
Didier

-- 
mailto:didier.dubois@idbsoft.ch	 http://www.idbsoft.ch

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org