From: <php...@li...> - 2007-03-19 15:36:35
|
> > > > The error I was getting was that it couldn't find > > the class. > > I don't think so. Can you please open a problem > report, > please use > http://sourceforge.net/tracker/?func=3Dadd&group_id=3D117793&atid=3D67923= 3 > > set the log level to 4 and attach the server log > there. What I meant is that I got the error Java throws when it cannot find the class that you're trying to instanciate. It is the error I had pasted on my first e-mail: CreateInstance failed: new Test. Cause: java.lang.ClassNotFoundException: Test Responsible VM: 3.4.3@http://gcc.gnu.org/java/ > But now I've got a > > different error: > > CreateInstance failed: new Test. Cause: > > java.lang.IllegalAccessException: > > Class php.java.bridge.JavaBridge can not access a > > member of class Test with > > modifiers "public" Responsible VM: > > 1.5.0_11@http://java.sun.com/ > > Ah, now we're are at something. So your problem isn't > that the class could not be found. The problem is that > the wrapper Java class you've written throws > exceptions or even errors. -- Most likely a > NoClassDefFoundError. > > > > This is my java code: > > > > class Test > > This will not work, because your class is not public. Great! That was it! Now it is working! Just another question... I had to restart Apache so that it would load the new jar file... why is that? cache? I will keep on trying with other things (now I have to get my *real* java programs to work) and will keep you posted of any other problem I might get= . > Besides, I installed > > the PHP/Java Bridge from its source because the RPM > > package didn't work for > > me > > I don't know what Andr'e and Jon think about this, but > I think we should discontinue the source distribution. > I think it causes too much trouble. We could keep the (source-) RPM and debian packages. > Everyone else should use the generic binary or pull > the source code from the CVS. In my opinion, it's always useful to have a stable release of the source code for those who don't use RPM or Debian packages. I'm working with this at he company where I work, and I have to work with RedHat so I could use the RPM binaries if it wasn't for the dependecies problems I got (as I said, I installed Apache and PHP *manually* from its source). Nevertheless I would probably want to install PHP/Java Bridge on m= y web server at home where I'm running Slackware and I would definitely need to use the source package there. > Apache/Tomcat? Because I was required not to use > > Tomcat in this case. > > You need to start a Java process as a service on the > computer. Which other program can start Java as a > system service? And what's the problem with tomcat? This was mostly curiosity, as I said I haven't work much with Java nor JSP... but if it's the way to go, so be it. Thank you very much again for your support. I hope that I can get this to work and use it in many other places. I would be glad to help you enrich th= e documentation with my experience installing it, and I'm at your service for anything else that I could be useful. Regards, Andr=E9s Gattinoni |