You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ICT Department <ic...@stedwards.co.uk> on 2007/01/25 17:50:51 UTC

IE Issues with JSPWiki & JCIFS!!

Hi there, we have a problem running JSPWiki under Tomcat, when using
Internet Explorer. It's fine in Firefox and doesn't display any exceptions
as shown below!

This has happened since installing the JCIFS code into web.xml for user
authentication.
The JSPWiki developers can't help me, they said it sounds more like an
interplay issue between Tomcat and IE. 


java.io.UnsupportedEncodingException: Cp850
	sun.io.Converters.getConverterClass(Unknown Source)
	sun.io.Converters.newConverter(Unknown Source)
	sun.io.ByteToCharConverter.getConverter(Unknown Source)
	java.lang.StringCoding.decode(Unknown Source)
	java.lang.String.<init>(Unknown Source)
	java.lang.String.<init>(Unknown Source)
	jcifs.ntlmssp.Type1Message.parse(Type1Message.java:236)
	jcifs.ntlmssp.Type1Message.<init>(Type1Message.java:86)
	jcifs.http.NtlmSsp.authenticate(NtlmSsp.java:88)
	jcifs.http.NtlmHttpFilter.negotiate(NtlmHttpFilter.java:160)
	jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:114)
	
com.ecyrd.jspwiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:99)
	com.ecyrd.jspwiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:71)

Hope to hear from you soon..and well done on such a marvellous product!
Please can you CC any response to Christam1@hotmail.com also!! Thanks!

Regards

Chris Tamburro
ICT Department
St. Edward's School
Cheltenham, UK


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: IE Issues with JSPWiki & JCIFS!!

Posted by David Delbecq <de...@oma.be>.
Looks like a JCIFS problem, not a tomcat one. The code page 850 encoding
is only supported on some windows based JVM. Unfortunately, if your
client (internet explorer) wants to speak cp850, it's problematic as
cp850 is not a character encoding jvm are mandated to support. However,
browsing a bit google: cp850 JCIFS, it seems a solution is to define a
property

jcifs.encoding

to something that is nearly compatible with cp850, the US-ASCII

Also, you might try to ensure you use the latest version of jcifs. Seems
they added some code in 1.2.10b to switch from cp850 to US-ASCII in case
cp850 is not supported by jvm.//

try to add, in tomcat startup script, a JAVA_OPTS=-Djcifs.encoding=US-ASCII
En l'instant précis du 01/25/07 17:50, ICT Department s'exprimait en ces
termes:
> Hi there, we have a problem running JSPWiki under Tomcat, when using
> Internet Explorer. It's fine in Firefox and doesn't display any exceptions
> as shown below!
>
> This has happened since installing the JCIFS code into web.xml for user
> authentication.
> The JSPWiki developers can't help me, they said it sounds more like an
> interplay issue between Tomcat and IE. 
>
>
> java.io.UnsupportedEncodingException: Cp850
> 	sun.io.Converters.getConverterClass(Unknown Source)
> 	sun.io.Converters.newConverter(Unknown Source)
> 	sun.io.ByteToCharConverter.getConverter(Unknown Source)
> 	java.lang.StringCoding.decode(Unknown Source)
> 	java.lang.String.<init>(Unknown Source)
> 	java.lang.String.<init>(Unknown Source)
> 	jcifs.ntlmssp.Type1Message.parse(Type1Message.java:236)
> 	jcifs.ntlmssp.Type1Message.<init>(Type1Message.java:86)
> 	jcifs.http.NtlmSsp.authenticate(NtlmSsp.java:88)
> 	jcifs.http.NtlmHttpFilter.negotiate(NtlmHttpFilter.java:160)
> 	jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:114)
> 	
> com.ecyrd.jspwiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:99)
> 	com.ecyrd.jspwiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:71)
>
> Hope to hear from you soon..and well done on such a marvellous product!
> Please can you CC any response to Christam1@hotmail.com also!! Thanks!
>
> Regards
>
> Chris Tamburro
> ICT Department
> St. Edward's School
> Cheltenham, UK
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>   


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: IE Issues with JSPWiki & JCIFS!!

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris,

ICT Department wrote:
> Hi there, we have a problem running JSPWiki under Tomcat, when using
> Internet Explorer. It's fine in Firefox and doesn't display any exceptions
> as shown below!

[snip]

> java.io.UnsupportedEncodingException: Cp850

Hmm. Is that a character set you were expecting? Is it one that is
available in your JVM? I am unfamiliar with that one. "Code Page 850?".
Sounds like some Microsoft Windows game. Yep, it is:

http://en.wikipedia.org/wiki/Code_page_850

It looks like it might be equivalent to WINDOWS-1252 or UTF-8 (except
for higher characters, which will be hosed anyway). Note that CP850
doesn't have the € (euro) symbol. :(

I wonder if the character set needs to be expressed as "CP850" instead
of "Cp850".

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFuQJE9CaO5/Lv0PARAmURAJ442ZcBKmA5rWDC/znoB9TGwroDKgCgpret
koo/v8qp0FK6UmZiat7fAs0=
=VufJ
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: IE Issues with JSPWiki & JCIFS!!

Posted by Gregor Schneider <rc...@googlemail.com>.
That doesn't have to do with Tomcat, either.

Sounds to me more than a character-set-problem, meaning you pasted
something into your web.xml which is not supported by the
code-page-setting in the xml-header of the web.xml.

Would be helpful if you could post ypur web.xml

Cheers

Greg
-- 
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org