× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Accessing the Toolbox from a Servlet
  • From: Nick_Vrtis@xxxxxxxxx
  • Date: Wed, 26 Apr 2000 12:41:37 -0400

I'm trying to create a Servlet which collects information from a number of
AS/400's and returns it to an applet in a Web browser.  I started with a
small servlet which just got the information from the applet, and just
echoed it back.  This works OK.  Then I created another class that the
Servlet calls.  Initially, all I am trying to do is log on to an AS/400
with the Toolbox AS400 class.  I feed it the System name, User ID, and
Password.  Then try to create an AS400Text object.  The whole thing appears
to terminate.... I create the AS400 class and the text object in a
try/catch (Exception e) group.  The catch apparently doesn't handle the
exception for some reason.

I looked in the Error log from the Servet, and I see:

com.ibm.servlet.service.SEInvokerException: ViewAuthorities.AuthoritiesServlet: 
com/ms/security/PolicyEngine
java.lang.NoClassDefFoundError: com/ms/security/PolicyEngine
      
com/ibm/as400/access/Security400.connect(Z)Lcom/ibm/as400/access/SocketContainer;+4
 (Security400.java:693)
      com/ibm/as400/access/Security400.startSignon(ZZZ)I+9 
(Security400.java:331)
      com/ibm/as400/access/Security400.signon(ZZZ)I+382 (Security400.java:315)
      
com/ibm/as400/access/SecurityManager400.signon(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZZ)Lcom/ibm/as400/access/Security400;+20
(SecurityManager400.java:266)
      com/ibm/as400/access/AS400.getSecurity400()V+126 (AS400.java:1266)
      com/ibm/as400/access/AS400.signOn()V+41 (AS400.java:2077)
      
com/ibm/as400/access/AS400.connect(Ljava/lang/String;)Lcom/ibm/as400/access/AS400Server;+52
 (AS400.java:517)
      com/ibm/as400/access/NLSImplRemote.connect()V+12 (NLSImplRemote.java:62)
      com/ibm/as400/access/AS400.getCcsidFromServer()I+17 (AS400.java:999)
      com/ibm/as400/access/AS400.getCcsid()I+13 (AS400.java:980)
      com/ibm/as400/access/AS400Text.<init>(IILcom/ibm/as400/access/AS400;)V+66 
(AS400Text.java:141)
      
ViewAuthorities/AuthoritiesConnection.login(Ljava/io/PrintWriter;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Exception;+47
 (AuthoritiesConnection.java:29)
      
ViewAuthorities/AuthoritiesServlet.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+195
(AuthoritiesServlet.java:38)
      
javax/servlet/http/HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+142
(HttpServlet.java:521)
      
javax/servlet/http/HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+25
 (HttpServlet.java:588)
      
com/sun/server/ServletState.callService(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+50
 (ServletState.java:313)
      
com/sun/server/ServletManager.callServletService(Ljava/lang/String;Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+81
(ServletManager.java:1305)
      
com/ibm/servlet/service/SEServletManager.callServletService(Ljava/lang/String;Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+12
 (SEServletManager.java:84)
      
com/sun/server/http/InvokerServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V+131
(InvokerServlet.java:104)
      
javax/servlet/http/HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+25
 (HttpServlet.java:588)
      
com/sun/server/ServletState.callService(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+50
 (ServletState.java:313)
      
com/sun/server/ServletManager.callServletService(Ljava/lang/String;Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+81
(ServletManager.java:1305)
      
com/ibm/servlet/service/SEServletManager.callServletService(Ljava/lang/String;Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+12
 (SEServletManager.java[April 26, 2000 12:24:49 PM GMT+00:00] Exception raised 
in servlet invoker.
[April 26, 2000 12:24:49 PM GMT+00:00] 
com.ibm.servlet.service.SEInvokerException: ViewAuthorities.AuthoritiesServlet: 
com/ms/security/PolicyEngine

Does anybody have any ideas what is happening?  Is there some other place I can 
look for more information?

Thanks.  Nick

+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.