Hi Guys,

I got my website running with a CVS snapshot I got a few weeks after Nukes 1.0 (in 
order to have the news module).

I am trying to update my code to the current CVS to be 1.1 compatible. The main 
changes we made was on the templates.

I got the following errors when trying to compile the updated code. Where should the 
constant STORY_POSTED be defined?  

                 Daniel


  | [execmodules] 
/home-local/nukes-snapshot/news/src/main/org/jboss/nukes/addons/modules/news/News.java:49:
 cannot resolve symbol
  | [execmodules] symbol  : variable STORY_POSTED
  | [execmodules] location: class org.jboss.nukes.addons.modules.news.News
  | [execmodules]          stories = module.storyHome.findByState(new 
Integer(STORY_POSTED));
  | [execmodules]                                                             ^
  | [execmodules] 
/home-local/nukes-snapshot/news/src/main/org/jboss/nukes/addons/modules/news/News.java:71:
 cannot resolve symbol
  | [execmodules] symbol  : variable STORY_POSTED
  | [execmodules] location: class org.jboss.nukes.addons.modules.news.News
  | [execmodules]          stories = module.storyHome.findByStateOrderByDate(new 
Integer(STORY_POSTED));
  | [execmodules]                                                                      
  ^
  | [execmodules] 
/home-local/nukes-snapshot/news/src/main/org/jboss/nukes/addons/modules/news/News.java:92:
 cannot resolve symbol
  | [execmodules] symbol  : variable STORY_POSTED
  | [execmodules] location: class org.jboss.nukes.addons.modules.news.News
  | [execmodules]          Collection stories = 
module.storyHome.findByStateAndTopic(new Integer(STORY_POSTED), topic);
  | [execmodules]                                                                      
          ^
  | [execmodules] 
/home-local/nukes-snapshot/news/src/main/org/jboss/nukes/addons/modules/news/News.java:109:
 cannot resolve symbol
  | [execmodules] symbol  : variable STORY_ID_NAME
  | [execmodules] location: class org.jboss.nukes.addons.modules.news.News
  | [execmodules]       Integer storyId = page.getParameterAsInteger(STORY_ID_NAME);
  | [execmodules]                                                    ^
  | [execmodules] 
/home-local/nukes-snapshot/news/src/main/org/jboss/nukes/addons/modules/news/News.java:116:
 cannot resolve symbol
  | [execmodules] symbol  : method getCounter ()
  | [execmodules] location: interface 
org.jboss.nukes.addons.modules.news.ejb.StoryEJBLocal
  | [execmodules]          story.setCounter(story.getCounter() + 1);
  | [execmodules]                                ^
  | [execmodules] 
/home-local/nukes-snapshot/news/src/main/org/jboss/nukes/addons/modules/news/News.java:116:
 cannot resolve symbol
  | [execmodules] symbol  : method setCounter (java.lang.String)
  | [execmodules] location: interface 
org.jboss.nukes.addons.modules.news.ejb.StoryEJBLocal
  | [execmodules]          story.setCounter(story.getCounter() + 1);
  | [execmodules]               ^
  | [execmodules] 
/home-local/nukes-snapshot/news/src/main/org/jboss/nukes/addons/modules/news/News.java:133:
 cannot resolve symbol
  | [execmodules] symbol  : method getCommentable ()
  | [execmodules] location: interface 
org.jboss.nukes.addons.modules.news.ejb.StoryEJBLocal
  | [execmodules]       if (story.getCommentable())
  | [execmodules]                ^
  | [execmodules] 7 errors
  | 
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3835467#3835467

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3835467


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to