|
From: <php...@li...> - 2007-11-27 19:11:48
|
Hello again, I downloaded the OAS 90MB download, installed it in a VM, followed your = instructions and everything worked for me there as well. Unfortunately, = it still didn't work in my application. Anyway, after a lot more of trials and errors, and just as I was about = to give up, it turns out that what I had to do to make it work in my = application was to inlclude the following line in the mod_oc4j.conf file = (included at the end of the Oracle/Apache httpd.conf): <IfModule mod_oc4j.c> ... Oc4jMount /JavaBridge home Oc4jMount /JavaBridge/* home </IfModule> This made everything work (along with a change to the default J2EE port, = which in my case was set differently). Another difference I noticed in my case was that the protocol specified = in the <web-site> directive was not "http", but "ajp13". I don't know if = this made any difference. Now, I only have one more question which is probably unrelated to the = bridge, but nevertheless I would appreciate it if anyone could answer. Is there any way I can include PHP code in JSP pages? I realize I = probably cannot put <?php ?> tags in a JSP page and expect them to be = parsed by PHP, but I tried including an external PHP file with <%@ = include file "/myscript.php"%> and <jsp:include page=3D"/myscript.php"/> = but it didn't work. I also tried <c:import url=3D"/myscript.php"/> but = it somehow didn't seem to be interpreted by Java (I got it back = literally in the html) which makes me think maybe my JSTL .jar file may = be out of date or something. Anyway, thanks again for going to great lengths to help Jost! :-) ----- Original Message -----=20 From: <php...@li...> To: <php...@li...> Sent: Friday, November 23, 2007 6:25 PM Subject: Re: [Php-java-bridge-users] Oracle Application Server problem > Hi >=20 >> 07/11/23 16:07:21 Oracle Application Server Containers for J2EE 10g = (9.0.4.0.0) >=20 > I have just tested the bridge against Oracle AS 9.0.4 and I could not = reproduce these problems. >=20 >=20 > 1. downloaded/extracted oracle web containers for java (the 90MB = download) >=20 > 2. copied home/config to home/config-new >=20 > 3. changed home/config-new/application.xml so that it contains > ... > <web-module id=3D"dms" path=3D"../../home/applications/dms.war"/> > <web-module id=3D"JavaBridge" = path=3D"../../home/applications/JavaBridge.war"/> >=20 > 4. changed home/config-new/http-web-site.xml so that it contains > ... > <web-app application=3D"default" name=3D"admin_web" = root=3D"/adminoc4j"/> > <web-app application=3D"default" name=3D"JavaBridge" = root=3D"/JavaBridge"/> >=20 > 5. changed the server port in home/config-new/http-web-site.xml to = 8899: > ... > <web-site port=3D"8899"=20 > ... >=20 > 6. Copied JavaBridge.war (from the version 3.2.1 j2ee download) to = home/applications >=20 > 7. Started the Oracle J2EE server so that it runs with the new = configuration: >=20 > java -jar = '/home/jostb/Desktop/oc4j_extended.zip_FILES/j2ee/home/oc4j.jar'=20 > -config = '/home/jostb/Desktop/oc4j_extended.zip_FILES/j2ee/home/config-new/server.= xml'=20 >=20 > 8. http://localhost:8899/JavaBridge/test.php renders the test PHP = page. >=20 >=20 > If the problem persists, please open a problem report and attach your = configuration > at the end of the ticket (please use the following link > = http://sourceforge.net/tracker/?func=3Dadd&group_id=3D117793&atid=3D67923= 3). >=20 >=20 > Regards, > Jost Boekemeier >=20 >=20 > Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:=20 > http://de.yahoo.com/set >=20 > = -------------------------------------------------------------------------= > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |