Setting up a MyDAS data source from svn using eclipse

select new -> project from svn.

make sure mydas repository is added in your svn repository list.

navigate to the svn repository mydas->mydastemplate.

select open project with wizard.

open the project as a “dynammic web project”

right click on the “pom.xml” file and select “package”. wait for maven to package the project

right click on the project and select “enable maven dependencies” – project icon will then have “M” on it and may take a minute to build.

right click on the project and select run on server. select a tomcat server and the server should then run.

put this url into your browser: http://localhost:8080/MyDasTemplate/das/referencegff/features?segment=L47615.1

if the page responds with a blank try right clicking on the page and select “view source”. This should then have an xml response containing this data:

<DASGFF>
<SEGMENT id=”L47615.1″ start=”1″ stop=”3221″ total=”2″ version=”FromFile” label=”L47615.1″>
<FEATURE id=”GFF_feature_1″ label=”GFF_feature_1″>
<TYPE id=”TSS”/>
<METHOD id=”hand_built”>hand_built</METHOD>
<START>2097</START>
<END>2097</END>
<ORIENTATION>+</ORIENTATION>
<PHASE>0</PHASE>
</FEATURE>
<FEATURE id=”GFF_feature_2″ label=”GFF_feature_2″>
<TYPE id=”TSS”/>
<METHOD id=”hand_built”>hand_built</METHOD>
<START>2108</START>
<END>2108</END>
<ORIENTATION>+</ORIENTATION>
<PHASE>0</PHASE>
</FEATURE>
</SEGMENT>
</GFF>
</DASGFF>
if this is not the case and you get a class not found error. right click on your project and then “Deployment Assembly” then “add”, add maven library dependencies (select the whole library not individual ones).
when developing a new adapter:
I changed the mydas log to be to the console by changing the rootCategory line in the log4j.properties file:

log4j.rootCategory=DEBUG, console

Advertisements
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: