473,416 Members | 1,716 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

NoClassDefFoundError when starting Apache w/ PHP-Java-Bridge

pbmods
5,821 Expert 4TB
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:

Exception in thread "main" java.lang.NoClassDefFoundError: php/java/bridge/Standalone
Attempting to load any page on my webserver results in a segfault. Whee.

As I understand it, this error means that there are no '.class' files in that path. Is this correct? What's with that weird path, 'php/java/bridge/Standalone'? Is this possibly getting mangled somewhere?

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.
Jul 19 '07 #1
4 3119
JosAH
11,448 Expert 8TB
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:



Attempting to load any page on my webserver results in a segfault. Whee.

As I understand it, this error means that there are no '.class' files in that path. Is this correct? What's with that weird path, 'php/java/bridge/Standalone'? Is this possibly getting mangled somewhere?

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.
I suspect a classpath issue somewhere; what does the php documentation say?
Does that php java.so want to start the entire jvm? Is there a .jar file that contains
the Standalone class? Is that .jar part of the classpath? Questions. questions ...

kind regards,

Jos
Jul 19 '07 #2
pbmods
5,821 Expert 4TB
Heya, Jos.

Thanks for your response.

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

But now I'm pretty sure this is not a Java-related issue.
Jul 19 '07 #3
JosAH
11,448 Expert 8TB
Now, Apache crashes without giving any kind of error message.
Apache likes doing that if you can't recite that sloppy documentation from cover
to cover (preferably in Greek, all backwards while doing the secret Apache dance):
it silently crashes right in front of your own eyes before you'll know it.
It's a feature ;-)

kind regards,

Jos
Jul 19 '07 #4
pbmods
5,821 Expert 4TB
Haha yes. Though this time, it is definitely not Apache's fault.

I know, I know; it's up there with 'safe User input', but really!
Jul 19 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Perttu Pulkkinen | last post by:
I tried to install php as apache module. Previously it has been cgi. WIn 98 is not supported but cgi worked fine, anyway. I tried to everything according to instructions in php.net, but still...
1
by: Ole Kramer, SFS GmbH | last post by:
We have installed PHP 5.0.1 on a Windows 2003 Server with IIS6 in ISAPI mode. The processing of .php files works fine with our basis version of the php.ini file. But, as soon as we edit the php.ini...
13
by: jamie howard | last post by:
Hello there - we have a fairly busy server and we just started to have problems with PHP sessions failing. We've never had this problem before and to be honist, out server traffic is lower than it...
5
by: bissatch | last post by:
Hi, I have just managed to install DOMXML on my apache/PHP setup. I am running PHP 4.3.0 and Apache2. $xmldoc = domxml_open_file("inc/menu.xml", DOMXML_LOAD_DONT_KEEP_BLANKS); When I try...
14
by: Jim Carlock | last post by:
I have a couple easy questions possibly. 1) Is there a default.php page? The webserver seems to support default.htm, default.html, index.htm and index.html. It's an Apache server, I'd like to...
3
by: genenamg | last post by:
Hi, I am trying to run and configure Apache 2.0, php 5 and mysql on win xp professional - this is the first time I have tried to install and configure all three. I am having difficulty trying...
7
by: | last post by:
Hi to everyone! I have an Apache Webserver running on Win2000. I try to start a console application an the server though PHP, with the functions exec() or passthru() but it doesn't work. The...
3
by: madunix | last post by:
My Server is suffering bad lag (High Utlization) I am running on that server Oracle10g with apache_1.3.35/ php-4.4.2 Web visitors retrieve data from the web by php calls through oci cobnnection...
5
by: eholz1 | last post by:
Hello Newsgroup, I have "installed" pdo using "pecl install pdo" (it intalled version 1.0.3), I have added the line "extension=pdo.so" to my php.ini file, but when I try to use the PDO db ...
3
by: ebeard | last post by:
I have replaced apache with nginx and now run php in FASTCGI server mode like this: PHP_FCGI_CHILDREN=6 php -b 127.0.0.1:9086 -c /my/php/ini/path nginx reverse proxies to php and this works...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.