Skip to main content

Problems with JSP compilation on AIX 5.3 and IBM J9 JVM

3 replies [Last post]
boltd
Offline
Joined: 2003-06-19
Points: 0

We are running Sun Application Server v9.1.02 on AIX 5.3 using the IBM 32-bit J9 JDK 5 version. The application server is coming up and running fine.

When we deploy an app that contains JSPs and we attempt to hit a URL that runs a JSP we get an HTTP 500 error from the server that contains the following messages

org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP

We have looked at the server log files and the message basically shows that the Jasper JSP compiler inside of SAS/Glassfish is failing.

We have created a simple WAR file that contains a basic Hello World JSP (and nothing else) and the problem occurs there as well. So, we believe we have eliminated our application as a source of the problem.

As best as we can tell the server is reading our JSP file, it is generating a Java source file and then is failing when it tries to compile the code.

Note: The server instance is running under a non-root account.

Thanks
Dave

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
boltd
Offline
Joined: 2003-06-19
Points: 0

Any ideas?

Thanks
Dave

jluehe
Offline
Joined: 2004-12-01
Points: 0

Yes, you need a full JDK for JSP compilations, unless you configure GlassFish to use the JDT compiler from Eclipse. See
http://blogs.sun.com/jluehe/entry/how_to_enable_eclipse_s
for details.

boltd
Offline
Joined: 2003-06-19
Points: 0

One bit of speculation I have based on a bunch of Google searches is that we might be running the server on a JRE instead of a JVM. So, here's my question. Is there a definitive way to know which version of the JVM (JDK or JRE) the server is actually running on and if it is a JRE how do we change it to the full JDK?

We have tried the obvious stuff like setting JAVA_HOME in the AIX's users environment and we have also edited the asenv.conf file

Thanks
Dave