You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sandesha-dev@ws.apache.org by "Matteo TURRA (JIRA)" <ji...@apache.org> on 2010/08/13 17:13:22 UTC
[jira] Commented: (AXIS2-3133) double call of the method
populateAxisConfiguration() in the constructor of the class
WarBasedAxisConfigurator
[ https://issues.apache.org/jira/browse/AXIS2-3133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12898268#action_12898268 ]
Matteo TURRA commented on AXIS2-3133:
-------------------------------------
The patch is very simple. Can anyone apply it?
@@ -118,12 +118,13 @@
}
if (axis2Stream == null) {
String axisurl = config.getInitParameter(PARAM_AXIS2_XML_URL);
if (axisurl != null) {
axis2Stream = new URL(axisurl).openStream();
- axisConfig = populateAxisConfiguration(axis2Stream);
log.debug("loading axis2.xml from URL: " + axisurl);
}
}
if (axis2Stream == null) {
// both the axis2.xml.path and axis2.xml.url init parameters were not present
> double call of the method populateAxisConfiguration() in the constructor of the class WarBasedAxisConfigurator
> --------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-3133
> URL: https://issues.apache.org/jira/browse/AXIS2-3133
> Project: Axis2
> Issue Type: Bug
> Components: deployment
> Affects Versions: nightly
> Environment: WinXP, WebLogic 8.1, JDK 1.4
> Reporter: Wahid Bashirazad
> Assignee: Deepal Jayasinghe
>
> Hi,
> In the constructor of the class WarBasedAxisConfigurator, the method populateAxisConfiguration() is called 2 times, if loading axis2.xml from an URL.
> The second call at line 145 causes the following error on my environment:
> @|20.08.2007 12:43:01|DEBUG|util.StAXUtils|XMLStreamReader is com.ctc.wstx.sr.ValidatingStreamReader
> <20.08.2007 12.43 Uhr CEST> <Error> <HTTP> <BEA-101216> <Servlet: "AxisServlet" failed to preload on startup in Webapplication: "axis2_2.1".
> javax.servlet.ServletException: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
> at [row,col {unknown-source}]: [1,0]
> at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:424)
> This Problem could be fixed, if you remove the first method call at line 112.
> Regards,
> Wahid Bashirazad
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org