You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by la...@masq.ca on 2002/04/23 20:44:56 UTC

Runs on Linux but nor on Solaris :-(

Hi,

After getting cactus to work on my development machine, I tried it on our
server which is a Solaris machine. The setup is the same but when I execute
the tests, once the server is running, I get these errors:

[runservertests] Checking if server is up ...
[runservertests] ... got error : http://localhost:8080/cactus
[runservertests] Checking if server is up ...
[runservertests] ... got error : http://localhost:8080/cactus
[runservertests] Checking if server is up ...
[runservertests] ... got error : http://localhost:8080/cactus

Any idea what problem this is? I can access the URL correctly from the
machine using lynx correclty. However, inside ant, this doesn't work. It
recognizes that the server is up, but doesn't connect and I'm not sure why.

Thanks,

L

-- 
Laurent Duperval <ma...@masq.ca>

GINSBERG'S THEOREM
    1) You can't win.
    2) You can't break even.
    3) You can't even quit the game.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Runs on Linux but nor on Solaris :-(

Posted by la...@masq.ca.
On 24 Apr, Vincent Massol wrote:
>> not. On Linux, a testURL that says
>> 
>> http://localhost:8080/cactus
>> 
>> has /ServletRedirector?Cactus_Service=RUN_TEST
>> 
>> appended properly to it when the tests are run but it doesn't do the
> same
>> on
>> Solaris. It's kind of a surprising behaviour, I find.
> 
> Not sure what you're saying here ... ! You are the one who specify in
> your Ant script the value for testURL, right ? The runservertests Ant
> task simply takes this value and uses it, as is, to try to connect to
> the server and thus verify if it is alive or not. Thus, there can't be a
> difference in URL between Solaris and Windows ...
> 

What I'm saying is that I'm using the same jar files, ant scripts, cactus
version, cactus.properties files on Solaris as I am on Linux. On linux, a
testUrl with the value http://localhost:8080/cactus works correctly. But on
Solaris, the testUrl *has* to have
/ServletRedirector?Cactus_Service=RUN_TEST in it. I'm not saying it's a bad
thing nor am I criticising. This is just the behaviour I noticed on my
servers. I don't know what the underlying reason is, though.

L

-- 
Laurent Duperval <ma...@masq.ca>

BRILLIANT'S OBSERVATION ON MODERN ART:
   Not all our artists are playing a joke on the public.
   Some are genuinely mad.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Runs on Linux but nor on Solaris :-(

Posted by Vincent Massol <vm...@octo.com>.
Laurent,

> -----Original Message-----
> From: laurent.duperval@masq.ca [mailto:laurent.duperval@masq.ca]
> Sent: 24 April 2002 17:49
> To: cactus-user@jakarta.apache.org
> Subject: Re: Runs on Linux but nor on Solaris :-(
> 
> On 24 Apr, To: cactus-user@jakarta.apache.org wrote:
> >
> > Which is what I'm using. My point was to say that the URL seems to
work
> > because I get no errors from a browser but I do get one from ant.
But
> you
> > probably know better so let me make sure. :-)
> >
> 
> Yep, turns out my brain extrapolated a bit from what my eyes saw. It
looks
> like there is a different behaviour, depending on whether you're on
Linux
> or
> not. On Linux, a testURL that says
> 
> http://localhost:8080/cactus
> 
> has /ServletRedirector?Cactus_Service=RUN_TEST
> 
> appended properly to it when the tests are run but it doesn't do the
same
> on
> Solaris. It's kind of a surprising behaviour, I find.

Not sure what you're saying here ... ! You are the one who specify in
your Ant script the value for testURL, right ? The runservertests Ant
task simply takes this value and uses it, as is, to try to connect to
the server and thus verify if it is alive or not. Thus, there can't be a
difference in URL between Solaris and Windows ...

-Vincent

> 
> L
> 
> --
> Laurent Duperval <ma...@masq.ca>
> 
> Do you need a silencer if you are going to shoot a mime?
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:cactus-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:cactus-user-
> help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Runs on Linux but nor on Solaris :-(

Posted by la...@masq.ca.
On 24 Apr, To: cactus-user@jakarta.apache.org wrote:
> 
> Which is what I'm using. My point was to say that the URL seems to work
> because I get no errors from a browser but I do get one from ant. But you
> probably know better so let me make sure. :-)
> 

Yep, turns out my brain extrapolated a bit from what my eyes saw. It looks
like there is a different behaviour, depending on whether you're on Linux or
not. On Linux, a testURL that says

http://localhost:8080/cactus

has /ServletRedirector?Cactus_Service=RUN_TEST

appended properly to it when the tests are run but it doesn't do the same on
Solaris. It's kind of a surprising behaviour, I find.

L

-- 
Laurent Duperval <ma...@masq.ca>

Do you need a silencer if you are going to shoot a mime?



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Runs on Linux but nor on Solaris :-(

Posted by la...@masq.ca.
On 24 Apr, Vincent Massol wrote:
>> Well, isn't a 40x error supposed to be displayed by the browser? If I
> use
>> 
>>  http://localhost:8080/cactus/ServletRedirector?Cactus_Service=RUN
>> 
>> I get an error saying that RUN is not a valid service on my Weblogic
>> console, and a 500 error from the browser. When I use RUN_TEST
> instead, I
>> get a blank page and no error from the WL console. I'm not sure what
> that
>> means, though.
> 
> As I said in my previous email that URL only works if you're using
> Cactus 1.3
> 

Which is what I'm using. My point was to say that the URL seems to work
because I get no errors from a browser but I do get one from ant. But you
probably know better so let me make sure. :-)

L

-- 
Laurent Duperval <ma...@masq.ca>

How does the guy who drives the snowplow get to work in the mornings?



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Runs on Linux but nor on Solaris :-(

Posted by Vincent Massol <vm...@octo.com>.

> -----Original Message-----
> From: laurent.duperval@masq.ca [mailto:laurent.duperval@masq.ca]
> Sent: 24 April 2002 14:25
> To: cactus-user@jakarta.apache.org
> Subject: Re: Runs on Linux but nor on Solaris :-(
> 
> On 23 Apr, Vincent Massol wrote:
> > The answer is simple : you're not using a valid test URL in your
> > runservertests task. The correct one is :
> >
> >
http://localhost:8080/cactus/ServletRedirector?Cactus_Service=RUN_TEST
> >
> 
> That's what I'm using with lynx and with my browser.
> 
> > See FAQ : http://jakarta.apache.org/cactus/faq.html#faq5 :-)
> >
> 
> Yep, I know about this one.
> 
> > P.S.: Even with lynx I'm sure you're getting a 40x error, which
means
> > the URL is not correct.
> >
> 
> Well, isn't a 40x error supposed to be displayed by the browser? If I
use
> 
>  http://localhost:8080/cactus/ServletRedirector?Cactus_Service=RUN
> 
> I get an error saying that RUN is not a valid service on my Weblogic
> console, and a 500 error from the browser. When I use RUN_TEST
instead, I
> get a blank page and no error from the WL console. I'm not sure what
that
> means, though.

As I said in my previous email that URL only works if you're using
Cactus 1.3

> 
> I'll check my configuration again to see.
> 
> Thanks,
> 
> L
> 
> --
> Laurent Duperval <ma...@masq.ca>
> 
> GOEBEL'S LAW OF INTELLECTUAL OBSCURITY:
>    What fun is it to be an expert if you make yourself easy to
understand?
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:cactus-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:cactus-user-
> help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Runs on Linux but nor on Solaris :-(

Posted by la...@masq.ca.
On 23 Apr, Vincent Massol wrote:
> The answer is simple : you're not using a valid test URL in your
> runservertests task. The correct one is :
> 
> http://localhost:8080/cactus/ServletRedirector?Cactus_Service=RUN_TEST
> 

That's what I'm using with lynx and with my browser.

> See FAQ : http://jakarta.apache.org/cactus/faq.html#faq5 :-)
> 

Yep, I know about this one.

> P.S.: Even with lynx I'm sure you're getting a 40x error, which means
> the URL is not correct.
> 

Well, isn't a 40x error supposed to be displayed by the browser? If I use

 http://localhost:8080/cactus/ServletRedirector?Cactus_Service=RUN

I get an error saying that RUN is not a valid service on my Weblogic
console, and a 500 error from the browser. When I use RUN_TEST instead, I
get a blank page and no error from the WL console. I'm not sure what that
means, though.

I'll check my configuration again to see.

Thanks,

L

-- 
Laurent Duperval <ma...@masq.ca>

GOEBEL'S LAW OF INTELLECTUAL OBSCURITY:
   What fun is it to be an expert if you make yourself easy to understand?



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Runs on Linux but nor on Solaris :-(

Posted by Vincent Massol <vm...@octo.com>.
Yep, I know exactly what the problem is ! :-) (Reason being I had
exactly the same error about 3 weeks ago ...).

The answer is simple : you're not using a valid test URL in your
runservertests task. The correct one is :

http://localhost:8080/cactus/ServletRedirector?Cactus_Service=RUN_TEST

See FAQ : http://jakarta.apache.org/cactus/faq.html#faq5 :-)

P.S.: Even with lynx I'm sure you're getting a 40x error, which means
the URL is not correct.

Note: This URL only works with Cactus 1.3. Otherwise with Cactus 1.2 you
need to put a URL that points to a resource within your webapp (JSP,
Servlet, etc).

-Vincent

> -----Original Message-----
> From: laurent.duperval@masq.ca [mailto:laurent.duperval@masq.ca]
> Sent: 23 April 2002 19:45
> To: Cactus Mailing List
> Subject: Runs on Linux but nor on Solaris :-(
> 
> Hi,
> 
> After getting cactus to work on my development machine, I tried it on
our
> server which is a Solaris machine. The setup is the same but when I
> execute
> the tests, once the server is running, I get these errors:
> 
> [runservertests] Checking if server is up ...
> [runservertests] ... got error : http://localhost:8080/cactus
> [runservertests] Checking if server is up ...
> [runservertests] ... got error : http://localhost:8080/cactus
> [runservertests] Checking if server is up ...
> [runservertests] ... got error : http://localhost:8080/cactus
> 
> Any idea what problem this is? I can access the URL correctly from the
> machine using lynx correclty. However, inside ant, this doesn't work.
It
> recognizes that the server is up, but doesn't connect and I'm not sure
> why.
> 
> Thanks,
> 
> L
> 
> --
> Laurent Duperval <ma...@masq.ca>
> 
> GINSBERG'S THEOREM
>     1) You can't win.
>     2) You can't break even.
>     3) You can't even quit the game.
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:cactus-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:cactus-user-
> help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>