|
From: <php...@li...> - 2008-08-28 22:47:58
|
Hi, I installed php java bridge successful. Using the JavaBridge.war I can share the PHP session (running in a apache server) with the "war" in the JBoss server. I removed the JavaBridge.war and tried to mimic it's configuration in a seam application that I'm developing, but I'm getting the 403 error when I try to run the php file apache. I can't understand what is wrong. I already look the logs, googled a lot, but can't find an aswear to this error. If someone can give me some hint to bypass this error I will be very grateful. Thanks, Carlos. |
|
From: <php...@li...> - 2008-08-28 23:08:02
|
I just forge to say, if I run:
echo '<?php require_once("http://localhost:8080/JavaBridge/java/Java.inc");
echo java("java.lang.System")->getProperties();?>' | php -n -d
allow_url_include=On
It works... can it be a problem in my php.ini? I don't mind, since with the
JavaBridge.war deployed everything works fine.
2008/8/28 Carlos Eduardo Rodrigues Diógenes <cer...@gm...>
> Hi,
>
> I installed php java bridge successful.
>
> Using the JavaBridge.war I can share the PHP session (running in a apache
> server) with the "war" in the JBoss server.
>
> I removed the JavaBridge.war and tried to mimic it's configuration in a
> seam application that I'm developing, but I'm getting the 403 error when I
> try to run the php file apache. I can't understand what is wrong. I already
> look the logs, googled a lot, but can't find an aswear to this error.
>
> If someone can give me some hint to bypass this error I will be very
> grateful.
>
> Thanks,
> Carlos.
>
|
|
From: <php...@li...> - 2008-08-29 17:33:19
|
Hi, > Using the JavaBridge.war I can share the PHP session (running in a apache > server) with the "war" in the JBoss server. in its default configuration, the bridge connects to the J2EE "JavaBridge" application context. If you remove it, you'll probably get a "document not found, or a permission error from tomcat. Please see our FAQ for details how to forward requests to a custom context. > It works... can it be a problem in my php.ini? This is probably a misunderstanding. The PHP/Java Bridge is written in pure Java and doesn't know anything about a php.ini, unless you enable the backward compatibility flag in the Config.inc. Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
|
From: <php...@li...> - 2008-08-29 18:40:44
|
Hi, Thanks for the reply Jost, but I can't find anything related with forward requests to a custom context in FAQ, can you point me to where is this information? Thanks, Carlos. 2008/8/29 <php...@li...> > Hi, > > > Using the JavaBridge.war I can share the PHP session (running in a apache > > server) with the "war" in the JBoss server. > > in its default configuration, the bridge connects to the J2EE "JavaBridge" > application context. > > If you remove it, you'll probably get a "document not found, or a > permission error from tomcat. > > Please see our FAQ for details how to forward requests to a > custom context. > > > > It works... can it be a problem in my php.ini? > > This is probably a misunderstanding. The PHP/Java Bridge is written in pure > Java and doesn't know anything about a php.ini, unless you enable the > backward compatibility flag in the Config.inc. > > > > Regards, > Jost Boekemeier > > > __________________________________________________ > Do You Yahoo!? > Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz > gegen Massenmails. > http://mail.yahoo.com > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
|
From: <php...@li...> - 2008-08-29 23:03:30
|
Hi Jost, I think that more informations about the scenario that I'm using is also important. I saw in a lot of discussion in the mailing list talking about mod_jk and the applications being in the same container. In my machine (Ubuntu 8.04) I just installed apache2 and mod_php 5.2.4 and copied sessionSharing.php and java/Java.inc from JavaBridge.war to /var/www. I also modified the /etc/php5/java.ini to contain the following: [java] java.hosts = 127.0.0.1:8080 java.servlet = On ;; Off, On or User Then I exploded the JavaBridge.war to a JavaBridge.war/ folder and modified the link in sessionSharing.jsp to point to http://localhost/sessionSharing.php (the file in apache root dir, /var/www) and deployed it to JBoss. The session sharing worked fine in this scenario. After this, I undeployed the JavaBridge.war and modified my Seam application to have the following servlet: <servlet-name>PhpJavaServlet</servlet-name> <servlet-class>php.java.servlet.PhpJavaServlet</servlet-class> I also copied the libraries to my application libs folder, since without this I get ClassNotFound errors. After this I tried to do the same what I described in the first scenario, but what I get is: protocol error: HTTP Status 403 - ------------------------------ *type* Status report *message* ** *description* *Access to the specified resource () has been forbidden.* ------------------------------ JBossWeb/2.0.1.GA. Check the back end log for details. If I put the sessionSharing.php in my Seam application the session is shared without problems, but I really need something like in the first scenario. I'm a bit lost about the discussion of mod_jk and don't know how I must proceed. Can you give me some light? Thanks and best regards, Carlos. 2008/8/29 Carlos Eduardo Rodrigues Diógenes <cer...@gm...> > Hi, > > Thanks for the reply Jost, but I can't find anything related with forward > requests to a custom context in FAQ, can you point me to where is this > information? > > Thanks, > Carlos. > > 2008/8/29 <php...@li...> > > Hi, >> >> > Using the JavaBridge.war I can share the PHP session (running in a >> apache >> > server) with the "war" in the JBoss server. >> >> in its default configuration, the bridge connects to the J2EE "JavaBridge" >> application context. >> >> If you remove it, you'll probably get a "document not found, or a >> permission error from tomcat. >> >> Please see our FAQ for details how to forward requests to a >> custom context. >> >> >> > It works... can it be a problem in my php.ini? >> >> This is probably a misunderstanding. The PHP/Java Bridge is written in >> pure Java and doesn't know anything about a php.ini, unless you enable the >> backward compatibility flag in the Config.inc. >> >> >> >> Regards, >> Jost Boekemeier >> >> >> __________________________________________________ >> Do You Yahoo!? >> Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz >> gegen Massenmails. >> http://mail.yahoo.com >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >> > > |
|
From: <php...@li...> - 2008-08-30 11:17:29
|
Hi, The Java.inc is programmed so that if no context is available to Apache/PHP, the default web context "JavaBridge" is used. If you remove it, you will get the said error message. If you want to use your own context, you'll need to hard-code the context, for example via a define(...) directive before the Java.inc is loaded, or store your application into a custom context and set the JAVA_SERVLET definition to User. The "User" setting extracts the context and forwards to the appropriate web context of the back-end. Please see our FAQ for details. Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
|
From: <php...@li...> - 2008-09-02 00:10:28
|
Hi, How can I hard-code the context using define(...). I try an trial an error, but only get errors :-) What variable I have to set to hard-code the context to something different from JavaBridge? Best regards, Carlos. 2008/8/30 <php...@li...> > Hi, > > The Java.inc is programmed so that if no context is available to > Apache/PHP, the default web context "JavaBridge" is used. If you remove it, > you will get the said error message. > > If you want to use your own context, you'll need to hard-code the context, > for example via a define(...) directive before the Java.inc is loaded, or > store your application into a custom context and set the JAVA_SERVLET > definition to User. The "User" setting extracts the context and forwards to > the appropriate web context of the back-end. Please see our FAQ for details. > > > Regards, > Jost Boekemeier > > > __________________________________________________ > Do You Yahoo!? > Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz > gegen Massenmails. > http://mail.yahoo.com > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
|
From: <php...@li...> - 2008-08-30 11:06:21
|
Hi, Please see the FAQ topic "I want to use Apache/IIS as a front-end and tomcat as a back end. How do I enable PHP and JSP for all my applications?" for details. Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |