[
https://issues.apache.org/struts/browse/STR-3089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42063
]
Hayrol Reyes commented on STR-3089:
-----------------------------------
Hi Paul, I found that the edit_Product.do action is creating the next
ActionRedirect using the URL http://www.domain.com:7777/app/show_Product.do ...
and this aproach fails becouse the www.domain.com is a DNS name that already
has the :7777 configured at itself. This is a two IAS enviroment
(server7.comp.com and server8.comp.com) and its behind a front web accessed by
a single http://www.domain.com/app, in other words the ActionRedirect will not
fails if the URL will be http://server7.comp.com/app/show_Product.do, but
Struts is adding the DNS domain.com and the fisical port number where the app
is installed. The application is only installed into the server7.comp.com IAS
on port 7777 and is accesed using www.domain.com/app/index.jsp (port 80)... but
there is a internal port change.
More clearly:
http://www.domain.com/app/index.jsp --> Work
http://www.domain.com:7777/app/index.jsp --> Doesn't work <-- It's causing the
error.
http://server7.comp.com:7777/app/index.jsp --> Work
I'm doing the following in the method that build the next action:
public ActionForward processActionForward(ActionMapping mapping,
HttpServletRequest request, ActionForward forward) {
ActionRedirect ar = new ActionRedirect("/show_Product.do"); // <---
I'm using relativity
ar.addParameter("param1", "100"));
ar.addParameter("param2", "month");
return ar;
}
But when Struts execute the Forward (redirect true) after a POST .. then it
adds the www.domain.com:7777 before the contextPath and the action url.
How I can tell Struts doesn't add the :7777 port to the action URL and leave
the correct www.domain.com/app?
Or, how I can tell Struts that add the internal http://server7.comp.com:7777
before the contextPath and Action URL?
Or What I can use to deal with this lame environment?
Finaly, did you understand this crazy explanation? :(
Thanks in advance,
Hayrol
_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE
> ActionForward not executed and no error showed neither logged
> -------------------------------------------------------------
>
> Key: STR-3089
> URL: https://issues.apache.org/struts/browse/STR-3089
> Project: Struts 1
> Issue Type: Bug
> Components: Apps
> Affects Versions: 1.1.1
> Environment: IBM Server, Linux (Red Hut), Oracle Application Server
> 10.1.0.2, Eclipse 3.2 IDE
> Reporter: Hayrol Reyes
> Priority: Critical
>
> We are having a rare problem with a new application. This application use
> Struts 1.1 and Hibernate 3 over a OraclaeAS 10g (10.1.0.2). The Applicatión
> works very well in the developer's OAS, but doesn't in the production's OAS
> ...it's supposed that both OAS use the same configuration.
> The problems occurss when the application need to do a ActionForward
> (redirect true), after a simple update/insert into the DB (with Hibernate).
> the flow is as follow:
> 1).- The "show_Product.do" is launched and it goes well and show the
> Product.jsp (with the show part actived) .
> 2).- The user press the "Update" buttom, then the "edit_Product.do" action is
> executed and the Product.jsp is showed (with the edit part actived).
> 3).- The user modify the product info and press the "Update" buttom, then the
> "edit_Product.do" action is executed with the parameter "save" ..... then the
> action class do calls to "save" process of the ProductForm and the next
> ActionForward is configured to point to "show_Product.do" , afteer the commit
> to the DB the action es executed and "show_Product.do" show the Product.jsp
> with relevant changes included.
> All this normal aproach works very well in our developers environment IAS but
> doesn't in the produccion IAS. In the production environment the application
> comimited the changes but the last ActionForward (show_Product.do) is not
> executed and the browser show a "Error Page" related to the conecction
> problems, however the changes are commited correctly in the DB.
> The only diference between both IAS are that the developer environment use a
> host like: http://servername:7777/context/ while the production environment
> use: http://www.host.bla/context .... and internaly it's supposed to be
> pointing to 7778 port of the IAS server (where the app is installed). Both
> server can be reached through the intranet.
> The other diference (with no incidence I guess) is the production IAS is
> accesing a RAC Oracle DB 10g (2 instances) while the developer IAS is
> accesing a single Oracle DB 10g.
> Some body have a clue about what is happing on he producction IAS?
> I know that it looks like a Oracle AS problem, but we can't found any help
> nor support, and the worse is that we have not a error to walk around. We
> only get a Erorr page and no other information neither app log nor IAS log.
> Please if somebady had experiences with this type of issue, I will apreciate
> the help.
> Regards,
> Hayrol Reyes
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.