Ask the Expert

Problems starting JCo in Tomcat

I've got a problem using jco.jar with Tomcat. When I start my *.jsp-site I recieve following error-message (shortened):
HTTP

    Requires Free Membership to View

Status 500 -
type: Exception report
message: description The server encountered an internal error () that prevented it from fulfilling this request.
exception: org.apache.jasper.JasperException: com/sap/mw/jco/IRepository

My site just had some parameters to a class that does the rest. But when I use the same class under Forte for Java 4, CE the whole thing works just perfect. Both Tomcat and Forte are using the same jre. What is it? Is it my Tomcat? I'm using 4.1. Should I reinstall it?
Using JCo in a Tomcat Web application can be a little tricky. Make sure that you have a copy of sapjco.jar in the tomcat/common/lib directory or the tomcat/shared/lib directory (depending on Tomcat version). Also, make sure that no other pointers to sapjco.jar exist in your Tomcat startup classpath. Finally, ensure that you are using the latest version of JCo (2.0.8 or higher). If the error message indicates that you are using jco.jar, thenyou are on an older release of JCo which may explain the problems you are having in Tomcat.

This was first published in July 2005

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: