× 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: Re: Accessing the Toolbox from a Servlet
  • From: "Alex Garrison" <agarrison@xxxxxxxxxxx>
  • Date: Mon, 1 May 2000 14:30:01 -0400

FYI:  We optimize the toolbox to level 40 on our v4r3 system as follows:

crtjvapgm CLSF('/QIBM/ProdData/HTTP/Public/jt400/lib/jt400.jar')
optimize(40)
    LICOPT(NOPRERESOLVEEXTREF)

The NOPRERESOLVEEXTREF gets around the issues that David mentioned.

Alex Garrison

----- Original Message -----
From: <Nick_Vrtis@amway.com>
To: <JAVA400-L@midrange.com>
Sent: Monday, May 01, 2000 1:28 PM
Subject: Re: Accessing the Toolbox from a Servlet


>
> Dave,
>
> Thanks for the information.  Redoing the Optimization to 30 worked, though
> I did have to bring the server down and back up to pick up the new code.
>
> Nick
>
>
>
>
> dawall@us.ibm.com@midrange.com on 04/27/2000 02:48:38 PM
>
> Please respond to JAVA400-L@midrange.com
>
> Sent by:  owner-java400-l@midrange.com
>
>
> To:   JAVA400-L@midrange.com
> cc:
>
> Subject:  Re: Accessing the Toolbox from a Servlet
>
>
> What JVM are you running?  If an AS/400, what release of OS/400 and at
what
> is the optimization level of jt400.jar?
>
> V4R2 and V4R3 AS/400s will throw a similar exception when jt400.jar is
> optimized at level 40.  At 40, the JVM loads all classes possibly used by
a
> class when a class is loaded.  It loads the classes even if they aren't
> used.  At 30, the dependent classes are not loaded until they are needed
> (when they are first referenced).  The Toolbox should be optimized at 30
on
> v4r2 and v4r3.  The Toolbox uses some browser specific classes when it
> detects it is running in a browser.  This works at 30 since the Toolbox
> does not go down the browser-specific leg of the code path when on the
> AS/400.  It doesn't work at 40 since the AS/400 loads up everything, even
> the browser-specific classes that aren't used.
>
> If you are not on the AS/400's JVM make sure your JVM is not running in
> 'verify' mode.  From a class loading point of view, verify mode is just
> like level 40.
>
> David Wall
> 553-5329
> AS/400 Toolbox for Java
>
>
> Nick_Vrtis@amway.com on 04/26/2000 11:41:37 AM
>
> Please respond to JAVA400-L@midrange.com
>
> To:   JAVA400-L@midrange.com
> cc:
> Subject:  Accessing the Toolbox from a Servlet
>
>
>
>
> 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/SocketConta
iner;
>
> 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/HttpServletReq
uest;Ljavax/servlet/http/HttpServletResponse;)V+195
> (AuthoritiesServlet.java:38)
>
>
javax/servlet/http/HttpServlet.service(Ljavax/servlet/http/HttpServletReques
t;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/se
rvlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+81
> (ServletManager.java:1305)
>
>
com/ibm/servlet/service/SEServletManager.callServletService(Ljava/lang/Strin
g;Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+12
>  (SEServletManager.java:84)
>
>
com/sun/server/http/InvokerServlet.service(Ljavax/servlet/http/HttpServletRe
quest;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/se
rvlet/ServletRequest;Ljavax/servlet/ServletResponse;)V+81
> (ServletManager.java:1305)
>
>
com/ibm/servlet/service/SEServletManager.callServletService(Ljava/lang/Strin
g;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
> +---
>
>
>
> +---
> | 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
> +---
>
>
>
> +---
> | 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
> +---
>

+---
| 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 ...

Replies:

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.