<div dir="ltr">Hi, I have one question to which I haven&#39;t found solution anywhere.<div><br></div><div>I have class com.auth.test.ExternalAuthServlet used to authenticate users. This class is registered inside web.xml like this (standard method):</div>
<div><br></div><div><div>&lt;!-- Test servlet --&gt;</div><div>&lt;servlet&gt;</div><div>    &lt;servlet-name&gt;secureResource&lt;/servlet-name&gt;</div><div>    &lt;servlet-class&gt;com.auth.test.ExternalAuthServlet&lt;/servlet-class&gt;</div>
<div>&lt;/servlet&gt;</div><div><br></div><div>&lt;servlet-mapping&gt;<br></div><div>    &lt;servlet-name&gt;secureResource&lt;/servlet-name&gt;</div><div>    &lt;url-pattern&gt;/authenticate&lt;/url-pattern&gt;</div><div>
&lt;/servlet-mapping&gt;</div></div><div><br></div><div>Problem is, that inside this method I want to call web service (wsdl) and I dont know how to do it. Inside package com.auth.test I have many more java files generated by wsimport -p client -keep <a href="http://wsdllocation">http://wsdllocation</a> used to communicate with web service. For example I want to call this function:</div>
<div><br></div><div><div>public VerifyOTPResponse verifyOTP(VerifyOTPRequest request) throws VerifyOTPFaultMsg {</div><div>    //next line causes crash</div><div>    OtpPortTypeService service = new OtpPortTypeService(); </div>
<div>    OtpPortType port = service.getOtpPortType();        </div><div>    VerifyOTPResponse response = port.verifyOTP(request);</div><div>    return response;        </div><div>}</div></div><div><br></div><div>All objects are defined outside of ExternalAuthServlet.class (in VerifyOTPResponse.class, OtpPortTypeService.class, ... in the same package as ExternalAuthServlet). When I call this function on my local machine, everything works fine. But when I move jar with all these classes to shibboleth/lib, execution crashes on specified line. I realized problem might be that shibboleth can see only ExternalAuthServlet.class and not the others so he can&#39;t instantiate OtpPortTypeService. So my question is, how to make shibboleth to see other classes inside com.auth.test as well? Or is there something Im missing here?</div>
<div><br></div><div>Thanks a lot, Radek.</div></div>