[Building Sakai] Profile2 problem
Steve Swinsburg
steve.swinsburg at gmail.com
Sun Nov 14 13:57:13 PST 2010
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/20101115/aa62487e/attachment.html
More information about the sakai-dev
mailing list