Solved

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

Posted on 2004-03-24
4
719 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

627 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