PHP-Java Bridge won't start, crashes Apache.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    PHP-Java Bridge won't start, crashes Apache.

    Heya.

    I just installed PHP-Java-Bridge on my system, but I'm having a hard time getting it to stop crashing Apache.

    When I activate the 'Java.so' module in php.ini, I get the following error in my Apache logfile:

    Originally posted by error_log
    Exception in thread "main" java.lang.NoCla ssDefFoundError : php/java/bridge/Standalone
    Attempting to load any page on my webserver results in a segfault. Whee.

    What's with that weird path, 'php/java/bridge/Standalone'? Is this possibly getting mangled somewhere?

    Anybody have experience installing PHP-Java Bridge on a *n?x system who could lend some advice?

    I'm posting this both in the Java and PHP forum because I'd like to get input on both sides of the issue. I suspect that it's a configuration issue with PHP-Java Bridge, but I can't be sure because the documentation for it is horribly confusing.

    Thanks for your time.
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Well, I've managed to halfway fix the problem.

    I ran the issue by a couple of people, and we collectively remembered that Java class packages are stored in a hierarchal format on the filesystem (i.e., Java was trying to require 'php.java.bridg e.Standalone'.

    After copying the relevant classes from the php-java-bridge source directory and modifying php.ini, I have made the error go away.

    Now, Apache crashes without giving any kind of error message.

    I'm now wondering if this is a problem with PHP-Java-Bridge's build process.

    Comment

    Working...