From: Tamas S. <Tam...@gm...> - 2005-07-21 08:42:05
|
first of all thx for your quick response... and sry for using the forums even if they were closed allready (but i didnt see any signs for the forums being closed). well for setting up the bridge i used the ibm java environment (IBMJava2-SDK-142.tgz) because the sun java kit didnt work so well (actually i had a failure during compiling the bridge so i decided to give the ibm java a try and it worked flawlessly). is it possible that the ibm java doesnt contain this javax/servlet/ServletContext? is this delivered in the standart sdk packages? also is it more likely available in the sun or ibm java? or do i have to grab them seperated? to be honest i really dont know much about the creation of the ProvisoFactory since it was written by someone else and they handed over to me with the task to find a way to establish a stable and fast communication from php to java. searching the web i found the php-java bridge and decided to give it a try. well in the beginning evrything worked fine (as i told before i could use all the testfiles which came with the bridge) but when it comes to use these proviso classes (librarys) nothing works the way it should. so the basic workaround for my problem would be to make available the library again. another question is: do i have to enable servlets on the bridge or am just getting confused by the "javax/servlet/ServletContext" thing? also when i search the files you mentioned and the package isnt available what to do? set up the bridge with a new java (i could try sun's java) or do i just download those missing packages/libraries and make them available in the classpath? thx in advance and i really apreciate the help you are offering greetz tamas szabo ps: also i wanted to say how great your work is! how did this project start? did you simply miss php/java compatibility and decided to build your own bridge? --------------------------------------------------------------------------- Hi, [in the future please use the mailing list, this forum has been closed] > basically i understand that the class i was > reffering to wasnt found No, the exception says that the class was found. The exception is an internal exception which reflects a problem with the way how java loads libraries: It appears when a procedure application failes, either the constructor, initializers or the call of a procedure. The above is the call of the login procedure, which failed because the JIT has found an open reference to a library or library version which was available during creation of the ProvisoFactory but which has been removed since then. The missing class can be found either in the optional j2ee.jar, servlet.jar or other libraries. Please note that the version may be important, so please check with the person who compiled ProvisoFactory. Another thing is possible. Java library vendors generally know this problem and compile their java libraries so that the critical paths do not contain references to libraries that customers might not have. But this is dangerous because one cannot check all paths during the release tests. It may well be that the vendor who shipped the library has made a mistake. Regards, Jost Boekemeier --------------------------------------------------------------------------- hi there, im kinda new to this whole stuff but i allready figured out how to set up the bridge and how to load my own classes (but my knowledge is very limited in php aswell as in java). my proble is that i need to set up a server which should authenicate the clients for the whole intranet. basically the authentication is done with custom java classes which should send back a ticket (in form of a cookie) to the client. now after i set up the bridge i wanted to do some tests... first off all i used the tests supplied with the bridge and they all worked fine. then i tried to write some basic php and java codes to test it out further (basically i did what was done in the in the array example but i wrote it myself). all of these tests went fine. but now im trying to do some basic stuff with the classes provided for the user athentication and i get an error like this: java.lang.Exception: Invoke failed: [class at.wave.proviso10.ProvisoFactory]->login. Cause: java.lang.NoClassDefFoundError: javax/servlet/ServletContext basically i understand that the class i was reffering to wasnt found but why? javax/servlet/ServletContext should come with the basic java sdk shoudnt it? is this something i have to enable myself or do i have to configure the bridge for it? the bridge is running on a redhat fedora core 3 with an apache (but basically this info shouldnt be necesarry as the bridge is running well with the tests supplied with the bridge). any help would be apreciated (sry for my bad english) |
From: Jost B. <jos...@ya...> - 2005-07-21 19:11:17
|
Hi, >(but i didnt see > any signs for the forums > being closed). It could be that some google caches still link to the forum. I guess they will disappear over time. -- Sorry for the inconvenience, but it was difficult to manage both, the forum and the mailing list. > well for setting up the bridge i used the ibm java > environment > (IBMJava2-SDK-142.tgz) because the sun java kit > didnt work so well (actually > i had a failure during compiling the bridge so i > decided to give the ibm > java a try and it worked flawlessly). I think there were issues with old Sun JDK/JRE's on linux during the transition to NPTL. But since 1.4.02_02 this shouldn't be an issue anymore. > is it possible > that the ibm java > doesnt contain this javax/servlet/ServletContext? The servlet API is an optional package. The J2EE download contains it, but not the standard SDK. One has to link to servlet.jar or j2ee.jar explicitly. I don't know what your library does, but it could well be that it requires a servlet environment. In this case please create a JavaBridge.war and deploy it into e.g. tomcat. If it doesn't require a servlet, you can just download the sun j2ee distribution and copy j2ee.jar to /usr/share/java. > ProvisoFactory since it was written by someone else Okay, but what does it do? Does it require a servlet environment (in which case you must create a JavaBridge.war and deploy that) or does it reference the servlet classes by accident, which may happen if the vendor has compiled against the servlet classes even though they are not needed for normal operation? Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |