[jcifs] java.lang.ExceptionInInitializerError for AS4
fei_zou at trendmicro.com.cn
fei_zou at trendmicro.com.cn
Wed Sep 5 03:37:16 GMT 2007
Dears,
I setup a tomcat 6.0.13, with JDK1.5.0.05, jCIFS 1.2.13, I want to use
jCIFS to do HTTP authentication with backend AD server.
The OS environment is Linux AS4, kernel is 2.6.18.
After set the web.xml, start tomcat, and access via 8080 port , I get a
ExceptionInInitalizerError (The browser is FireFox 2.0):
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
javax.servlet.ServletException: Filter execution threw an exception
root cause
java.lang.ExceptionInInitializerError
jcifs.UniAddress.<clinit>(UniAddress.java:62)
jcifs.http.NtlmHttpFilter.negotiate(NtlmHttpFilter.java:157)
jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:115)
root cause
java.lang.NullPointerException
jcifs.netbios.NbtAddress.<clinit>(NbtAddress.java:199)
jcifs.UniAddress.<clinit>(UniAddress.java:62)
jcifs.http.NtlmHttpFilter.negotiate(NtlmHttpFilter.java:157)
jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:115)
note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.13 logs.
The web.xml is as following:
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<display-name>Welcome to Tomcat</display-name>
<description>
Welcome to Tomcat
</description>
<filter>
<filter-name>NtlmHttpFilter</filter-name>
<filter-class>jcifs.http.NtlmHttpFilter</filter-class>
<init-param>
<param-name>jcifs.http.domainController</param-name>
<param-value>10.1.107.40</param-value>
</init-param>
<init-param>
<param-name>jcifs.util.loglevel</param-name>
<param-value>6</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>NtlmHttpFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
What's the reason for ExceptionInInitalizerError? How can I solve it?
Thanks & Regards
Fei Zou
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the jcifs
mailing list