Re: Axis2 Upgrade to latest version

"robertlazarski ." <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <CABpPLBVarHt2AyRA-m0414h=XgxefeXor8YH02_crGBcWk9cSA@mail.gmail.com>
On Wed, Dec 6, 2017 at 10:35 AM, robertlazarski . <[email protected]>
wrote:

>
>
> On Wed, Dec 6, 2017 at 9:00 AM, akash prasad <[email protected]> wrote:
>
>> Yes one of the jsp file have not updated. But still i am not able to see
>> my services. Is there any configuration changes or need to add any other
>> node or so in services.xml file.
>> I have compared with the samples as well. I couldn't find any difference
>> but not sure though.
>>
>> On Wed, Dec 6, 2017 at 7:14 PM, Andreas Veithen <
>> [email protected]> wrote:
>>
>>> My guess is that your Web app still has the JSP files from the old
>>> Axis2 version. That won't work.
>>>
>>> Andreas
>>>
>>> On Wed, Dec 6, 2017 at 12:17 PM, akash prasad <[email protected]>
>>> wrote:
>>> > Hi Team,
>>> >
>>> > Initially my Axis2 server was developed in 1.5.6 and now upgrading to
>>> the
>>> > latest version. By looking into the release notes upgraded all the
>>> dependent
>>> > libraries. Now i am facing the error as "Session creation forbidden"
>>> when i
>>> > try to browse the list of services and also i am getting 500 error for
>>> the
>>> > other requests, after looking into the source code found that
>>> > "ForbidSessionCreationWrapper " has been included in 1.7.4 version. Is
>>> there
>>> > any configuration change required to make it compatible my application
>>> with
>>> > Axis2 latest version.
>>> >
>>> > Even i have made changes to my application as per the changes did for
>>> > "Session Fixation"
>>> > https://github.com/apache/axis2-java/commit/0959a27a51e844c7
>>> 381ec1ad8a411861bba09b98
>>> >
>>> > Can you please provide some help with this.
>>> >
>>> > Thanks in advance.
>>> >
>>> > Regards,
>>> > Akash Prasad.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>>
>>
> You should be able to hit localhost:8080/axis2-web/ or whatever your url
> is, and see the "happy axis2" page.
>
> One quick thing to verify is your axis2.war/axis2-web and
> axis2.war/WEB-INF/include dirs match the supplied dirs in the axis2 distro.
>
> Kind regards,
> Robert
>
>
>
Looked more into this ... there is also another dir needed,
axis2.war/WEB-INF/views .

Also seeing this error when clicking axis2-web/HappyAxis.jsp , seems to
referencing an older httpclient class no longer in the distro, maybe
Andreas can comment.


INFO   | jvm 1    | 2017/12/06 13:05:45 | Caused by:
javax.servlet.ServletException: java.lang.NoClassDefFoundError:
org/apache/commons/httpclient/HttpConnectionManager
INFO   | jvm 1    | 2017/12/06 13:05:45 |       at
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:889)
INFO   | jvm 1    | 2017/12/06 13:05:45 |       at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:818)
INFO   | jvm 1    | 2017/12/06 13:05:45 |       at
org.apache.jsp.axis2_002dweb.HappyAxis_jsp._jspService(HappyAxis_jsp.java:567)
INFO   | jvm 1    | 2017/12/06 13:05:45 |       at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
INFO   | jvm 1    | 2017/12/06 13:05:45 |       at
javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
INFO   | jvm 1    | 2017/12/06 13:05:45 |       at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:433)
INFO   | jvm 1    | 2017/12/06 13:05:45 |       ... 61 more
INFO   | jvm 1    | 2017/12/06 13:05:45 | Caused by:
java.lang.NoClassDefFoundError:
org/apache/commons/httpclient/HttpConnectionManager
INFO   | jvm 1    | 2017/12/06 13:05:45 |       at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.createHTTPSender(CommonsHTTPTransportSender.java:414)
INFO   | jvm 1    | 2017/12/06 13:05:45 |       at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:380)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.