Solved

Java method .getLocale in Servlet returns an error on Domino Server

Posted on 2004-03-24
4
718 Views
Last Modified: 2013-12-18
Hi there!

I finally got some servlets running on a Domino 6.5 Server and now it seems it's not allowed to use the .getLocale method (returning a java.util.Locale) on the HttpServletRequest variable.

Has anyone else had  similar problem?

All works fine when I run the Servlet on my local Tomcat Server, but when I run the Servlet on the Domino Server, it runs, but the following line retruns an error:

java.util.Locale clientLocale = request.getLocale();

(request is the HttpServletRequest var from the doGet method of my Servlet)

The error is:

HTTP JVM: java.lang.NoSuchMethodError: javax.servlet.ServletRequest: method getLocale()Ljava/util/Locale; not found: javax.servlet.ServletRequest: method getLocale()Ljava/util/Locale; not found

Any ideas?

0
Comment
Question by:prohacx
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 31

Accepted Solution

by:
qwaletee earned 60 total points
ID: 10667924
Have to be careful about JVM and servlet engine versions.  Domino 6.5 uses JDK 1.3 and JSDK 2.0.
0
 
LVL 24

Assisted Solution

by:HemanthaKumar
HemanthaKumar earned 20 total points
ID: 10668207
AS Domino supports jsdk 2.0.. I would suggest you to run your servlets on tomcat or most preferably websphere as it integrates with domino easily..

~Hemanth
0
 
LVL 5

Assisted Solution

by:pgloor
pgloor earned 20 total points
ID: 10672091
This is not an error. This is part of IBMs marketing strategies for WebSphere ;-).

JSDK 2.0 is so old you even can't find the API docs on Sun's web site anymore. javax.servlet.ServletRequest.getLocal() has been available at least since 2001 (JSDK 2.1 or 2.2).

This is from the Notes 6.0 designer help: "Sun periodically updates the JDK and JSDK. Lotus Domino Designer Release 6- supports JDK 1.3 and JSDK 2.0. Domino quarterly maintenance releases (QMRs) often incorporate Sun's upgrades, so you should check the QMR Release Notes to verify the supported JDK and JSDK versions". But where are the upgrades? I've been looking so often for nothing.

At the moment all you can do is either to change your servlet, probably loosing some functionality, or move to a J2EE compliant application server.

What about WebSphere Portal Server Express? With Domino it comes for free with a 20 user license.

Personally I'm using Tomcat and JBoss with SSO from keysolutions.com

Peter
0
 
LVL 5

Author Comment

by:prohacx
ID: 10674987
Yep, I noticed it myself, browsing through the JSDK on java.sun.com... The .getLocale() method is only available from version 2.3 onwards, so I guess I'll have to either not implement this functionality or use another Java server.

Thank you all for your help!
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question