Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Trying to integrate Remedy java api with servlets on Tomcat

843841Jul 19 2006 — edited Jul 20 2006
Hi,

I've been trying to make remedy my backend for an application. We're using remedy 5.1 (library arapi.jar).

First problem (it may help someone) I ran into right away was that I couldn't put arapi.jar into WEB-INF/lib, since underlining C modules cannot be loaded twice and tomcat complained about it. I eliminated that problem by putting arapi.jar into <tomcathome>/common/lib, but now the library cannot see the server. If I run almost exactly same code from the command line - it works, if I run it through servlet - it doesn't see the database server, and I get same error from remedy api as if I mistyped the server name, so somehow tomcat doesn't seem to resolve server name maybe? This is all very confusing.

Did anybody have same issues? I would greatly appreciate any help.

VG.

P.S. piece of code that works with command line and doesn't in servlet:

String user = args[0];
String password = args[1];
String language = "";
String server = args[2];
ARServerUser remedyUser = new ARServerUser(user, password, language, server);
System.out.println("trying to connect to " + server + "...");
System.getProperties().list(System.out);

try {
remedyUser.login();

} catch (ARException are) {
System.out.println("REMEDY Exception:");
are.printStackTrace();
} catch (Exception e) {
System.out.println(e.getMessage());
}


Error code I get from Remedy API:

MessageType: 2
MessageNum: 90
MessageText: Cannot open catalog; Message number = 90
AppendedText: "diablo" : RPC: Unknown host

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 17 2006
Added on Jul 19 2006
3 comments
178 views