Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

There are two types of glassfish distribution: the executable installer and zip archive.

I have to use the zip archive. But the admin console doesn't work, it only shows a blue footer div, the resource /theme/META-INF/com_sun_faces_ajax.js is not found and error in the page:

http://localhost:4848/:

...
<script type="text/javascript">
    if (true) {
        //submitAndDisable(document.getElementById('loginButton'), 'Login');
        document.getElementById('loginButton').form.submit();

        // ERROR HERE:
        //    Uncaught TypeError: Cannot read property 'form' of null

    }
</script>

when installed by extract from zip archive, but it works very well if install by the executable installer.

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

When I ran into the Javascript errors you're describing, it was because of an issue with OpenJDK and Glassfish, which I resolved by installing Sun Java. I don't know if that will make a difference in your situation.

Here's where I got the tip that it was an OpenJDK problem: http://explodingjava.blogspot.com/2010/05/oracle-sun-jdk-vs-openjdk-and-jsf.html

share|improve this answer
    
This is unbelievable. The Sun JDK really works! –  Xiè Jìléi Dec 3 '10 at 9:17
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.