Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
517 views
in Technique[技术] by (71.8m points)

lotus domino - Xpages can't load, Error 500; java.util cannot be resolved

I recently moved a couple of applications to a server that is running Domino 9.0.1FP8 (JVM version: JRE 1.8.0 Windows Server 2008 R2 amd64-64). Since I did this I've been unable to load any, but the most basic of Xpages. I get the "Error 500 HTTP Web Server: Command Not Handled Exception" page.

Via the ...IBMDominodataIBM_TECHNICAL_SUPPORTxpages_exec I get Exceptions such as:

  • The type java.util.Comparator cannot be resolved. It is indirectly referenced from required .class files
  • The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
  • The import java.util.Arrays cannot be resolved

I'm also getting the following Errors in the "Problems" tab in Designer:

  • "The project was not built since its build path is incomplete. Cannot find the class file for java.util.Comparator. Fix the build path then try building this project"
  • "The type java.util.Comparator cannot be resolved. It is indirectly referenced from required .class files"

Is there a reason the java.util is failing in Java 1.8? Is there anything I can do? Thanks for any help.

Dan

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

This problem occurs when Domino Designer 9.0.1 FP8 attempts to compile against a Java8 JRE. The version of eclipse in that Designer install does not know how to parse some of the runtime jar files in Java8. The workaround is to compile against a Java6 JRE instead. There were changes in the Domino Designer installation as part of SPR#BGLN9PXEVM to change the configuration of the preferences in Designer to point to a Java6 JRE instead of using the default JRE. If there was some install problem or you manually modified your preferences, you may need to manually re-apply the workaround as follows.

In Domino Designer, menu File, Preferences, Java, Installed JREs. There should be 2 listed JVMs with paths like so:

  • [x] jvm C:Notesjvm1.6
  • [ ] Notes 8.5.1 VM (locked) C:Notesjvm

If your entry named "jvm" is incorrectly pointing to the C:Notesjvm folder instead of the jvm1.6 folder, then you will need to edit it to point to the jvm1.6 folder instead.

On the Domino Designer team we are investigating potentially upgrading the eclipse version in Designer, so that it might be possible to compile against a Java8 JRE.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...