[Building Sakai] Profile2 problem

Steve Swinsburg steve.swinsburg at gmail.com
Mon Nov 15 13:35:41 PST 2010


Hi Paul,

You only need the extra JAVA_OPTS when upgrading to JDK 1.6, and they aren't Profile2 specific:
http://confluence.sakaiproject.org/display/DOC/Install+Guide+-+Source+Install+(2.6)

So don't worry about it. Have you got Profile2 running in 1.5?

cheers,
Steve


On 16/11/2010, at 2:18 AM, Paul Dagnall wrote:

> Steve
> In the near future we plan on upgrading to Java 1.6 but for the short term I think I need to stick with 1.5. The only java opts I saw in the docs pertained to twitter. Do you know what I will need to add?
> Thanks for all your help!
> 
> Paul
> 
> 
> On Sun, Nov 14, 2010 at 4:57 PM, Steve Swinsburg <steve.swinsburg at gmail.com> wrote:
> Hi Paul,
> 
> It should work fine on 1.5 but considering that 1.5 was end of life over a year ago, I'd recommend upgrading JDK. There are a couple of extra java opts you'll need if you do. 
> 
> Cheers 
> 
> Sent from my iPhone
> 
> On 15/11/2010, at 1:04, Paul Dagnall <dagnalpb at notes.udayton.edu> wrote:
> 
>> Thanks Steve! You're correct about the differing Java versions. If I get the correct code, should Profile2 build and function on Java 1.5 or does it require 1.6?
>> Thank you.
>> 
>> Paul Dagnall
>> Web Developer
>> University of Dayton
>> 
>> 
>> On Sat, Nov 13, 2010 at 6:21 AM, Steve Swinsburg <steve.swinsburg at gmail.com> wrote:
>> Hi Paul,
>> 
>> Firstly, your dev box must be running Java 1.6 and test is on 1.5? Thats the annotation issue.
>> However, more concerning is that that particular line of code was removed a long long time ago [1] (December 2009). Is there a chance you have an old version of Profile2 installed on your test server? 
>> 
>> cheers,
>> Steve
>> 
>> [1] http://source.sakaiproject.org/viewsvn/profile2/branches/profile2-1.3.x/impl/src/java/org/sakaiproject/profile2/legacy/ProfileImpl.java?r1=70725&r2=70756&pathrev=70756
>> 
>> On 13/11/2010, at 2:44 AM, Paul Dagnall wrote:
>> 
>>> Hi
>>> I'm trying to get Profile2 (1.3.12) running on Sakai 2.6. It worked very well on my dev box. I then pulled the code onto a test server. As far as I can tell, all sakai code on my test server is identical to what's on my dev box. The problem is I get the following error when it attempts to build Profile2:
>>> 
>>> [INFO] Compilation failure
>>> /opt/sakai_vcc/profile2/impl/src/java/org/sakaiproject/profile2/legacy/ProfileImpl.java:[53,9] method does not override a method from its superclass
>>> 
>>> This has me puzzled. Just for fun I made the following change:
>>> 
>>> --- impl/src/java/org/sakaiproject/profile2/legacy/ProfileImpl.java    (revision 3065)
>>> +++ impl/src/java/org/sakaiproject/profile2/legacy/ProfileImpl.java    (working copy)
>>> @@ -50,7 +50,7 @@
>>>      public String getUserId() {
>>>          return userId;
>>>      }
>>> -    @Override
>>> +    //@Override
>>>      public void setUserID(String arg0) {
>>>          this.userId = arg0;
>>> 
>>> 
>>> This allowed the tool to build but accessing it through the application created the following error:
>>> 
>>> 
>>> INFO: 2010-11-12 10:25:47,925 [ProfileApplication] init: Wicket extensions initializer [TP-Processor10]
>>> INFO: 2010-11-12 10:25:47,932 [ProfileApplication] Started Wicket version 1.3.6 in deployment mode [TP-Processor10]
>>> ERROR: 2010-11-12 10:25:48,053 Can't instantiate page using constructor public org.sakaiproject.profile2.tool.Dispatcher() [TP-Processor1]
>>> org.apache.wicket.WicketRuntimeException: Can't instantiate page using constructor public org.sakaiproject.profile2.tool.Dispatcher()
>>>     at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:168)
>>> 
>>> 
>>> Does anyone have any ideas about what I'm doing wrong here?
>>> 
>>> Thanks!
>>> 
>>> 
>>> Paul Dagnall
>>> Web Developer
>>> University of Dayton
>>> _______________________________________________
>>> sakai-dev mailing list
>>> sakai-dev at collab.sakaiproject.org
>>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>> 
>>> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
>> 
>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20101116/baa1a580/attachment.html 


More information about the sakai-dev mailing list