Cannot connect to Presto 404 error

angielee001
User offline. Last seen 2 years 17 weeks ago. Offline
Joined: 12/22/2009
Points: 10

Hello,

I'm new to this and was thrown into a task of getting Presto working.  I'm trying to piece everything together through doing research on a half completed project.  I have Presto 2.7 installed and when I start the startpresto.bat, I receive the following error:

ERROR [com.jackbe.presto.jmx.cascade.PrestoMasterAgent-321] - <java.io.IOException: com.sun.jdmk.comm.CommunicationException: Connection refused: connect>

I'm also getting a page display error 404.

I'm sorry for the vague question but I'm learning as I go.  Please let me know if additional information is needed and thanks in advance for any replies. 

0
Your rating: None
aishmishra
aishmishra's picture
User offline. Last seen 25 weeks 3 days ago. Offline
Joined: 09/24/2008
Points: 3

Hi Debra,

Before we start looking into your issue can you provide us with some more details.

i. What is the platform you are running Presto on?

ii. JDK version?

iii. Is the system on which Presto running installed in a network with proxy or firewall.

iv. I believe you did run the setup script before starting Presto Mashup Server

v. I believe you did run the Presto Repository before starting Presto Mashup Server

vi. If you are still gettting an error, please attach the presto.log file in your reply. You can find the file in the following folder.

<presto-installation-folder>/logs/

Do let us know how it goes.

girish
girish's picture
User offline. Last seen 8 weeks 6 days ago. Offline
Joined: 09/22/2008
Points: 70

 You can also look at this related post and see if it helps

http://www.jackbe.com/enterprise-mashup/forum/issue-installation-may-be-...

- Girish@JackBe

angielee001
User offline. Last seen 2 years 17 weeks ago. Offline
Joined: 12/22/2009
Points: 10

Hi Aishmishra,

Thank you for your response.  Below are the answers to your questions:

i. Windows Server 2003

ii.  1.6.0_13

iii. On a network with a firewall

iv. Correct

v. Correct

vi.  Attached is the Presto log file

Also, I checked to see if port 8282 was open or in use and i got a connection failed error.  Could the problem possible be due to the port being blocked on the firewall?

aishmishra
aishmishra's picture
User offline. Last seen 25 weeks 3 days ago. Offline
Joined: 09/24/2008
Points: 3

Hi Debra,

The error message that I see in the logs point towards the fact that Presto is unable to connect to Presto Repository. However, you have confirmed that you are running Presto Repository.

Could you please check again if Presto Repository is running?

Also, could you tell us if while running Presto setup you selected port numbers other than the default ports?

angielee001
User offline. Last seen 2 years 17 weeks ago. Offline
Joined: 12/22/2009
Points: 10

Aishmishra,

Presto Repository is definately running.  As for the port number, I was not the one to orginally setup Presto so I'm not sure which port was used. Is there a way for me to tell after the fact?

aishmishra
aishmishra's picture
User offline. Last seen 25 weeks 3 days ago. Offline
Joined: 09/24/2008
Points: 3

Hi Debra,

i. The port on which Presto Repository is running can be found by checking the value of the "port" parameter in the following file (assuming you are using the default Presto Repository running on HSQLDB)

<presto-installation-folder>/prestorepository/hsqldb/server.sh

ii. You can check if Presto is looking for Presto Repository on the same ports by checking the values in the following files

<presto-installation-folder>/server/apache-tomcat-5.5.20/webapps/presto/WEB-INF/classes/userRepositoryJdbc.properties

<presto-installation-folder>/server/apache-tomcat-5.5.20/webapps/presto/WEB-INF/classes/rdsJdbc.properties

Please ensure that the values are consistent. Also is it possible for you to check with your firewall turned off or atleast allowing the presto repository port (which by default is 9001) through the firewall?

Do let us know how it goes.

angielee001
User offline. Last seen 2 years 17 weeks ago. Offline
Joined: 12/22/2009
Points: 10

Aishmishra,

Sorry it's been so long but I am back to work on the getting Presto to work.  I checked the port on Prest and Tomcat and both are using 9001 (see attachement if you wish).  I checked with the admin about the firewall and I am told that the firewall is not an issue. 

Thanks for your help,

 

Debra

angiechang
User offline. Last seen 2 years 17 weeks ago. Offline
Joined: 01/19/2010
Points: 0

Aishmishra,

Please disregard last post as I was able to get Presto working.  I changed the two files following this post:  http://www.jackbe.com/enterprise-mashup/forum/issue-installation-may-be-... Thank you so much for all of your help.