[jcifs] problem with jcifs 1.2.17 + NtlmHttpFilter

Asaf Mesika asaf.mesika at gmail.com
Tue Mar 18 14:46:43 GMT 2008


Hey Ashok,

Please search your *.java files for the string "com.trend.iwss.jscan" and
tell me which files you saw that use that package.

This will get us focused.

Asaf

On Tue, Mar 18, 2008 at 6:32 AM, Ashok Kumar K <
AshokKumar_220060 at infosys.com> wrote:

>  Hi Asaf,
>
>
>
>   Thank you so much for your kind cooperation. Here is the information you
> asked for.
>
>
>
> 1.yes I upgraded from version 1.1.11 to 1.2.17 . I tried jcifs1.2.10 also
> but this also giving same exception. So I was able to use only 1.1.11
>
>
>
> 2. I found that these exception causing classes are also in the same jar (
> under com/trend/iwss/jscan/appscan/runtime of  jcifs1.2.17 ). But I found
> there is no directory named 'com' in version 1.1.11.
>
>
>
> Awaiting you response.
>
>
>
> Thanks,
>
> Ashok
>
> * *
>  ------------------------------
>
> *From:* Asaf Mesika [mailto:asaf.mesika at gmail.com]
> *Sent:* Monday, March 17, 2008 6:40 PM
>
> *To:* Ashok Kumar K
> *Cc:* jcifs at lists.samba.org
> *Subject:* Re: [jcifs] problem with jcifs 1.2.17 + NtlmHttpFilter
>
>
>
> You'll have to give some background information here:
> 1. Have you upgraded from version 11?
> 2. Where are theses external classes coming from, which you fail upon (no
> method found exception).
>
> Asaf
>
>  On Mon, Mar 17, 2008 at 1:41 PM, Ashok Kumar K <
> AshokKumar_220060 at infosys.com> wrote:
>
> I find a lot of difference of same class in these versions, possibly this
> may be the reason for failure in version 1.2.17. here I am attaching
> NtlmHttpFIlter classes of both versions. Please check. Hope you could help
> me now.
>
>
>
> Thanks,
>
> Ashok
>
> * *
>  ------------------------------
>
> *From:* Asaf Mesika [mailto:asaf.mesika at gmail.com]
> *Sent:* Monday, March 17, 2008 12:12 PM
> *To:* Ashok Kumar K
>
>
> *Subject:* Re: [jcifs] problem with jcifs 1.2.17 + NtlmHttpFilter
>
>
>
> java.lang.NoSuchMethodError: com.trend.iwss.jscan.appscan.runtime.PolicyProps: method <init>()V not found
>
>         at com.trend.iwss.jscan.appscan.runtime.Session.<init>(Session.java:58)
>
>         at com.trend.iwss.jscan.appscan.runtime.Session.<clinit>(Session.java:33)
>
>
>
>         at jcifs.http.NtlmHttpFilter.<clinit>(NtlmHttpFilter.java)
>
>
> It seems it fails to initialize because it can find a method in a class
> file which is not related to the ntlm filter at all (com.trend.iwss ?)
>
> On Mon, Mar 17, 2008 at 7:35 AM, Ashok Kumar K <
> AshokKumar_220060 at infosys.com> wrote:
>
> Hi Asaf,
>
>
>
>   Thank you for your response. For your reference here I am attaching
> tomcat log file. Below is the message displayed on tomcat console when I
> start tomcat.
>
>
>
> Type                                                     Message
>
>
>
> Severe                                                  Error filter Start
>
> Severe                                                  Mar 17,2008
> 10:45:28 AM org.apache.catalina.core.StandardContext start
>
> Severe                                                  Context start up
> failed due to previous errors
>
> Severe                                                  Mar 17,2008
> 10:45:28 AM org.apache.catalina.core.StandardHostDeployer install.
>
>
>
> Hope this will be helpful in tracing out problem. awaiting for your
> response.
>
>
>
> Thanks,
>
> Ashok
>
> * *
>  ------------------------------
>
> *From:* Asaf Mesika [mailto:asaf.mesika at gmail.com]
> *Sent:* Saturday, March 15, 2008 10:09 PM
> *To:* Ashok Kumar K
> *Cc:* jcifs at lists.samba.org
> *Subject:* Re: [jcifs] problem with jcifs 1.2.17 + NtlmHttpFilter
>
>
>
> It would help if you attach the tomcat log file, so we'll know what
> exception stopped the server start-up and a point to start looking for the
> problem
>
> On Fri, Mar 14, 2008 at 9:57 AM, Ashok Kumar K <
> AshokKumar_220060 at infosys.com> wrote:
>
> Hi,
>
>
>
>  I am have been using NtlmHttpFilter for retrieving logged in user name in
> a domain in my web application. Then jcifs version I used is jcifs 1.1.11,
> now I moved to version
>
> Jcifs1.2.17 now the problem is the filter class stopped working and I get
> error message saying ' Error filter Start' on server console ( tomcat 5).
>
> With this even the application context initialization also getting
> stopped. Below are entries in web.xml  and code I used  for retrieving
> logged in user name.
>
> I would be great full to you if you could help me in finding out where I
> am going wrong and its work around.
>
>
>
> <filter>
>
>
>
>      <filter-name>NtlmHttpFilter</filter-name>
>
>
>
>              <filter-class>jcifs.http.NtlmHttpFilter</filter-class>
>
>
>
>  <init-param>
>
>
>
>             <param-name>jcifs.http.domainController</param-name>
>
>
>
>             <param-value>my domain</param-value>
>
>
>
>  </init-param>
>
>
>
>  <init-param>
>
>
>
>             <param-name>jcifs.util.loglevel</param-name>
>
>
>
>             <param-value>4</param-value>
>
>
>
>  </init-param>
>
>
>
>
>
> </filter>
>
>
>
> <filter-mapping>
>
>
>
>             <filter-name>NtlmHttpFilter</filter-name>
>
>
>
>             <url-pattern>/*</url-pattern>
>
>
>
> </filter-mapping>
>
>
>
> And the code for retrieving logged in user name is
>
>
>
>
>
> java.security.Principal principal = request.getUserPrincipal();
>
>
>
> System.out.println(" Security principal :"+principal);
>
>
>
>                         if(principal !=null){
>
>
>
>                                     remoteUser = principal.getName();
>
>
>
>                                     int number = remoteUser.lastIndexOf
> ("\\");
>
>
>
>                                     id = remoteUser.substring(number+1);
>
>
>
>                                     id = id.toUpperCase();
>
>
>
>                         }
>
>
>
>
>
>
>
>   System.out.println("[SED INFO MESSAGE] - SED - Message: User ID = " +
> id);
>
>
>
>    String username1 = id;
>
>
>
> Thanks for your time. Thanks in advance.
>
> * *
>
> *Thanks & regards,*
>
> *Ashok kumar k| Software Engineer|** **Enterprise** Solutions|Infosys
> Technologies Limited|Hyderabad| Tel: (040) 23005222 Extn:48663|Mobile:
> 9966010691*
>
>
>
> **************** CAUTION - Disclaimer *****************
> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
> solely for the use of the addressee(s). If you are not the intended
> recipient, please notify the sender by e-mail and delete the original
> message. Further, you are not to copy, disclose, or distribute this e-mail
> or its contents to any other person and any such actions are unlawful. This
> e-mail may contain viruses. Infosys has taken every reasonable precaution to
> minimize this risk, but is not liable for any damage you may sustain as a
> result of any virus in this e-mail. You should carry out your own virus
> checks before opening the e-mail or attachment. Infosys reserves the right
> to monitor and review the content of all messages sent to or from this
> e-mail address. Messages sent to or from this e-mail address may be stored
> on the Infosys e-mail system.
> ***INFOSYS******** End of Disclaimer ********INFOSYS***
>
>
>
>
>
>
>
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the jcifs mailing list