You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ab...@itsprojects.com on 2002/11/27 12:25:17 UTC

Running Struts on Wepshere 4.0

Hi All,
We have decided to go ahead with deploying struts framework on Websphere
4.0 so any body u has any idea /resource on it , pls share it with me

I am trying to run struts but nt able to invoke logon.do servlet

Pls help

Thanks in advance

abhishek

-----------------------Disclaimer------------------------

The views of the author may not necessarily reflect those
of the Company. All liability is excluded to the extent
permitted by law for any claims arising as a result of the
use of this medium to transmit information by or to
IT Solutions (India) Pvt. Ltd.

We have taken precautions to minimize the risk of
transmitting software viruses, but we advise you to
carry out your own virus checks on any attachment to
this message.  We cannot accept liability for any loss or
damage caused by software viruses.

------------------------Disclaimer------------------------


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


Re: Running Struts on Wepshere 4.0

Posted by Matthew Donald <ma...@motile.net>.
You are building on sand.  Even when you solve your config problems,
Struts is not supported on Websphere 4.0.  The official IBM position is
user Tomcat or wait for Websphere 5.
Matthew


> We have decided to go ahead with deploying struts framework on
> Websphere 4.0 so any body u has any idea /resource on it , pls share it
> with me
>
> I am trying to run struts but nt able to invoke logon.do servlet
>
> Pls help
>
> Thanks in advance
>
> abhishek
>
> -----------------------Disclaimer------------------------
>
> The views of the author may not necessarily reflect those
> of the Company. All liability is excluded to the extent
> permitted by law for any claims arising as a result of the
> use of this medium to transmit information by or to
> IT Solutions (India) Pvt. Ltd.
>
> We have taken precautions to minimize the risk of
> transmitting software viruses, but we advise you to
> carry out your own virus checks on any attachment to
> this message.  We cannot accept liability for any loss or
> damage caused by software viruses.
>
> ------------------------Disclaimer------------------------
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org> For additional
> commands, e-mail: <ma...@jakarta.apache.org>




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


Re: HTTP Status 500

Posted by Jens Kühnberger <Ku...@web.de>.
try http://localhost/wileystruts

Paul Kavanagh wrote:
> Hi there,
> 
> I'm trying to get the attached Struts webapp (from Chapter Three of
> Mastering Struts) working with Tomcat
> 4.1.12. My understanding is that I should be able to just drop the attached
> (unzipped of course)
> into a webappname/ folder and then be able to access it via
> http://localhost/webappname. Is this
> correct ?
> 
> When I try however, I get get this error:
> 
> HTTP Status 500 - No Context configured to process this request
> ----------------------------------------------------------------------------
> ----
> type Status report
> message No Context configured to process this request
> description The server encountered an internal error (No Context configured
> to process this
> request) that prevented it from fulfilling this request.
> ----------------------------------------------------------------------------
> ----
> Apache Tomcat/4.1.12-LE-jdk14
> 
> I have all the struts jars in WEB-INF/lib.
> 
> I know this is probably something dumb and config-related on my behalf. I
> appreciate the help.
> 
> Thanks in advance,
> -Paul
> 
> ps I've removed the Struts Jars from the zip, but they are in WEB-INF/lib
> 
> 
> ------------------------------------------------------------------------
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>



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


RE: HTTP Status 500

Posted by David Bolsover <da...@bolsover.com>.
I could open it using TC4.1.7 - don't know what t is supposed to do though

http://loaclhost:8080/wileystruts

db

> -----Original Message-----
> From: Paul Kavanagh [mailto:p_kavanagh@yahoo.com]
> Sent: 29 November 2002 19:48
> To: Struts Users Mailing List
> Subject: HTTP Status 500
> 
> 
> Hi there,
> 
> I'm trying to get the attached Struts webapp (from Chapter Three of
> Mastering Struts) working with Tomcat
> 4.1.12. My understanding is that I should be able to just drop the attached
> (unzipped of course)
> into a webappname/ folder and then be able to access it via
> http://localhost/webappname. Is this
> correct ?
> 
> When I try however, I get get this error:
> 
> HTTP Status 500 - No Context configured to process this request
> ----------------------------------------------------------------------------
> ----
> type Status report
> message No Context configured to process this request
> description The server encountered an internal error (No Context configured
> to process this
> request) that prevented it from fulfilling this request.
> ----------------------------------------------------------------------------
> ----
> Apache Tomcat/4.1.12-LE-jdk14
> 
> I have all the struts jars in WEB-INF/lib.
> 
> I know this is probably something dumb and config-related on my behalf. I
> appreciate the help.
> 
> Thanks in advance,
> -Paul
> 
> ps I've removed the Struts Jars from the zip, but they are in WEB-INF/lib
> 

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


RE: HTTP Status 500

Posted by Vincent PROSPER <Vi...@Alkinos.com>.
Paul,

may you should have a look on how to build a webapp.war... and drop it into
the webapps directory of Tomcat...

Vince

-----Original Message-----
From: Paul Kavanagh [mailto:p_kavanagh@yahoo.com]
Sent: Friday, November 29, 2002 8:48 PM
To: Struts Users Mailing List
Subject: HTTP Status 500


Hi there,

I'm trying to get the attached Struts webapp (from Chapter Three of
Mastering Struts) working with Tomcat
4.1.12. My understanding is that I should be able to just drop the attached
(unzipped of course)
into a webappname/ folder and then be able to access it via
http://localhost/webappname. Is this
correct ?

When I try however, I get get this error:

HTTP Status 500 - No Context configured to process this request
----------------------------------------------------------------------------
----
type Status report
message No Context configured to process this request
description The server encountered an internal error (No Context configured
to process this
request) that prevented it from fulfilling this request.
----------------------------------------------------------------------------
----
Apache Tomcat/4.1.12-LE-jdk14

I have all the struts jars in WEB-INF/lib.

I know this is probably something dumb and config-related on my behalf. I
appreciate the help.

Thanks in advance,
-Paul

ps I've removed the Struts Jars from the zip, but they are in WEB-INF/lib



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


HTTP Status 500

Posted by Paul Kavanagh <p_...@yahoo.com>.
Hi there,

I'm trying to get the attached Struts webapp (from Chapter Three of
Mastering Struts) working with Tomcat
4.1.12. My understanding is that I should be able to just drop the attached
(unzipped of course)
into a webappname/ folder and then be able to access it via
http://localhost/webappname. Is this
correct ?

When I try however, I get get this error:

HTTP Status 500 - No Context configured to process this request
----------------------------------------------------------------------------
----
type Status report
message No Context configured to process this request
description The server encountered an internal error (No Context configured
to process this
request) that prevented it from fulfilling this request.
----------------------------------------------------------------------------
----
Apache Tomcat/4.1.12-LE-jdk14

I have all the struts jars in WEB-INF/lib.

I know this is probably something dumb and config-related on my behalf. I
appreciate the help.

Thanks in advance,
-Paul

ps I've removed the Struts Jars from the zip, but they are in WEB-INF/lib

Re: great error in struts! Include a JSP result of an Action in other JSP

Posted by Carlos Grima <tr...@carlosgrima.com>.
Hello again Tib:

Many thanks for your help. Your solution works perfectly:

<bean:include id="text" page="/theAction.do"/>
<bean:write name="text" filter="false"/>

Regards and thanks :-)))


CARLOS GRIMA
· www.carlosgrima.com
· carlosgrima@carlosgrima.com
· MSN: carlos_grima (hotmail)


----- Original Message -----
From: "Gemes Tibor" <ge...@regens.hu>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Thursday, November 28, 2002 1:32 PM
Subject: Re: great error in struts! Include a JSP result of an Action in
other JSP


2002. november 28. 13:20 dátummal Carlos Grima ezt írtad:
> For resolving this problem, I have printed the <bean:include.../> result
> with JavaScript commands, but it is a botched solution :-S

Have you tried the "filter" attribute of the <bean:write> tag as
<bean:write name="text" filter="true|false"/> ?




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


Re: great error in struts! Include a JSP result of an Action in other JSP

Posted by Gemes Tibor <ge...@regens.hu>.
2002. november 28. 13:20 dátummal Carlos Grima ezt írtad:
> For resolving this problem, I have printed the <bean:include.../> result
> with JavaScript commands, but it is a botched solution :-S

Have you tried the "filter" attribute of the <bean:write> tag as 
<bean:write name="text" filter="true|false"/> ?

Tib

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


Re: great error in struts! Include a JSP result of an Action in other JSP

Posted by Carlos Grima <tr...@carlosgrima.com>.
Thanks Gemes, your help has been very good :-)

It is true that "template" is deprecated in the new beta version... In the
beta version, the new tags for this funcionality works perfectly (I have
test it).

Your solution in the latest stable version is very good. I proved it, and it
works well. But there is a small problem: <bean:include.../> returns a
entire JSP page, in wich there are tags, with simbols "<", ">", etc. The tag
<bean:write.../> is very clever, so doesnt print the strange simbols like
"<" and ">".

For resolving this problem, I have printed the <bean:include.../> result
with JavaScript commands, but it is a botched solution :-S

Thanks for your help (in our next proyect, we use the new beta version of
Struts). Excuse me for my bad English :(

Regards of your friend:

Carlos



CARLOS GRIMA
· www.carlosgrima.com
· carlosgrima@carlosgrima.com
· MSN: carlos_grima (hotmail)


----- Original Message -----
From: "Gemes Tibor" <ge...@regens.hu>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Wednesday, November 27, 2002 1:08 PM
Subject: Re: great error in struts! Include a JSP result of an Action in
other JSP


2002. november 27. 12:56 dátummal Carlos Grima ezt írtad:
> <%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>

Afaik the template tag is deprecated.

I solved this kind of problem with the help of an intermediate file which
calls the file with struts tags:


<bean:include id="text"
href="/myApp/myModule/myAction.do?myFirsParam=1&mySecondParam=2" />
<bean:write name="text">

And inserted this file into the template.

Hth,

Tib

Btw


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


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


RE: great error in struts! Include a JSP result of an Action in other JSP

Posted by Míguel Ángel Mulero Martínez <mi...@mad.tecsidel.es>.
Yes!! This works. I've tried this for my yesterday problem. Only one change:
<bean:write name="text" /> don't work because Struts scapes the < and >
simbols (¿security?). I have used <%=text%> and all ok.

Thanks!!!
Miguel

> -----Mensaje original-----
> De: Gemes Tibor [mailto:gemes@regens.hu]
> Enviado el: miércoles, 27 de noviembre de 2002 13:09
> Para: Struts Users Mailing List
> Asunto: Re: great error in struts! Include a JSP result of an Action in
> other JSP
>
>
> 2002. november 27. 12:56 dátummal Carlos Grima ezt írtad:
> > <%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
>
> Afaik the template tag is deprecated.
>
> I solved this kind of problem with the help of an intermediate file which
> calls the file with struts tags:
>
>
> <bean:include id="text"
> href="/myApp/myModule/myAction.do?myFirsParam=1&mySecondParam=2" />
> <bean:write name="text">
>
> And inserted this file into the template.
>
> Hth,
>
> Tib
>
> Btw
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>


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


Re: great error in struts! Include a JSP result of an Action in other JSP

Posted by Gemes Tibor <ge...@regens.hu>.
2002. november 27. 12:56 dátummal Carlos Grima ezt írtad:
> <%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>

Afaik the template tag is deprecated.

I solved this kind of problem with the help of an intermediate file which 
calls the file with struts tags:


<bean:include id="text" 
href="/myApp/myModule/myAction.do?myFirsParam=1&mySecondParam=2" />
<bean:write name="text">

And inserted this file into the template.

Hth,

Tib

Btw 


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


great error in struts! Include a JSP result of an Action in other JSP

Posted by Carlos Grima <tr...@carlosgrima.com>.
Hello everybody! :-)

I am trying the follow:

index.jsp:

<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>

<template:insert template="templates/templateIndex.jsp">
      <template:put name="parteUltimaHora" content="/ultimaHoraAction.do"/>
</template:insert>


templateIndex.jsp:

...
<template:get name="parteUltimaHora"/>
...


ultimaHoraAction.do:

...
req.setAttribute("var", var);
...
return mapping.findForward("a_JSP_page");


My goal is to include a_JSP_page (in wich there are struts-tags like
<bean:write name="var"/>) in index.jsp... but dont work.

Dont work too the following, in index.jsp:

<jsp:include page="/ultimaHoraAction.do"/>

nor

<jsp:include page="/ultimaHoraAction.do" flush="true"/>

nor

<template:insert template="/ultimaHoraAction.do"/>

¡Nothing dont work! ¿How can I include the JSP result (with struts-tags like
<bean:write.../>) of an Action in other JSP page?

Thanks.


CARLOS GRIMA
· www.carlosgrima.com
· carlosgrima@carlosgrima.com
· MSN: carlos_grima (hotmail)


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


RE: Running Struts on Wepshere 4.0

Posted by jzakarian <jz...@crossstreettrade.com>.
abhishek,

I just say your message. I am working with WebSphere 40 Application
Server and had to replace xalan and xerces in the WEB-INB\lib directory
for Struts-Menu1.1 to get Struts-Menu1.1 to work. All the other jar
files were fine.

Jack

-----Original Message-----
From: Abhishek.Jain@itsprojects.com
[mailto:Abhishek.Jain@itsprojects.com] 
Sent: Wednesday, November 27, 2002 6:25 AM
To: struts-user@jakarta.apache.org
Subject: Running Struts on Wepshere 4.0

Hi All,
We have decided to go ahead with deploying struts framework on Websphere
4.0 so any body u has any idea /resource on it , pls share it with me

I am trying to run struts but nt able to invoke logon.do servlet

Pls help

Thanks in advance

abhishek

-----------------------Disclaimer------------------------

The views of the author may not necessarily reflect those
of the Company. All liability is excluded to the extent
permitted by law for any claims arising as a result of the
use of this medium to transmit information by or to
IT Solutions (India) Pvt. Ltd.

We have taken precautions to minimize the risk of
transmitting software viruses, but we advise you to
carry out your own virus checks on any attachment to
this message.  We cannot accept liability for any loss or
damage caused by software viruses.

------------------------Disclaimer------------------------


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




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