Closed Subramanian-Palanisami closed 6 years ago
Subramanian, on the surface your setup looks correct. Are you able to access your tomcat site directly via it's html port (8080 default).
Also can you attempt to use 127.0.0.1
as server setting instead of localhost
.
Questions;
1) What version of connector are you using?
2) What is your logfile entry during the error (set LogLevel
to 2) and set LogDir
if needed.
Best, Bilal
Hi Bilal,
YES, able to access localhost:8080/ea-test as expected.
tried to use 127.0.0.1 as server setting instead of localhost, but no luck!
<Settings>
<Port>8009</Port>
<Server>127.0.0.1</Server>
<MaxConnections>0</MaxConnections>
<LogLevel>0</LogLevel>
<FlushThreshold>0</FlushThreshold>
<EnableRemoteAdmin>False</EnableRemoteAdmin>
</Settings>
Answers are here:
Regards, Subramanian Palanisami
Hi Bilal,
Good news!! Issue is fixed. steps have followed:
Thats it; Thanks you so much Bilal for your wonderful BonCode plugin. It is great stuff from get rid out of from url rewrite or ISAPI. Please close this issue.
Have one more question for you. please.
Have backend spring boot data api application called eacc. it does not have any UI (html) pages. just using this for connect to db and return json as response. Location: C:\Tomcat\apache-tomcat-9.0.7\webapps\eacc.
I have created another virtual directory called (/eacc) under my main site (www.xyz.in). Now when i try www.xyz.in/eacc - its giving error as 403 - Forbidden: Access is denied.
Hope BonCode will support one or more connections with tomcat. please correct me if am wrong. Please let me know will this approach will work out? do i need to do any special configuration for this? How to fix this issue? Shall i create new issue chain if you need?
Glad to see you have worked it out.
Is the handler registered for the /eacc
sub-directory.
If you are calling a servlet, you have to register a wildcard handler for that path. If you are calling a .jsp
you need a jsp handler.
The documentation as examples for wildcard: http://www.boncode.net/connector/webdocs/Tomcat_Connector.htm#_Toc520189752
Best, Bilal
Hi Bilal,
Yes, /eacc handler registered for wildcard handler path. steps are here:
While trigger url http://www.xyx.in/eacc/api/fetchVendors in postman, getting following exception:
Server Error in '/' Application. The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /eacc/api/fetchVendors
if i do localhost:8080/eacc/api/fetchVendors in postman, Have get results.
I have set LogLevel as 1 or 2 with LogDir. Have not seen any log file generated. uninstall and install with "All Sites" options. But still same issue.
could you please help me to resolve this issue.
Hi Bilal, Good Day!!
Have found your BonCode IIStoTomcat connecter will work out for my requirement. Getting following error and it would be great if this issue resolved and thankful to you.
Generic Connector Communication Error: Please check and adjust your setup: Ensure that Tomcat is running on given host and port. If this is a timeout error consider adjusting IIS timeout by changing executionTimeout attribute in web.config (see manual).
Configuration Details:
So, my complete url is: www.xyz.in/ea-test
Tomcat Application deployed here: C:\Tomcat\apache-tomcat-9.0.7\webapps\ea-test\index.html
BonCodeAJP13.settings
Approaches tried to fix but not worked out:
Eagerly looking for your response.
Regards, Subramanian Palanisami