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 BALA KRISHNA <eb...@yahoo.com> on 2002/04/17 22:05:46 UTC

"Config How To" setting doesn't work in websphere...

Hi,

I have come across a strange behavior that I am trying
to understand. The "Config How To" on cactus site
explicitly says that cactus.properties should contain
the entry...

cactus.servletRedirectorURL  =
http://localhost:8080/test/ServletRedirector/  

With special note on why trailing "/" is required.

Things were fine so far when I was working in JBoss.

When trying to move to WebSphere, I start getting
FileNotFoundException as error when I run the test.
But I called the servlet
(http://localhost:8080/test/ServletRedirector)
directly from browser and saw that it was working.

If you din't notice like me, I didnt put trailing "/"
when using browser directly. I realized this after I
took help of few more eyes. Then I tried with trailing
"/" and I get 404 error even when using browser.

Interestingly, I am not able to run tests in WebSphere
when follow the "Config HowTo" tutorial exactly.

I am using cactus 1.2 and WebSphere 4.0.

Btw, I looked at old postings on mailing list for
similar error in WebSphere. Came across exaclty same
symptoms but were due to completely different reason.

Please email, if you understand this better.

Thanks,
balki


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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


RE: "Config How To" setting doesn't work in websphere...

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

> -----Original Message-----
> From: BALA KRISHNA [mailto:ebalki2002@yahoo.com]
> Sent: 17 April 2002 21:06
> To: Cactus Users List; rakesh.ravee@wipro.com
> Subject: "Config How To" setting doesn't work in websphere...
> 
> 
> Hi,
> 
> I have come across a strange behavior that I am trying
> to understand. The "Config How To" on cactus site
> explicitly says that cactus.properties should contain
> the entry...
> 
> cactus.servletRedirectorURL  =
> http://localhost:8080/test/ServletRedirector/
> 
> With special note on why trailing "/" is required.
> 

What the Cactus site says is wrong ... At least I thought it would work
but that was a bad assumption. It has been removed for Cactus 1.3. Thus
you should have in cactus.properties :

cactus.servletRedirectorURL  =
http://localhost:8080/test/ServletRedirector

and in web.xml

<servlet-mapping>
  <servlet-name>ServletRedirector</servlet-name>
  <uri-pattern>ServletRedirector</uri-pattern>
</servlet-mapping>

> Things were fine so far when I was working in JBoss.
> 

yes, it works for some containners.

Please note that by removing the trailing slash one of the Sample test
will fail (can't remember the name but it is the one that checks for an
error code in the response).

> When trying to move to WebSphere, I start getting
> FileNotFoundException as error when I run the test.
> But I called the servlet
> (http://localhost:8080/test/ServletRedirector)
> directly from browser and saw that it was working.
> 
> If you din't notice like me, I didnt put trailing "/"
> when using browser directly. I realized this after I
> took help of few more eyes. Then I tried with trailing
> "/" and I get 404 error even when using browser.
> 
> Interestingly, I am not able to run tests in WebSphere
> when follow the "Config HowTo" tutorial exactly.

Yes, that's right. Do what I have indicated above.

> 
> I am using cactus 1.2 and WebSphere 4.0.
> 
> Btw, I looked at old postings on mailing list for
> similar error in WebSphere. Came across exaclty same
> symptoms but were due to completely different reason.
> 
> Please email, if you understand this better.

Thanks and sorry.
-Vincent

> 
> Thanks,
> balki
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
> 
> --
> To unsubscribe, e-mail:   <mailto:cactus-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:cactus-user-
> help@jakarta.apache.org>
> 
> 
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.351 / Virus Database: 197 - Release Date: 19/04/2002
> 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 19/04/2002
 


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


RE: questions on runservertasks task...

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

> -----Original Message-----
> From: BALA KRISHNA [mailto:ebalki2002@yahoo.com]
> Sent: 18 April 2002 01:02
> To: Cactus Users List
> Subject: questions on runservertasks task...
> 
> 
> Hi,
> 
> I find that testTarget gets executed before the
> "startTarget" finishes the server start task. 

This is normally not possible unless you've specified a wrong URL. The
runservertasks polls this URL and starts the tests when it succeeds
calling the URL. Thus it is advised to make the testURL points to a URL
within your webapp context.

> At
> times, when running only couple of tests, it even
> calls "stopTarget" before the server starts and
> therefore, build hangs.

Probably same as above.

> 
> I also noticed that the testTarget starts during the
> stage after server loads the webapps and is starting
> to deploy the EJBs. I am not sure if this is a
> coincidence!!
> 
> Is there a way to avoid this?

Yes, see above. What is the testURL you're using ?

> 
> Another related question is if the testURL is set to a
> servlet/jsp which takes time to load, build hangs and
> keeps trying testURL. It doesnt end even stop after a
> reasonable time by which I think the servlet would
> have finished loading.
> 
> I am using cactus 1.2 and Jboss2.2.2 with Tomcat
> 3.2.2.

try calling the URL from a browser and see what it says.

-Vincent

> 
> Thanks,
> balki
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
> 
> --
> To unsubscribe, e-mail:   <mailto:cactus-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:cactus-user-
> help@jakarta.apache.org>
> 
> 
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.351 / Virus Database: 197 - Release Date: 19/04/2002
> 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 19/04/2002
 


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


questions on runservertasks task...

Posted by BALA KRISHNA <eb...@yahoo.com>.
Hi,

I find that testTarget gets executed before the
"startTarget" finishes the server start task. At
times, when running only couple of tests, it even
calls "stopTarget" before the server starts and
therefore, build hangs.

I also noticed that the testTarget starts during the
stage after server loads the webapps and is starting
to deploy the EJBs. I am not sure if this is a
coincidence!!

Is there a way to avoid this?

Another related question is if the testURL is set to a
servlet/jsp which takes time to load, build hangs and
keeps trying testURL. It doesnt end even stop after a
reasonable time by which I think the servlet would
have finished loading.

I am using cactus 1.2 and Jboss2.2.2 with Tomcat
3.2.2.

Thanks,
balki



__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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


Re: "Config How To" setting doesn't work in websphere...

Posted by BALA KRISHNA <eb...@yahoo.com>.
Hi Devasish,

Thanks for your reply. Actually I made the same fix
and got it working. I guess my email doesn't mention
that:)

I wanted to share with Cactus + WebSphere users as I
didn't find any postings on similar problem.

balki

--- devasish sarangi <de...@yahoo.com>
wrote:
> Hi,
> 
> I faced the same problem. I am using Websphere
> Studio
> 4 which is the IDE and comes up with a Websphere
> test
> env.
> I have found out something that is working for me,
> its
> through hit and trial method. In my web.xml I have
> two
> entries for the ServletRedirector, here they are
> 
> <servlet-mapping>
>   <servlet-name>ServletRedirector</servlet-name>
>   <uri-pattern>ServletRedirector</uri-pattern>
> </servlet-mapping>
> 
> <servlet-mapping>
>   <servlet-name>ServletRedirector</servlet-name>
>   <uri-pattern>/ServletRedirector/*</uri-pattern>
> </servlet-mapping>
> 
> This way I am able to access my ServletRedirector in
> the browser both with and without the "/" attached
> to
> it.
> 
> I am able to run all the methods of SampleServlet,
> but
> one. For this particular method which forwards to
> test.jsp, I am getting FileNotFoundException, even
> though I have test.jsp in proper place. Yet to find
> out what is going on.
> 
> So give it a shot and see if it works.
> 
> Thanks,
> Devasish
> 
> 
> --- BALA KRISHNA <eb...@yahoo.com> wrote:
> > 
> > Hi,
> > 
> > I have come across a strange behavior that I am
> > trying
> > to understand. The "Config How To" on cactus site
> > explicitly says that cactus.properties should
> > contain
> > the entry...
> > 
> > cactus.servletRedirectorURL  =
> > http://localhost:8080/test/ServletRedirector/  
> > 
> > With special note on why trailing "/" is required.
> > 
> > Things were fine so far when I was working in
> JBoss.
> > 
> > When trying to move to WebSphere, I start getting
> > FileNotFoundException as error when I run the
> test.
> > But I called the servlet
> > (http://localhost:8080/test/ServletRedirector)
> > directly from browser and saw that it was working.
> > 
> > If you din't notice like me, I didnt put trailing
> > "/"
> > when using browser directly. I realized this after
> I
> > took help of few more eyes. Then I tried with
> > trailing
> > "/" and I get 404 error even when using browser.
> > 
> > Interestingly, I am not able to run tests in
> > WebSphere
> > when follow the "Config HowTo" tutorial exactly.
> > 
> > I am using cactus 1.2 and WebSphere 4.0.
> > 
> > Btw, I looked at old postings on mailing list for
> > similar error in WebSphere. Came across exaclty
> same
> > symptoms but were due to completely different
> > reason.
> > 
> > Please email, if you understand this better.
> > 
> > Thanks,
> > balki
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Tax Center - online filing with TurboTax
> > http://taxes.yahoo.com/
> > 
> > --
> > To unsubscribe, e-mail:  
> >
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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


Re: "Config How To" setting doesn't work in websphere...

Posted by devasish sarangi <de...@yahoo.com>.
Hi,

I faced the same problem. I am using Websphere Studio
4 which is the IDE and comes up with a Websphere test
env.
I have found out something that is working for me, its
through hit and trial method. In my web.xml I have two
entries for the ServletRedirector, here they are

<servlet-mapping>
  <servlet-name>ServletRedirector</servlet-name>
  <uri-pattern>ServletRedirector</uri-pattern>
</servlet-mapping>

<servlet-mapping>
  <servlet-name>ServletRedirector</servlet-name>
  <uri-pattern>/ServletRedirector/*</uri-pattern>
</servlet-mapping>

This way I am able to access my ServletRedirector in
the browser both with and without the "/" attached to
it.

I am able to run all the methods of SampleServlet, but
one. For this particular method which forwards to
test.jsp, I am getting FileNotFoundException, even
though I have test.jsp in proper place. Yet to find
out what is going on.

So give it a shot and see if it works.

Thanks,
Devasish


--- BALA KRISHNA <eb...@yahoo.com> wrote:
> 
> Hi,
> 
> I have come across a strange behavior that I am
> trying
> to understand. The "Config How To" on cactus site
> explicitly says that cactus.properties should
> contain
> the entry...
> 
> cactus.servletRedirectorURL  =
> http://localhost:8080/test/ServletRedirector/  
> 
> With special note on why trailing "/" is required.
> 
> Things were fine so far when I was working in JBoss.
> 
> When trying to move to WebSphere, I start getting
> FileNotFoundException as error when I run the test.
> But I called the servlet
> (http://localhost:8080/test/ServletRedirector)
> directly from browser and saw that it was working.
> 
> If you din't notice like me, I didnt put trailing
> "/"
> when using browser directly. I realized this after I
> took help of few more eyes. Then I tried with
> trailing
> "/" and I get 404 error even when using browser.
> 
> Interestingly, I am not able to run tests in
> WebSphere
> when follow the "Config HowTo" tutorial exactly.
> 
> I am using cactus 1.2 and WebSphere 4.0.
> 
> Btw, I looked at old postings on mailing list for
> similar error in WebSphere. Came across exaclty same
> symptoms but were due to completely different
> reason.
> 
> Please email, if you understand this better.
> 
> Thanks,
> balki
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

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