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



Pete

Do you have "OS/400 - Portable App Solutions Environment" installed on your system? I think I recall that headless awt requires PASE.

Thanx, PLA

Pete Helgren wrote:

I haven't gotten a response on the JAVA400 list and perhaps this is the
better list anyway....

I have a servlet running under Tomcat 5.0 on our V5R3M0 iSeries that throws
a javax.servlet.ServletException: "AWT class or API used without specifying
property os400.awt.native=true or java.awt.headless=true" exception when
generating a Jasper report.


The Java400 list had a dead on hit on the error but it had a bit of missing
information, namely how the properties were set so that
os400.awt.native=true or java.awt.headless=true properties could be seen by
Tomcat.

I added two entries to /QIBM/UserData/Java400/SystemDefault.properties file
java.version=1.4 java.awt.headless=true


I ended Tomcat on the iSeries and then restarted it and accessed the
application again with the same result.


I probably missed something simple here but, what did I miss?

Now I am also seeing two errors in the job log of the Tomcat instance:

The requested heap space operation is invalid. (MCH6902) The pointer parameter passed to free or realloc is not valid.(C2M1212)


The servlet is still running but when I execute the jasper report I get the servlet exception (listed above).

Any help would be appreciated.

Thanks,

Peter Helgren
Value Added Software, Inc
801.581.1154 x202

_______________________________________________
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.







As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.