WebService communication

Raadush raadush at gmail.com
Fri Nov 15 02:37:44 EST 2013


That's exactly how I have it. All classes packed in one jar in lib library.
I dont get any exception tho. Catching them in my application doesnt
produce anythig. In example posted earlier, if I wrote this:

public VerifyOTPResponse verifyOTP(VerifyOTPRequest request) throws
VerifyOTPFaultMsg {

    Logger.getLogger(ExternalAuthServlet.class.getName()).log(Level.INFO,
"Before", this);

    try {
        OtpPortTypeService service = new OtpPortTypeService();
    } catch (Exception ex)
    {

  Logger.getLogger(ExternalAuthServlet.class.getName()).log(Level.SEVERE,
"Error", ex);
    }

    Logger.getLogger(ExternalAuthServlet.class.getName()).log(Level.INFO,
"After", this);


    OtpPortType port = service.getOtpPortType();
    VerifyOTPResponse response = port.verifyOTP(request);
    return response;
}

only Before is logged, nothing else. Also no errors in process.log of
shibboleth or tomcat log, so I cant be more specific. Only thing what I get
is default idp error page.


2013/11/14 Cantor, Scott <cantor.2 at osu.edu>

> On 11/14/13, 4:15 AM, "Raadush" <raadush at gmail.com> wrote:
> >
> >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.
>
> "Crashes" isn't a specific error.
>
> > I realized problem might be that shibboleth can see only
> >ExternalAuthServlet.class and not the others so he can'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?
>
> If you have a class not found exception, then you need to package all your
> classes into a jar and that needs to be in the lib directory when you
> install.
>
> -- Scott
>
>
> --
> To unsubscribe from this list send an email to
> users-unsubscribe at shibboleth.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/users/attachments/20131115/30dbb5ce/attachment-0001.html 


More information about the users mailing list