Hi Chris!

Thanks for response! 
I don't use any kind of authentication and, I believe that the directory
indexes are disabled due the HTTP 404 error returned when is tried listing.
It's just a servlet being accessed by a PHP script. The servers aren't in
the same machine instead of I told before, sorry. May be this the cause? May
the Tomcat refusing a connection requested by a script generated by another
web server, due a security constraint?

Thanks.


Christopher Schultz-2 wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> zé,
> 
> On 2/17/2010 6:06 AM, zé wrote:
>> I'm trying to access a Java web application, hosted on a Tomcat 6.0.20,
>> from
>> a PHP application hosted on a Apache, located at the same machine. The
>> PHP
>> app must request a Java app with few parameters and, the Java app must
>> respond with some data encoded in a JSON response. Perhaps I got a HTTP
>> 403
>> error. How to fix this?
> 
> HTTP 403 is "Forbidden" which suggests a resource that is not available
> to the current user. Are you using any kind of authentication? Are you
> trying to access a directory (instead of a file) and do you have
> directory indexes disabled?
> 
> There are other reasons to get this error but these are the most common
> I can think of.
> 
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAkt8Ba4ACgkQ9CaO5/Lv0PBNRACgockj7LFsG9A/3CiobkxDchcs
> r+sAoIZcnWvLW8h8XCFkRWcDdiwblL4u
> =aXPj
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Accessing-a-Tomcat-webapp-from-a-PHP-webapp-tp27622126p27626939.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to