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 Kaushal Zagade <za...@gmail.com> on 2004/12/07 19:38:40 UTC
cactus and webphere - urgent please
Hello Sheldon,
I need some help on Jakarta Cactus with wsad 5.1.2 and RAD 6.0.
I have to test some EJBs with wsad 5.1.2 ( on was 5.1 test
environment) and RAD 6.0 (on WAS 6.0 Test Environment). I found a
tutorial written by Sheldon Wosnick
http://www-106.ibm.com/developerworks/websphere/techjournal/0206_wosnick/wosnick.html#cactus
on cactus and WSAD which is very helpful and easy to understand.
After building the three projects as you have mentioned in your
tutorial viz. (EJB, Client, Web) and changing the web.xml and adding
the cactus.properties file I ran the test on WAS 5.1 and WAS 6.0
server (Test Enviroment - port 9080).
Started the Server in non-debug mode.
Selected the EJBServletTestCase.java file.
Run => JUnit/Java Application.
the error it gave was:
testHelloWorld3(test.EJBServletTestCase):
org.apache.commons.httpclient.HttpRecoverableException:Error in
parsing the status line from the response:unable to find the line
starting with "HTTP".
same for the other two test cases.....
the cactus binaries that i have downloaded are:
aspectjrt-1.1.1.jar
cactus-1.6.jar
cactus-ant-1.6.jar
commons-httpclient-2.0.jar
commons-logging-1.0.3.jar
httpunit-1.5.4.jar
junit-3.8.1.jar
log4j-1.2.9.jar - (i downloaded it seperately as it did not come in
the zip file for the cactus binaries.)
nekohtml-0.7.4.jar
servletrapi-2.3.jar
I would really appreciate any help as to what might be going wrong on my side.
Thank you.
Kaushal
RE: Save Html with cactus
Posted by Vincent Massol <vm...@pivolis.com>.
> -----Original Message-----
> From: vandersantiago [mailto:vandersantiago@mg.unitech.com.br]
> Sent: jeudi 9 décembre 2004 13:31
> To: Cactus Users List
> Subject: Save Html with cactus
>
> Im my aplication cactus generate the html with errors in aplication, i
> need
> to save this html or xml automatic.
> when i run the cactus test, ServletTestRunner, i need to save this page
> automatis.
> Can you help me.
Yes, we can! :-)
Simply do not use the ServletTestRunner. It is meant to be manual. If you
wish automation you should use an Ant or Maven build script. This will get
the XML/HTML saved automatically.
See http://jakarta.apache.org/cactus/integration/ant/index.html and
http://jakarta.apache.org/cactus/integration/maven/index.html
All that said, there is another solution for you, which is simply to use an
Ant <get> tag (see the Ant manual) to call your URL and save the results on
disk.
-Vincent
>
> ----- Original Message -----
> From: "vandersantiago" <va...@mg.unitech.com.br>
> To: "Cactus Users List" <ca...@jakarta.apache.org>
> Cc: "Cactus Users List" <ca...@jakarta.apache.org>
> Sent: Tuesday, December 07, 2004 4:56 PM
> Subject: Re: cactus and webphere - urgent please
>
>
> > hi friends,
> > Im use cactus with browser, and i need to send email automatic to person
> who
> > write the code with error´.
> >
> > Vander.
> > ----- Original Message -----
> > From: "Kaushal Zagade" <za...@gmail.com>
> > To: <ca...@jakarta.apache.org>
> > Sent: Tuesday, December 07, 2004 3:38 PM
> > Subject: cactus and webphere - urgent please
> >
> >
> > > Hello Sheldon,
> > >
> > > I need some help on Jakarta Cactus with wsad 5.1.2 and RAD 6.0.
> > >
> > > I have to test some EJBs with wsad 5.1.2 ( on was 5.1 test
> > > environment) and RAD 6.0 (on WAS 6.0 Test Environment). I found a
> > > tutorial written by Sheldon Wosnick
> > >
> > >
> >
> http://www-
> 106.ibm.com/developerworks/websphere/techjournal/0206_wosnick/wos
> > nick.html#cactus
> > >
> > > on cactus and WSAD which is very helpful and easy to understand.
> > > After building the three projects as you have mentioned in your
> > > tutorial viz. (EJB, Client, Web) and changing the web.xml and adding
> > > the cactus.properties file I ran the test on WAS 5.1 and WAS 6.0
> > > server (Test Enviroment - port 9080).
> > >
> > > Started the Server in non-debug mode.
> > > Selected the EJBServletTestCase.java file.
> > > Run => JUnit/Java Application.
> > >
> > > the error it gave was:
> > >
> > > testHelloWorld3(test.EJBServletTestCase):
> > > org.apache.commons.httpclient.HttpRecoverableException:Error in
> > > parsing the status line from the response:unable to find the line
> > > starting with "HTTP".
> > >
> > > same for the other two test cases.....
> > >
> > >
> > > the cactus binaries that i have downloaded are:
> > >
> > > aspectjrt-1.1.1.jar
> > > cactus-1.6.jar
> > > cactus-ant-1.6.jar
> > > commons-httpclient-2.0.jar
> > > commons-logging-1.0.3.jar
> > > httpunit-1.5.4.jar
> > > junit-3.8.1.jar
> > > log4j-1.2.9.jar - (i downloaded it seperately as it did not come in
> > > the zip file for the cactus binaries.)
> > > nekohtml-0.7.4.jar
> > > servletrapi-2.3.jar
> > >
> > > I would really appreciate any help as to what might be going wrong on
> my
> > side.
> > >
> > > Thank you.
> > >
> > > Kaushal
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
Save Html with cactus
Posted by vandersantiago <va...@mg.unitech.com.br>.
Im my aplication cactus generate the html with errors in aplication, i need
to save this html or xml automatic.
when i run the cactus test, ServletTestRunner, i need to save this page
automatis.
Can you help me.
----- Original Message -----
From: "vandersantiago" <va...@mg.unitech.com.br>
To: "Cactus Users List" <ca...@jakarta.apache.org>
Cc: "Cactus Users List" <ca...@jakarta.apache.org>
Sent: Tuesday, December 07, 2004 4:56 PM
Subject: Re: cactus and webphere - urgent please
> hi friends,
> Im use cactus with browser, and i need to send email automatic to person
who
> write the code with error´.
>
> Vander.
> ----- Original Message -----
> From: "Kaushal Zagade" <za...@gmail.com>
> To: <ca...@jakarta.apache.org>
> Sent: Tuesday, December 07, 2004 3:38 PM
> Subject: cactus and webphere - urgent please
>
>
> > Hello Sheldon,
> >
> > I need some help on Jakarta Cactus with wsad 5.1.2 and RAD 6.0.
> >
> > I have to test some EJBs with wsad 5.1.2 ( on was 5.1 test
> > environment) and RAD 6.0 (on WAS 6.0 Test Environment). I found a
> > tutorial written by Sheldon Wosnick
> >
> >
>
http://www-106.ibm.com/developerworks/websphere/techjournal/0206_wosnick/wos
> nick.html#cactus
> >
> > on cactus and WSAD which is very helpful and easy to understand.
> > After building the three projects as you have mentioned in your
> > tutorial viz. (EJB, Client, Web) and changing the web.xml and adding
> > the cactus.properties file I ran the test on WAS 5.1 and WAS 6.0
> > server (Test Enviroment - port 9080).
> >
> > Started the Server in non-debug mode.
> > Selected the EJBServletTestCase.java file.
> > Run => JUnit/Java Application.
> >
> > the error it gave was:
> >
> > testHelloWorld3(test.EJBServletTestCase):
> > org.apache.commons.httpclient.HttpRecoverableException:Error in
> > parsing the status line from the response:unable to find the line
> > starting with "HTTP".
> >
> > same for the other two test cases.....
> >
> >
> > the cactus binaries that i have downloaded are:
> >
> > aspectjrt-1.1.1.jar
> > cactus-1.6.jar
> > cactus-ant-1.6.jar
> > commons-httpclient-2.0.jar
> > commons-logging-1.0.3.jar
> > httpunit-1.5.4.jar
> > junit-3.8.1.jar
> > log4j-1.2.9.jar - (i downloaded it seperately as it did not come in
> > the zip file for the cactus binaries.)
> > nekohtml-0.7.4.jar
> > servletrapi-2.3.jar
> >
> > I would really appreciate any help as to what might be going wrong on my
> side.
> >
> > Thank you.
> >
> > Kaushal
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: cactus-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
Re: cactus and webphere - urgent please
Posted by vandersantiago <va...@mg.unitech.com.br>.
hi friends,
Im use cactus with browser, and i need to send email automatic to person who
write the code with error´.
Vander.
----- Original Message -----
From: "Kaushal Zagade" <za...@gmail.com>
To: <ca...@jakarta.apache.org>
Sent: Tuesday, December 07, 2004 3:38 PM
Subject: cactus and webphere - urgent please
> Hello Sheldon,
>
> I need some help on Jakarta Cactus with wsad 5.1.2 and RAD 6.0.
>
> I have to test some EJBs with wsad 5.1.2 ( on was 5.1 test
> environment) and RAD 6.0 (on WAS 6.0 Test Environment). I found a
> tutorial written by Sheldon Wosnick
>
>
http://www-106.ibm.com/developerworks/websphere/techjournal/0206_wosnick/wos
nick.html#cactus
>
> on cactus and WSAD which is very helpful and easy to understand.
> After building the three projects as you have mentioned in your
> tutorial viz. (EJB, Client, Web) and changing the web.xml and adding
> the cactus.properties file I ran the test on WAS 5.1 and WAS 6.0
> server (Test Enviroment - port 9080).
>
> Started the Server in non-debug mode.
> Selected the EJBServletTestCase.java file.
> Run => JUnit/Java Application.
>
> the error it gave was:
>
> testHelloWorld3(test.EJBServletTestCase):
> org.apache.commons.httpclient.HttpRecoverableException:Error in
> parsing the status line from the response:unable to find the line
> starting with "HTTP".
>
> same for the other two test cases.....
>
>
> the cactus binaries that i have downloaded are:
>
> aspectjrt-1.1.1.jar
> cactus-1.6.jar
> cactus-ant-1.6.jar
> commons-httpclient-2.0.jar
> commons-logging-1.0.3.jar
> httpunit-1.5.4.jar
> junit-3.8.1.jar
> log4j-1.2.9.jar - (i downloaded it seperately as it did not come in
> the zip file for the cactus binaries.)
> nekohtml-0.7.4.jar
> servletrapi-2.3.jar
>
> I would really appreciate any help as to what might be going wrong on my
side.
>
> Thank you.
>
> Kaushal
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org