[
https://issues.apache.org/jira/browse/GERONIMO-2191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554631
]
Galoch commented on GERONIMO-2191:
----------------------------------
The Struts <html:form> functionality breaks due to Geronimo returning "/" as
context root even when the context root is empty.
The "action" attribute in the <html:form> will add the context root to the path
string.
For e.g.:
<html:form action="web/example.do" method="post">
will generate <form name="ExampleForm" method="post" action="//web/example.do">
Note the double slash (//) in the URL.
By definition, this means when I submit my form the browser will look for a
server name "//web" instead of a URL.
All other possibilities for Action attribute fail including dynamically
constructing URL as Struts will inadvertently put the context root "/" in front
of all URLs.
Struts conforms to Servlet Specs.
Any workaround is greatly appreciated.
> ?wsdl becomes /?wsdl
> --------------------
>
> Key: GERONIMO-2191
> URL: https://issues.apache.org/jira/browse/GERONIMO-2191
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: Tomcat
> Affects Versions: 1.1
> Environment: Geronimo 1.1, Tomcat version; Sun JDK 1.5_4, OpenSuSE
> 10.1 alpha 4, 712 MB RAM
> Reporter: D. Strauss
>
> Hello,
> I had created an EJB webservice endpoint. When using the tomcat version of
> Geronimo, I cannot get the WSDL from the endpoint. I mean, when using an
> endpoint url like
> /services/FxWSEP
> you can typically get the WSDL by using
> /services/FxWSEP?wsdl
> The Jetty version of Geronimo 1.1 seems to work correctly. However, the
> tomcat version redirects the query:
> /services/FxWSEP?wsdl
> becomes
> /services/FxWSEP/?wsdl
> with some interesting info by Tomcat:
> HTTP Status 500 - Could not fetch wsdl!
> type Status report
> message Could not fetch wsdl!
> description The server encountered an internal error (Could not fetch wsdl!)
> that prevented it from fulfilling this request.
> Apache Tomcat/5.5.15
> In the log file, you get this wonderful message:
> 15:33:45,208 ERROR [TomcatEJBWebServiceContext]
> java.lang.IllegalStateException: request must contain a wsdl or WSDL
> parameter: {wsdl=[Ljava.lang.String;@1a7c7e7}
> Aaron Mulder suggested to give the wsdl param a value. Aaron: it doesn't work
> ;)
> Seems that any requests are redirected. The question is: why? :P And, why is
> the Jetty version not affected?
> Best regards
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.