Flowscale Deployment

31 views
Skip to first unread message

ryanwallner

unread,
Feb 13, 2012, 11:53:18 AM2/13/12
to FlowScale Developers
I had posted
"Im am trying to set up FlowScale on top of the Beacon API, the
webui database is set up and the project is imported into eclipse
along with the rest of the project (openflowj and beacon). The main
target has been resolved via the software site update etc. There are
also warnings within the code base in the httplistener and flowscale.
I wanted to know if these issues would be problems while running
flowscale when in debug. Beacon UI registers the two packages as
"INSTALLED" but there are also errors in the framework of resolving a
com.mysql.jdbc and org.simple.json. Im pretty sure that these
constraints can just be imported for the project (mysql jdbc , and
simple json) but I wanted to get some feedback on these issues as
there is limited documentation on FlowScale. "

Last week, In regards to some of the errors I am seeing is in eclipse
there are warnings in edu.iu.incntre.flowscale package and
edu.iu.inctre.flowscalehttplistener package that report warning like
imports bufferedreader,fileinputstream,IOException as"never used" and
the value of fields not being used along with type safety errors. I
was just following the quick start guide on getting it running from
(http://www.openflowhub.org/display/FlowScale/Quick+Start). Is there
more development steps to implement this feature into Beacon, do I
need to add it do the context or osgi xml to initialize it?

Ali Khalfan

unread,
Feb 13, 2012, 11:58:00 AM2/13/12
to flowsc...@googlegroups.com
Hi Ryan,

The warnings shouldn't be an issue. Those are just imported packages
for variables that were used previously in the code that are not needed
anymore. Do you see any compilation errors ?

--Ali

ryanwallner

unread,
Feb 13, 2012, 1:42:16 PM2/13/12
to FlowScale Developers
Ali,

Thanks for your response.

I don't see any compilation errors, just warning of the previously
described.

The issue im having is with the two errors in the console output when
Flowscale in run in eclipse about the com.mysql.jdbc , and
org.simple.json jars, I tried importing the mysql jar into the
project, is there a specific way this application talks to mysql? And
I haven't import simple json into eclipse as well, These two things I
believe is what is holding flowscale from being deployed.

I can give a more detailed explanation of these errors or screenshot
im seeing if needed.

Regards,

-Ryan

Ali Khalfan

unread,
Feb 13, 2012, 2:10:45 PM2/13/12
to flowsc...@googlegroups.com
Did you add the Flowscale software site in main.target? Just to be
sure, in main.target, click on the content tab and try to locate those 2
plugins.

If they are not there, then the software site might have not been added
properly .

-------- Original Message --------
Subject: Re: Flowscale Deployment
From: ryanwallner <walln...@gmail.com>

ryan wallner

unread,
Feb 14, 2012, 2:19:33 PM2/14/12
to flowsc...@googlegroups.com
Ali,

starting the application in a rap debug mode solved the mysql and simple json errors (I was running the beacon core debug when flowscale was not implemented, so it never saw the plugin dependencies). Though the bundle builds in and deploys the Flowscale is still crashing. I provided and attached console output of this, I am also recieving a bundle error of "org.springframework.jdbc Missing constraints [ Import Package org.springframwork.dao  org.springframwork.dao.support org.springframwork.transaction  org.springframwork.transaction.support versions (3.0.4, 3.0.5)]

When I run this in debug mode I can see in Beacon the Echo_request for the flowscale controller, but with an error.

-Ryan
--
Ryan Wallner
Information Technology & Systems
IBM Joint Studies Intern

flowscaleoutput

Ali Khalfan

unread,
Feb 14, 2012, 3:31:24 PM2/14/12
to flowsc...@googlegroups.com
Hi Ryan,

Deploying Flowscale will also deploy Beacon, so if you have a Beacon
instance already deployed, it will return an error that the address
socket is already in use. To make this work, you would need to either
shutdown the beacon instance you've already got or update the port.


I believe RAP requires certain libraries (such as the widget toolkit)
and an OSGI Activator, which explains the errors you're getting in the
log. Try running it in RCP mode, but like I said, make sure that the
mysql and json bundles are included first.


--Ali


-------- Original Message --------
Subject: Re: Flowscale Deployment
From: ryan wallner <walln...@gmail.com>
To: flowsc...@googlegroups.com
Date: Tue Feb 14 2012 14:19:33 GMT-0500 (EST)

> Ali,
>
> starting the application in a rap debug mode solved the mysql and simple
> json errors (I was running the beacon core debug when flowscale was not
> implemented, so it never saw the plugin dependencies). Though the bundle

> builds in and deploys the Flowscale is still crashing. *I provided and
> attached console output of this*, I am also recieving a bundle error of

ryanwallner

unread,
Feb 15, 2012, 3:14:03 PM2/15/12
to FlowScale Developers
Ali,

I am unsure of what you mean by run in RCP mode, I see the flowscale-
ids.product and it can run as an eclipse application which you then
can specify to run the rcp.product but i havent heard of RCP mode.
Only RCP applications i have run need to be imported differently and I
do no see an option to run as RCP. I only see Eclipse Application and
RAP application. Either way I still am receiving the missing
constraint of org.springframework.dao and .transaction

-Ryan

Ali Khalfan

unread,
Feb 15, 2012, 3:37:33 PM2/15/12
to flowsc...@googlegroups.com
So when you run it in application mode do you not see the errors related
to om.mysql.jdbc and org.simple.json ? are these new errors you're
getting ?

ryan wallner

unread,
Feb 15, 2012, 3:58:38 PM2/15/12
to flowsc...@googlegroups.com
Ali,

Correct, In application mode I am still receiving errors. They are pointing to the org.springframework.jdbc jar and then pointing specifically to the " org.springframework.dao & org.springframework.dao.transaction " and the " org.springframework.transaction & org.springframework.transaction.support " packages within the jdbc jar. I tried to replace this jar and make sure that the dao and transaction were part of the jar but I had the same issue when trying to run Flowscale.

Also, When running in application mode, should this include the entire workspace alongside the necessary plugins? (im assuming yes, because otherwise it asks for the beacon code at run time if not )

-Ryan

Ali Khalfan

unread,
Feb 15, 2012, 8:45:29 PM2/15/12
to flowsc...@googlegroups.com
Ryan,


ryan wallner wrote:
> Ali,
>
> Correct, In application mode I am still receiving errors. They are
> pointing to the org.springframework.jdbc jar and then pointing
> specifically to the " org.springframework.dao
> & org.springframework.dao.transaction " and the
> " org.springframework.transaction
> & org.springframework.transaction.support " packages within the jdbc
> jar. I tried to replace this jar and make sure that the dao and
> transaction were part of the jar but I had the same issue when trying to
> run Flowscale.

None of those plugins are required in flowscale. I'd imagine they would
pop up if you clicked on the "Add Required Plug-ins" in the flowscale-id
project page or in the Debug configuration. You should remove any
plugin that is not required.

>
> Also, When running in application mode, should this include the entire
> workspace alongside the necessary plugins? (im assuming yes, because
> otherwise it asks for the beacon code at run time if not )
>

If I understand you correctly, I don't really think it matters what
plugins are in the workspace from Flowscale's point of view besides the
required ones.

> -Ryan
>
> On Wed, Feb 15, 2012 at 3:37 PM, Ali Khalfan <ali.k...@gmail.com
> <mailto:ali.k...@gmail.com>> wrote:
>
> So when you run it in application mode do you not see the errors related
> to om.mysql.jdbc and org.simple.json ? are these new errors you're
> getting ?
>
> ryanwallner wrote:
> > Ali,
> >
> > I am unsure of what you mean by run in RCP mode, I see the flowscale-
> > ids.product and it can run as an eclipse application which you then
> > can specify to run the rcp.product but i havent heard of RCP mode.
> > Only RCP applications i have run need to be imported differently and I
> > do no see an option to run as RCP. I only see Eclipse Application and
> > RAP application. Either way I still am receiving the missing
> > constraint of org.springframework.dao and .transaction
> >
> > -Ryan
> >
> > On Feb 14, 3:31 pm, Ali Khalfan <ali.khal...@gmail.com

> <mailto:ali.khal...@gmail.com>> wrote:
> >> Hi Ryan,
> >>

> >>> <mailto:ali.khal...@gmail.com

> >>> 845-797-7134 <tel:845-797-7134>

Reply all
Reply to author
Forward
0 new messages