Call webMethods service from OC4J and Orion got entrust error please help

hai, all

I try to call webMethods service used java API, only success with tomcat but got error from OC4J and Orion.

java.lang.ExceptionInInitializerError
at /wmapi.jsp._jspService(/wmapi.jsp.java:45) (JSP page line 16)
at com.orionserver[Orion/2.0.5 (build 11234)].http.OrionHttpJspPage.service(Unknown Source)
at com.evermind[Orion/2.0.5 (build 11234)]._ay._rmb(Unknown Source)
at com.evermind[Orion/2.0.5 (build 11234)].server.http.JSPServlet.service(Unknown Source)
at com.evermind[Orion/2.0.5 (build 11234)]._ctb._psd(Unknown Source)
at com.evermind[Orion/2.0.5 (build 11234)]._ctb._bqc(Unknown Source)
at com.evermind[Orion/2.0.5 (build 11234)]._ax._luc(Unknown Source)
at com.evermind[Orion/2.0.5 (build 11234)]._ax._ucb(Unknown Source)
at com.evermind[Orion/2.0.5 (build 11234)]._bf.run(Unknown Source)
Caused by: java.lang.SecurityException: Self-Integrity Check FAILED: java.lang.SecurityException: java.security.PrivilegedActionException: java.util.zip.ZipException: error in opening zip file
at com.entrust.toolkit.security.provider.JCEVerifierImpl.checkIntegrity(Unknown Source)
at com.entrust.toolkit.security.provider.Entrust.<init>(Unknown Source)
at com.wm.app.b2b.client.BaseContext.<clinit>(BaseContext.java:109)
… 9 more

– and if i refresh again got this error –

java.lang.NoClassDefFoundError
at /wmapi.jsp._jspService(/wmapi.jsp.java:45) (JSP page line 16)
at com.orionserver[Orion/2.0.5 (build 11234)].http.OrionHttpJspPage.service(Unknown Source)
at com.evermind[Orion/2.0.5 (build 11234)]._ay._rmb(Unknown Source)
at com.evermind[Orion/2.0.5 (build 11234)].server.http.JSPServlet.service(Unknown Source)
at com.evermind[Orion/2.0.5 (build 11234)]._ctb._psd(Unknown Source)
at com.evermind[Orion/2.0.5 (build 11234)]._ctb._bqc(Unknown Source)
at com.evermind[Orion/2.0.5 (build 11234)]._ax._luc(Unknown Source)
at com.evermind[Orion/2.0.5 (build 11234)]._ax._ucb(Unknown Source)
at com.evermind[Orion/2.0.5 (build 11234)]._bf.run(Unknown Source)

This is my code :

<%@>
<%@>
<%@>
<%@>

<title>Untitled Page</title>
<meta>
<html>
<body>
<%

String server=“localhost:5555”;
String userName=“Administrator”;
String password=“manage”;
Context context = null;

String input1 = request.getParameter(“input1”);
String input2 = request.getParameter(“input2”);

IData InputDoc = IDataFactory.create();
IDataCursor inputDocCursor = InputDoc.getCursor();
IDataUtil.put(inputDocCursor,“input1”,input1);
IDataUtil.put(inputDocCursor,“input2”,input2);

context = new Context();
//context.connect(server,userName,password);

//IData idcOutput = context.invoke(“tes”, “abcdef”, InputDoc);

//context.disconnect();

//IDataCursor outPipeline = idcOutput.getCursor();
String theResult=“-”;
//theResult = IDataUtil.getString(outPipeline,“outputku”);

%>

The Result is = <%=theresult%>

</body>
</html>

I got error if call this command :
context = new Context();

I am already copy all webMethods library to orion and oc4j but still got error.

Please help me thanks

Fernand Lesmana

It seems the Context constructor need these jars to be in the classpath:
entbase.jar, entmisc.jar, entssl.jar.
In my case I found those under Developer/lib/entrust.

Hiya,

I have just resolved the exact same issue on OC4J, two years too late for Fernand it seems. :frowning:

It turned out to be a classpath issue. The J2EE application cannot find ‘com.wm.app.b2b.client.Context’ when it tries to create an instance of it.

I resolved it by putting the client.jar and entrust folder in the the $JAVA_HOME\jre\lib\ext folder instead of …\WEB-INF\lib.

Failing that, the following document is very revealing:

[URL=“http://www.oracle.com/technology/tech/java/oc4j/pdf/ClassLoadingInOC4J_WP.pdf”]http://www.oracle.com/technology/tech/java/oc4j/pdf/ClassLoadingInOC4J_WP.pdf[/URL]

Good luck :slight_smile: