InvocationTargetException usually means that an older version of a class was loaded than the one that was used when the class using it was compiled.

Can you "see" somewhere the classpath of the application that won't run? Are there classes in there that are out of order?

Most application servers cache the compiled version of jsp pages. You might find that clearing that cache will fix the problem. In Tomcat, that goes in $Catalina_Home/work/..../MyApplication/... I often go in there and just clear the whole thing and let the pages recompile when they're touched again. I don't know where it is in Glassfish.

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Pete Helgren
Sent: Thursday, September 23, 2010 4:53 PM
To: Java Programming on and around the IBM i
Subject: Re: Glassfish 3.0.1 on the AS/400.

So here is what I have been able to ascertain about Glassfish 3.0.1 on i:

I was able to get it *running* by using the following techniques:

Originally I had to run it using puTTY or qp2term because the output in QSH was unintelligible. But with the following changes (and I don't know which ones) I see everything fine in QSH.
1. I added the JAVA_HOME=/QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit
to the beginning of the asadmin shell script in /glassfishv3/glassfish/bin (using EDTF).
2. I added the AS_JAVA=/QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit to
the beginning of the asenv.conf filet in /glassfishv3/glassfish/config (using EDTF)
3. I removed the -client entry in domain.xml in the java config
section. I also upped the value of MaxPermSize to 384m.

The server starts and is running since I can get the "success" page when I access port 8080 of the server. What I cannot do is get the admin application to run. When I access the admin port (4848) I see the

HTTP Status 500 -

type Exception report


descriptionThe server encountered an internal error () that prevented it from fulfilling this request.


java.lang.reflect.InvocationTargetException while attempting to process a 'initPage' event for '/common/index.jsf'.

root cause

java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
while attempting to process a 'initPage' event for '/common/index.jsf'.

root cause


root cause

javax.xml.transform.TransformerFactoryConfigurationError: Provider not found

This looks similar to this post:

In the case of the OP he was able to get it working using the Classic Java 6 JDK by removing all of the XX entries in the Java Config section. That solution did NOT work for me, although I am running the
32 bit version in this case.

The console page shows that it is installing and loading and then it indicates that it is trying to display the login page and then it croaks with the HTTP 500 status page. I have been able to deploy a sample application so it *seems* like everything is working, with the exception of the web admin console.

Just an FYI on the progress, or lack thereof.

Pete Helgren
Value Added Software, Inc

On 9/16/2010 9:57 AM, James Perkins wrote:
I did get it running under the Classic JVM, but I probably didn't wait
long enough to get the admin console up. I had to comment out all the
-XX arguments and one that started with -client.

I've had problems getting working with the J9 JVM. It brings the
system to it's knees. Takes about 10-15 minutes to even sign-on. It's
our development partition so it doesn't have tons of memory, but it's
usually pretty fast. I might try to add some of the -XX arguments back
to see if the work with the
J9 JVM. I think most of those are for performance.

I did just notice something too. I went to see which JVM arguments I
commented out and they have been deleted. GlassFish must update the
domain.xml file on boot-up. I'm definitely not a GlassFish pro so I
should probably read about that.

James R. Perkins

2010/9/16 Thorbjørn Ravn Andersen<thunderaxiom@xxxxxxxxxxx>

I am currently looking into what OSGi could buy us (oh, library lists
:) ) so I found that Glassfish can run in other OSGi containers than
the default Apache Felix.

Here the --verbose flag to asadmin was mentioned so it shows the JVM
invocation command which might make your investigation easier :)

start-domain --verbose
16-09-2010 15:06:29
com.sun.enterprise.admin.launcher.GFLauncherLogger info
INFO: JVM invocation command line:
C:\Program Files\Java\jre6\bin\java.exe -cp



fish/li b/monitor/btrace-agent.jar=unsafe=true,noServer=true

Did you make further progress?


This is the Java Programming on and around the IBM i (JAVA400-L) mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at

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-2022 by 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.