Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Developer
Galaxy
Posts: 5
Registered: ‎09-17-2009
My Device: Not Specified

Run As > Blackberry Web Error: "HTTP Port can not be found!"

Goal: Debug javascript application

Method: use Blackberry Eclipse plugin

 

I have installed the complete version of Eclipse that comes with Blackberry.

 

When using Eclipse, under "Project Explorere", I right-click an html file "setTimeout-test.html"

 I then select "Run As > Blackberry Web"

 

Result:

 

| Error: HTTP Port can not be found!

|

| Reason:

| Project is not deployed to any runningserver that has an HTTP Port.

 

How can I fix this? Is there a web page that providescomplete instructions?

 

 

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Run As > Blackberry Web Error: "HTTP Port can not be found!"

Hi there,

 

You will need to have an instance of a Web Server installed on your machine (e.g. Tomcat, JBoss, etc). Then, you can open the Eclipse view “Servers” and add a new server instance pointing to the web server locally installed.

 

After installing this “web server adapter”, you must deploy your web application to the web server in the standard Eclipse fashion (right click on the server and select “Add and Remove Projects”), then select the web application.

 

The last step is to start the server adapter (right click on the server and click “Start”). Then you will be to run or debug the web application.

 

These steps can also be found here:

http://docs.blackberry.com/en/developers/deliverables/9328/Create_a_server_configuration_659475_11.j...

 

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
New Developer
Galaxy
Posts: 5
Registered: ‎09-17-2009
My Device: Not Specified

Re: Run As > Blackberry Web Error: "HTTP Port can not be found!"

I get to step 11:-

 

| 1.  Right-click the new server configuration and select Add and Remove Projects.

 

- and get the error:- 

 

| There are no projects that can be added or removed from this server.

 

I have a project in Eclipse. I have a build.xml file with targets "deploy", "deploy copy", "js.minify", "js.copy", "js.rollups". The project really exists.

 

I realize this is an issue with Eclipse, not Blackberry, but if you have any advice, I'd appreciate it.

 

Please use plain text.