Out-Of-Container Testing problem

View: New views
14 Messages — Rating Filter:   Alert me  

Out-Of-Container Testing problem

by mustafa sener :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,
I have a problem about out of container testing. When I call Site.getRepInstance() method it returns a null Site pointer. Do I need any configuration before starting testing? or is tehere a bug?

Thanx..



What are the most popular cars? Find out at Yahoo! Autos

Re: Out-Of-Container Testing problem

by Geert Bevin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Mustafa,

your site must first be initialized before that call returns a site.

The process is described here:
http://rifers.org/wiki/display/RIFE/Out+of+container+testing

If you want to access the site that you declared in an XML file (as  
you normally do), you can either initialize a repository with the  
site participant as you can see here:
http://rifers.org:8088/viewrep/rifers/rife-jumpstart/trunk/tests/java/ 
com/uwyn/rife/jumpstart/TestApplication.java?r=HEAD

It's also possible to create a temporary site from an XML inside the  
testcase for instance, like this:
SiteBuilder builder = new SiteBuilder("site/yoursite.xml",  
ResourceFinderClasspath.getInstance());
builder.getSite();

Best regards,

Geert

On 1-feb-06, at 12:34, mustafa sener wrote:

> Hi all,
> I have a problem about out of container testing. When I call  
> Site.getRepInstance() method it returns a null Site pointer. Do I  
> need any configuration before starting testing? or is tehere a bug?
>
> Thanx..
>
>
> What are the most popular cars? Find out at Yahoo! Autos
> _______________________________________________
> Rife-devel mailing list
> Rife-devel@...
> http://lists.uwyn.com/mailman/listinfo/rife-devel

--
Geert Bevin                       Uwyn bvba
"Use what you need"               Avenue de Scailmont 34
http://www.uwyn.com               7170 Manage, Belgium
gbevin[remove] at uwyn dot com    Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net




Re: Out-Of-Container Testing problem

by mustafa sener :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you very much Geert,
It solved the problem I put Rep.initialize("rep/participants.xml"); in my setup and it worked. But i think out-of-container documenttation should be updated and developers should be warned to call Rep.initialize("rep/participants.xml"); in their testsuite or setup methods.

Again thanx...

Mustafa


Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.

Re: Out-Of-Container Testing problem

by Geert Bevin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Feel free to update the documentation on the wiki. This is typically  
an area where you can make a nice contribution as a user.

Best regards,

Geert

On 1-feb-06, at 13:04, mustafa sener wrote:

> Thank you very much Geert,
> It solved the problem I put Rep.initialize("rep/participants.xml");  
> in my setup and it worked. But i think out-of-container  
> documenttation should be updated and developers should be warned to  
> call Rep.initialize("rep/participants.xml"); in their testsuite or  
> setup methods.
>
> Again thanx...
>
> Mustafa
>
> Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, &  
> more on new and used cars.
> _______________________________________________
> Rife-devel mailing list
> Rife-devel@...
> http://lists.uwyn.com/mailman/listinfo/rife-devel

--
Geert Bevin                       Uwyn bvba
"Use what you need"               Avenue de Scailmont 34
http://www.uwyn.com               7170 Manage, Belgium
gbevin[remove] at uwyn dot com    Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net




authentication question

by mustafa sener :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi All,
Rife database authentication mechanism works perfect but I need to customize it. Default user table which authentication mechanism  uses is "authuser" can i change this default behaviour? Also It is written that default authentication mechanism is working with mysql, oracle and PostgreSQL. Can I use another database(e.g derby, mssql server, etc) for this operation?

Thanx..
Mustafa



What are the most popular cars? Find out at Yahoo! Autos

Re: authentication question

by Geert Bevin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Mustafa,

you can use any database that RIFE supports for the authentication.  
MsSQL isn't supported however, Derby is. Check here for the full  
list: http://rifers.org/integration

You can customize all the default table names through configuration  
parameters, you can find the list of all those that are supported in  
the comments here:
http://rifers.org:8088/viewrep/rifers/rife/trunk/programs/unittests/ 
config/rep/config.xml?r=HEAD

Best regards,

Geert

On 2-feb-06, at 11:34, mustafa sener wrote:

> Hi All,
> Rife database authentication mechanism works perfect but I need to  
> customize it. Default user table which authentication mechanism  
> uses is "authuser" can i change this default behaviour? Also It is  
> written that default authentication mechanism is working with  
> mysql, oracle and PostgreSQL. Can I use another database(e.g derby,  
> mssql  server, etc) for this operation?
>
> Thanx..
> Mustafa
>
>
> What are the most popular cars? Find out at Yahoo! Autos
> _______________________________________________
> Rife-devel mailing list
> Rife-devel@...
> http://lists.uwyn.com/mailman/listinfo/rife-devel

--
Geert Bevin                       Uwyn bvba
"Use what you need"               Avenue de Scailmont 34
http://www.uwyn.com               7170 Manage, Belgium
gbevin[remove] at uwyn dot com    Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net




Re: authentication question

by mustafa sener :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
Thanx for your reply Geert. It worked. But I have another question :(. I logined as a authorized user and i saw that rife opened a authentication session for me. After that I tried to request something without giving username and password since i logined before but Rife respond me that I am not a authenticated user. Why is that? I set globalcokie and globalvar variables and childtrigger, is there anything else which I should do?

Mustafa



What are the most popular cars? Find out at Yahoo! Autos

Re: authentication question

by Geert Bevin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It difficult to tell without seeing what you're doing exactly. Is  
this with the default RIFE authentication, or something you  
implemented yourself?

> Thanx for your reply Geert. It worked. But I have another question :
> (. I logined as a authorized user and i saw that rife opened a  
> authentication session for me. After that I tried to request  
> something without giving username and password since i logined  
> before but Rife respond me that I am not a authenticated user. Why  
> is that? I set globalcokie and globalvar variables and  
> childtrigger, is there anything else which I should do?

--
Geert Bevin                       Uwyn bvba
"Use what you need"               Avenue de Scailmont 34
http://www.uwyn.com               7170 Manage, Belgium
gbevin[remove] at uwyn dot com    Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net




Authentication caching problem

by mustafa sener :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I have a problem with mixed authentication element. In custom elements I can call addHeader method and can add "no-cahce" information to header. How can I add a "no-cache" header to authenticationelement?


How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.
_______________________________________________
Rife-devel mailing list
Rife-devel@...
http://lists.uwyn.com/mailman/listinfo/rife-devel

Re: Authentication caching problem

by Geert Bevin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Mustafa,

there are two ways, either you extend the authentication element  
implementation and add the header there, or (probably easiest) you  
can write your own element and add it as a precedence element:
http://rifers.org/wiki/display/RIFE/Precedence

Hope this helps,

Geert

On 16 May 2006, at 10:12, mustafa sener wrote:

> Hi,
> I have a problem with mixed authentication element. In custom  
> elements I can call addHeader method and can add "no-cahce"  
> information to header. How can I add a "no-cache" header to  
> authenticationelement?
>
> How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone  
> call rates.
> _______________________________________________
> Rife-devel mailing list
> Rife-devel@...
> http://lists.uwyn.com/mailman/listinfo/rife-devel

--
Geert Bevin             Uwyn bvba               GTalk: gbevin@...
"Use what you need"     Avenue de Scailmont 34  Skype: gbevin
http://www.uwyn.com     7170 Manage, Belgium      AIM: geertbevin
gbevin at uwyn dot com  Tel: +32 64 84 80 03   Mobile: +32 477 302 599

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


_______________________________________________
Rife-devel mailing list
Rife-devel@...
http://lists.uwyn.com/mailman/listinfo/rife-devel

Re: Authentication caching problem

by mustafa sener :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanx it solved the problem. I precedenced auth element by rife/http/uncache element and it is working now.

Mustafa


How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.
_______________________________________________
Rife-devel mailing list
Rife-devel@...
http://lists.uwyn.com/mailman/listinfo/rife-devel

Classloading problem

by mustafa sener :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
We are facing with a problem about classloading. We have some jar files which are being used by rife element in our jetty webapps/web-inf/lib directory. We are using bean shell scripting framework to execute external scripts. In our element, we are passing some objects to this framework. And in the script code we try cast to these passed objects. Although they have same type, scripting enginee is throwing ClassCastException.

Any ideas????

Mustafa


Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
_______________________________________________
Rife-devel mailing list
Rife-devel@...
http://lists.uwyn.com/mailman/listinfo/rife-devel

Re: Classloading problem

by Geert Bevin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Mustafa,

it sounds like your scripting setup uses another classloader than the  
RIFE classloader, which causes classes to be different, even though  
they are loaded from the same class file. This is very difficult to  
help you with from the information you've given. If you can package a  
small, self-contained source archive that demonstrates the problem,  
it's possible to help you track it. Otherwise, it's just guess work.

You might also consider posting to the rife-users mailing list instead.

Best regards,

Geert

On 22 May 2006, at 12:47, mustafa sener wrote:

> Hi,
> We are facing with a problem about classloading. We have some jar  
> files which are being used by rife element in our jetty webapps/web-
> inf/lib directory. We are using bean shell scripting framework to  
> execute external scripts. In our element, we are passing some  
> objects to this framework. And in the script code we try cast to  
> these passed objects. Although they have same type, scripting  
> enginee is throwing ClassCastException.
>
> Any ideas????
>
> Mustafa
>
> Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and  
> 30+ countries) for 2¢/min or less.
> _______________________________________________
> Rife-devel mailing list
> Rife-devel@...
> http://lists.uwyn.com/mailman/listinfo/rife-devel

--
Geert Bevin
Uwyn bvba "Use what you need"
http://www.uwyn.com


_______________________________________________
Rife-devel mailing list
Rife-devel@...
http://lists.uwyn.com/mailman/listinfo/rife-devel

Re: Classloading problem

by mustafa sener :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok, thanx geert. I will try to write from users mail list.

Mustafa


Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
_______________________________________________
Rife-devel mailing list
Rife-devel@...
http://lists.uwyn.com/mailman/listinfo/rife-devel
 
 
 
Google
rifers.org web